CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/cheatGUI/dist/bundle.js
Views: 720
1
(()=>{var __webpack_modules__={7532:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9190)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t,o){this.parent=e,this.name="",this.description="",this.element=document.createElement("button"),this.element.classList.add("menu-hack"),this.parent.append(this.element),t&&this.setName(t),o&&this.setDesc(o)}setName(e){return this.element.innerText=e,this.name=e,this}setClick(e){var t=this;return this.element.onclick=s((function*(){yield e(),(0,o.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}}.apply(t,n),void 0===a||(e.exports=a)},3909:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7532)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o=i(o);class n extends o.default{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}get status(){return JSON.parse(this.element.getAttribute("status"))}set status(e){this.element.setAttribute("status",e.toString())}setEnabled(e){return this.enabled=e,"true"===localStorage.getItem(this.name)&&this.element.click(),this}setDisabled(e){return this.disabled=e,this}}t.default=n}.apply(t,n),void 0===a||(e.exports=a)},8655:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7031),o(8237),o(3909),o(7532),o(9190)],a=function(e,t,o,n,a,r,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a),r=i(r),new a.default(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return l._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new a.default(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return l.player.modifiers.damage=l.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(l.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new r.default(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return l.player.pvpHP=l.VERY_LARGE_NUMBER,l.player.getMaxHearts=()=>l.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new r.default(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=l.game.state.current;return"PVP"===e?(Object.fromEntries(l._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(l.prodigy.world.$(l.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(l._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new r.default(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=l.game.state.current;switch(console.log("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(l._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(l._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new r.default(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return l.player.getMaxHearts=()=>+e.value,l.player.pvpHP=+e.value,l.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new r.default(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=l.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new a.default(n.category.battle,"Skip enemy turn").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled(s((function*(){return l._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")}))),new r.default(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=l.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(l.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n),void 0===a||(e.exports=a)},4975:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(7031),__webpack_require__(8237),__webpack_require__(3909),__webpack_require__(7532),__webpack_require__(9190),__webpack_require__(8613),__webpack_require__(4989)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1,hackify_1,popupCloser_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.beta,"Switch Branch","Loads a different branch of cheatGUI for you.").setClick(_asyncToGenerator((function*(){var branches_fetch=yield(yield fetch("https://api.github.com/repos/ProdigyPNP/ProdigyMathGameHacking/branches")).text(),branches=new Map;JSON.parse(branches_fetch).forEach((e=>{branches.set(e.name,e.name)}));var branch=yield(yield swal_1.Swal.fire({title:"Select Branch",html:"Select which branch of ProdigyPNP you'd like to use.",input:"select",inputOptions:branches})).value;if(branch)return yield eval(yield(yield fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/".concat(branch,"/cheatGUI/dist/bundle.js"))).text())}))),new Hack_1.default(index_1.category.beta,"Get all Runes [BETA]").setClick(_asyncToGenerator((function*(){if((yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.<br><br>Proceed?",icon:"warning"})).value){var e,t=parseInt((yield swal_1.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(util_1._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{util_1._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),util_1._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,hackify_1.runeify)(util_1._.gameData.orb,t),swal_1.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new Hack_1.default(index_1.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.<br><br>Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,hackify_1.getPet)("Choose the pet to edit.");if(void 0!==e){var t=util_1.player.kennel.data[e],o=yield swal_1.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==o.value){if("level"===o.value){var n=yield swal_1.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===n.value)return;return t.level=+n.value,swal_1.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===o.value){var a=util_1._.gameData.spell,r=document.createElement("div"),s=document.createElement("select");for(var i of(s.classList.add("selectSpell"),a)){var l=document.createElement("option");l.value=i.ID.toString(),l.innerText="".concat(i.ID,": ").concat(i.name," (").concat(i.data.element,") - Damage: ").concat(i.data.damage),s.options.add(l)}r.append(s),r.append(s.cloneNode(!0));var c=yield swal_1.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:r,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===c.value)return;return t.foreignSpells.splice(0,2,...c.value.map((e=>+e))),swal_1.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===o.value){var u=yield swal_1.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===u.value)return;return t.nickname=u.value,swal_1.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new Hack_1.default(index_1.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield swal_1.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};util_1._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var o=yield swal_1.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(o.value)return util_1.player.getPlayerData().playerTransformation={transformType:e.value,transformID:o.value,maxTime:36e5,timeRemaining:36e5},util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Morphed!","You've been morphed.","success")}}))),new Toggler_1.default(index_1.category.beta,"(client side) Toggle Invisibility [BETA]","Lets you appear invisible on your own screen.").setEnabled(_asyncToGenerator((function*(){util_1.current.user.visible=!1}))).setDisabled(_asyncToGenerator((function*(){util_1.current.user.visible=!0}))),new Toggler_1.default(index_1.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(_asyncToGenerator((function*(){return(0,popupCloser_1.PopupInterval)(!0),swal_1.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(_asyncToGenerator((function*(){return(0,popupCloser_1.PopupInterval)(!1),swal_1.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new Hack_1.default(index_1.category.beta,"Hypermax Account [BETA]").setClick(_asyncToGenerator((function*(){if((yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.<br><br>Proceed?",icon:"warning"})).value){util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t<Math.min(99,100);t++)util_1.prodigy.giftBoxController.receiveGiftBox(null,(0,util_1.getItem)("giftBox",1));console.log("Obtained 100 conjure cubes."),util_1.player.data.win=util_1.VERY_LARGE_NUMBER,console.log("Set player's wins to VERY_LARGE_NUMBER"),util_1.player.data.loss=-0x8000000000000000,console.log("Set player's losses to -9223372036854775808."),util_1.player.modifiers.damage=util_1.VERY_LARGE_NUMBER,console.log("Enabled damage multiplier."),util_1.player.pvpHP=util_1.VERY_LARGE_NUMBER,util_1.player.getMaxHearts=()=>util_1.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var o=0;o<100;o++)util_1.player.achievements.data.progress[o]=10;console.log("Obtained all achievements."),util_1.player.data.tower=100,console.log("Set tower floor to 100."),util_1.player.getMaxHearts=()=>util_1.VERY_LARGE_NUMBER,util_1.player.pvpHP=util_1.VERY_LARGE_NUMBER,util_1.player.data.hp=util_1.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var n,a=99e4;hackify_1.ids.forEach((e=>{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),a.value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:a.value}));for(var r=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));r()>-1;)util_1.player.backpack.data.item.splice(r(),1);return swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts."),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),util_1._.gameData.pet.forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel._encounterInfo._data.pets=[],util_1._.gameData.pet.map((e=>{util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),util_1._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),util_1._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),util_1.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(util_1._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{util_1._.instance.prodigy.gameContainer.get(e[0]).battleData&&(n=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),util_1._.instance.prodigy.gameContainer.get(n).battleData._secureCharacterState._data.inventory.orb=(0,hackify_1.runeify)(util_1._.gameData.orb,100),util_1.player.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),(0,util_1.saveCharacter)(),console.log("Character Saved."),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),util_1._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},698:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(8237),o(7532),o(7031),o(9190),o(8613)],a=function(e,t,o,n,a,r,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),new((n=i(n)).default)(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield a.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield a.Confirm.fire("Are you sure you want to get all items in the game?")).value){l.ids.forEach((t=>{r.player.backpack.data[t]=(0,l.itemify)(r._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),r._.gameData.dorm.forEach((t=>r.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>r.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)r.player.backpack.data.item.splice(t(),1);return a.Toast.fire("Success!","All items added!","success")}}))),new n.default(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield a.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(r.player.backpack.data).forEach((e=>r.player.backpack.data[e]=[])),a.Toast.fire("Success!","Inventory cleared.","success"))}))),new n.default(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield a.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=l.names[t],n=l.ids[t];if(o){var s=yield a.NumberInput.fire("Amount","How many each object would you like?","question");s.value&&(yield a.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(r.player.backpack.data[n]=(0,l.itemify)(r._.gameData[n].filter((e=>"follow"===n?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),s.value),a.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,r.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new n.default(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield a.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(r._.gameData[l.ids[e.value]]){var t=[];r._.gameData[l.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield a.Swal.fire({title:"What specific object categorized as ".concat(l.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(r._.gameData[l.ids[e.value]][o]){var n=yield a.NumberInput.fire("Amount","How many of the object would you like?","question");if(n.value)return-1===r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID))?r.player.backpack.data[l.ids[e.value]].push({ID:r._.gameData[l.ids[e.value]][o].ID,N:n.value}):r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID)),console.log(r._.gameData[l.ids[e.value]][o].ID),(0,r.saveCharacter)(),a.Toast.fire("".concat(l.names[e.value]," Added!"),"Your selected ".concat(l.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new n.default(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield a.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield a.Confirm.fire("Are you sure you want to get all furniture?")).value)return r._.gameData.dorm.forEach((t=>r.player.house.data.items[t.ID]={A:[],N:e.value})),a.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new n.default(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return r.player.backpack.data.mount=(0,l.itemify)(r._.gameData.mount,1),a.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new n.default(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield a.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(r._.gameData[l.ids[e.value]]){var t=r._.gameData[l.ids[e.value]].map((e=>e.data.name)),o=yield a.Swal.fire({title:"What specific object categorized as ".concat(l.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),r._.gameData[l.ids[e.value]][o]){var n=yield a.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(n.value){if(-1!==r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID))){var s=r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID));return r.player.backpack.data[l.ids[e.value]][s].N-=parseInt(n.value),r.player.backpack.data[l.ids[e.value]][s].N<=0&&r.player.backpack.data[l.ids[e.value]].splice(s,1),(0,r.saveCharacter)(),a.Toast.fire("Removed!","Successfully removed ".concat(n.value," ").concat(r._.gameData[l.ids[e.value]][o].name,"!"),"success")}yield a.Swal.fire("Item Does Not Exist","You do not have any ".concat(r._.gameData[l.ids[e.value]][o].name,"."),"error")}}}}))),new n.default(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield a.Confirm.fire("Are you sure you want to get all furniture?")).value?(r._.gameData.dorm.forEach((e=>r.player.house.data.items[e.ID]={A:[],N:r.VERY_LARGE_NUMBER})),a.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n),void 0===a||(e.exports=a)},5280:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(8237),o(3909),o(7532),o(7031),o(9190),o(8613)],a=function(e,t,o,n,a,r,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWASD=void 0,n=i(n),a=i(a),t.useWASD=!0,new n.default(o.category.location,"WASD Movement","Allows you to walk through walls or on air with WASD movement in Prodigy.").setEnabled(s((function*(){return t.useWASD=!0,r.Toast.fire("Enabled!","WASD Movement is now enabled.","success")}))).setDisabled(s((function*(){return t.useWASD=!1,r.Toast.fire("Disabled!","WASD Movement is now disabled.","success")}))).status=!0,new a.default(o.category.location,"Edit walkspeed","Lets you set your walkspeed.").setClick(s((function*(){var e=yield r.Input.fire("What do you want to set your walk speed to?");if(e.value){if(l.player._playerContainer)l.player._playerContainer.walkSpeed=parseFloat(e.value)||1.5;else var t=setInterval((()=>{l.player._playerContainer&&(clearInterval(t),l.player._playerContainer.walkSpeed=parseFloat(e.value))}),100);return r.Toast.fire("Success!","Successfully made walk speed ".concat(parseFloat(e.value)||1.5,"!"),"success")}})));var u=-1;new n.default(o.category.location,"Toggle Click Teleporting").setEnabled(s((function*(){return u=setInterval((()=>{try{l.player._playerContainer.walkSpeed=500}catch(e){}})),r.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(s((function*(){return clearInterval(u),l.player._playerContainer.walkSpeed=1.5,r.Toast.fire("Success!","Successfully disabled teleport click.","success")}))),new a.default(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=r.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=l.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var n of Object.keys(l.prodigy.world.zones))o(n);var a=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(a.value){var s=Object.keys(l.prodigy.world.zones[a.value].maps),i=yield r.Swal.fire({input:"select",inputOptions:new Map(s.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(i.value){var c=(yield r.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield r.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return l.prodigy.world.zones[a.value].teleport(i.value,c,u,{},{}),r.Toast.fire("Teleported","You have been teleported!","success")}}}))),new a.default(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield r.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,c.toHouse)(e),r.Toast.fire("Teleported!","You have been teleported!","success")}))),new a.default(o.category.location,"Get Map Location").setClick(s((function*(){var e=l.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),r.Swal.fire({title:"Map Location",html:"You are at <br> <code> ".concat(e," </code>. <br> You can save this to get to the same zone. <br> <br> Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),r.Swal.fire({title:"Map Location",html:"You are at <br> <code> ".concat(e," </code>. <br> You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n),void 0===a||(e.exports=a)},8370:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(8237),o(3909),o(9190),o(7031)],a=function(e,t,o,n,a,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),new((n=i(n)).default)(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return a._.instance.game.state.states.get("DinoDig").walkSpeed=69,r.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return a._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,r.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n),void 0===a||(e.exports=a)},5772:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7031),o(8237),o(3909),o(7532),o(9190),o(9837)],a=function(e,t,o,n,a,r,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a),new((r=i(r)).default)(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{l._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(l._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),l.player.state.set("tutorial-0",4),l.player.backpack.addKeyItem(13,0),l.player.tutorial.data.menus[14]=[1],l._.instance.prodigy.open.map(!0,[]),l.player.onTutorialComplete(),l.player.data.level=Math.max(l.player.data.level,5)}))),new a.default(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(l._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new a.default(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,c.startFps)()}))).setDisabled(s((function*(){(0,c.stopFps)()})));try{var u=l.current.user.source.canSpin;new a.default(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return l.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return l.player.canSpin=u,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new r.default(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return l.player.name.data.nickname=null,l.player.name.data.firstName=44,l.player.name.data.middleName=754,l.player.name.data.lastName=882,l.player.data.stars=-1e22,l.player.data.level=69,l.player.appearance.setGender("male"),l.player.appearance.setEyeColor(1),l.player.appearance.setFace(4),l.player.appearance.setHair(19,1),l.player.appearance.setSkinColor(1),l.player.equipment.setFollow(19),l.player.equipment.setHat(19),l.player.equipment.setBoots(19),l.player.equipment.setOutfit(19),l.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new r.default(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return l.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")}))),new r.default(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return l.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new r.default(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return l._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new r.default(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(n<this.length-1?o+e:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n<this.length-1?o+e(a[n],n,a):o)),""):void 0},Array.prototype.leftJoin=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(l._.localizer.dataSource._languageData).map((e=>l._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(l._.localizer.dataSource._languageData[e])))),Object.values(l._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n),void 0===a||(e.exports=a)},8870:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7031),o(8237),o(7532),o(9190)],a=function(e,t,o,n,a,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a);var l=null;new a.default(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(l=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(r.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(r.player.userID,"/pvp?userID=").concat(r.player.userID),{headers:{authorization:"Bearer ".concat(r.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(r.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new a.default(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n),void 0===a||(e.exports=a)},5153:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(7031),__webpack_require__(8237),__webpack_require__(7532),__webpack_require__(9190),__webpack_require__(8613)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Hack_1,util_1,hackify_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(util_1._.gameData.pet.forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel._encounterInfo._data.pets=[],util_1._.gameData.pet.map((e=>{util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new Hack_1.default(index_1.category.pets,"Uncap pet level [Client Side]","Change your pet's level to anything, even over 100. This hack won't save when you reload Prodigy.").setClick(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new Hack_1.default(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},3052:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(7031),__webpack_require__(8237),__webpack_require__(3909),__webpack_require__(7532),__webpack_require__(9190),__webpack_require__(8613),__webpack_require__(8711)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1,hackify_1,chat_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),chat_1=__importDefault(chat_1),new Hack_1.default(index_1.category.player,"Open ProdigyPNP Chat","Opens a chat for ProdigyPNP users").setClick(_asyncToGenerator((function*(){return(0,chat_1.default)()}))),new Hack_1.default(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t<Math.min(99,100);t++)util_1.prodigy.giftBoxController.receiveGiftBox(null,(0,util_1.getItem)("giftBox",1));console.log("Obtained 100 conjure cubes.");for(var o=0;o<100;o++)util_1.player.achievements.data.progress[o]=10;console.log("Obtained all achievements."),util_1.player.data.tower=100,console.log("Set tower floor to 100."),hackify_1.ids.forEach((e=>{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),util_1._.gameData.pet.forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel._encounterInfo._data.pets=[],util_1._.gameData.pet.map((e=>{util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),util_1.player.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),new Hack_1.default(index_1.category.player,"Set Gold").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Gold Amount","What number do you want to set your gold to?","question");if(void 0!==e.value)return e.value>1e7?swal_1.Toast.fire("Error","Cannot have more than 10,000,000 gold.","error"):(util_1.player.data.gold=+e.value,swal_1.Toast.fire("Success!","You now have ".concat(e.value," gold."),"success"))}))),new Hack_1.default(index_1.category.player,"Set Level").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Level","What number do you want to set your level to?","question");if(void 0!==e.value){if(1===e.value)return 0;var t=e.value-2;return util_1.player.data.stars=Math.round((1-Math.pow(1.042,t))/(1-1.042)*20+10),util_1.player.data.level=+e.value,util_1.player.getLevel=()=>util_1.player.data.level,swal_1.Toast.fire("Success!","You are now level ".concat(e.value,"."),"success")}}))),new Hack_1.default(index_1.category.player,"Get member stars").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Stars","How many member stars do you want?","question");if(void 0!==e.value)return util_1.player.data.storedMemberStars=e.value,swal_1.Toast.fire("Success!","You have set your member stars to ".concat(e.value,"."),"success")}))),new Hack_1.default(index_1.category.player,"Set Bounty Points").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Bounty Points","What number do you want to set your bounty points to? (Max is 100)","question");if(void 0!==e.value)return util_1.player.data.bountyScore=Math.min(+e.value,100),swal_1.Toast.fire("Success!","You now have ".concat(util_1.player.data.bountyScore," bounty point").concat(1!=util_1.player.data.bountyScore?"s":"","."),"success")}))),new Hack_1.default(index_1.category.player,"Obtain Conjure Cubes").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Conjure Cubes","How many conjure cubes do you want to get? (Max 99)","question");if(void 0!==e.value){for(var t=0;t<Math.min(99,+e.value);t++)util_1.prodigy.giftBoxController.receiveGiftBox(null,(0,util_1.getItem)("giftBox",1));return swal_1.Toast.fire("Success!","You have gained ".concat(e.value," conjure cube").concat(1!=e.value?"s":"","."),"success")}}))),new Hack_1.default(index_1.category.player,"Set Wins").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Wins","What number do you want to set your wins to?","question");if(void 0!==e.value)return util_1.player.data.win=+e.value,swal_1.Toast.fire("Success!","You have set your win".concat(1!=e.value?"s":""," to ").concat(e.value,"."),"success")}))),new Hack_1.default(index_1.category.player,"Set Losses").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Losses","What number do you want to set your losses to?","question");if(void 0!==e.value)return util_1.player.data.loss=+e.value,swal_1.Toast.fire("Success!","You have set your loss".concat(1!=e.value?"es":""," to ").concat(e.value,"."),"success")}))),new Toggler_1.default(index_1.category.player,"Toggle membership").setEnabled(_asyncToGenerator((function*(){return util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).data.membership.active=!0,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","You now have Prodigy membership!","success")}))).setDisabled((()=>(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).data.membership.active=!1,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","You no longer have Prodigy membership!","success")))),new Hack_1.default(index_1.category.player,"Set name (Client side only)").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Input.fire("What would you like to set your name to?");if(e.value)return util_1.player.getName=()=>e.value,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Changed!","Your name was changed.")}))),new Hack_1.default(index_1.category.player,"Change Name","Change the name of your wizard.").setClick(_asyncToGenerator((function*(){var e=util_1._.gameData.name,t=document.createElement("div"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(new Map([["null","[none]"]].concat(util_1._.gameData.nickname.map((e=>[e.ID.toString(),e.name])))),(e=>+e===util_1.player.name.data.nickname||String(util_1.player.name.data.nickname)===e)));var a=yield swal_1.Swal.fire({title:"Set Player Name",focusConfirm:!1,showCancelButton:!0,html:t,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectName")).map((e=>e.options[e.selectedIndex].value))});if(void 0!==a.value)return"null"===a.value[3]&&(a.value[3]=null),[util_1.player.name.data.firstName,util_1.player.name.data.middleName,util_1.player.name.data.lastName,util_1.player.name.data.nickname]=a.value.map((e=>e&&+e)),util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Name Changed!","Your name was successfully changed.","success")}))),new Hack_1.default(index_1.category.player,"Uncap player level (client side only)").setClick(_asyncToGenerator((function*(){var level=yield swal_1.NumberInput.fire("Level","What would you like to set your level to? (Can be >100)","question");if(level.value)return localStorage.setItem("level",level.value),eval("player.getLevel = () => {return ".concat(level.value,"}")),swal_1.Toast.fire("Updated!","Your level has been successfully updated","success")}))),new Hack_1.default(index_1.category.player,"Get all achievements").setClick(_asyncToGenerator((function*(){for(var e=0;e<100;e++)util_1.player.achievements.data.progress[e]=10;return swal_1.Toast.fire("Success!","Obtained all achievements!","success")}))),new Hack_1.default(index_1.category.player,"Fix Morph Crash").setClick(_asyncToGenerator((function*(){return util_1.player.getPlayerData().playerTransformation=void 0,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","Fixed morph crash bug.","success")}))),new Hack_1.default(index_1.category.player,"Permanent Morph","Makes Your Current Morph Last Forever.").setClick(_asyncToGenerator((function*(){return util_1.player.data.playerTransformation?(util_1.player.data.playerTransformation.maxTime=1/0,util_1.player.data.playerTransformation.timeRemaining=1/0,swal_1.Toast.fire("Success!","You're morph will last forever!","success")):swal_1.Swal.fire("No Morph Active","Please use a Morph Marble and try again.","error")}))),new Hack_1.default(index_1.category.player,"Complete Current Task In Quest","Completes current task in quest. (Use this button a lot to complete a quest.)").setClick(_asyncToGenerator((function*(){var e={};Object.keys(util_1._.instance.prodigy.world.zones).forEach((t=>{e[t]=util_1._.instance.prodigy.world.zones[t].name}));var t=(yield swal_1.Input.fire({title:"What Quest Do You Want To Complete?",input:"select",inputOptions:e})).value;if(t){var o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(util_1._.instance.prodigy.world.goToZoneHub(t),swal_1.Toast.fire("Success!","Completed current task in the ".concat(util_1._.instance.prodigy.world.zones[t].name," quest successfully!"),"success")):swal_1.Toast.fire("Could Not Complete Current Task In Quest.","There was an error completing the quest. Did you already complete it?","error")}}))),new Hack_1.default(index_1.category.player,"Set Dark Tower Floor").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire({title:"What floor do you want to be on, in the dark tower.",icon:"question",inputValidator:e=>(e>100||e<1)&&"You can only be on floors from 1-100 not ".concat(e)});if(e.value)return util_1.player.data.tower=parseInt(e.value),swal_1.Toast.fire("Success!","Successfully set dark tower floor to ".concat(e,"!"),"success")}))),new Hack_1.default(index_1.category.player,"Get UserID").setClick(_asyncToGenerator((function*(){var e=util_1.player.userID;navigator.clipboard.writeText(e.toString()).then((function(){return console.log("Async: Copying to clipboard was successful!"),swal_1.Swal.fire({title:"User ID",html:"Here is your User ID: <br> <code> ".concat(e," </code> <br> You can use this for copying your account. <br> <br> Your UserID is has also been copied to your clipboard."),icon:"info"})}),(function(t){return console.error("Async: Could not copy text: ",t),swal_1.Swal.fire({title:"User ID",html:"Here is your User ID: <br> <code> ".concat(e," </code> <br> You can use this for copying your account."),icon:"info"})}))}))),new Hack_1.default(index_1.category.player,"Copy Account","Copy Account From userID").setClick(_asyncToGenerator((function*(){var e=(yield swal_1.NumberInput.fire("What is the userID of the account you want to copy?",void 0,"question")).value;if(e&&(yield swal_1.Confirm.fire("Are you sure you want to copy the account?","This will replace all data on your account with the account your copying."))){var t=yield(yield fetch("https://api.prodigygame.com/game-api/v2/characters/".concat(e,"?fields=inventory%2Cdata%2CisMember%2Ctutorial%2Cpets%2Cencounters%2Cquests%2Cappearance%2Cequipment%2Chouse%2Cachievements%2Cstate&userID=").concat(e),{headers:{Authorization:localStorage.JWT_TOKEN}})).json();return yield fetch("https://api.prodigygame.com/game-api/v3/characters/".concat(e),{headers:{"Content-Type":"application/json",Authorization:localStorage.JWT_TOKEN},body:JSON.stringify({data:JSON.stringify(t[e]),userID:util_1.player.userID}),method:"POST"}),swal_1.Toast.fire("Success!","Copied Account Successfully! Please reload.","success")}}))),new Hack_1.default(index_1.category.player,"Set Grade").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("What number do you want to set your grade to?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},509:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(7031),__webpack_require__(8237),__webpack_require__(3909),__webpack_require__(7532),__webpack_require__(9190)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.utility,"Close all popups","Closes all popups in Prodigy.").setClick(_asyncToGenerator((function*(){return util_1._.instance.prodigy.open.menuCloseAll(),swal_1.Toast.fire("Closed!","All open popups were closed.","success")}))),new Hack_1.default(index_1.category.utility,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="<li>uID: ".concat(n," - ").concat(a,"</li>"),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new Hack_1.default(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return localStorage.setItem("playerData",JSON.stringify(util_1.player.getUpdatedData(!0))),swal_1.Toast.fire("Success!","Note: Load Character will only work on this device.","success")}))),new Hack_1.default(index_1.category.utility,"Load local character [Local]","Loads your character locally.").setClick(_asyncToGenerator((function*(){if(localStorage.getItem("playerData")){var e=localStorage.getItem("playerData"),t=yield fetch("https://api.prodigygame.com/game-api/v3/characters/".concat(util_1.player.userID),{headers:{accept:"*/*","accept-language":"en-US,en;q=0.9",authorization:localStorage.JWT_TOKEN,"content-type":"application/json","sec-ch-ua":'" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',"sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-site"},referrer:"https://play.prodigygame.com/",referrerPolicy:"strict-origin-when-cross-origin",body:JSON.stringify({data:e,userID:util_1.player.userID}),method:"POST",mode:"cors"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return swal_1.Toast.fire("Error","No saved character.","error")}))),new Hack_1.default(index_1.category.utility,"Save Character","Helps fix bugs where not all hacks save.").setClick(_asyncToGenerator((function*(){return(0,util_1.saveCharacter)(),swal_1.Toast.fire("Success!","Your character has been saved!","success")}))),new Hack_1.default(index_1.category.utility,"Update menu","Updates menu to the latest version without needing to reload.").setClick(_asyncToGenerator((function*(){var _document$getElementB,_document$getElementB2;return null===(_document$getElementB=document.getElementById("cheat-menu"))||void 0===_document$getElementB||_document$getElementB.remove(),null===(_document$getElementB2=document.getElementById("menu-toggler"))||void 0===_document$getElementB2||_document$getElementB2.remove(),_asyncToGenerator((function*(){eval(yield(yield fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/dist/bundle.js?updated=".concat(Date.now()))).text())}))(),swal_1.Toast.fire("Updated!","Cheat menu was updated.","success")}))),new Hack_1.default(index_1.category.utility,"Disable inactivity kick","Keeps you from being logged out for inactivity.").setClick(_asyncToGenerator((function*(){return util_1._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,swal_1.Toast.fire("Success!","You now will never be logged out!","success")}))),new Toggler_1.default(index_1.category.utility,"Enable menu resize","Allows you to resize the menu via dragging the bottom right corner.").setEnabled(_asyncToGenerator((function*(){return document.getElementById("cheat-menu").style.resize="both",swal_1.Toast.fire("Success!","Drag the bottom right corner of the menu to resize it.","success")}))).setDisabled((()=>(document.getElementById("cheat-menu").style.resize="none",swal_1.Toast.fire("Success!","The menu position is now locked.","success")))),new Hack_1.default(index_1.category.utility,"Edit walkspeed","Lets you set your walkspeed.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Input.fire("What do you want to set your walk speed to?");if(e.value){if(util_1.player._playerContainer)util_1.player._playerContainer.walkSpeed=parseFloat(e.value)||1.5;else var t=setInterval((()=>{util_1.player._playerContainer&&(clearInterval(t),util_1.player._playerContainer.walkSpeed=parseFloat(e.value))}),100);return swal_1.Toast.fire("Success!","Successfully made walk speed ".concat(parseFloat(e.value)||1.5,"!"),"success")}})));var teleportingInterval=-1;new Toggler_1.default(index_1.category.utility,"Toggle Click Teleporting").setEnabled(_asyncToGenerator((function*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return clearInterval(teleportingInterval),util_1.player._playerContainer.walkSpeed=1.5,swal_1.Toast.fire("Success!","Successfully disabled teleport click.","success")}))),new Toggler_1.default(index_1.category.utility,"Pause Game").setEnabled(_asyncToGenerator((function*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return util_1._.network.game._paused=!1,swal_1.Toast.fire("Success!","Successfully resumed Prodigy.","success")}))),new Hack_1.default(index_1.category.utility,"Eval Console","Evaluate JavaScript code without opening F12").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire({title:"Important",html:"This hack is potentially dangerous, as it evaluates plain JavaScript code, with access to Prodigy's typings. <strong>Please do not paste code from random people on the internet here, that may be dangerous.</strong><br><br>Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var code=yield swal_1.Input.fire("Code:","Enter the code you want to evaluate.");if(code.value){try{eval(code.value)}catch(e){if(e)return swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code! <br> <code>&nbsp;".concat(e,"&nbsp;</code>"),icon:"error"})}return swal_1.Toast.fire("Evaluated!","Code was evaluated.","success")}})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},8237:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7324),o(9190),o(701),o(3533),o(7031),o(3903)],a=function(e,t,o,n,a,r,l){"use strict";var c,u,d,p;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(c=document.getElementById("cheat-menu"))||void 0===c||c.remove(),null===(u=document.getElementById("menu-toggler"))||void 0===u||u.remove(),t.menu.id="cheat-menu",t.menu.style="position: fixed;top: -10%;left: 10%;right: 10%;width: 80%;height: 80%;z-index: 2;background-color: rgba(0, 0, 0, 0.5);backdrop-filter: blur(5px);",null===(d=t.wrapper)||void 0===d||d.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var h=!1;null===(p=t.wrapper)||void 0===p||p.prepend(t.toggler),t.toggler.onclick=()=>{(h=!h)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var m=!0;function g(e){var t=document.createElement("div");0==m?(t.append(document.createElement("br")),t.append(document.createElement("br"))):m=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t}var y=document.createElement("h1");y.classList.add("menu-title"),y.innerText="Prodigy Hacks",y.style.textAlign="center",f.append(y);var w=document.createElement("h2");w.style.fontSize="25px",w.style.color="white",w.innerHTML="<br>Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(w);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n<p>Join our Discord <a href='https://dsc.gg/ProdigyPNP'>https://dsc.gg/ProdigyPNP</a>!</p>\n\n<hr>\n",_.style.color="white",f.append(_),t.category={player:g("Player Hacks"),inventory:g("Inventory Hacks"),location:g("Location Hacks"),pets:g("Pet Hacks"),battle:g("Battle Hacks"),minigames:g("Minigame Hacks"),misc:g("Miscellaneous Hacks"),utility:g("Utility Hacks"),beta:g("Beta Testing | Beta Hacks may damage your account"),patched:g("Patched Hacks")},localStorage.hasTip?console.log("Player already has tip."):(s((function*(){yield r.default.fire({title:"Welcome!",html:"To get started with the hacks, click this dropdown!",icon:"info",backdrop:'\n\t\t url("https://i.imgur.com/CdV9piu.png")\n\t\t left top\n\t\t no-repeat\n\t\t '})}))(),localStorage.hasTip=!0,console.log("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),console.log("Loaded menu from localStorage."));var b=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&(console.log("Shift key was pressed."),1==b?(console.log("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",b=!1,console.log("Hidden cheat menu.")):(console.log("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",b=!0,console.log("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n <p>\n <a href="https://github.com/ProdigyPNP/ProdigyMathGameHacking/blob/master/README.md">This is free and open-source software</a>.\n If you paid for this or accessed this behind a paywall/AdFly link, demand a refund. If you sell this software, or otherwise make a commercial advantage from it, you are violating\n <a href = "https://github.com/ProdigyPNP/ProdigyMathGameHacking/blob/master/LICENSE.txt">our license</a>.\n </p>\n ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n <p>\n <strong>You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.</strong>\n </p>\n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8711:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=null;t.default=function(){null===o||o.closed?o=window.open("https://chat.prodigypnp.com:8443/",null,"\n height=800,\n width=350,\n status=yes,\n toolbar=no,\n menubar=no,\n location=no\n "):o.focus()}}.apply(t,[o,t]),void 0===n||(e.exports=n)},9837:(e,t,o)=>{var n,a;n=[o,t,o(8237)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},8613:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(9190),o(7031)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},9432:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(9190),o(7031)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.key){case"`":o._.instance.prodigy.open.menuCloseAll();break;case"\\":var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4989:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9190)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},701:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(7031)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},7031:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(3533)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"}),window.Swal=t.Swal}.apply(t,n),void 0===a||(e.exports=a)},9190:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickRandom=t.locations=t.joinAsset=t.assetURL=t.saveCharacter=t.states=t.VERY_LARGE_NUMBER=t.getItem=t.gameData=t.prodigy=t.game=t.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n:null},t.VERY_LARGE_NUMBER=9e9,t.states=Object.fromEntries(t._.instance.game.state.states),t.saveCharacter=()=>{t._.network.processPlayer=!0,t._.player.forceSaveCharacter()},t.assetURL="https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/src/assets/",t.joinAsset=e=>"".concat(t.assetURL).concat(e),t.locations={academy:(0,t.joinAsset)("academy.png"),bonfire_spire:(0,t.joinAsset)("bonfire_spire.png"),forest:(0,t.joinAsset)("forest.png"),shipwreck_shore:(0,t.joinAsset)("shipwreck_shore.png"),shiverchill:(0,t.joinAsset)("shiverchill.png"),skywatch:(0,t.joinAsset)("skywatch.png"),dyno:(0,t.joinAsset)("dyno.png"),elemental_guardian:(0,t.joinAsset)("elemental_guardian.png"),darktower:(0,t.joinAsset)("darktower.png"),earthtower:(0,t.joinAsset)("earthtower.png"),crystal_caverns:(0,t.joinAsset)("crystal_caverns.png"),archives:(0,t.joinAsset)("archives.png"),house:(0,t.joinAsset)("house.png"),toyzone:(0,t.joinAsset)("toyzone.png"),tower_town:(0,t.joinAsset)("tower_town.png"),lamplight:(0,t.joinAsset)("lamplight.png")},t.pickRandom=e=>e[Math.floor(Math.random()*e.length)]}.apply(t,[o,t]),void 0===n||(e.exports=n)},5347:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(5280),o(9190)],void 0===(a=function(e,t,o,n){"use strict";function a(e){return r.apply(this,arguments)}function r(){return(r=s((function*(e){for(var t=0;t<100;t++)yield new Promise((e=>setTimeout(e,2))),n.player._playerContainer.x-=e/100}))).apply(this,arguments)}function i(e){return l.apply(this,arguments)}function l(){return(l=s((function*(e){for(var t=0;t<100;t++)yield new Promise((e=>setTimeout(e,2))),n.player._playerContainer.y-=e/100}))).apply(this,arguments)}window.addEventListener("keydown",(e=>{if(o.useWASD)switch(e.key){case"w":i(40);break;case"s":i(-40);break;case"a":a(40);break;case"d":a(-40)}}))}.apply(t,n))||(e.exports=a)},2438:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(4663),a=o.n(n),r=o(1237),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.push([e.id,'#game-wrapper{font-family:"Sen",sans-serif}#game-wrapper #cheat-menu{height:465px;background-color:rgba(238,238,238,.7333333333);padding:2px;position:absolute;top:0px;left:0px;transition:top .35s;padding:10px;border:10px solid rgba(0,0,0,.1);border-radius:15px;overflow-y:scroll;resize:none;overflow:auto}#game-wrapper .menu-left{width:100%;height:100%;float:center}#game-wrapper #menu-toggler{z-index:1;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#game-wrapper #menu-toggler:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #menu-toggler:active{background-color:rgba(187,187,187,.7333333333)}#game-wrapper #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter:active{background-color:rgba(187,187,187,.7333333333)}#game-wrapper .menu-area h1{font-family:"Sen",sans-serif;font-size:30px;font-weight:700;color:#111;margin:10px}#game-wrapper .menu-area button{background-color:rgba(0,0,0,.55);color:#fff;border-radius:5px;border:1px solid #eee;padding:1%;transition:all .15s;margin:5px 5px;transition-property:border-color,background-color}#game-wrapper .menu-area button:hover{border-color:rgba(119,119,119,.8666666667);background-color:#ddd}#game-wrapper .menu-area button:active{border-color:#555;background-color:#bbb}#game-wrapper .menu-area button[status=true]{border-color:rgba(85,170,85,.8666666667);background-color:#9bee9b}#game-wrapper .menu-area button[status=true]:hover{border-color:rgba(179,187,176,.8666666667);background-color:#bffebf}#game-wrapper .menu-area button[status=true]:active{border-color:#4e5c50;background-color:#24be6a}#game-wrapper .menu-area button[status=false]{border-color:rgba(119,102,102,.8666666667);background-color:#9b9b9b}#game-wrapper .menu-area button[status=false]:hover{border-color:rgba(133,133,133,.8666666667);background-color:#bfbfbf}#game-wrapper .menu-area button[status=false]:active{border-color:#4c3e40;background-color:#be246a}#game-wrapper .menu-title{font-family:"Verdana",sans-serif;font-size:40px;font-weight:900;color:#fff}#chat-frame{width:12%;height:80%;top:-10%;bottom:-10%;left:80%;right:0%;position:fixed;z-index:4}.radioDiv{width:125px;height:125px;display:inline-block;margin:7px;background-color:#5a7e3f;color:#000;background-size:cover;outline:#000 5px solid;vertical-align:top;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;cursor:pointer}.radioDiv:hover{background-blend-mode:overlay;color:#d3d3d3}.radioDiv:active{background-blend-mode:multiply;color:#fff}.radioDiv[checked]{background-blend-mode:color-dodge;color:#ffebcd}.radioDiv[checked]:active{background-blend-mode:color-burn;color:aqua}.radioSwal{width:-moz-fit-content !important;width:fit-content !important;min-width:32em !important;max-width:46em !important}.centeredMenu{position:fixed;top:-10%;left:10%;right:10%;width:80%;height:80%;z-index:2;background-color:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}',""]);const i=s},1237:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&s[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},4663:e=>{"use strict";e.exports=function(e){return e[1]}},7820:(e,t,o)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(8455)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8455:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,r=t.enabled(e)),r),set:e=>{s=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o<a;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let o,n;for(o=0,n=t.skips.length;o<n;o++)if(t.skips[o].test(e))return!1;for(o=0,n=t.names.length;o<n;o++)if(t.names[o].test(e))return!0;return!1},t.humanize=o(4610),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((o=>{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t<e.length;t++)o=(o<<5)-o+e.charCodeAt(t),o|=0;return t.colors[Math.abs(o)%t.colors.length]},t.enable(t.load()),t}},4610:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&isFinite(e))return s.long?(i=e,(l=Math.abs(i))>=a?r(i,l,a,"day"):l>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"minute"):l>=t?r(i,l,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3903:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(7856),a=o.n(n),r=o(8470),s=o.n(r),i=o(3370),l=o.n(i),c=o(8458),u=o.n(c),d=o(1278),p=o.n(d),h=o(9488),f=o.n(h),m=o(2438),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},7856:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var r={},s=[],i=0;i<e.length;i++){var l=e[i],c=n.base?l[0]+n.base:l[0],u=r[c]||0,d="".concat(c," ").concat(u);r[c]=u+1;var p=o(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=a(h,n);n.byIndex=i,t.splice(i,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function a(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,a){var r=n(e=e||[],a=a||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var i=o(r[s]);t[i].references--}for(var l=n(e,a),c=0;c<r.length;c++){var u=o(r[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=l}}},3370:e=>{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},1278:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},8458:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},8470:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9488:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3533:function(e){e.exports=function(){"use strict";var e={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const t=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},o=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),n=t(["success","warning","info","question","error"]),a=e=>e.charAt(0).toUpperCase()+e.slice(1),r=e=>{console.warn(`SweetAlert2: ${"object"==typeof e?e.join(" "):e}`)},s=e=>{console.error(`SweetAlert2: ${e}`)},i=[],l=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,i.includes(o)||(i.push(o),r(o))},c=e=>"function"==typeof e?e():e,u=e=>e&&"function"==typeof e.toPromise,d=e=>u(e)?e.toPromise():Promise.resolve(e),p=e=>e&&Promise.resolve(e)===e,h=()=>document.body.querySelector(`.${o.container}`),f=e=>{const t=h();return t?t.querySelector(e):null},m=e=>f(`.${e}`),g=()=>m(o.popup),y=()=>m(o.icon),w=()=>m(o.title),_=()=>m(o["html-container"]),b=()=>m(o.image),v=()=>m(o["progress-steps"]),k=()=>m(o["validation-message"]),C=()=>f(`.${o.actions} .${o.confirm}`),E=()=>f(`.${o.actions} .${o.deny}`),x=()=>f(`.${o.loader}`),T=()=>f(`.${o.actions} .${o.cancel}`),S=()=>m(o.actions),P=()=>m(o.footer),A=()=>m(o["timer-progress-bar"]),D=()=>m(o.close),B=()=>{const e=Array.from(g().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o<n?-1:0})),t=Array.from(g().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;o<e.length;o++)-1===t.indexOf(e[o])&&t.push(e[o]);return t})(e.concat(t)).filter((e=>K(e)))},I=()=>L(document.body,o.shown)&&!L(document.body,o["toast-shown"])&&!L(document.body,o["no-backdrop"]),O=()=>g()&&L(g(),o.toast),M={previousBodyPadding:null},R=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},L=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},N=(e,t,a)=>{if(((e,t)=>{Array.from(e.classList).forEach((a=>{Object.values(o).includes(a)||Object.values(n).includes(a)||Object.values(t.showClass).includes(a)||e.classList.remove(a)}))})(e,t),t.customClass&&t.customClass[a]){if("string"!=typeof t.customClass[a]&&!t.customClass[a].forEach)return void r(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof t.customClass[a]}"`);H(e,t.customClass[a])}},j=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${o.popup} > .${o[t]}`);case"checkbox":return e.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return e.querySelector(`.${o.popup} > .${o.radio} input:checked`)||e.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return e.querySelector(`.${o.popup} > .${o.range} input`);default:return e.querySelector(`.${o.popup} > .${o.input}`)}},F=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},q=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},H=(e,t)=>{q(e,t,!0)},U=(e,t)=>{q(e,t,!1)},$=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const n=o[e];if(n instanceof HTMLElement&&L(n,t))return n}},W=(e,t,o)=>{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},G=e=>{e.style.display="none"},z=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},V=function(e,t){t?Y(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):G(e)},K=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),J=e=>!!(e.scrollHeight>e.clientHeight),Z=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=A();K(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},Q={},ee=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;Q.restoreFocusTimeout=setTimeout((()=>{Q.previousActiveElement instanceof HTMLElement?(Q.previousActiveElement.focus(),Q.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),te=()=>"undefined"==typeof window||"undefined"==typeof document,oe=`\n <div aria-labelledby="${o.title}" aria-describedby="${o["html-container"]}" class="${o.popup}" tabindex="-1">\n <button type="button" class="${o.close}"></button>\n <ul class="${o["progress-steps"]}"></ul>\n <div class="${o.icon}"></div>\n <img class="${o.image}" />\n <h2 class="${o.title}" id="${o.title}"></h2>\n <div class="${o["html-container"]}" id="${o["html-container"]}"></div>\n <input class="${o.input}" />\n <input type="file" class="${o.file}" />\n <div class="${o.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${o.select}"></select>\n <div class="${o.radio}"></div>\n <label for="${o.checkbox}" class="${o.checkbox}">\n <input type="checkbox" />\n <span class="${o.label}"></span>\n </label>\n <textarea class="${o.textarea}"></textarea>\n <div class="${o["validation-message"]}" id="${o["validation-message"]}"></div>\n <div class="${o.actions}">\n <div class="${o.loader}"></div>\n <button type="button" class="${o.confirm}"></button>\n <button type="button" class="${o.deny}"></button>\n <button type="button" class="${o.cancel}"></button>\n </div>\n <div class="${o.footer}"></div>\n <div class="${o["timer-progress-bar-container"]}">\n <div class="${o["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ne=()=>{Q.currentInstance.resetValidationMessage()},ae=e=>{const t=(()=>{const e=h();return!!e&&(e.remove(),U([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0)})();if(te())return void s("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=o.container,t&&H(n,o["no-transition"]),R(n,oe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(n),(e=>{const t=g();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&H(h(),o.rtl)})(a),(()=>{const e=g(),t=$(e,o.input),n=$(e,o.file),a=e.querySelector(`.${o.range} input`),r=e.querySelector(`.${o.range} output`),s=$(e,o.select),i=e.querySelector(`.${o.checkbox} input`),l=$(e,o.textarea);t.oninput=ne,n.onchange=ne,s.onchange=ne,i.onchange=ne,l.oninput=ne,a.oninput=()=>{ne(),r.value=a.value},a.onchange=()=>{ne(),r.value=a.value}})()},re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?se(e,t):e&&R(t,e)},se=(e,t)=>{e.jquery?ie(t,e):R(t,e.toString())},ie=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},le=(()=>{if(te())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),ce=(e,t)=>{const n=S(),a=x();t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(n):G(n),N(n,t,"actions"),function(e,t,n){const a=C(),r=E(),s=T();ue(a,"confirm",n),ue(r,"deny",n),ue(s,"cancel",n),function(e,t,n,a){a.buttonsStyling?(H([e,t,n],o.styled),a.confirmButtonColor&&(e.style.backgroundColor=a.confirmButtonColor,H(e,o["default-outline"])),a.denyButtonColor&&(t.style.backgroundColor=a.denyButtonColor,H(t,o["default-outline"])),a.cancelButtonColor&&(n.style.backgroundColor=a.cancelButtonColor,H(n,o["default-outline"]))):U([e,t,n],o.styled)}(a,r,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,a),e.insertBefore(r,a)):(e.insertBefore(s,t),e.insertBefore(r,t),e.insertBefore(a,t)))}(n,a,t),R(a,t.loaderHtml),N(a,t,"loader")};function ue(e,t,n){V(e,n[`show${a(t)}Button`],"inline-block"),R(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=o[t],N(e,n,`${t}Button`),H(e,n[`${t}ButtonClass`])}const de=(e,t)=>{const n=h();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||H([document.documentElement,document.body],o["no-backdrop"])}(n,t.backdrop),function(e,t){t in o?H(e,o[t]):(r('The "position" parameter is not valid, defaulting to "center"'),H(e,o.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n=`grow-${t}`;n in o&&H(e,o[n])}}(n,t.grow),N(n,t,"container"))};const pe=["input","file","range","select","radio","checkbox","textarea"],he=e=>{if(!be[e.input])return void s(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=we(e.input),o=be[e.input](t,e);Y(t),setTimeout((()=>{F(o)}))},fe=(e,t)=>{const o=j(g(),e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["type","value","style"].includes(o)||e.removeAttribute(o)}})(o);for(const e in t)o.setAttribute(e,t[e])}},me=e=>{const t=we(e.input);"object"==typeof e.customClass&&H(t,e.customClass.input)},ge=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},ye=(e,t,n)=>{if(n.inputLabel){e.id=o.input;const a=document.createElement("label"),r=o["input-label"];a.setAttribute("for",e.id),a.className=r,"object"==typeof n.customClass&&H(a,n.customClass.inputLabel),a.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",a)}},we=e=>$(g(),o[e]||o.input),_e=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:p(t)||r(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},be={};be.text=be.email=be.password=be.number=be.tel=be.url=(e,t)=>(_e(e,t.inputValue),ye(e,e,t),ge(e,t),e.type=t.input,e),be.file=(e,t)=>(ye(e,e,t),ge(e,t),e),be.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return _e(o,t.inputValue),o.type=t.input,_e(n,t.inputValue),ye(o,e,t),e},be.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");R(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return ye(e,e,t),e},be.radio=e=>(e.textContent="",e),be.checkbox=(e,t)=>{const n=j(g(),"checkbox");n.value="1",n.id=o.checkbox,n.checked=Boolean(t.inputValue);const a=e.querySelector("span");return R(a,t.inputPlaceholder),n},be.textarea=(e,t)=>{_e(e,t.inputValue),ge(e,t),ye(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(g()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;g().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const ve=(t,n)=>{const a=_();N(a,n,"htmlContainer"),n.html?(re(n.html,a),Y(a,"block")):n.text?(a.textContent=n.text,Y(a,"block")):G(a),((t,n)=>{const a=g(),r=e.innerParams.get(t),s=!r||n.input!==r.input;pe.forEach((e=>{const t=$(a,o[e]);fe(e,n.inputAttributes),t.className=o[e],s&&G(t)})),n.input&&(s&&he(n),me(n))})(t,n)},ke=(e,t)=>{for(const o in n)t.icon!==o&&U(e,n[o]);H(e,n[t.icon]),xe(e,t),Ce(),N(e,t,"icon")},Ce=()=>{const e=g(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Ee=(e,t)=>{let o,n=e.innerHTML;t.iconHtml?o=Te(t.iconHtml):"success"===t.icon?(o='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':Te({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&R(e,o)},xe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])z(e,o,"backgroundColor",t.iconColor);z(e,".swal2-success-ring","borderColor",t.iconColor)}},Te=e=>`<div class="${o["icon-content"]}">${e}</div>`,Se=(e,t)=>{e.className=`${o.popup} ${K(e)?t.showClass.popup:""}`,t.toast?(H([document.documentElement,document.body],o["toast-shown"]),H(e,o.toast)):H(e,o.modal),N(e,t,"popup"),"string"==typeof t.customClass&&H(e,t.customClass),t.icon&&H(e,o[`icon-${t.icon}`])},Pe=e=>{const t=document.createElement("li");return H(t,o["progress-step"]),R(t,e),t},Ae=e=>{const t=document.createElement("li");return H(t,o["progress-step-line"]),e.progressStepsDistance&&W(t,"width",e.progressStepsDistance),t},De=(t,a)=>{((e,t)=>{const o=h(),n=g();t.toast?(W(o,"width",t.width),n.style.width="100%",n.insertBefore(x(),y())):W(n,"width",t.width),W(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),G(k()),Se(n,t)})(0,a),de(0,a),((e,t)=>{const n=v();t.progressSteps&&0!==t.progressSteps.length?(Y(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,a)=>{const r=Pe(e);if(n.appendChild(r),a===t.currentProgressStep&&H(r,o["active-progress-step"]),a!==t.progressSteps.length-1){const e=Ae(t);n.appendChild(e)}}))):G(n)})(0,a),((t,o)=>{const a=e.innerParams.get(t),r=y();if(a&&o.icon===a.icon)return Ee(r,o),void ke(r,o);if(o.icon||o.iconHtml){if(o.icon&&-1===Object.keys(n).indexOf(o.icon))return s(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${o.icon}"`),void G(r);Y(r),Ee(r,o),ke(r,o),H(r,o.showClass.icon)}else G(r)})(t,a),((e,t)=>{const n=b();t.imageUrl?(Y(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),W(n,"width",t.imageWidth),W(n,"height",t.imageHeight),n.className=o.image,N(n,t,"image")):G(n)})(0,a),((e,t)=>{const o=w();V(o,t.title||t.titleText,"block"),t.title&&re(t.title,o),t.titleText&&(o.innerText=t.titleText),N(o,t,"title")})(0,a),((e,t)=>{const o=D();R(o,t.closeButtonHtml),N(o,t,"closeButton"),V(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,a),ve(t,a),ce(0,a),((e,t)=>{const o=P();V(o,t.footer),t.footer&&re(t.footer,o),N(o,t,"footer")})(0,a),"function"==typeof a.didRender&&a.didRender(g())};function Be(){const t=e.innerParams.get(this);if(!t)return;const n=e.domCache.get(this);G(n.loader),O()?t.icon&&Y(y()):Ie(n),U([n.popup,n.actions],o.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const Ie=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Y(t[0],"inline-block"):!K(C())&&!K(E())&&!K(T())&&G(e.actions)};const Oe=()=>C()&&C().click(),Me=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Re=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Le=(e,t,o)=>{const n=B();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();g().focus()},Ne=["ArrowRight","ArrowDown"],je=["ArrowLeft","ArrowUp"],Fe=(t,o,n)=>{const a=e.innerParams.get(t);a&&(o.isComposing||229===o.keyCode||(a.stopKeydownPropagation&&o.stopPropagation(),"Enter"===o.key?qe(t,o,a):"Tab"===o.key?He(o,a):[...Ne,...je].includes(o.key)?Ue(o.key):"Escape"===o.key&&$e(o,a,n)))},qe=(e,t,o)=>{if(c(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Oe(),t.preventDefault()}},He=(e,t)=>{const o=e.target,n=B();let a=-1;for(let e=0;e<n.length;e++)if(o===n[e]){a=e;break}e.shiftKey?Le(0,a,-1):Le(0,a,1),e.stopPropagation(),e.preventDefault()},Ue=e=>{const t=C(),o=E(),n=T();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Ne.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e<S().children.length;e++){if(r=r[a],!r)return;if(r instanceof HTMLButtonElement&&K(r))break}r instanceof HTMLButtonElement&&r.focus()},$e=(e,t,o)=>{c(t.allowEscapeKey)&&(e.preventDefault(),o(Me.esc))};var We={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ye=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Ge=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;g().scrollHeight>window.innerHeight-e&&(h().style.paddingBottom=`${e}px`)}},ze=()=>{const e=h();let t;e.ontouchstart=e=>{t=Ve(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Ve=e=>{const t=e.target,o=h();return!(Ke(e)||Je(e)||t!==o&&(J(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||J(_())&&_().contains(t)))},Ke=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Je=e=>e.touches&&e.touches.length>1,Ze=()=>{null===M.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(M.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${M.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=o["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function Xe(e,t,n,a){O()?rt(e,a):(ee(n).then((()=>rt(e,a))),Re(Q)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),I()&&(null!==M.previousBodyPadding&&(document.body.style.paddingRight=`${M.previousBodyPadding}px`,M.previousBodyPadding=null),(()=>{if(L(document.body,o.iosfix)){const e=parseInt(document.body.style.top,10);U(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),U([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]])}function Qe(e){e=ot(e);const t=We.swalPromiseResolve.get(this),o=et(this);this.isAwaitingPromise()?e.isDismissed||(tt(this),t(e)):o&&t(e)}const et=t=>{const o=g();if(!o)return!1;const n=e.innerParams.get(t);if(!n||L(o,n.hideClass.popup))return!1;U(o,n.showClass.popup),H(o,n.hideClass.popup);const a=h();return U(a,n.showClass.backdrop),H(a,n.hideClass.backdrop),nt(t,o,n),!0};const tt=t=>{t.isAwaitingPromise()&&(e.awaitingPromise.delete(t),e.innerParams.get(t)||t._destroy())},ot=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),nt=(e,t,o)=>{const n=h(),a=le&&Z(t);"function"==typeof o.willClose&&o.willClose(t),a?at(e,t,n,o.returnFocus,o.didClose):Xe(e,n,o.returnFocus,o.didClose)},at=(e,t,o,n,a)=>{Q.swalCloseEventFinishedCallback=Xe.bind(null,e,o,n,a),t.addEventListener(le,(function(e){e.target===t&&(Q.swalCloseEventFinishedCallback(),delete Q.swalCloseEventFinishedCallback)}))},rt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function st(t,o,n){const a=e.domCache.get(t);o.forEach((e=>{a[e].disabled=n}))}function it(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}const lt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},ct=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ut={},dt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],pt=e=>Object.prototype.hasOwnProperty.call(lt,e),ht=e=>-1!==ct.indexOf(e),ft=e=>ut[e],mt=e=>{pt(e)||r(`Unknown parameter "${e}"`)},gt=e=>{dt.includes(e)&&r(`The parameter "${e}" is incompatible with toasts`)},yt=e=>{ft(e)&&l(e,ft(e))};const wt=e=>{const t={};return Object.keys(e).forEach((o=>{ht(o)?t[o]=e[o]:r(`Invalid parameter to update: ${o}`)})),t};const _t=e=>{bt(e),delete e.params,delete Q.keydownHandler,delete Q.keydownTarget,delete Q.currentInstance},bt=t=>{t.isAwaitingPromise()?(vt(e,t),e.awaitingPromise.set(t,!0)):(vt(We,t),vt(e,t))},vt=(e,t)=>{for(const o in e)e[o].delete(t)};var kt=Object.freeze({__proto__:null,hideLoading:Be,disableLoading:Be,getInput:function(t){const o=e.innerParams.get(t||this),n=e.domCache.get(t||this);return n?j(n.popup,o.input):null},close:Qe,isAwaitingPromise:function(){return!!e.awaitingPromise.get(this)},rejectPromise:function(e){const t=We.swalPromiseReject.get(this);tt(this),t&&t(e)},handleAwaitingPromise:tt,closePopup:Qe,closeModal:Qe,closeToast:Qe,enableButtons:function(){st(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){st(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){it(this.getInput(),!1)},disableInput:function(){it(this.getInput(),!0)},showValidationMessage:function(t){const n=e.domCache.get(this),a=e.innerParams.get(this);R(n.validationMessage,t),n.validationMessage.className=o["validation-message"],a.customClass&&a.customClass.validationMessage&&H(n.validationMessage,a.customClass.validationMessage),Y(n.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",o["validation-message"]),F(r),H(r,o.inputerror))},resetValidationMessage:function(){const t=e.domCache.get(this);t.validationMessage&&G(t.validationMessage);const n=this.getInput();n&&(n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),U(n,o.inputerror))},update:function(t){const o=g(),n=e.innerParams.get(this);if(!o||L(o,n.hideClass.popup))return void r("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const a=wt(t),s=Object.assign({},n,a);De(this,s),e.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=e.domCache.get(this),o=e.innerParams.get(this);o?(t.popup&&Q.swalCloseEventFinishedCallback&&(Q.swalCloseEventFinishedCallback(),delete Q.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),_t(this)):bt(this)}});const Ct=e=>{let t=g();t||new To,t=g();const o=x();O()?G(y()):Et(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Et=(e,t)=>{const n=S(),a=x();!t&&K(C())&&(t=C()),Y(n),t&&(G(t),a.setAttribute("data-button-to-replace",t.className)),a.parentNode.insertBefore(a,t),H([e,n],o.loading)},xt=e=>e.checked?1:0,Tt=e=>e.checked?e.value:null,St=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Pt=(e,t)=>{const o=g(),n=e=>{Dt[t.input](o,Bt(e),t)};u(t.inputOptions)||p(t.inputOptions)?(Ct(C()),d(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):s("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},At=(e,t)=>{const o=e.getInput();G(o),d(t.inputValue).then((n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()})).catch((t=>{s(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))},Dt={select:(e,t,n)=>{const a=$(e,o.select),r=(e,t,o)=>{const a=document.createElement("option");a.value=o,R(a,t),a.selected=It(o,n.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,a.appendChild(e),o.forEach((t=>r(e,t[1],t[0])))}else r(a,o,t)})),a.focus()},radio:(e,t,n)=>{const a=$(e,o.radio);t.forEach((e=>{const t=e[0],r=e[1],s=document.createElement("input"),i=document.createElement("label");s.type="radio",s.name=o.radio,s.value=t,It(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");R(l,r),l.className=o.label,i.appendChild(s),i.appendChild(l),a.appendChild(i)}));const r=a.querySelectorAll("input");r.length&&r[0].focus()}},Bt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=Bt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=Bt(n)),t.push([o,n])})),t},It=(e,t)=>t&&t.toString()===e.toString(),Ot=(t,o)=>{const n=e.innerParams.get(t);if(!n.input)return void s(`The "input" parameter is needed to be set when using returnInputValueOn${a(o)}`);const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return xt(o);case"radio":return Tt(o);case"file":return St(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(t,n);n.inputValidator?Mt(t,r,o):t.getInput().checkValidity()?"deny"===o?Rt(t,r):jt(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Mt=(t,o,n)=>{const a=e.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>d(a.inputValidator(o,a.validationMessage)))).then((e=>{t.enableButtons(),t.enableInput(),e?t.showValidationMessage(e):"deny"===n?Rt(t,o):jt(t,o)}))},Rt=(t,o)=>{const n=e.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ct(E()),n.preDeny?(e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>d(n.preDeny(o,n.validationMessage)))).then((e=>{!1===e?(t.hideLoading(),tt(t)):t.close({isDenied:!0,value:void 0===e?o:e})})).catch((e=>Nt(t||void 0,e)))):t.close({isDenied:!0,value:o})},Lt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Nt=(e,t)=>{e.rejectPromise(t)},jt=(t,o)=>{const n=e.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ct(),n.preConfirm?(t.resetValidationMessage(),e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>d(n.preConfirm(o,n.validationMessage)))).then((e=>{K(k())||!1===e?(t.hideLoading(),tt(t)):Lt(t,void 0===e?o:e)})).catch((e=>Nt(t||void 0,e)))):Lt(t,o)},Ft=(t,o,n)=>{o.popup.onclick=()=>{const o=e.innerParams.get(t);o&&(qt(o)||o.timer||o.input)||n(Me.close)}},qt=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Ht=!1;const Ut=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Ht=!0)}}},$t=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Ht=!0)}}},Wt=(t,o,n)=>{o.container.onclick=a=>{const r=e.innerParams.get(t);Ht?Ht=!1:a.target===o.container&&c(r.allowOutsideClick)&&n(Me.backdrop)}},Yt=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const Gt=()=>{if(Q.timeout)return(()=>{const e=A(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width=`${o}%`})(),Q.timeout.stop()},zt=()=>{if(Q.timeout){const e=Q.timeout.start();return X(e),e}};let Vt=!1;const Kt={};const Jt=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Kt){const o=t.getAttribute(e);if(o)return void Kt[e].fire({template:o})}};var Zt=Object.freeze({__proto__:null,isValidParameter:pt,isUpdatableParameter:ht,isDeprecatedParameter:ft,argsToParams:e=>{const t={};return"object"!=typeof e[0]||Yt(e[0])?["title","html","icon"].forEach(((o,n)=>{const a=e[n];"string"==typeof a||Yt(a)?t[o]=a:void 0!==a&&s(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof a}`)})):Object.assign(t,e[0]),t},getContainer:h,getPopup:g,getTitle:w,getHtmlContainer:_,getImage:b,getIcon:y,getIconContent:()=>m(o["icon-content"]),getInputLabel:()=>m(o["input-label"]),getCloseButton:D,getActions:S,getConfirmButton:C,getDenyButton:E,getCancelButton:T,getLoader:x,getFooter:P,getTimerProgressBar:A,getFocusableElements:B,getValidationMessage:k,getProgressSteps:v,isLoading:()=>g().hasAttribute("data-loading"),isVisible:()=>K(g()),clickConfirm:Oe,clickDeny:()=>E()&&E().click(),clickCancel:()=>T()&&T().click(),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return new e(...o)},mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},showLoading:Ct,enableLoading:Ct,getTimerLeft:()=>Q.timeout&&Q.timeout.getTimerLeft(),stopTimer:Gt,resumeTimer:zt,toggleTimer:()=>{const e=Q.timeout;return e&&(e.running?Gt():zt())},increaseTimer:e=>{if(Q.timeout){const t=Q.timeout.increase(e);return X(t,!0),t}},isTimerRunning:()=>Q.timeout&&Q.timeout.isRunning(),bindClickHandler:function(){Kt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Vt||(document.body.addEventListener("click",Jt),Vt=!0)}});class Xt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Qt=["swal-title","swal-html","swal-footer"],eo=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{lo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]="boolean"==typeof lt[o]?"false"!==n:"object"==typeof lt[o]?JSON.parse(n):n})),t},to=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]=new Function(`return ${n}`)()})),t},oo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{lo(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${a(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},no=e=>{const t={},o=e.querySelector("swal-image");return o&&(lo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},ao=e=>{const t={},o=e.querySelector("swal-icon");return o&&(lo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},ro=e=>{const t={},o=e.querySelector("swal-input");o&&(lo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{lo(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},so=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(lo(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},io=e=>{const t=Qt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||r(`Unrecognized element <${o}>`)}))},lo=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&r([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},co=e=>{const t=h(),n=g();"function"==typeof e.willOpen&&e.willOpen(n);const a=window.getComputedStyle(document.body).overflowY;fo(t,n,e),setTimeout((()=>{po(t,n)}),10),I()&&(ho(t,e.scrollbarPadding,a),Array.from(document.body.children).forEach((e=>{e===h()||e.contains(h())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),O()||Q.previousActiveElement||(Q.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),U(t,o["no-transition"])},uo=e=>{const t=g();if(e.target!==t)return;const o=h();t.removeEventListener(le,uo),o.style.overflowY="auto"},po=(e,t)=>{le&&Z(t)?(e.style.overflowY="hidden",t.addEventListener(le,uo)):e.style.overflowY="auto"},ho=(e,t,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!L(document.body,o.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",H(document.body,o.iosfix),ze(),Ge()}})(),t&&"hidden"!==n&&Ze(),setTimeout((()=>{e.scrollTop=0}))},fo=(e,t,n)=>{H(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout((()=>{H(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),H([document.documentElement,document.body],o.shown),n.heightAuto&&n.backdrop&&!n.toast&&H([document.documentElement,document.body],o["height-auto"])};var mo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function go(e){(function(e){e.inputValidator||Object.keys(mo).forEach((t=>{e.input===t&&(e.inputValidator=mo[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),ae(e)}let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];const a=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:a,writable:!1,enumerable:!0,configurable:!0}});const r=yo._main(yo.params);e.promise.set(this,r)}_main(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&r('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)mt(t),e.toast&&gt(t),yt(t)})(Object.assign({},o,t)),Q.currentInstance&&(Q.currentInstance._destroy(),I()&&Ye()),Q.currentInstance=yo;const n=bo(t,o);go(n),Object.freeze(n),Q.timeout&&(Q.timeout.stop(),delete Q.timeout),clearTimeout(Q.restoreFocusTimeout);const a=vo(yo);return De(yo,n),e.innerParams.set(yo,n),_o(yo,a,n)}then(t){return e.promise.get(this).then(t)}finally(t){return e.promise.get(this).finally(t)}}const _o=(t,o,n)=>new Promise(((a,r)=>{const s=e=>{t.close({isDismissed:!0,dismiss:e})};We.swalPromiseResolve.set(t,a),We.swalPromiseReject.set(t,r),o.confirmButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.input?Ot(t,"confirm"):jt(t,!0)})(t)},o.denyButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.returnInputValueOnDeny?Ot(t,"deny"):Rt(t,!1)})(t)},o.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Me.cancel)})(t,s)},o.closeButton.onclick=()=>{s(Me.close)},((t,o,n)=>{e.innerParams.get(t).toast?Ft(t,o,n):(Ut(o),$t(o),Wt(t,o,n))})(t,o,s),((e,t,o,n)=>{Re(t),o.toast||(t.keydownHandler=t=>Fe(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:g(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,Q,n,s),((e,t)=>{"select"===t.input||"radio"===t.input?Pt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(u(t.inputValue)||p(t.inputValue))&&(Ct(C()),At(e,t))})(t,n),co(n),ko(Q,n,s),Co(o,n),setTimeout((()=>{o.container.scrollTop=0}))})),bo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return io(o),Object.assign(eo(o),to(o),oo(o),no(o),ao(o),ro(o),so(o,Qt))})(e),n=Object.assign({},lt,t,o,e);return n.showClass=Object.assign({},lt.showClass,n.showClass),n.hideClass=Object.assign({},lt.hideClass,n.hideClass),n},vo=t=>{const o={popup:g(),container:h(),actions:S(),confirmButton:C(),denyButton:E(),cancelButton:T(),loader:x(),closeButton:D(),validationMessage:k(),progressSteps:v()};return e.domCache.set(t,o),o},ko=(e,t,o)=>{const n=A();G(n),t.timer&&(e.timeout=new Xt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Y(n),N(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&X(t.timer)}))))},Co=(e,t)=>{t.toast||(c(t.allowEnterKey)?Eo(e,t)||Le(0,-1,1):xo())},Eo=(e,t)=>t.focusDeny&&K(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&K(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!K(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Object.assign(wo.prototype,kt),Object.assign(wo,Zt),Object.keys(kt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Me,wo.version="11.6.14";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},4619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},3292:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e<n;e++){let n=o[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}},7694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){const t=e,a=e.indexOf("["),r=e.indexOf("]");-1!=a&&-1!=r&&(e=e.substring(0,a)+e.substring(a,r).replace(/:/g,";")+e.substring(r,e.length));let s=o.exec(e||""),i={},l=14;for(;l--;)i[n[l]]=s[l]||"";return-1!=a&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||o.splice(0,1),"/"==t.slice(-1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=i,t.decode=function(e){let t=0;for(s=0;s<e.length;s++)t=64*t+n[e.charAt(s)];return t},t.yeast=function(){const e=i(+new Date);return e!==a?(r=0,a=e):e+"."+i(r++)};s<64;s++)n[o[s]]=s},2701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},1949:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(9265);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(184);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7762);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(8818);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(7694);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}});var l=o(1456);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return l.nextTick}})},9265:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7762),r=o(8818),s=o(3292),i=o(7694),l=n(o(7820)),c=o(3555),u=o(5625),d=(0,l.default)("engine.io-client:socket");class p extends c.Emitter{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,r.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){d('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);const o=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return d("options: %j",o),new a.transports[e](o)}open(){let e;if(this.opts.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return d("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){d("setting transport %s",e.name),this.transport&&(d("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){d('probing transport "%s"',e);let t=this.createTransport(e),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.data){if(d('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;p.priorWebsocketSuccess="websocket"===t.name,d('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{d('probe transport "%s" failed',e);const o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function l(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const c=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",l),t.open()}onOpen(){if(d("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){d("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(d('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else d('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();d("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const o=this.writeBuffer[t].data;if(o&&(e+=(0,r.byteLength)(o)),t>0&&e>this.maxPayload)return d("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return d("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),d("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},o=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?o():e()})):this.upgrading?o():e()),this}onError(e){d("socket error %j",e),p.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(d('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let o=0;const n=e.length;for(;o<n;o++)~this.transports.indexOf(e[o])&&t.push(e[o]);return t}}t.Socket=p,p.protocol=u.protocol},184:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const a=o(5625),r=o(3555),s=o(8818),i=(0,n(o(7820)).default)("engine.io-client:transport");class l extends Error{constructor(e,t,o){super(e),this.description=t,this.context=o,this.type="TransportError"}}class c extends r.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,o){return super.emitReserved("error",new l(e,t,o)),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):i("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,a.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}t.Transport=c},7762:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(116),a=o(5681);t.transports={websocket:a.WS,polling:n.Polling}},116:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const a=o(184),r=n(o(7820)),s=o(622),i=o(3292),l=o(5625),c=o(2023),u=o(3555),d=o(8818),p=o(2701),h=(0,r.default)("engine.io-client:polling");function f(){}const m=null!=new c.XHR({xdomain:!1}).responseType;class g extends a.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=m&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{h("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){h("pre-pause polling complete"),--e||t()}))),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){h("pre-pause writing complete"),--e||t()})))}else t()}poll(){h("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){h("polling got data %s",e),(0,l.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{h("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(h("transport open - closing"),e()):(h("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,l.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let o="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){h("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=g;class y extends u.Emitter{constructor(e,t){super(),(0,d.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=(0,d.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new c.XHR(e);try{h("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},h("xhr data %s",this.data),t.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=y.requestsCount++,y.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=f,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete y.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=y,y.requestsCount=0,y.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",w);else if("function"==typeof addEventListener){const e="onpagehide"in p.globalThisShim?"pagehide":"unload";addEventListener(e,w,!1)}function w(){for(let e in y.requests)y.requests.hasOwnProperty(e)&&y.requests[e].abort()}},1456:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(2701);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},5681:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(184),r=o(3292),s=o(622),i=o(8818),l=o(1456),c=n(o(7820)),u=o(5625),d=(0,c.default)("engine.io-client:websocket"),p="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends a.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=l.usingBrowserWebSocket&&!p?t?new l.WebSocket(e,t):new l.WebSocket(e):new l.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||l.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const o=e[t],n=t===e.length-1;(0,u.encodePacket)(o,this.supportsBinary,(e=>{const t={};!l.usingBrowserWebSocket&&(o.options&&(t.compress=o.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1);try{l.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){d("websocket closed before onclose event")}n&&(0,l.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},2023:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(4619),a=o(2701);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(a.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},8818:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(2701);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n<a;n++)t=e.charCodeAt(n),t<128?o+=1:t<2048?o+=2:t<55296||t>=57344?o+=3:(n++,o+=4);return o}(e):Math.ceil(1.33*(e.byteLength||e.size))}},8657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[e]]=e})),t.ERROR_PACKET={type:"error",data:"parser error"}},6894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<o.length;e++)n[o.charCodeAt(e)]=e;t.encode=e=>{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t<a;t+=3)r+=o[n[t]>>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[t+2]];return a%3==2?r=r.substring(0,r.length-1)+"=":a%3==1&&(r=r.substring(0,r.length-2)+"=="),r},t.decode=e=>{let t,o,a,r,s,i=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);const u=new ArrayBuffer(i),d=new Uint8Array(u);for(t=0;t<l;t+=4)o=n[e.charCodeAt(t)],a=n[e.charCodeAt(t+1)],r=n[e.charCodeAt(t+2)],s=n[e.charCodeAt(t+3)],d[c++]=o<<2|a>>4,d[c++]=(15&a)<<4|r>>2,d[c++]=(3&r)<<6|63&s;return u}},7750:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(8657),a=o(6894),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,t)}return{base64:!0,data:e}},i=(e,t)=>"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e;t.default=(e,t)=>{if("string"!=typeof e)return{type:"message",data:i(e,t)};const o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},9423:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(8657),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},5625:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(9423);t.encodePacket=n.default;const a=o(7750);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e<o.length;e++){const r=(0,a.default)(o[e],t);if(n.push(r),"error"===r.type)break}return n},t.protocol=4},9970:(e,t)=>{"use strict";function o(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7324:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const a=o(3498),r=o(4074);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(3633);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(7820)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.path,u=l[s]&&c in l[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=c,t.connect=c,t.default=c,Object.assign(c,{Manager:r.Manager,Socket:s.Socket,io:c,connect:c});var u=o(9355);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4074:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const i=o(1949),l=o(3633),c=r(o(9355)),u=o(922),d=o(9970),p=o(3555),h=s(o(7820)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,i.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(o=t.randomizationFactor)&&void 0!==o?o:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new i.Socket(this.uri,this.opts);const t=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(u.on(e,"ping",this.onping.bind(this)),u.on(e,"data",this.ondata.bind(this)),u.on(e,"error",this.onerror.bind(this)),u.on(e,"close",this.onclose.bind(this)),u.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){i.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return void h("socket %s is still active, skipping close",e);this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let o=0;o<t.length;o++)this.engine.write(t[o],e.options)}cleanup(){h("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){h("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const o=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},3633:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(9355),r=o(922),s=o(3555),i=n(o(7820)).default("socket.io-client:socket"),l=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[r.on(e,"open",this.onopen.bind(this)),r.on(e,"packet",this.onpacket.bind(this)),r.on(e,"error",this.onerror.bind(this)),r.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(l.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;i("emitting packet with ack id %d",e);const n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(i("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));i("event with ack id %d has timed out after %d ms",e,o),t.call(this,new Error("operation has timed out"))}),o);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(n),t.apply(this,[null,...e])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){i("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this.packet({type:a.PacketType.CONNECT,data:e})})):this.packet({type:a.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){i("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.PacketType.EVENT:case a.PacketType.BINARY_EVENT:this.onevent(e);break;case a.PacketType.ACK:case a.PacketType.BINARY_ACK:this.onack(e);break;case a.PacketType.DISCONNECT:this.ondisconnect();break;case a.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];i("emitting event %j",t),null!=e.id&&(i("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(i("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):i("bad ack %s",e.id)}onconnect(e){i("socket connected with id %s",e),this.id=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:a.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const o of t)o.apply(this,e.data)}}}t.Socket=c},3498:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const a=o(1949),r=n(o(7820)).default("socket.io-client:url");t.url=function(e,t="",o){let n=e;o=o||"undefined"!=typeof location&&location,null==e&&(e=o.protocol+"//"+o.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?o.protocol+e:o.host+e),/^(https?|wss?):\/\//.test(e)||(r("protocol-less url %s",e),e=void 0!==o?o.protocol+"//"+e:"https://"+e),r("parse %s",e),n=a.parse(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(o&&o.port===n.port?"":":"+n.port),n}},8681:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(1349);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n<e.length;n++)o[n]=a(e[n],t);return o}if("object"==typeof e&&!(e instanceof Date)){const o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=a(e[n],t));return o}return e}function r(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let o=0;o<e.length;o++)e[o]=r(e[o],t);else if("object"==typeof e)for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=r(e[o],t));return e}t.deconstructPacket=function(e){const t=[],o=e.data,n=e;return n.data=a(o,t),n.attachments=t.length,{packet:n,buffers:t}},t.reconstructPacket=function(e,t){return e.data=r(e.data,t),e.attachments=void 0,e}},9355:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(3555),a=o(8681),r=o(1349),s=o(7820).default("socket.io-parser");var i;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(i=t.PacketType||(t.PacketType={})),t.Encoder=class{constructor(e){this.replacer=e}encode(e){return s("encoding packet %j",e),e.type!==i.EVENT&&e.type!==i.ACK||!r.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==i.BINARY_EVENT&&e.type!==i.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=a.deconstructPacket(e),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new c(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!r.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case i.CONNECT:return"object"==typeof t;case i.DISCONNECT:return void 0===t;case i.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=l;class c{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},1349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||a&&e instanceof Blob||r&&e instanceof File}t.isBinary=s,t.hasBinary=function e(t,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o<n;o++)if(e(t[o]))return!0;return!1}if(s(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return!0;return!1}},3555:(e,t,o)=>{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<n.length;a++)if((o=n[a])===t||o.fn===t){n.splice(a,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),o=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(o){n=0;for(var a=(o=o.slice(0)).length;n<a;++n)o[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nc=void 0,__webpack_require__(8237),__webpack_require__(8655),__webpack_require__(4975),__webpack_require__(698),__webpack_require__(5280),__webpack_require__(8370),__webpack_require__(5772),__webpack_require__(8870),__webpack_require__(5153),__webpack_require__(3052),__webpack_require__(509),__webpack_require__(8711),__webpack_require__(9837),__webpack_require__(8613),__webpack_require__(9432),__webpack_require__(4989),__webpack_require__(701),__webpack_require__(7031),__webpack_require__(9190);var __webpack_exports__=__webpack_require__(5347)})();
2