vare=arguments[3];functiont(e,t){returna(e)||i(e,t)||o(e,t)||n()}functionn(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functiono(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,o=newArray(t);n<t;n++)o[n]=e[n];returno}functioni(e,t){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){varn=[],o=!0,r=!1,i=void0;try{for(vara,u=e[Symbol.iterator]();!(o=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(c){r=!0,i=c}finally{try{o||null==u.return||u.return()}finally{if(r)throwi}}returnn}}functiona(e){if(Array.isArray(e))returne}functionu(e,t,n,o,r,i,a){try{varu=e[i](a),c=u.value}catch(s){returnvoidn(s)}u.done?t(c):Promise.resolve(c).then(o,r)}functionc(e){returnfunction(){vart=this,n=arguments;returnnewPromise(function(o,r){vari=e.apply(t,n);functiona(e){u(i,o,r,a,c,"next",e)}functionc(e){u(i,o,r,a,c,"throw",e)}a(void0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;vars="1.3.11";"undefined"!=typeofwindow&&void0!==window.Audio||(e.window={Audio:{}});vard,l,p,f,m,g,v,y,b,h,x=window.Audio,w=!0,S=function(e){try{for(vart=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=newArrayBuffer(t.length),r=newUint8Array(o),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);returnURL.createObjectURL(newBlob([o],{type:n}))}catch(a){return}},R=function(){vare=c(regeneratorRuntime.mark(functione(){vart;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:returnd.value=null,d.click(),e.next=4,newPromise(function(e){d.onchange=function(){e()}});case4:if(d.onchange=void0,void0!==(t=d.files[0])){e.next=8;break}returne.abrupt("return",void0);case8:returne.abrupt("return",t);case9:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),U={goosemodHandlers:{onImport:function(){vare=c(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:goosemodScope.logger.debug("customSounds","Overriding Audio with a proxy function"),window.Audio=function(){vare=newx,t=e.play;returne.play=function(){returnw&&(p&&this.src.includes("/assets/c6e92752668dde4eee5923d70441579f.mp3")&&(console.log("outgoing"),this.src=p),l&&this.src.includes("/assets/84a1b4e11d634dbfa1e5dd97a96de3ad.mp3")&&(console.log("incoming"),this.src=l),f&&this.src.includes("/assets/dd920c06a01e5bb8b09678581e29d56f.mp3")&&(console.log("notification"),this.src=f)),t.apply(this,arguments)},e};case2:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onLoadingFinished:function(){vare=c(regeneratorRuntime.mark(functione(){vart;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:(d=document.createElement("input")).type="file",d.style.display="none",document.body.appendChild(d),t=[{type:"text-and-button",text:"Incoming Call",subtext:"Not uploaded",buttonText:"Upload",onclick:function(){vare=c(regeneratorRuntime.mark(functione(n){varo,r;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:returnn.textContent="Uploading...",e.next=3,R();case3:o=e.sent,l=void0===o?void0:URL.createObjectURL(o),y=void0===o?void0:o.name,t[0].subtext=void0===o?"Not uploaded":"Uploaded: ".concat(o.name),goosemodScope.settings.createFromItems(),goosemodScope.openSettingItem("Custom Sounds"),void0!==o&&((r=newFileReader).onload=function(){m=r.result},r.readAsDataURL(o));case10:case"end":returne.stop()}},e)}));returnfunction(t){returne.apply(this,arguments)}}()},{type:"text-and-button",text:"Outgoing Call",subtext:"Not uploaded",buttonText:"Upload",onclick:function(){vare=c(regeneratorR