"use strict";functione(e,o){returnn(e)||r(e,o)||a(e,o)||t()}functiont(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionr(e,t){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){varr=[],n=!0,o=!1,a=void0;try{for(varu,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(i){o=!0,a=i}finally{try{n||null==c.return||c.return()}finally{if(o)throwa}}returnr}}functionn(e){if(Array.isArray(e))returne}functiono(e,t){varr;if("undefined"==typeofSymbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeofe.length){r&&(e=r);varn=0,o=function(){};return{s:o,n:function(){returnn>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throwe},f:o}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varu,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){vare=r.next();returnc=e.done,e},e:function(e){i=!0,u=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throwu}}}}functiona(e,t){if(e){if("string"==typeofe)returnu(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void0}}functionu(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functionc(e,t,r,n,o,a,u){try{varc=e[a](u),i=c.value}catch(s){returnvoidr(s)}c.done?t(i):Promise.resolve(i).then(n,o)}functioni(e){returnfunction(){vart=this,r=arguments;returnnewPromise(function(n,o){vara=e.apply(t,r);functionu(e){c(a,n,o,u,i,"next",e)}functioni(e){c(a,n,o,u,i,"throw",e)}u(void0)})}}vars;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;varf={},l="1.1.3",p=function(e){returnnewPromise(function(t){returnsetTimeout(t,e)})},m={goosemodHandlers:{onImport:function(){vare=i(regeneratorRuntime.mark(functione(){vart;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:t=goosemodScope.webpackModules.findByProps("jumpToMessage","_sendMessage"),s=t.sendMessage,t.sendMessage=function(){vare=i(regeneratorRuntime.mark(functione(t,r){varn,a,u,c,i,l,m=arguments;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:if(!r.content.startsWith("/m")){e.next=41;break}if(n=r.content.replace("/m ",""),a=n.split(" ")[0],u=n.split(" ").slice(1).join(" "),console.log(a,u),u){e.next=38;break}if(a&&"/m"!==a){e.next=32;break}returngoosemodScope.showToast('Syntax: "/m <macro_name> [macro content]" - no macro content = get macro, with macro content = set macro',{timeout:2e3}),e.next=10,p(2e3);case10:returngoosemodScope.showToast("Your Macros:",{timeout:1e3}),e.next=13,p(1e3);case13:c=o(Object.keys(f).map(function(e){return"".concat(e,": ").concat(f[e])})),e.prev=14,c.s();case16:if((i=c.n()).done){e.next=23;break}returnl=i.value,goosemodScope.showToast(l,{timeout:1e3}),e.next=21,p(1e3);case21:e.next=16;break;case23:e.next=28;break;case25:e.prev=25,e.t0=e.catch(14),c.e(e.t0);case28:returne.prev=28,c.f(),e.finish(28);case31:returne.abrupt("return");case32:if(f[a]){e.next=35;break}returngoosemodScope.showToast('No macro "'.concat(a,'"')),e.abrupt("return");case35:r.content=f[a],e.next=41;break;case38:returnf[a]=u,goosemodScope.showToast('Macro "'.concat(a,'" saved')),e.abrupt("return");case41:returne.abrupt("return",s.apply(this,m));case42:case"end":returne.stop()}},e,this,[[14,25,28,31]])}));returnfunction(t,r){returne.apply(this,arguments)}}();case3:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){vare=i(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:goosemodScope.webpackModules.findByProps("jumpToMessage",