"use strict";functione(e,r){returni(e)||o(e,r)||n(e,r)||t()}functiont(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionn(e,t){if(e){if("string"==typeofe)returnr(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void0}}functionr(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functiono(e,t){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){varn=[],r=!0,o=!1,i=void0;try{for(vara,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throwi}}returnn}}functioni(e){if(Array.isArray(e))returne}functiona(e,t,n,r,o,i,a){try{vars=e[i](a),u=s.value}catch(c){returnvoidn(c)}s.done?t(u):Promise.resolve(u).then(r,o)}functions(e){returnfunction(){vart=this,n=arguments;returnnewPromise(function(r,o){vari=e.apply(t,n);functions(e){a(i,r,o,s,u,"next",e)}functionu(e){a(i,r,o,s,u,"throw",e)}s(void0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;varu,c,l,d,m=function(e){returnnewPromise(function(t){returnsetTimeout(t,e)})},f="1.1.4",p="",y=function(e){u.innerHTML="",u.appendChild(document.createTextNode(e))},v=function(){l.innerHTML=c.innerHTML,d.highlightBlock(l)},g={goosemodHandlers:{onImport:function(){vare=s(regeneratorRuntime.mark(functione(){vart;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:u=document.createElement("style"),document.head.appendChild(u),(c=document.createElement("div")).style.width="90%",c.style.height="85vh",c.style.position="absolute",c.classList.add("hljs","css"),c.style.backgroundColor="var(--background-secondary)",c.contentEditable="true",c.style.fontSize="0.875em",c.style.lineHeight="1.125em",c.style.textIndent="0",c.style.whiteSpace="pre-wrap",c.style.fontFamily="Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace",(l=c.cloneNode()).style.pointerEvents="none",l.style.backgroundColor="transparent",l.style.zIndex="2",l.contentEditable="false",d=goosemod.webpackModules.findByPropsAll("highlight")[3],t=function(){p=c.innerHTML,v(),y(c.textContent)},c.innerHTML=p,c.oninput=t,t(),c.addEventListener("paste",function(e){e.preventDefault();vart=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}),goosemodScope.settings.createItem("Custom CSS",["(v".concat(f,")"),{type:"custom",element:c},{type:"custom",element:l}]);case26:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){vare=s(regeneratorRuntime.mark(functione(){vart;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:u.remove(),t=goosemodScope.settings.items.find(function(e){return"Custom CSS"===e[1]}),goosemodScope.settings.items.splice(goosemodScope.settings.items.indexOf(t),1);case3:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),getSettings:function(){return[p]},loadSettings:function(t){varn=e(t,1)[0];p=n,c.innerHTML=p,v(),y(c.textContent)}}};exports.default=g;