diff --git a/404.html b/404.html
index 5c59d9afd..982f9b9b0 100644
--- a/404.html
+++ b/404.html
@@ -1 +1 @@
-
Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/_next/static/6-pNMPscS_B5szkW-tQJE/_buildManifest.js b/_next/static/6-pNMPscS_B5szkW-tQJE/_buildManifest.js
new file mode 100644
index 000000000..54a6e1572
--- /dev/null
+++ b/_next/static/6-pNMPscS_B5szkW-tQJE/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST=function(c,a,s,t,o,n,e,d,u,r,l){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/3582-3f65f0a3193ebe47.js",d,"static/chunks/pages/index-d27b1baaad1e3dff.js"],"/_error":["static/chunks/pages/_error-e4216aab802f5810.js"],"/account/misc/apocalypses":["static/chunks/pages/account/misc/apocalypses-7e6e009e2e16d3ec.js"],"/account/misc/constellations":[a,"static/chunks/pages/account/misc/constellations-ec81b0651e494fff.js"],"/account/misc/dungeons":["static/chunks/5415-bbbb76fc5fba2480.js","static/chunks/pages/account/misc/dungeons-5d8af80378a67b23.js"],"/account/misc/general":[n,s,"static/chunks/pages/account/misc/general-bcf82b092211837a.js"],"/account/misc/guild":[n,"static/chunks/pages/account/misc/guild-8c8da47c40bac8b1.js"],"/account/misc/quests":["static/chunks/294-d2a6effa2440135d.js","static/chunks/pages/account/misc/quests-5e3cba94b5b3ad63.js"],"/account/misc/random-events":["static/chunks/pages/account/misc/random-events-e14d274dd695bd58.js"],"/account/misc/storage":[u,"static/chunks/pages/account/misc/storage-298899a9fbbd05ed.js"],"/account/premium-currency/companions":["static/chunks/pages/account/premium-currency/companions-4c64c5a2877156b0.js"],"/account/premium-currency/gem-shop":["static/chunks/3129-caee8727a2bd2b10.js","static/chunks/pages/account/premium-currency/gem-shop-8c0cb600b20cbedf.js"],"/account/task-board/achievements":["static/chunks/pages/account/task-board/achievements-d51f2f0175ac578b.js"],"/account/task-board/merits":["static/chunks/pages/account/task-board/merits-765c4b0e6d5a3c97.js"],"/account/task-board/tasks":["static/chunks/pages/account/task-board/tasks-b0b9b84a7d94d89b.js"],"/account/world-1/anvil":["static/chunks/4016-15cc259b2ed2a462.js","static/chunks/pages/account/world-1/anvil-6be2d97759e4c3c5.js"],"/account/world-1/bribes":[a,"static/chunks/pages/account/world-1/bribes-d42704e721c4fb98.js"],"/account/world-1/forge":[a,"static/chunks/pages/account/world-1/forge-e16a871cd8b6e18e.js"],"/account/world-1/old-stamps":[t,"static/chunks/4107-e8efc4e930425994.js","static/chunks/pages/account/world-1/old-stamps-748a36ded2ef1371.js"],"/account/world-1/owl":["static/chunks/pages/account/world-1/owl-2290c47c5a1396ea.js"],"/account/world-1/stamps":[t,"static/chunks/6909-36c4748193b26776.js","static/chunks/pages/account/world-1/stamps-6a40c2522195e705.js"],"/account/world-2/arcade-shop":["static/chunks/pages/account/world-2/arcade-shop-14c4407645645396.js"],"/account/world-2/bubbles":[t,"static/chunks/pages/account/world-2/bubbles-6492713d431a7ef4.js"],"/account/world-2/cauldrons":["static/chunks/3992-59a1c76a867f3502.js","static/chunks/pages/account/world-2/cauldrons-b7a65020828bf318.js"],"/account/world-2/islands":["static/chunks/pages/account/world-2/islands-7934b2de5a2e6198.js"],"/account/world-2/kangaroo":["static/chunks/pages/account/world-2/kangaroo-d64e9b2fa3b43a82.js"],"/account/world-2/killroy":["static/chunks/pages/account/world-2/killroy-ebe3a724ac68c84d.js"],"/account/world-2/old-bubbles":[t,"static/chunks/3795-c02600ff6e64cc1c.js","static/chunks/pages/account/world-2/old-bubbles-1decc228dd915be5.js"],"/account/world-2/sigils":["static/chunks/pages/account/world-2/sigils-fab39e2935222860.js"],"/account/world-2/vials":["static/chunks/pages/account/world-2/vials-4702a7b7d90ceb22.js"],"/account/world-2/vote-ballot":["static/chunks/pages/account/world-2/vote-ballot-f100cc52305e2a5b.js"],"/account/world-2/weekly-bosses":["static/chunks/pages/account/world-2/weekly-bosses-9bd953db30bc8738.js"],"/account/world-3/atom-collider":["static/chunks/pages/account/world-3/atom-collider-d6ad58a1481f1e86.js"],"/account/world-3/buildings":["static/chunks/5125-cb0b5f30ebcb245a.js","static/chunks/pages/account/world-3/buildings-9b42fbf3114d192a.js"],"/account/world-3/construction":[o,"static/chunks/6443-98c7b95d0b4ceeca.js","static/chunks/pages/account/world-3/construction-958871f7b9d21d13.js"],"/account/world-3/death-note":["static/chunks/pages/account/world-3/death-note-dfa6abdf0e421e06.js"],"/account/world-3/equinox":["static/chunks/4302-c3f9ff122ee27483.js","static/chunks/pages/account/world-3/equinox-be8c407d9f1ab313.js"],"/account/world-3/prayers":["static/chunks/pages/account/world-3/prayers-77b03fa4e2913484.js"],"/account/world-3/printer":["static/chunks/pages/account/world-3/printer-218e939162f91a97.js"],"/account/world-3/refinery":["static/chunks/5361-906619ed59916506.js","static/chunks/pages/account/world-3/refinery-c586c495d641e84d.js"],"/account/world-3/salt-lick":["static/chunks/pages/account/world-3/salt-lick-c4fcce8a3e6863ad.js"],"/account/world-3/traps":["static/chunks/9589-6f5a0a37cc567d16.js","static/chunks/pages/account/world-3/traps-61c536fb15c01eaf.js"],"/account/world-3/worship":["static/chunks/7659-e3f589063fbfa117.js","static/chunks/pages/account/world-3/worship-9c3bf8249a52a9b4.js"],"/account/world-4/breeding":["static/chunks/2846-82d53f752b571a98.js","static/chunks/pages/account/world-4/breeding-b466f45837676fa4.js"],"/account/world-4/cooking":["static/chunks/4208-7547bc30d75d93dc.js","static/chunks/pages/account/world-4/cooking-553a70f5d9d2fc6a.js"],"/account/world-4/laboratory":[c,"static/chunks/pages/account/world-4/laboratory-22ebe1336a044ef3.js"],"/account/world-4/rift":["static/chunks/3864-a390b50d7754bb84.js","static/chunks/pages/account/world-4/rift-1edb0d657c3eb50f.js"],"/account/world-4/tome":["static/chunks/pages/account/world-4/tome-3ec682b04e97c6d5.js"],"/account/world-5/divinity":["static/chunks/7317-29ae81b35455e219.js","static/chunks/pages/account/world-5/divinity-6f745c908169814f.js"],"/account/world-5/gaming":["static/chunks/pages/account/world-5/gaming-98cc9d3101aa5a51.js"],"/account/world-5/sailing":[r,"static/chunks/pages/account/world-5/sailing-295da2b841c91c89.js"],"/account/world-5/slab":[o,u,"static/chunks/pages/account/world-5/slab-5475533f49a21c0d.js"],"/account/world-6/beanstalk":[s,"static/chunks/pages/account/world-6/beanstalk-7f630a13cab5782e.js"],"/account/world-6/farming":["static/chunks/pages/account/world-6/farming-8bd23de4293491a4.js"],"/account/world-6/sneaking":["static/chunks/pages/account/world-6/sneaking-09b6a1a62c1ebf18.js"],"/account/world-6/summoning":["static/chunks/9154-9b33359b3cbb8e88.js","static/chunks/pages/account/world-6/summoning-36a60ab8c3cf06f3.js"],"/characters":[a,"static/chunks/3695-43c9398ed8a82998.js",s,"static/chunks/pages/characters-be879f5f3d52387c.js"],"/dashboard":[l,"static/chunks/5085-fea0ee8cac1af099.js",r,"static/chunks/pages/dashboard-eb8b509fae2221c5.js"],"/data":["static/chunks/6634-bf9f842208fbdb6e.js","static/chunks/pages/data-d1971a6c2402635c.js"],"/guilds":[n,"static/chunks/pages/guilds-84d952c7556e2221.js"],"/leaderboards":[c,"static/chunks/pages/leaderboards-0c252eff68e21fee.js"],"/patch-notes":[e,d,"static/chunks/pages/patch-notes-8ec064ecf89df736.js"],"/tools":["static/chunks/pages/tools-b3cef852e8b800ff.js"],"/tools/active-exp-calculator":["static/chunks/pages/tools/active-exp-calculator-73092d1e5831bbbd.js"],"/tools/builds":[a,"static/chunks/5884-4094b2ee15399cff.js","static/chunks/pages/tools/builds-34d2eb48e79c8746.js"],"/tools/card-search":["static/chunks/166-a06d1b7ffd7105c6.js","static/chunks/pages/tools/card-search-eda20e08b8d76616.js"],"/tools/god-planner":["static/chunks/6878-0d0432e56a20266d.js","static/chunks/pages/tools/god-planner-7778dc801ae78c36.js"],"/tools/guaranteed-drop-calculator":[c,"static/chunks/pages/tools/guaranteed-drop-calculator-a523a7d043792adb.js"],"/tools/item-browser":[c,o,s,"static/chunks/pages/tools/item-browser-95a04908b6a261b4.js"],"/tools/item-planner":[c,o,"static/chunks/8471-ece819763ca49c68.js","static/chunks/pages/tools/item-planner-180141b61ffb131b.js"],"/tools/material-tracker":[c,l,"static/chunks/pages/tools/material-tracker-caaeffa6b214af25.js"],sortedPages:["/","/_app","/_error","/account/misc/apocalypses","/account/misc/constellations","/account/misc/dungeons","/account/misc/general","/account/misc/guild","/account/misc/quests","/account/misc/random-events","/account/misc/storage","/account/premium-currency/companions","/account/premium-currency/gem-shop","/account/task-board/achievements","/account/task-board/merits","/account/task-board/tasks","/account/world-1/anvil","/account/world-1/bribes","/account/world-1/forge","/account/world-1/old-stamps","/account/world-1/owl","/account/world-1/stamps","/account/world-2/arcade-shop","/account/world-2/bubbles","/account/world-2/cauldrons","/account/world-2/islands","/account/world-2/kangaroo","/account/world-2/killroy","/account/world-2/old-bubbles","/account/world-2/sigils","/account/world-2/vials","/account/world-2/vote-ballot","/account/world-2/weekly-bosses","/account/world-3/atom-collider","/account/world-3/buildings","/account/world-3/construction","/account/world-3/death-note","/account/world-3/equinox","/account/world-3/prayers","/account/world-3/printer","/account/world-3/refinery","/account/world-3/salt-lick","/account/world-3/traps","/account/world-3/worship","/account/world-4/breeding","/account/world-4/cooking","/account/world-4/laboratory","/account/world-4/rift","/account/world-4/tome","/account/world-5/divinity","/account/world-5/gaming","/account/world-5/sailing","/account/world-5/slab","/account/world-6/beanstalk","/account/world-6/farming","/account/world-6/sneaking","/account/world-6/summoning","/characters","/dashboard","/data","/guilds","/leaderboards","/patch-notes","/tools","/tools/active-exp-calculator","/tools/builds","/tools/card-search","/tools/god-planner","/tools/guaranteed-drop-calculator","/tools/item-browser","/tools/item-planner","/tools/material-tracker"]}}("static/chunks/417-4e720982b970a0c2.js","static/chunks/6886-3882d20a112e7c58.js","static/chunks/9758-d4cfac7232d413b9.js","static/chunks/3980-5166448e0f9d27c9.js","static/chunks/8356-c5913afe9acc6219.js","static/chunks/2307-d65f76cbbfdef2b2.js","static/chunks/1580-da0194d9ca6420ad.js","static/chunks/5537-7f10bc9369dbc78e.js","static/chunks/5675-44a6fe1979ca2e00.js","static/chunks/7623-b22fc955625205be.js","static/chunks/2308-9e34799864edb240.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/_next/static/DcLYhAgPhKCsTkZC-kolp/_ssgManifest.js b/_next/static/6-pNMPscS_B5szkW-tQJE/_ssgManifest.js
similarity index 100%
rename from _next/static/DcLYhAgPhKCsTkZC-kolp/_ssgManifest.js
rename to _next/static/6-pNMPscS_B5szkW-tQJE/_ssgManifest.js
diff --git a/_next/static/DcLYhAgPhKCsTkZC-kolp/_buildManifest.js b/_next/static/DcLYhAgPhKCsTkZC-kolp/_buildManifest.js
deleted file mode 100644
index 1f2fc838d..000000000
--- a/_next/static/DcLYhAgPhKCsTkZC-kolp/_buildManifest.js
+++ /dev/null
@@ -1 +0,0 @@
-self.__BUILD_MANIFEST=function(c,a,s,t,o,n,e,d,u,r,l){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/3582-3f65f0a3193ebe47.js",d,"static/chunks/pages/index-d27b1baaad1e3dff.js"],"/_error":["static/chunks/pages/_error-e4216aab802f5810.js"],"/account/misc/apocalypses":["static/chunks/pages/account/misc/apocalypses-7e6e009e2e16d3ec.js"],"/account/misc/constellations":[a,"static/chunks/pages/account/misc/constellations-ec81b0651e494fff.js"],"/account/misc/dungeons":["static/chunks/5415-bbbb76fc5fba2480.js","static/chunks/pages/account/misc/dungeons-5d8af80378a67b23.js"],"/account/misc/general":[n,s,"static/chunks/pages/account/misc/general-bcf82b092211837a.js"],"/account/misc/guild":[n,"static/chunks/pages/account/misc/guild-8c8da47c40bac8b1.js"],"/account/misc/quests":["static/chunks/294-d2a6effa2440135d.js","static/chunks/pages/account/misc/quests-5e3cba94b5b3ad63.js"],"/account/misc/random-events":["static/chunks/pages/account/misc/random-events-e14d274dd695bd58.js"],"/account/misc/storage":[u,"static/chunks/pages/account/misc/storage-298899a9fbbd05ed.js"],"/account/premium-currency/companions":["static/chunks/pages/account/premium-currency/companions-4c64c5a2877156b0.js"],"/account/premium-currency/gem-shop":["static/chunks/3129-caee8727a2bd2b10.js","static/chunks/pages/account/premium-currency/gem-shop-8c0cb600b20cbedf.js"],"/account/task-board/achievements":["static/chunks/pages/account/task-board/achievements-d51f2f0175ac578b.js"],"/account/task-board/merits":["static/chunks/pages/account/task-board/merits-765c4b0e6d5a3c97.js"],"/account/task-board/tasks":["static/chunks/pages/account/task-board/tasks-b0b9b84a7d94d89b.js"],"/account/world-1/anvil":["static/chunks/4016-15cc259b2ed2a462.js","static/chunks/pages/account/world-1/anvil-6be2d97759e4c3c5.js"],"/account/world-1/bribes":[a,"static/chunks/pages/account/world-1/bribes-d42704e721c4fb98.js"],"/account/world-1/forge":[a,"static/chunks/pages/account/world-1/forge-e16a871cd8b6e18e.js"],"/account/world-1/old-stamps":[t,"static/chunks/4107-e8efc4e930425994.js","static/chunks/pages/account/world-1/old-stamps-748a36ded2ef1371.js"],"/account/world-1/owl":["static/chunks/pages/account/world-1/owl-2290c47c5a1396ea.js"],"/account/world-1/stamps":[t,"static/chunks/6909-36c4748193b26776.js","static/chunks/pages/account/world-1/stamps-6a40c2522195e705.js"],"/account/world-2/arcade-shop":["static/chunks/pages/account/world-2/arcade-shop-14c4407645645396.js"],"/account/world-2/bubbles":[t,"static/chunks/pages/account/world-2/bubbles-6492713d431a7ef4.js"],"/account/world-2/cauldrons":["static/chunks/3992-59a1c76a867f3502.js","static/chunks/pages/account/world-2/cauldrons-b7a65020828bf318.js"],"/account/world-2/islands":["static/chunks/pages/account/world-2/islands-7934b2de5a2e6198.js"],"/account/world-2/kangaroo":["static/chunks/pages/account/world-2/kangaroo-d64e9b2fa3b43a82.js"],"/account/world-2/old-bubbles":[t,"static/chunks/3795-c02600ff6e64cc1c.js","static/chunks/pages/account/world-2/old-bubbles-1decc228dd915be5.js"],"/account/world-2/sigils":["static/chunks/pages/account/world-2/sigils-fab39e2935222860.js"],"/account/world-2/vials":["static/chunks/pages/account/world-2/vials-4702a7b7d90ceb22.js"],"/account/world-2/vote-ballot":["static/chunks/pages/account/world-2/vote-ballot-f100cc52305e2a5b.js"],"/account/world-2/weekly-bosses":["static/chunks/pages/account/world-2/weekly-bosses-9bd953db30bc8738.js"],"/account/world-3/atom-collider":["static/chunks/pages/account/world-3/atom-collider-d6ad58a1481f1e86.js"],"/account/world-3/buildings":["static/chunks/5125-cb0b5f30ebcb245a.js","static/chunks/pages/account/world-3/buildings-9b42fbf3114d192a.js"],"/account/world-3/construction":[o,"static/chunks/6443-98c7b95d0b4ceeca.js","static/chunks/pages/account/world-3/construction-958871f7b9d21d13.js"],"/account/world-3/death-note":["static/chunks/pages/account/world-3/death-note-dfa6abdf0e421e06.js"],"/account/world-3/equinox":["static/chunks/4302-c3f9ff122ee27483.js","static/chunks/pages/account/world-3/equinox-be8c407d9f1ab313.js"],"/account/world-3/prayers":["static/chunks/pages/account/world-3/prayers-77b03fa4e2913484.js"],"/account/world-3/printer":["static/chunks/pages/account/world-3/printer-218e939162f91a97.js"],"/account/world-3/refinery":["static/chunks/5361-906619ed59916506.js","static/chunks/pages/account/world-3/refinery-c586c495d641e84d.js"],"/account/world-3/salt-lick":["static/chunks/pages/account/world-3/salt-lick-c4fcce8a3e6863ad.js"],"/account/world-3/traps":["static/chunks/9589-6f5a0a37cc567d16.js","static/chunks/pages/account/world-3/traps-61c536fb15c01eaf.js"],"/account/world-3/worship":["static/chunks/7659-e3f589063fbfa117.js","static/chunks/pages/account/world-3/worship-9c3bf8249a52a9b4.js"],"/account/world-4/breeding":["static/chunks/2846-82d53f752b571a98.js","static/chunks/pages/account/world-4/breeding-b466f45837676fa4.js"],"/account/world-4/cooking":["static/chunks/4208-7547bc30d75d93dc.js","static/chunks/pages/account/world-4/cooking-553a70f5d9d2fc6a.js"],"/account/world-4/killroy-prime":["static/chunks/pages/account/world-4/killroy-prime-8eded84cb5b5862d.js"],"/account/world-4/laboratory":[c,"static/chunks/pages/account/world-4/laboratory-22ebe1336a044ef3.js"],"/account/world-4/rift":["static/chunks/3864-a390b50d7754bb84.js","static/chunks/pages/account/world-4/rift-1edb0d657c3eb50f.js"],"/account/world-4/tome":["static/chunks/pages/account/world-4/tome-3ec682b04e97c6d5.js"],"/account/world-5/divinity":["static/chunks/7317-29ae81b35455e219.js","static/chunks/pages/account/world-5/divinity-6f745c908169814f.js"],"/account/world-5/gaming":["static/chunks/pages/account/world-5/gaming-98cc9d3101aa5a51.js"],"/account/world-5/sailing":[r,"static/chunks/pages/account/world-5/sailing-295da2b841c91c89.js"],"/account/world-5/slab":[o,u,"static/chunks/pages/account/world-5/slab-5475533f49a21c0d.js"],"/account/world-6/beanstalk":[s,"static/chunks/pages/account/world-6/beanstalk-7f630a13cab5782e.js"],"/account/world-6/farming":["static/chunks/pages/account/world-6/farming-8bd23de4293491a4.js"],"/account/world-6/sneaking":["static/chunks/pages/account/world-6/sneaking-09b6a1a62c1ebf18.js"],"/account/world-6/summoning":["static/chunks/9154-9b33359b3cbb8e88.js","static/chunks/pages/account/world-6/summoning-36a60ab8c3cf06f3.js"],"/characters":[a,"static/chunks/3695-43c9398ed8a82998.js",s,"static/chunks/pages/characters-be879f5f3d52387c.js"],"/dashboard":[l,"static/chunks/5085-fea0ee8cac1af099.js",r,"static/chunks/pages/dashboard-eb8b509fae2221c5.js"],"/data":["static/chunks/6634-bf9f842208fbdb6e.js","static/chunks/pages/data-d1971a6c2402635c.js"],"/guilds":[n,"static/chunks/pages/guilds-84d952c7556e2221.js"],"/leaderboards":[c,"static/chunks/pages/leaderboards-0c252eff68e21fee.js"],"/patch-notes":[e,d,"static/chunks/pages/patch-notes-8ec064ecf89df736.js"],"/tools":["static/chunks/pages/tools-b3cef852e8b800ff.js"],"/tools/active-exp-calculator":["static/chunks/pages/tools/active-exp-calculator-73092d1e5831bbbd.js"],"/tools/builds":[a,"static/chunks/5884-4094b2ee15399cff.js","static/chunks/pages/tools/builds-34d2eb48e79c8746.js"],"/tools/card-search":["static/chunks/166-a06d1b7ffd7105c6.js","static/chunks/pages/tools/card-search-eda20e08b8d76616.js"],"/tools/god-planner":["static/chunks/6878-0d0432e56a20266d.js","static/chunks/pages/tools/god-planner-7778dc801ae78c36.js"],"/tools/guaranteed-drop-calculator":[c,"static/chunks/pages/tools/guaranteed-drop-calculator-a523a7d043792adb.js"],"/tools/item-browser":[c,o,s,"static/chunks/pages/tools/item-browser-95a04908b6a261b4.js"],"/tools/item-planner":[c,o,"static/chunks/8471-ece819763ca49c68.js","static/chunks/pages/tools/item-planner-180141b61ffb131b.js"],"/tools/material-tracker":[c,l,"static/chunks/pages/tools/material-tracker-caaeffa6b214af25.js"],sortedPages:["/","/_app","/_error","/account/misc/apocalypses","/account/misc/constellations","/account/misc/dungeons","/account/misc/general","/account/misc/guild","/account/misc/quests","/account/misc/random-events","/account/misc/storage","/account/premium-currency/companions","/account/premium-currency/gem-shop","/account/task-board/achievements","/account/task-board/merits","/account/task-board/tasks","/account/world-1/anvil","/account/world-1/bribes","/account/world-1/forge","/account/world-1/old-stamps","/account/world-1/owl","/account/world-1/stamps","/account/world-2/arcade-shop","/account/world-2/bubbles","/account/world-2/cauldrons","/account/world-2/islands","/account/world-2/kangaroo","/account/world-2/old-bubbles","/account/world-2/sigils","/account/world-2/vials","/account/world-2/vote-ballot","/account/world-2/weekly-bosses","/account/world-3/atom-collider","/account/world-3/buildings","/account/world-3/construction","/account/world-3/death-note","/account/world-3/equinox","/account/world-3/prayers","/account/world-3/printer","/account/world-3/refinery","/account/world-3/salt-lick","/account/world-3/traps","/account/world-3/worship","/account/world-4/breeding","/account/world-4/cooking","/account/world-4/killroy-prime","/account/world-4/laboratory","/account/world-4/rift","/account/world-4/tome","/account/world-5/divinity","/account/world-5/gaming","/account/world-5/sailing","/account/world-5/slab","/account/world-6/beanstalk","/account/world-6/farming","/account/world-6/sneaking","/account/world-6/summoning","/characters","/dashboard","/data","/guilds","/leaderboards","/patch-notes","/tools","/tools/active-exp-calculator","/tools/builds","/tools/card-search","/tools/god-planner","/tools/guaranteed-drop-calculator","/tools/item-browser","/tools/item-planner","/tools/material-tracker"]}}("static/chunks/417-4e720982b970a0c2.js","static/chunks/6886-3882d20a112e7c58.js","static/chunks/9758-d4cfac7232d413b9.js","static/chunks/3980-5166448e0f9d27c9.js","static/chunks/8356-c5913afe9acc6219.js","static/chunks/2307-d65f76cbbfdef2b2.js","static/chunks/1580-da0194d9ca6420ad.js","static/chunks/5537-3c3430cc926797dc.js","static/chunks/5675-44a6fe1979ca2e00.js","static/chunks/7623-b22fc955625205be.js","static/chunks/2308-9e34799864edb240.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/_next/static/chunks/5537-3c3430cc926797dc.js b/_next/static/chunks/5537-3c3430cc926797dc.js
deleted file mode 100644
index 99e26a790..000000000
--- a/_next/static/chunks/5537-3c3430cc926797dc.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5537],{18434:function(e,a,t){t.d(a,{O:function(){return s}});var d=t(85893),r=t(23972),i=t(23795);t(67294);let s=[{ver:"3.2.77",gameVer:"2.0.13",date:"04/09/2024",features:["Added green stacks leaderboard under General","Added some more description to the login dialog to hopefully prevent repeated questions","Fixed a bug where meals appeared on a different order.","Fixed calculations for bean trade in farming page"],fixes:[]},{ver:"3.2.76",gameVer:"2.0.13",date:"30/07/2024",features:["Updated the website with version 2.0.13 data and assets","Added vote ballot page"],fixes:[]},{ver:"3.2.75",gameVer:"2.0.12",date:"08/07/2024",features:["Added ranks to farming page"],fixes:[]},{ver:"3.2.74",gameVer:"2.0.11",date:"23/06/2024",features:["Added timers tab to the dashboard configurations - you can now customize your timers view!"],fixes:["Fixed a bug in tome death note and equinox clouds calculations","Fixed a bug in logbooks counters","Fixed a bug in fish per hour calculation"]},{ver:"3.2.73",gameVer:"2.0.11",date:"22/06/2024",features:["Updated the website with version 2.0.11 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/kangaroo",children:"poopy kangaroo"})," page under Account - World 2"]}),"Added 3 kangaroo alerts to the dashboard: shiny % threshold, fisheroo reset, greatest catch"],fixes:[]},{ver:"3.2.72",gameVer:"2.0.10",date:"06/06/2024",features:["Added a threshold filter to the bubbles page",'Added a "unobtainable" filter to the slab page + removed un-obtainable dungeon items',"Added feather restart and mega feather restart timers to the dashboard"],fixes:["Fixed owl alerts","Fixed farming market displayed values"]},{ver:"3.2.72",gameVer:"2.0.10",date:"06/06/2024",features:["Updated the website with version 2.0.10 data and assets","Added owl page under world 1 (bonuses aren't applied across the site yet)"],fixes:[]},{ver:"3.2.71",gameVer:"2.0.9",date:"06/06/2024",features:["Added a dashboard alert for unclaimed jewels / chips (if you have enough resource to buy them)"],fixes:["Fixed the calculation for the jewel and chip rotations","Fixed a bug with calculating max cost of buildings","Fixed breeding foraging costs calculation","Fixed a bug with world 2 alert (vials attempts)"]},{ver:"3.2.70",gameVer:"2.0.9",date:"28/05/2024",features:['Added "no meal left behind" to meals tab under cooking',"Added shimmer island alert for unclaimed reward",'Added a "last looted" alert to sneaking to get alerted when you haven\'t looted for X minutes',"Added the class names you need to do killroy with for the killroy alert","Added tome ranking to the tome page","Added god rank, jade coins, white essence, highest crop og leaderboards (will take effect immediately)","Added total green mushroom kills, total boats leaderboard (will take effect after you upload your profile again)"],fixes:["Fixed a bug with calculating account level in leaderboard"]},{ver:"3.2.69",gameVer:"2.0.9",date:"26/05/2024",features:["Updated the website with version 2.0.9 data and assets","Added Battles tab to the summoning page including the army health and damage"],fixes:["Fixed some bugs with alerts"]},{ver:"3.2.68",gameVer:"2.0.8",date:"25/05/2024",features:["Updated the dashboard's layout: alerts are now organized by worlds / general. Rows will disappear when there are no longer alerts to show in them","Added bubble breakdown in bubble page",'Added import / export button inside "Configure alerts" dialog',"Vial attempts will now show only if you have the materials available"],fixes:[]},{ver:"3.2.67",gameVer:"2.0.8",date:"23/05/2024",features:["Added gemstones to sneaking page","Added max cost for buildings page","Added poing mini game score and multi to gaming page under Imports tab","Added an alert for acquiring gems from killing bosses"],fixes:["Fixed calculation for number of bubbles from NBLB","Fixed drop rate calculations (with small margin of error)"]},{ver:"3.2.66",gameVer:"2.0.8",date:"16/05/2024",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/tome",children:"Tome"})," page under Account - World 4"]}),"Added a column to the refinery page to show how much of a a material you own"],fixes:["Fixed breeding foraging speed calculations","Fixed a bug where some alerts wouldn't turn off"]},{ver:"3.2.65",gameVer:"2.0.8",date:"09/05/2024",features:["Updated the website with version 2.0.8 data (this patch might miss some assets)","Added a dashboard alert for total crops","Added a dashboard alert for using the wrong divinity style","Added total crops display under farming -> plot","Added an indication of your max meal level under cooking -> meals","Updated material tracker ui a little bit + updated its alerts in the dashboard","Added an alert for when you have available upgrade slots on your items"],fixes:["Fixed a bug calculating shiny level multi caused by miscalculating star sign"]},{ver:"3.2.64",gameVer:"2.0.7",date:"30/04/2024",features:["Updated the website with version 2.0.7 data and assets","Added hoops mini game high score to Account -> General page",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/killroy-prime",children:"Killroy Prime"})," page under Account - World 4"]})],fixes:["Fixed sneaking, farming and summoning skill mastery on Rift page"]},{ver:"3.2.63",gameVer:"2.0.6",date:"27/04/2024",features:["Updated the website with version 2.0.6 data and assets","Added world 6 achievements and tasks","Updated world 6 achievement bonuses to all relevant stats","Added a threshold input to the Summoning -> Familiar dashboard alert",'Added a "Total Time" stat to the refinery page - to show how long it takes to get from 0% to 100%',"Moved Slab page to W5 category","Moved Beanstalk page to W6 category","Removed page titles from all pages as they don't add any value and and take up space"],fixes:["Fixed cooking speed"]},{ver:"3.2.62",gameVer:"2.0.5",date:"25/04/2024",features:["Added a dashboard alert for Familiar bonus from summoning"],fixes:["Fixed a bug in tasks page","Possible fix for cooking speed"]},{ver:"3.2.61",gameVer:"2.0.5",date:"24/04/2024",features:[],fixes:["Fixed cooking speed","Fixed some ui bugs in dashboard page","Fixed a bug in the calculation of how an unlocked world is determined","Added a small disclaimer to the laboratory page regarding px width bug"]},{ver:"3.2.60",gameVer:"2.0.5",date:"17/03/2024",features:["Added upgrade cost and cost to max for cauldrons",'Added the bonus from "Pure Opal Rhombol" jewel to the crop depot'],fixes:["Fixed salts dashboard alert"]},{ver:"3.2.59",gameVer:"2.0.5",date:"11/03/2024",features:[""],fixes:["Fixed death note for minibosses","Removed the rank for summoning skill from skills under characters page"]},{ver:"3.2.58",gameVer:"2.0.5",date:"04/03/2024",features:["Updated the website with latest patch data and assets","Added an alert for plots"],fixes:[""]},{ver:"3.2.57",gameVer:"2.0.5",date:"02/04/2024",features:["Updated the website with version 2.0.5 data and assets","Added w3/4/5/6 mini boss counter to the dashboard",'Updated talent presets to be "Preset 1" and "Preset 2"',"Applying threshold in breeding - pets now shows the time to reach that threshold for leveling pets"],fixes:[]},{ver:"3.2.56",gameVer:"2.0.4",date:"28/03/2024",features:["Added available vial attempts dashboard alert","Added the 3rd tier of sigil","Added checkbox to apocalypse page to hide super chows"],fixes:["Added the new captain image to dashboard alerts"]},{ver:"3.2.55",gameVer:"2.0.4",date:"25/03/2024",features:["Added mini bosses to death note page"],fixes:['Added missing "next requirement" for beans in "Market" tab under farming page',"Fixed sigil speed calculations","Added missing spirited valley title in quest page"]},{ver:"3.2.54",gameVer:"2.0.4",date:"24/03/2024",features:["Updated the website with version 2.0.4 data and assets"],fixes:["Some fixes"]},{ver:"3.2.53",gameVer:"2.0.3",date:"09/03/2024",features:["Updated the website with version 2.0.3 data and assets","Added talents and cards preset view in Characters page"],fixes:[]},{ver:"3.2.52",gameVer:"2.0.2",date:"24/02/2024",features:[],fixes:["Fixed meal speed calculation","Fixed lab connection bug","Fixed a bug where shrines didn't show affected players","Fixed Jade Emporium prices","Fixed statue bonus calculations","Fixed a bug where talent additional levels were added to a level 0 talents"]},{ver:"3.2.51",gameVer:"2.0.2",date:"02/03/2024",features:["Updated the website with version 2.0.2 data and assets","Initial support for summoning skill page including essences, upgrades and winner bonuses","Added beanstalk page under Account -> Misc","Updated bribes","Updated artifacts","Added a timer in farming page to countdown to next cycle"],fixes:["Fixed star sign / constellation page"]},{ver:"3.2.50",gameVer:"2.0.1",date:"27/02/2024",features:["Initial support for farming skill page including plot data, market and crop depot and crop","Added MSA Totalizer bonuses to worship page (World 3 -> Worship)","Updated some calculations with farming bonuses","Added the missing data for the last tower defence totem in worship page","Updated infinite stars logic to only apply bonuses that are unlocked"],fixes:["Fixed missing images","Fixed sneaking floor to start from 1 instead of 0","Fixed a bug where the last hatchet didn't appear in dashboard alerts"]},{ver:"3.2.49",gameVer:"2.0.1",date:"24/02/2024",features:["Updated the website with version 2.0.1 data and assets"],fixes:[]},{ver:"3.2.48",gameVer:"2",date:"23/02/2024",features:["Initial support for sneaking skill page including inventory, jade emporium, ninja upgrades and charms","Added missing monster images","Added w6 to quests page"],fixes:["Fixed a bug with territory tab in breeding page"]},{ver:"3.2.47",gameVer:"2",date:"18/02/2024",features:["Initial support for version 2.0 (world 6) with data and assets"],fixes:[]},{ver:"3.2.46",gameVer:"1.92",date:"24/01/2024",features:['Added talents "Added levels" value and breakdown to talents under characters page',"Added dashboard alerts for using the wrong card set while fighting / skilling"],fixes:["Fixed refinery calculation (was missing arcade shop bonus)","Fixed bubbles page to be grid aligned","Build cost filter in Account -> Buildings page now shows the correct order"]},{ver:"3.2.45",gameVer:"1.92",date:"26/01/2024",features:["Added Character tab to leaderboards page with the following leaderboards: Drop rate, Defence, Accuracy, Hp, Mp","Added Log Book and Total Shiny Levels leaderboards to General Tab","Bubbles page now show all bubbles on the same page as 4 columns similar to how they are displayed in-game (old bubbles page also exists)","Added collect rate for critter quantity and exp","Added the ability to see the totals of collected exp and traps ","Added a display for liquids cauldron's Cap and Rate on cauldrons page","Gilded stamp bonus can now be switched on/off on both new and old stamps page","Added an indication for unobtainable stamps on the stamp page (you can see this by hovering the stamp)","Added a tiny progress bar below statues and shrines","Added a breakdown tooltip to the library in dashboard page.\n"],fixes:["Fixed a bug on divinity page where bits weren't showing correctly","Removed weird items from items list on tools pages (NULL, BLANK)"]},{ver:"3.2.44",gameVer:"1.92",date:"23/01/2024",features:["Added the old stamps page","Added missing calculation for traps critters and exp","Added the ability to edit materials on the material tracker page","Added the note from material tracker to the dashboard alert regarding material tracker items"],fixes:["Grammar"]},{ver:"3.2.43",gameVer:"1.92",date:"20/01/2024",features:["Added distance and minimum travel time distance (+ breakdown) to the boats page","Added superbit costs to the superbits page"],fixes:["Fixed a bug with food lust not updating data is updated on meals page"]},{ver:"3.2.42",gameVer:"1.92",date:"19/01/2024",features:["Added loot and speed breakpoints to boats page","Added an indication for items that are acquired from dungeons (in material tracker, slab page, etc..)","Added breakdown to capacity bags under characters page (filter bags and hover over the bag to see it)","Added color to the missing ingredient in stamps page"],fixes:["Fixed a bug with dashboard resetting to default","Fixed a bug with charge rate calculation","Fixed a bug where 0 money wouldn't display anything"]},{ver:"3.2.41",gameVer:"1.92",date:"13/01/2024",features:["Added afk gains description for cooking"],fixes:["Fixed afk gains for fighting"]},{ver:"3.2.40",gameVer:"1.92",date:"12/01/2024",features:["Updated stamps page (might be a bit buggy)","Updated the Active Exp Calculator to be able to calculate a selected level","Added an alert for maximum capacity for sailing chests to the dashboard","Added missing items to material tracker","Added enemies to the Territories tab","Added distinction between the various types of Exp in the quests page"],fixes:["Fixed alerts for refinery salts","Fixed card search stars calculations"]},{ver:"3.2.39",gameVer:"1.92",date:"06/01/2024",features:["Added an option to material tracker in dashboard settings to apply threshold either from above or below","Added an option to the character dashboard settings to always see talents regardless of their cooldown","Added an estimated trash per day to the islands page","Added the following leaderboards: Bit, Total Cards, Total Vials, Colosseum and Minigames, Fractal hours, Dungeon credits and Flurbos, Afk time","Made RNG items display in dungeons page more concise"],fixes:["Fixed a bug with displaying crystal countdown progress while skill isn't specced","Fixed weekly bosses dashboard alert not disappearing when unchecked","Grammar :)"]},{ver:"3.2.38",gameVer:"1.92",date:"04/01/2024",features:["Added an option to search a player in the leaderboards","Added card set information on the cards page","Added eggs alert to the dashboard","Added an option to copy weekly bosses data to clipboard","Added penpals highscore to Account -> General page",'Updated the website\'s tab title in the browser to show the page name first (e.g. "Dungeons | Idleon Toolbox")'],fixes:["Fixed a bug in calculating foraging speed in breeding page","Fixed a visual bugs in gaming page","Fixed the issue with crushing pages (hopefully)"]},{ver:"3.2.37",gameVer:"1.92",date:"30/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/breeding",children:"Territory"})," tab to the breeding page"]}),"Added a toggle to Pets tabs in breeding page to group pets by worlds / stats","Added an option to see the whole raw json data in the data page"],fixes:["Fixed log book","Fixed a bug in guaranteed drop calculator page","Fixed drop rate calculations",'Fixed consistency of "Maxed" display across the site (and grammar :))']},{ver:"3.2.36",gameVer:"1.92",date:"29/12/2023",features:[(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/weekly-bosses",children:"weekly bosses"})," page is now much more detailed"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/guaranteed-drop-calculator",children:"guaranteed drop calculator"})," page"]}),"Added log book to gaming page","Added condense view to bubbles page"],fixes:[]},{ver:"3.2.35",gameVer:"1.92",date:"26/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/weekly-bosses",children:"weekly bosses"})," page and added them to the dashboard as well"]})],fixes:[]},{ver:"3.2.34",gameVer:"1.92",date:"24/12/2023",features:["Added condensed view for the stamps page","Added an alert for when a character has unspent anvil points"],fixes:[]},{ver:"3.2.33",gameVer:"1.92",date:"24/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/leaderboards",children:"leaderboards"})," page"]}),"To participate in the leaderboards, please upload your profile with leaderboard consent."],fixes:["Fixed small bug with player bubbles"]},{ver:"3.2.32",gameVer:"1.92",date:"22/12/2023",features:["Added unselected dungeon trait alert to the dashboard","Added an alert to notify when a character equips 'Blunder hill' and is at a level greater than 50."],fixes:["Fixed texts across to site to be more consistent"]},{ver:"3.2.31",gameVer:"1.92",date:"21/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Enhanced the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/dungeons",children:"dungeons"})," page - added rng items and stat boosts"]}),(0,d.jsxs)(r.Z,{children:["Added group by option to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/storage",children:"storage"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added exp per trap + total exp per character to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"traps"})," page"]})],fixes:["Fixed a bug in cooking page where recipe kitchens were calculated as cooking meals"]},{ver:"3.2.30",gameVer:"1.92",date:"20/12/2023",features:["Added the option to select multiple items to the material tracker page","Added a material tracker alert to the dashboard under Etc -> Material tracker (in case you don't see the error, clear the dashboard config in data page)"],fixes:['Fixed a bug with dashboard characters\' afk time not showing "Active" when it should']},{ver:"3.2.29",gameVer:"1.92",date:"19/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/material-tracker",children:"material tracker"})," page - Add a material, set your own threshold and keep track of your inventory."]})],fixes:[]},{ver:"3.2.28",gameVer:"1.92",date:"16/12/2023",features:["Added mutation tab to Gaming page including DNA and mutation cost","Added refinery speed breakdown to refinery page","Added the ability to see all challenges in Equinox page","Added killroy and weekly boss (daily) alerts to dashboard"],fixes:["Fixed some calculations in stamps page"]},{ver:"3.2.27",gameVer:"1.92",date:"12/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added the ability to upload and share your profile under ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"data"})," page"]}),"Removed pastebin support"],fixes:["Fixed the calculation of jewel and chips rotations"]},{ver:"3.2.26",gameVer:"1.92",date:"06/12/2023",features:["Account -> Guild page now support tracking of 3 days (let me know if the behavior is not as expected)","Characters -> Talents now showing all skills' level and max level","Added sigil speed to sigils page","Account -> Stamps show the chance for a gilded stamp"],fixes:["Fixed the calculation of jewel and chips rotations"]},{ver:"3.2.25",gameVer:"1.92",date:"30/11/2023",features:["Added cost calculations to divinity page","Added the ability to see zow/chow for all characters with a filter","In character page, added the ability to hide all maxed post office boxes","In character page, added a Chips filter"],fixes:[]},{ver:"3.2.25",gameVer:"1.92",date:"28/11/2023",features:["Added more information to shrines tooltip (affecting characters, exp/hr)"],fixes:[]},{ver:"3.2.25",gameVer:"1.92",date:"23/11/2023",features:['Added an option to optimize the construction board by "Player xp rate" - this is highly experimental and might not work as expected so use at your own risk',"Added cog stat calculator to construction page",'Added "Plants picked" stat to the totals list in general page'],fixes:["Fixed a bug with construction exp calculations","Fixed class icons on active exp calc"]},{ver:"3.2.24",gameVer:"1.92",date:"13/11/2023",features:["Added a checkbox to show/hide the cost of the next level of salts in refinery page"],fixes:["Fixed a bug with worship alerts for individual characters","Fixed sprouts growth speed calculation","Fixed stamp reducer tooltip display"]},{ver:"3.2.23",gameVer:"1.92",date:"11/11/2023",features:["Added the ability to set a threshold for stamp reducer in dashboard alert","Added BobJoePickle to the World 2 shop options for the daily purchases","Added a feature to indicate the printer sample rate exceeding 90%.","Added the ability to highlight bubbles that are above the configured efficiency threshold in the bubbles page","Added more information to the Gaming -> General page, including: # of envelopes, snail level, encouragement, success and reset rates and more","Added tasks and merits pages under the account page + dashboard alerts for tasks","Added cost to next level and cost to max for atoms in atom collider page","Added a timer for counting down until the forge is emptied.","Added a display for the material cost of the next rank of all salts","Added gem shop page under account page with some priority options","Added more collapsable sections to the account page to make the navigation bar more concise"],fixes:["Fixed a bug where optimizing construction board was taking locked slots into account","Fixed a bug with the atom collider atoms max level","Fixed some bugs that popped up from the latest update"]},{ver:"3.2.22",gameVer:"1.92",date:"08/11/2023",features:["Added a prototype for optimizing construction board (under construction tab) - use at your own risk :)"],fixes:[]},{ver:"3.2.22",gameVer:"1.92",date:"06/11/2023",features:["Added totems tab in the worship page to calculate Exp and Souls from each totem"],fixes:[]},{ver:"3.2.21",gameVer:"1.92",date:"03/11/2023",features:[],fixes:["Fixed construction calculations"]},{ver:"3.2.20",gameVer:"1.92",date:"29/10/2023",features:['Added a tooltip to the dungeon page "Next happy hour" to show the actual date and time',"Added breeding multipliers and chance for breeding page"],fixes:["Fixed a bug where shrines placed on World 1 town weren't showing up on the website","Fixed drop rate formula","Fixed a display bug where star talents were displayed incorrectly.","Fixed sailing speed calculation","Fixed a bug with statue calculating statue bonus for onyx statue"]},{ver:"3.2.19",gameVer:"1.92",date:"25/10/2023",features:[],fixes:["Updated the display of the equipment view in Characters page to represent the actual equipment slots","Fixed a small typing issue with meals sorting","Fixed a bug with calculating 10 Ad Tablet bonus","Added a tooltip to indicate quest status in Quests page"]},{ver:"3.2.18",gameVer:"1.92",date:"24/10/2023",features:["Updated the website with version 1.92 data and assets"],fixes:["Fixed a problem with the max level of equinox","Fixed alerts for equinox"]},{ver:"3.2.17",gameVer:"1.91",date:"20/10/2023",features:["Updated the website with version 1.91 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/equinox",children:"Equinox"})," page under world 3"]})],fixes:[]},{ver:"3.2.16",gameVer:"1.90",date:"04/10/2023",features:["Added an option to export guild data to json format"],fixes:[]},{ver:"3.2.15",gameVer:"1.90",date:"02/10/2023",features:["Added an option to view rank 1 skills for across all characters","Hiding ranks for sailing and gaming"],fixes:[]},{ver:"3.2.14",gameVer:"1.90",date:"16/09/2023",features:[],fixes:["Updated the website with version 1.90 data and assets"]},{ver:"3.2.13",gameVer:"1.89",date:"14/09/2023",features:[],fixes:["Fixed logic for calculating buildings max level"]},{ver:"3.2.12",gameVer:"1.89",date:"10/09/2023",features:[],fixes:["Fixed calculation for meal speed from super chows"]},{ver:"3.2.11",gameVer:"1.89",date:"26/08/2023",features:[],fixes:["Added missing npcs to quests page","Fixed a bug with statue calculations"]},{ver:"3.2.10",gameVer:"1.89",date:"23/08/2023",features:[],fixes:["Fixed zow and chow logic"]},{ver:"3.2.9",gameVer:"1.89",date:"22/08/2023",features:["Updated the website with latest version's data and assets","Added world 4 new npcs","Added onyx display and calculations"],fixes:[]},{ver:"3.2.8",gameVer:"1.89",date:"09/08/2023",features:["Updated the website with version 1.89 data and assets"],fixes:[]},{ver:"3.2.7",gameVer:"1.88",date:"09/08/2023",features:["Added a timer for atom collider upgrades"],fixes:["Fixed a bug with captain comparison in dashboard"]},{ver:"3.2.6",gameVer:"1.88",date:"09/08/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/islands",children:"Islands"})," page under world 2"]}),"Added total stats line to the stats filter under character page"],fixes:["Added (the missing) Omar Da Ogar npc to quests page"]},{ver:"3.2.5",gameVer:"1.88",date:"04/08/2023",features:["Updated the website with version 1.88 data and assets"],fixes:[]},{ver:"3.2.4",gameVer:"1.87",date:"04/08/2023",features:["Added Blood Berserker and Beast Master builds"],fixes:["Better performance for guilds leaderboard","Fixed minor god bonus","Fixed equipped bubble calculation","Fixed calculation for afk gains formula","Fixed captain comparison logic and enhanced the display for it","Fixed a bug with displaying anvil related dashboard alerts"]},{ver:"3.2.3",gameVer:"1.87",date:"31/07/2023",features:[(0,d.jsxs)(r.Z,{children:["Added 2 guild related pages, ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/guild",children:"Guild"})," page and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/guilds",children:"Guilds"})," page"]})],fixes:["Fixed a bug with lab line width calculations","Fixed a bug with personal guild gp calculations","Fixed a bug with guild bonus calculations","Updated the guild leaderboard to be top 100"]},{ver:"3.2.2",gameVer:"1.87",date:"20/07/2023",features:["Added data and assets from version 1.87"],fixes:[]},{ver:"3.2.1",gameVer:"1.86",date:"14/07/2023",features:[(0,d.jsxs)(r.Z,{children:["Added chips and jewels rotations to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/laboratory",children:"Laboratory"})," page with the ability to filter specific jewels / chips "]}),"Added submitted builds for Blood berserker, Elemental Sorcerer and Bubonic Conjuror","Added the ability to select only one character to display in characters page","Added charge syphon timer to the dashboard ","Added meals breakpoint for level 40, 50 and 60"],fixes:["Fixed a bug with sorting buildings by time","Fixed a bug with wrong icon displayed in breeding page"]},{ver:"3.2.0",gameVer:"1.86",date:"01/07/2023",features:["Added data and assets from version 1.86","Updated design for Buildings page","Added world 4 and world 5 bosses keys to Account -> General page","Updated logic and design for upgradable bubbles from NLBL by lithium atom"],fixes:["Fixed a bug with trimmed slot","Fixed kitchen speed notation","Fixed a bug with lab and printer caused by doot doot","Fixed display for respawn time at Characters -> Stats","Fixed a display bug for very high damage numbers","Fixed an overflow bug with money values"]},{ver:"3.1.99",gameVer:"1.84",date:"19/06/2023",features:["Added total production per hour to the anvil page"],fixes:[]},{ver:"3.1.98",gameVer:"1.84",date:"18/06/2023",features:["Added 1.84 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/companions",children:"Companions"})," page"]})],fixes:[]},{ver:"3.1.97",gameVer:"1.83",date:"17/06/2023",features:[],fixes:["Fixed a bug with apple login"]},{ver:"3.1.97",gameVer:"1.83",date:"16/06/2023",features:["Added Total daily charge, charge with syphon and time to full display for worship page"],fixes:["Fixed a bug with stamp calculations","Fixed worship max charge and rate calculations"]},{ver:"3.1.96",gameVer:"1.83",date:"15/06/2023",features:["Updated the login flow of the website \uD83C\uDF89",(0,d.jsxs)(r.Z,{component:"span",children:[(0,d.jsx)(r.Z,{component:"span",sx:{fontWeight:"bold"},children:"Deprecated"})," the ability to paste data into the website (steam data extractor is no longer supported, please use one of the other 3 login methods [Email, Google, Apple])"]})],fixes:["Fixed a bug with max liquid calculation"]},{ver:"3.1.95",gameVer:"1.83",date:"13/06/2023",features:["Updated design for the homepage \uD83C\uDF89 \uD83C\uDF8A \uD83C\uDF89",(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(r.Z,{sx:{fontWeight:"bold"},component:"span",children:"*Experimental*"})," Added more stats to Stats filter under ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/characters",children:"Characters"})," page e.g crit chance and damage, kills per hour (works better when you have 100% survivability), defence [* MIGHT BE VERY INACCURATE]"]}),"Updated some components design in hope for better readability",(0,d.jsxs)(r.Z,{children:["Moved the utility buttons to a separate ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"Data"})," page"]}),(0,d.jsxs)(r.Z,{children:["Updated the structure of dashboard alerts (if you're encountering any issue try to clean localStorage from the new ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"Data"})," page)"]})],fixes:["Now displaying the correct effect for all stamps on the stamps page","Fixed an issue with 0 star cards","Fixed a bug with bags capacity","Bugs created on this release \uD83D\uDE05"]},{ver:"3.1.94",gameVer:"1.83",date:"09/06/2023",features:['Added "Subtract green stacks" to stamps page'],fixes:["Fixed printer calculation and breakdown"]},{ver:"3.1.93",gameVer:"1.83",date:"07/06/2023",features:["Added a God Planner to the tools section"],fixes:["Fixed a bug with bits display in gaming page","Fixed a bug with shinies alert in dashboard"]},{ver:"3.1.92",gameVer:"1.83",date:"06/06/2023",features:["Added a timer for construction buildings to Buildings page and a timer on dashboard for closest building to finish","Added a checkbox to filter by time to build in Buildings page"],fixes:["Fixed issues with login in iPhone"]},{ver:"3.1.92",gameVer:"1.83",date:"06/06/2023",features:["Added an overview of islands/captains to Boats And Captains tab in Sailing page","Added detailed information about statues in account page"],fixes:[]},{ver:"3.1.91",gameVer:"1.83",date:"03/06/2023",features:["Added data and assets from version 1.83"],fixes:[]},{ver:"3.1.90",gameVer:"1.82",date:"01/06/2023",features:["Added Void Trial Rerun, Arena Spirit, Taste Test to dashboard alerts","Added few submitted builds","Updated the view for refinery page (hopefully for the better) and now accounting for printed items from Printer"],fixes:["Fixed atom particles display","Fixed bubble calculations"]},{ver:"3.1.89",gameVer:"1.82",date:"31/05/2023",features:["Added Damage, Hp, Mp, Accuracy, Movement Speed info to Characters -> Stats filter (Might be inaccurate :) )","Added Construction calculations for Build rate, Player XP boost and flaggy rate","Added missing pet images in Breeding","Added happy hour timer to dashboard","Added an alert for finished flags on construction","Added a display of all fence pets in breeding page"],fixes:["Fixed postoffice, statues calculations","Possible fix for dashboard throwing exception randomly when update filters"]},{ver:"3.1.88",gameVer:"1.82",date:"27/05/2023",features:["Added dungeon items to item planner","Added inventory display in Characters page -> Inventory filter"],fixes:["Fixed a bug in item browser"]},{ver:"3.1.87",gameVer:"1.82",date:"26/05/2023",features:["Added shiny level alert to the dashboard","Added Random Event (when you haven't done an event) alert to the dashboard","Added capacity check for stamps upgrade, hovering the required item will show the recommended character with max capacity","Added capacity information to Characters page -> Bags filter (tooltip)"],fixes:["Fixed a display bug showing the wrong effect at the overflowing ladle tooltip","Fixed a bug with 6 cards not showing even when bonus is unlocked"]},{ver:"3.1.86",gameVer:"1.82",date:"25/05/2023",features:['Added a "Closest trap" timer to dashboard view','Added a "Next printer cycle" timer to dashboard view'],fixes:["Fixed cooking speed calc","Fixed shinies time calculations"]},{ver:"3.1.85",gameVer:"1.82",date:"24/05/2023",features:["Added concise character information to dashboard "],fixes:["Some small fixes all over the place :D"]},{ver:"3.1.84",gameVer:"1.82",date:"23/05/2023",features:["Added Import / Export to item planner (importing will override all of your sections)","Added afk gains breakdown (to help debug issues :D)","Added total kitchens speed to cooking page -> kitchens tab","Towers pages renamed to Buildings page"],fixes:["Fixed atom calculations in Printer page","Fixed max levels for all buildings"]},{ver:"3.1.83",gameVer:"1.82",date:"22/05/2023",features:["Added Afk Gains value under Characters page -> Stats filter (Might be inaccurate, let me know)"],fixes:["WIP: Anvil details under characters page is still kind of broken","Fixed logic for starsigns","Fixed a bug with added levels to talents","Fixed ccd calculations","Fixed cash multi calculations","Fixed printer sample calculations","Fixed a bug with displaying shovel at the dashboard","Fixed a bug with atom calculations"]},{ver:"3.1.82",gameVer:"1.82",date:"20/05/2023",features:["Added data and assets from version 1.82",(0,d.jsxs)(r.Z,{children:["Added Random Events predictor to dashboard and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/random-events",children:"Random Events"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added Sailing Trades predictor to dashboard and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page to Trades tab"]}),"Added cooking speed bonus by voidwalker enhancement","Added Statues multi by voidwalker skill (Voodoo Statusification)"],fixes:["Now also check if the printer output is higher than atom threshold (instead of checking storage only)",'Now showing the actual boat speed in "Boats And Captain" tab']},{ver:"3.1.81",gameVer:"1.81",date:"19/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added sailing trades to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page under Trades tab"]})],fixes:["Fixed boat speed calculation (it was missing the SB talent)"]},{ver:"3.1.80",gameVer:"1.81",date:"18/05/2023",features:["Added 'Totals' section to the printer page, showing atoms generated from printer and total items printed in an hour/day/printer go brrr (let me know if it's inaccurate)","Added shops alerts to the dashboard","Updated logic for showing an alert for refinery"],fixes:[]},{ver:"3.1.79",gameVer:"1.81",date:"17/05/2023",features:["Added Respawn Time value and breakdown under Characters page -> Stats filter","Added a threshold input for alchemy in dashboard options (for liquids capacity)"],fixes:["Fixed a bug with sigils not displaying in dashboard"]},{ver:"3.1.78",gameVer:"1.81",date:"16/05/2023",features:["Added countdown timer for sigils"],fixes:["Fixed calculation for atom collider's cost calculation"]},{ver:"3.1.77",gameVer:"1.81",date:"14/05/2023",features:["Added Cash Multi value and breakdown under Characters page -> Stats filter","Added Drop Rate value and breakdown under Characters page -> Stats filter","Added support for No more Praying superbit","Added the correct bonus of golden food in Characters page -> Equipment filter -> Food tab","Added an option for crystal cooldown on dashboard to see non maxed skills"],fixes:["Fixed some calculation with obols stats","Fixed a bug with shrine bonus","Now calculating star signs with Infinite stars bonus"]},{ver:"3.1.76",gameVer:"1.81",date:"11/05/2023",features:[],fixes:["Fixed card progress calculations and added 5th star bonus to card page","Fixed a bug with bubble required material calculation","Fixed a bug with bubble atom cost calculation"]},{ver:"3.1.75",gameVer:"1.81",date:"10/05/2023",features:["Added a dashboard alert for max capacity liquids in alchemy",(0,d.jsxs)(r.Z,{children:["Added liquids progress to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/orld-2/cauldrons",children:"cauldrons"})," page"]}),"Added 0 to 20 (static) timer to library "],fixes:["Fixed Library Checkouts superbit bonus","Fixed shiny pets level up timer"]},{ver:"3.1.74",gameVer:"1.81",date:"09/05/2023",features:["Added timers for egg and shiny levels"],fixes:[]},{ver:"3.1.73",gameVer:"1.81",date:"08/05/2023",features:['Added Boat Speed value and a timer to "Boats and Captains" tab (Sailing page)','Added shop captains to "Boats and Captains" tab (Sailing page)'],fixes:["Fixed meals actual values in Meals and Kitchen tabs","Fixed boat artifact chance","Fixed an issue with statues not showing the correct statue level","Fixed a bug in Skill Mastery with second bonus from Sailing, Gaming and divinity"]},{ver:"3.1.72",gameVer:"1.81",date:"06/05/2023",features:["Enhanced talents and post office dashboard configuration and changed the design a little bit"],fixes:[]},{ver:"3.1.71",gameVer:"1.81",date:"05/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added printer sample rate to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/printer",children:"Printer"})," page"]})],fixes:["Fixed a bug with bonuses from equipment"]},{ver:"3.1.70",gameVer:"1.81",date:"03/05/2023",features:["New Alert in dashboard that will appear when your character can equip a new tier of a tool (pickaxe, hatchet, etc)"],fixes:[]},{ver:"3.1.69",gameVer:"1.81",date:"01/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added superbit information to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/gaming",children:"Gaming"})," page"]}),"Added colored bits in gaming page"],fixes:[]},{ver:"3.1.68",gameVer:"1.81",date:"29/04/2023",features:["Added data and assets from version 1.81","Added support for 5* cards",(0,d.jsxs)(r.Z,{children:["Added Construct Mastery to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/rift",children:"Rift"})," page (if you've unlocked it)"]}),"Applied construct bonuses to Refinery page","Applied superbit bonus to cooking","Applied library bonus from superbit","Work in progress: superbits upgrades and their effect on everything"],fixes:["Fixed a bug with library causing the app to crash"]},{ver:"3.1.67",gameVer:"1.80b",date:"28/04/2023",features:["Added an option to see production alert 1 hour before its being full","Added threshold levels indication for skill mastery"],fixes:["More accurate bargain tag check for dashboard","Ready talents are now showing only when they are available for the character","Fixed a bug with gilded stamp","Library is only showing when world 3 is unlocked (dashboard)"]},{ver:"3.1.66",gameVer:"1.80b",date:"23/04/2023",features:[],fixes:["Alerts are now only showing if you've unlocked the relevant world!",(0,d.jsxs)(r.Z,{children:["Added indication for infinite stars on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/constellations",children:"Constellations"})," page - star sign tab"]}),"Added shiny bonuses to Refinery and Meals","Updated alerts logic"]},{ver:"3.1.65",gameVer:"1.80b",date:"22/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/rift",children:"Rift"})," page including Tasks, Bonuses and Skill Mastery page"]}),(0,d.jsxs)(r.Z,{children:["Added Pets tab to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/breeding",children:"Breeding"})," page to display information about pets including shiny level, passive and gene information"]}),"Applied rift Vial Mastery bonus to all vials","Applied rift Skill Mastery bonus to the Printer","Added eldritch artifacts support"],fixes:[]},{ver:"3.1.63",gameVer:"1.80",date:"20/04/2023",features:["Fixed Apple login"],fixes:[]},{ver:"3.1.62",gameVer:"1.80",date:"19/04/2023",features:["Added support for Apple login","Added data and assets from version 1.80"],fixes:[]},{ver:"3.1.61",gameVer:"1.79",date:"18/04/2023",features:[],fixes:["Fixed a bug with gaming alerts","Fixed a bug with refinery"]},{ver:"3.1.60",gameVer:"1.79",date:"15/04/2023",features:[],fixes:["Fixed a bug with Crystal Countdown calculation"]},{ver:"3.1.59",gameVer:"1.79",date:"14/04/2023",features:[],fixes:["Added missing rank up alert for salts in refinery"]},{ver:"3.1.58",gameVer:"1.79",date:"10/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Added the ability to create custom builds in ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/builds",children:"Builds"})," page"]})],fixes:["Fixed item planner bug","Fixed a bug with calculating additional talent levels for Elemental Sorcerer (again)"]},{ver:"3.1.57",gameVer:"1.79",date:"09/04/2023",features:["Added Defence tag to Card Search"],fixes:["Fixed material calculations for bubbles","Fixed a bug with calculating additional talent levels for Elemental Sorcerer"]},{ver:"3.1.57",gameVer:"1.79",date:"05/04/2023",features:["Added particle cost for bubbles (displayed when required material is higher than 100M)","Added indication of how many particle upgrade left to bubble page","Added Giant Mob Spawn Chance card to the dashboard (near library timer)"],fixes:["Fixed a bug on Item Planner when selecting 'Show Missing Items'","Updated required material for bubble to be capped at 1000M (1B)"]},{ver:"3.1.56",gameVer:"1.79",date:"04/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Updated some logic and display for ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/slab",children:"Slab"})," page"]})],fixes:["Fixed a bug with guild data when importing from steam-extractor"]},{ver:"3.1.55",gameVer:"1.79",date:"03/04/2023",features:["Added an ability to search by description in Item Browser","Added guild tasks alert to dashboard","Added crystal cooldown alert to dashboard (when reaching max reduction)","Added extra bubbles to 'No Bubble Left Behind' from W4 merit shop",(0,d.jsxs)(r.Z,{children:["Updated logic for ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/item-planner",children:"Item Planner"})," page!"]}),"Added names to sections and made them collapsable","Enabled Item Planner and Item Browser to logged out users as well"],fixes:["Fix bug with max traps in dashboard","Fixed a bug with 'Show Missing Item' in Item Planner"]},{ver:"3.1.54",gameVer:"1.79",date:"01/04/2023",features:["Added data and assets from version 1.79"],fixes:[]},{ver:"3.1.53",gameVer:"1.78c",date:"28/03/2023",features:[],fixes:["Fixed a bug where Traps option in also turned off Obols option in dashboard setting","Updated logic for max traps with CALL ME ASH bubble now working globally"]},{ver:"3.1.52",gameVer:"1.78c",date:"28/03/2023",features:["Added gaming dashboard alerts (Max sprouts and sprinkler drops, squirrel and shovel alerts if you haven't clicked for over an hour)","Added sprouts and sprinkler drops indication to gaming page"],fixes:[]},{ver:"3.1.51",gameVer:"1.78c",date:"27/03/2023",features:["Added data and assets from version 1.78c","Added indication for stamps that you can upgrade based on your stored materials and money"],fixes:[]},{ver:"3.1.50",gameVer:"1.78.0",date:"25/03/2023",features:["Added data and assets from version 1.78","Added 'Sort By' filter for meals (for next level ,lv. 11 and lv. 30)"],fixes:["Fixed the email and password login flow (didn't notice it wasn't working correctly)"]},{ver:"3.1.49",gameVer:"1.77.0",date:"24/03/2023",features:["Added 'Sort By' filter for meals (for next level ,lv. 11 and lv. 30)"],fixes:["Fixed library speed calculation"]},{ver:"3.1.48",gameVer:"1.77.0",date:"22/03/2023",features:["Added library timer to dashboard"],fixes:["Updated logic for post office dashboard notification (doesn't show up when maxed all boxes)"]},{ver:"3.1.47",gameVer:"1.77.0",date:"21/03/2023",features:[(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/dashboard",children:"Dashboard"})," page!"]}),(0,d.jsxs)(r.Z,{children:["Added a tooltip for boss keys + colo tickets on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/general",children:"General"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added Stamp Reducer indication on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/atom-collider",children:"Atom Collider"})," page"]}),"Added Subtract Green Stacks option for vials in dashboard (this will subtract 10M from your current amount to make sure you will still have green stack after upgrading)","Added a tooltip for exact quantity for items in storage"],fixes:["Fixed wizard towers max level (from atom collider)","Some bug fixes for low level accounts","Added missing W5 catching and chopping targets (ops)","Fixed a bug on Vials page"]},{ver:"3.1.46",gameVer:"1.77.0",date:"18/03/2023",features:[],fixes:["Update looty (hopefully it is more accurate)","Update W5 quest header (visual update)",'Updated atoms description with the correct "Total Bonus"','Fixed cooking speed to account for "Fluoride - Void Plate Chef" atom']},{ver:"3.1.45",gameVer:"1.77.0",date:"17/03/2023",features:[],fixes:["Added Elemental Sorcerer family bonus to talent levels"]},{ver:"3.1.44",gameVer:"1.77.0",date:"15/03/2023",features:["Added extra printer slots","Added calculation for 'Polytheism' talent of Elemental Sorcerer"],fixes:[]},{ver:"3.1.43",gameVer:"1.77.0",date:"04/03/2023",features:["Updated the website with 1.77.0 data and assets"],fixes:[]},{ver:"3.1.42",gameVer:"1.76.0",date:"24/02/2023",features:["Updated the website with 1.76.0 data and assets","Added new constellations"],fixes:["Carry bags order"]},{ver:"3.1.41",gameVer:"1.75.1",date:"10/02/2023",features:["Added materials per hour for refinery page"],fixes:[]},{ver:"3.1.40",gameVer:"1.75.1",date:"10/02/2023",features:["Updated the website with 1.75.1 data and assets"],fixes:[]},{ver:"3.1.39",gameVer:"1.75",date:"10/02/2023",features:["Updated the website with 1.75 data and assets"],fixes:[]},{ver:"3.1.38",gameVer:"1.74",date:"09/02/2023",features:[],fixes:["minor issue with captain exp requirement"]},{ver:"3.1.37",gameVer:"1.74",date:"31/01/2023",features:["Update the website with 1.74 data and assets",'Added "King of the remembrance" calculation to printer'],fixes:["Shrine bonus is now calculated correctly (hopefully)","Added extra levels from symbol talents and bear god","Fixed family bonuses to account for The Family Guy talent"]},{ver:"3.1.36",gameVer:"1.73",date:"23/01/2023",features:[],fixes:["Fixed atom collider bug when freshly opened"]},{ver:"3.1.35",gameVer:"1.73",date:"11/01/2023",features:["Added images and data from version 1.73"],fixes:["Fixed sigil bonuses"]},{ver:"3.1.34",gameVer:"1.72",date:"11/01/2023",features:["Added images and data from version 1.72",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/atom-collider",children:"Atom Collider"})," page"]})],fixes:[]},{ver:"3.1.33",gameVer:"1.71",date:"06/01/2023",features:["Added library checkouts counter with breakpoints for 16, 18, 20 on Account -> General page (let me know if the timers are off)","Added percentage completed of the boat trip to the island"],fixes:[]},{ver:"3.1.32",gameVer:"1.71",date:"31/12/2022",features:[],fixes:["Fixed a bug where accounts without world 5 data would crash"]},{ver:"3.1.31",gameVer:"1.71",date:"30/12/2022",features:["Added max possible nugget roll possible","Added the required resources for a boat upgrade"],fixes:["Fixed a bug with islands names in sailing"]},{ver:"3.1.30",gameVer:"1.71",date:"29/12/2022",features:["Added chests, boats and captains display","Added crystal chance breakdown","Added divinity style to the activity filter when character is afk in divinity"],fixes:["Added indication for lab by linking Goharut as a god"]},{ver:"3.1.29",gameVer:"1.71",date:"28/12/2022",features:["Added timer for acorns in gaming page"],fixes:["Fixed gaming upgrades bonus and cost"]},{ver:"3.1.28",gameVer:"1.71",date:"27/12/2022",features:["Added a timer for dirty shovel (+ nuggets break points)","Applied most artifacts bonuses all over the website","Added tooltip over printer items showing the boosted value from lab,artifacts,gods","Divinity - now correctly showing unlocked gods"],fixes:["Sigils not calculated with artifacts bonus"]},{ver:"3.1.27",gameVer:"1.70",date:"26/12/2022",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/divinity",children:"Divinity"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/gaming",children:"Gaming"})," page"]})],fixes:["Added refinery speed stamp to refinery calculations","Fixed minor bug with un-acquired stamps"]},{ver:"3.1.26",gameVer:"1.70",date:"23/12/2022",features:[],fixes:["Added missing meals (from world 5)","Added basic logic for deities to activate lab"]},{ver:"3.1.25",gameVer:"1.70",date:"22/12/2022",features:[],fixes:["Added world 5 quests npc","Added world 5 vials","Added world 5 cards","Added world 5 death note","Added world 5 bubbles"]},{ver:"3.1.24",gameVer:"1.70",date:"20/12/2022",features:[],fixes:["Fixed small calculation error in max worship"]},{ver:"3.1.23",gameVer:"1.70",date:"19/12/2022",features:["Added data and assets for world 5!"],fixes:['Fixed timer in "Stats" filter to count up instead of down (please let me know if there are any issue with timers)']},{ver:"3.1.22",gameVer:"1.60",date:"21/11/2022",features:[],fixes:["Fixed small calculation error in cooking page","Added missing Demon Genie icon","Added exp per hour to exp calculator"]},{ver:"3.1.21",gameVer:"1.60",date:"11/10/2022",features:[],fixes:["Fixed total mat printed fixed"]},{ver:"3.1.20",gameVer:"1.60",date:"09/10/2022",features:["Added boop to zow/chow view","Added total material printed to Account -> General"],fixes:[]},{ver:"3.1.19",gameVer:"1.60",date:"15/09/2022",features:["Added additional information to anvil, worship and trap pages"],fixes:[]},{ver:"3.1.18",gameVer:"1.60",date:"09/08/2022",features:["Added an option to hide capped meals","Added progress indicator for cards","Cards you haven't found will appear with low opacity"],fixes:[]},{ver:"3.1.17",gameVer:"1.60",date:"30/07/2022",features:[],fixes:["Fixed AFK time in stats","Fixed obols ordering"]},{ver:"3.1.16",gameVer:"1.60",date:"12/07/2022",features:["Updated data to patch 1.60"],fixes:[]},{ver:"3.1.15",gameVer:"1.59",date:"08/07/2022",features:["Added number of ladles needed for level up in meals page"],fixes:["Fixed meal speed calculations","Fixed overflowing ladle calculations"]},{ver:"3.1.14",gameVer:"1.59",date:"08/07/2022",features:[(0,d.jsxs)(r.Z,{children:["Added total critters calculations to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"Traps"})," page"]})],fixes:[]},{ver:"3.1.13",gameVer:"1.59",date:"08/07/2022",features:["Added an option to login with email and password (I'm still not saving anything anywhere so don't worry)"],fixes:["Fixed a bug in traps page caused when there's no trap box equipped"]},{ver:"3.1.12",gameVer:"1.59",date:"05/07/2022",features:[(0,d.jsxs)(r.Z,{children:["Added sections to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/item-planner",children:"item planner"})," page that allows you to track several items separately"]}),"Updated the website data with 1.59 patch"],fixes:[]},{ver:"3.1.11",gameVer:"1.58",date:"02/07/2022",features:[],fixes:["Cogstruction: fix for empties cog array"]},{ver:"3.1.10",gameVer:"1.58",date:"28/06/2022",features:[(0,d.jsxs)(r.Z,{children:["Added trap type, quantity and exp (by hovering the trap) to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"Traps"})," page"]})],fixes:[]},{ver:"3.1.8",gameVer:"1.58",date:"14/06/2022",features:["Added meal speed contribution view"],fixes:[]},{ver:"3.1.7",gameVer:"1.58",date:"01/06/2022",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/cauldrons",children:"Cauldrons"})," page to view all cauldrons and cauldrons upgrades from p2w tab"]})],fixes:[]},{ver:"3.1.6",gameVer:"1.58",date:"30/05/2022",features:["Updated to version 1.58"],fixes:[]},{ver:"3.1.5",gameVer:"1.57",date:"26/05/2022",features:[(0,d.jsxs)(r.Z,{children:["Added builds from idleon companion under Tools and can be accessed like this ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/builds?b=barbarian&c=1",children:"https://idleontoolbox.com/tools/builds?b=barbarian&c=1"})," (The new classes are still missing builds, let me know if you want to add some)"]}),(0,d.jsxs)(r.Z,{children:["Added forge upgrades tab to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-1/forge",children:"Forge"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added claims counter for spices under to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/cooking",children:"Cooking"})," page"]})],fixes:[]},{ver:"3.1.4",gameVer:"1.57",date:"26/05/2022",features:["Added coin cost to max calculation for anvil","Small refinery visual bug fix"],fixes:[]},{ver:"3.1.3",gameVer:"1.57",date:"24/05/2022",features:["Added an option to apply Overflowing ladle (Blood Berserker talent) to meals"],fixes:[]},{ver:"3.1.2",gameVer:"1.57",date:"24/05/2022",features:["Apocalypses page under Account tab"],fixes:[]},{ver:"3.1.1",gameVer:"1.57",date:"24/05/2022",features:[],fixes:["Hopefully fixed lab calculations"]},{ver:"3.1.0",gameVer:"1.57",date:"23/05/2022",features:["Updated all data to version 1.57","(Things might still be inaccurate, I'm still updating the formulas to account for all the new stuff)",'Added a light version of a "Public Profile" using pastebin to import your data, instructions can be found on the button above (let me know if you experience any kind of problems in any type of connection)'],fixes:[]},{ver:"3.0.10",gameVer:"1.56.1",date:"22/05/2022",features:[],fixes:["Fixed a bug with dungeons happy hour timer counting up","Fixed a bug with cogstruction data export"]},{ver:"3.0.9",gameVer:"1.56.1",date:"21/05/2022",features:[],fixes:["Fixed sorting meals logic","Fixed meals cost calculations"]},{ver:"3.0.8",gameVer:"1.56.1",date:"21/05/2022",features:["Added towers page under Account -> World 3"],fixes:[]},{ver:"3.0.7",gameVer:"1.56.1",date:"20/05/2022",features:["(Re-)Added the item browser which lets you find an item anywhere in your account"],fixes:[]},{ver:"3.0.6",gameVer:"1.56.1",date:"20/05/2022",features:["Added 'chance not to consume food' percentage in 'Stats' filter"],fixes:[]},{ver:"3.0.5",gameVer:"1.56.1",date:"19/05/2022",features:[],fixes:["Added doubling bonus chips to the calculations of cards and star signs","Fixed a small bug with displaying cards"]},{ver:"3.0.4",gameVer:"1.56.1",date:"19/05/2022",features:["Added minigame and library currency to Account -> General","Small visual update for dungeons"],fixes:[]},{ver:"3.0.3",gameVer:"1.56.1",date:"19/05/2022",features:["Quick and dirty storage page"],fixes:[]},{ver:"3.0.2",gameVer:"1.56.1",date:"18/05/2022",features:[],fixes:["Re-added points distribution in anvil details"]},{ver:"3.0.1",gameVer:"1.56.1",date:"18/05/2022",features:[],fixes:["Fixed a visual bug in construction page","Fixed calculation of anvil details"]},{ver:"3.0.0",gameVer:"1.56.1",date:"12/05/2022",features:["Reworked the website - the website is now responsive and can be used in mobile as well!","WIP: builds (from idleon companion)"],fixes:[]}]},35537:function(e,a,t){t.r(a);var d=t(85893),r=t(51233),i=t(67720),s=t(23972),o=t(67358),n=t(38895),l=t(22797),c=t(67294),u=t(87357),h=t(75716),g=t(23663),p=t(96540),f=t(27036),m=t(13486),b=t(70720),x=t(18434);let StyledSection=e=>{let{title:a,list:t,icon:i,topMargin:o=!0}=e;if(!t||0===t.length)return null;let n={add:(0,d.jsx)(p.Z,{sx:{color:m.Z[600]}}),fix:(0,d.jsx)(f.Z,{sx:{color:b.Z[300]}})};return(0,d.jsxs)(u.Z,{sx:{marginTop:o?"20px":0},children:[(0,d.jsxs)(r.Z,{direction:"row",alignItems:"center",gap:1,children:[n[i],(0,d.jsx)(s.Z,{sx:{color:"add"===i?m.Z[500]:b.Z[200]},variant:"h4",children:a})]}),(0,d.jsx)("ul",{style:{marginTop:20},children:t.map((e,t)=>(0,d.jsx)("li",{style:{marginTop:5},children:(0,d.jsx)(s.Z,{variant:"body1",component:"div",children:e})},"".concat(a,"-").concat(t)))})]})};a.default=e=>{var a;let{patchNotes:t}=e,[u,p]=(0,c.useState)(0),f=(0,g.a)();return t?null===(a=t||x.O)||void 0===a?void 0:a.map((e,a)=>(0,d.jsxs)(o.Z,{expanded:u===a,disableGutters:!0,sx:{"&:before":{display:"none"},border:"1px solid ".concat(f.palette.divider),"&:not(:last-child)":{borderBottom:0}},onChange:(e,t)=>p(t?a:null),children:[(0,d.jsxs)(n.Z,{sx:{flexDirection:"row-reverse",gap:2,"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"}},expandIcon:(0,d.jsx)(h.Z,{sx:{fontSize:"0.9rem"}}),children:["v",null==e?void 0:e.ver," - ",null==e?void 0:e.date]}),(0,d.jsx)(l.Z,{sx:{backgroundColor:"rgb(22, 22, 22)",p:3},children:(0,d.jsxs)(r.Z,{gap:3,children:[(0,d.jsx)(StyledSection,{icon:"add",topMargin:!1,title:"Features",list:null==e?void 0:e.features}),(0,d.jsx)(StyledSection,{icon:"fix",topMargin:!1,title:"Fixes",list:null==e?void 0:e.fixes})]})})]},"note"+a)):(0,d.jsx)(r.Z,{divider:(0,d.jsx)(i.Z,{}),gap:3,children:null===x.O||void 0===x.O?void 0:x.O.map((e,a)=>(0,d.jsxs)(r.Z,{gap:1,children:[(0,d.jsxs)(s.Z,{variant:"h3",children:["v",null==e?void 0:e.ver]}),(0,d.jsx)(StyledSection,{icon:"add",topMargin:!1,title:"Features",list:null==e?void 0:e.features}),(0,d.jsx)(StyledSection,{icon:"fix",topMargin:!1,title:"Fixes",list:null==e?void 0:e.fixes})]},"note"+a))})}}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/5537-7f10bc9369dbc78e.js b/_next/static/chunks/5537-7f10bc9369dbc78e.js
new file mode 100644
index 000000000..1ecb4cf95
--- /dev/null
+++ b/_next/static/chunks/5537-7f10bc9369dbc78e.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5537],{18434:function(e,a,t){t.d(a,{O:function(){return s}});var d=t(85893),r=t(23972),i=t(23795);t(67294);let s=[{ver:"3.2.78",gameVer:"2.0.13",date:"14/09/2024",features:["Added killroy's upgrades and moved killroy page to world 2"],fixes:[]},{ver:"3.2.77",gameVer:"2.0.13",date:"04/09/2024",features:["Added green stacks leaderboard under General","Added some more description to the login dialog to hopefully prevent repeated questions","Fixed a bug where meals appeared on a different order.","Fixed calculations for bean trade in farming page"],fixes:[]},{ver:"3.2.76",gameVer:"2.0.13",date:"30/07/2024",features:["Updated the website with version 2.0.13 data and assets","Added vote ballot page"],fixes:[]},{ver:"3.2.75",gameVer:"2.0.12",date:"08/07/2024",features:["Added ranks to farming page"],fixes:[]},{ver:"3.2.74",gameVer:"2.0.11",date:"23/06/2024",features:["Added timers tab to the dashboard configurations - you can now customize your timers view!"],fixes:["Fixed a bug in tome death note and equinox clouds calculations","Fixed a bug in logbooks counters","Fixed a bug in fish per hour calculation"]},{ver:"3.2.73",gameVer:"2.0.11",date:"22/06/2024",features:["Updated the website with version 2.0.11 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/kangaroo",children:"poopy kangaroo"})," page under Account - World 2"]}),"Added 3 kangaroo alerts to the dashboard: shiny % threshold, fisheroo reset, greatest catch"],fixes:[]},{ver:"3.2.72",gameVer:"2.0.10",date:"06/06/2024",features:["Added a threshold filter to the bubbles page",'Added a "unobtainable" filter to the slab page + removed un-obtainable dungeon items',"Added feather restart and mega feather restart timers to the dashboard"],fixes:["Fixed owl alerts","Fixed farming market displayed values"]},{ver:"3.2.72",gameVer:"2.0.10",date:"06/06/2024",features:["Updated the website with version 2.0.10 data and assets","Added owl page under world 1 (bonuses aren't applied across the site yet)"],fixes:[]},{ver:"3.2.71",gameVer:"2.0.9",date:"06/06/2024",features:["Added a dashboard alert for unclaimed jewels / chips (if you have enough resource to buy them)"],fixes:["Fixed the calculation for the jewel and chip rotations","Fixed a bug with calculating max cost of buildings","Fixed breeding foraging costs calculation","Fixed a bug with world 2 alert (vials attempts)"]},{ver:"3.2.70",gameVer:"2.0.9",date:"28/05/2024",features:['Added "no meal left behind" to meals tab under cooking',"Added shimmer island alert for unclaimed reward",'Added a "last looted" alert to sneaking to get alerted when you haven\'t looted for X minutes',"Added the class names you need to do killroy with for the killroy alert","Added tome ranking to the tome page","Added god rank, jade coins, white essence, highest crop og leaderboards (will take effect immediately)","Added total green mushroom kills, total boats leaderboard (will take effect after you upload your profile again)"],fixes:["Fixed a bug with calculating account level in leaderboard"]},{ver:"3.2.69",gameVer:"2.0.9",date:"26/05/2024",features:["Updated the website with version 2.0.9 data and assets","Added Battles tab to the summoning page including the army health and damage"],fixes:["Fixed some bugs with alerts"]},{ver:"3.2.68",gameVer:"2.0.8",date:"25/05/2024",features:["Updated the dashboard's layout: alerts are now organized by worlds / general. Rows will disappear when there are no longer alerts to show in them","Added bubble breakdown in bubble page",'Added import / export button inside "Configure alerts" dialog',"Vial attempts will now show only if you have the materials available"],fixes:[]},{ver:"3.2.67",gameVer:"2.0.8",date:"23/05/2024",features:["Added gemstones to sneaking page","Added max cost for buildings page","Added poing mini game score and multi to gaming page under Imports tab","Added an alert for acquiring gems from killing bosses"],fixes:["Fixed calculation for number of bubbles from NBLB","Fixed drop rate calculations (with small margin of error)"]},{ver:"3.2.66",gameVer:"2.0.8",date:"16/05/2024",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/tome",children:"Tome"})," page under Account - World 4"]}),"Added a column to the refinery page to show how much of a a material you own"],fixes:["Fixed breeding foraging speed calculations","Fixed a bug where some alerts wouldn't turn off"]},{ver:"3.2.65",gameVer:"2.0.8",date:"09/05/2024",features:["Updated the website with version 2.0.8 data (this patch might miss some assets)","Added a dashboard alert for total crops","Added a dashboard alert for using the wrong divinity style","Added total crops display under farming -> plot","Added an indication of your max meal level under cooking -> meals","Updated material tracker ui a little bit + updated its alerts in the dashboard","Added an alert for when you have available upgrade slots on your items"],fixes:["Fixed a bug calculating shiny level multi caused by miscalculating star sign"]},{ver:"3.2.64",gameVer:"2.0.7",date:"30/04/2024",features:["Updated the website with version 2.0.7 data and assets","Added hoops mini game high score to Account -> General page",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/killroy-prime",children:"Killroy Prime"})," page under Account - World 4"]})],fixes:["Fixed sneaking, farming and summoning skill mastery on Rift page"]},{ver:"3.2.63",gameVer:"2.0.6",date:"27/04/2024",features:["Updated the website with version 2.0.6 data and assets","Added world 6 achievements and tasks","Updated world 6 achievement bonuses to all relevant stats","Added a threshold input to the Summoning -> Familiar dashboard alert",'Added a "Total Time" stat to the refinery page - to show how long it takes to get from 0% to 100%',"Moved Slab page to W5 category","Moved Beanstalk page to W6 category","Removed page titles from all pages as they don't add any value and and take up space"],fixes:["Fixed cooking speed"]},{ver:"3.2.62",gameVer:"2.0.5",date:"25/04/2024",features:["Added a dashboard alert for Familiar bonus from summoning"],fixes:["Fixed a bug in tasks page","Possible fix for cooking speed"]},{ver:"3.2.61",gameVer:"2.0.5",date:"24/04/2024",features:[],fixes:["Fixed cooking speed","Fixed some ui bugs in dashboard page","Fixed a bug in the calculation of how an unlocked world is determined","Added a small disclaimer to the laboratory page regarding px width bug"]},{ver:"3.2.60",gameVer:"2.0.5",date:"17/03/2024",features:["Added upgrade cost and cost to max for cauldrons",'Added the bonus from "Pure Opal Rhombol" jewel to the crop depot'],fixes:["Fixed salts dashboard alert"]},{ver:"3.2.59",gameVer:"2.0.5",date:"11/03/2024",features:[""],fixes:["Fixed death note for minibosses","Removed the rank for summoning skill from skills under characters page"]},{ver:"3.2.58",gameVer:"2.0.5",date:"04/03/2024",features:["Updated the website with latest patch data and assets","Added an alert for plots"],fixes:[""]},{ver:"3.2.57",gameVer:"2.0.5",date:"02/04/2024",features:["Updated the website with version 2.0.5 data and assets","Added w3/4/5/6 mini boss counter to the dashboard",'Updated talent presets to be "Preset 1" and "Preset 2"',"Applying threshold in breeding - pets now shows the time to reach that threshold for leveling pets"],fixes:[]},{ver:"3.2.56",gameVer:"2.0.4",date:"28/03/2024",features:["Added available vial attempts dashboard alert","Added the 3rd tier of sigil","Added checkbox to apocalypse page to hide super chows"],fixes:["Added the new captain image to dashboard alerts"]},{ver:"3.2.55",gameVer:"2.0.4",date:"25/03/2024",features:["Added mini bosses to death note page"],fixes:['Added missing "next requirement" for beans in "Market" tab under farming page',"Fixed sigil speed calculations","Added missing spirited valley title in quest page"]},{ver:"3.2.54",gameVer:"2.0.4",date:"24/03/2024",features:["Updated the website with version 2.0.4 data and assets"],fixes:["Some fixes"]},{ver:"3.2.53",gameVer:"2.0.3",date:"09/03/2024",features:["Updated the website with version 2.0.3 data and assets","Added talents and cards preset view in Characters page"],fixes:[]},{ver:"3.2.52",gameVer:"2.0.2",date:"24/02/2024",features:[],fixes:["Fixed meal speed calculation","Fixed lab connection bug","Fixed a bug where shrines didn't show affected players","Fixed Jade Emporium prices","Fixed statue bonus calculations","Fixed a bug where talent additional levels were added to a level 0 talents"]},{ver:"3.2.51",gameVer:"2.0.2",date:"02/03/2024",features:["Updated the website with version 2.0.2 data and assets","Initial support for summoning skill page including essences, upgrades and winner bonuses","Added beanstalk page under Account -> Misc","Updated bribes","Updated artifacts","Added a timer in farming page to countdown to next cycle"],fixes:["Fixed star sign / constellation page"]},{ver:"3.2.50",gameVer:"2.0.1",date:"27/02/2024",features:["Initial support for farming skill page including plot data, market and crop depot and crop","Added MSA Totalizer bonuses to worship page (World 3 -> Worship)","Updated some calculations with farming bonuses","Added the missing data for the last tower defence totem in worship page","Updated infinite stars logic to only apply bonuses that are unlocked"],fixes:["Fixed missing images","Fixed sneaking floor to start from 1 instead of 0","Fixed a bug where the last hatchet didn't appear in dashboard alerts"]},{ver:"3.2.49",gameVer:"2.0.1",date:"24/02/2024",features:["Updated the website with version 2.0.1 data and assets"],fixes:[]},{ver:"3.2.48",gameVer:"2",date:"23/02/2024",features:["Initial support for sneaking skill page including inventory, jade emporium, ninja upgrades and charms","Added missing monster images","Added w6 to quests page"],fixes:["Fixed a bug with territory tab in breeding page"]},{ver:"3.2.47",gameVer:"2",date:"18/02/2024",features:["Initial support for version 2.0 (world 6) with data and assets"],fixes:[]},{ver:"3.2.46",gameVer:"1.92",date:"24/01/2024",features:['Added talents "Added levels" value and breakdown to talents under characters page',"Added dashboard alerts for using the wrong card set while fighting / skilling"],fixes:["Fixed refinery calculation (was missing arcade shop bonus)","Fixed bubbles page to be grid aligned","Build cost filter in Account -> Buildings page now shows the correct order"]},{ver:"3.2.45",gameVer:"1.92",date:"26/01/2024",features:["Added Character tab to leaderboards page with the following leaderboards: Drop rate, Defence, Accuracy, Hp, Mp","Added Log Book and Total Shiny Levels leaderboards to General Tab","Bubbles page now show all bubbles on the same page as 4 columns similar to how they are displayed in-game (old bubbles page also exists)","Added collect rate for critter quantity and exp","Added the ability to see the totals of collected exp and traps ","Added a display for liquids cauldron's Cap and Rate on cauldrons page","Gilded stamp bonus can now be switched on/off on both new and old stamps page","Added an indication for unobtainable stamps on the stamp page (you can see this by hovering the stamp)","Added a tiny progress bar below statues and shrines","Added a breakdown tooltip to the library in dashboard page.\n"],fixes:["Fixed a bug on divinity page where bits weren't showing correctly","Removed weird items from items list on tools pages (NULL, BLANK)"]},{ver:"3.2.44",gameVer:"1.92",date:"23/01/2024",features:["Added the old stamps page","Added missing calculation for traps critters and exp","Added the ability to edit materials on the material tracker page","Added the note from material tracker to the dashboard alert regarding material tracker items"],fixes:["Grammar"]},{ver:"3.2.43",gameVer:"1.92",date:"20/01/2024",features:["Added distance and minimum travel time distance (+ breakdown) to the boats page","Added superbit costs to the superbits page"],fixes:["Fixed a bug with food lust not updating data is updated on meals page"]},{ver:"3.2.42",gameVer:"1.92",date:"19/01/2024",features:["Added loot and speed breakpoints to boats page","Added an indication for items that are acquired from dungeons (in material tracker, slab page, etc..)","Added breakdown to capacity bags under characters page (filter bags and hover over the bag to see it)","Added color to the missing ingredient in stamps page"],fixes:["Fixed a bug with dashboard resetting to default","Fixed a bug with charge rate calculation","Fixed a bug where 0 money wouldn't display anything"]},{ver:"3.2.41",gameVer:"1.92",date:"13/01/2024",features:["Added afk gains description for cooking"],fixes:["Fixed afk gains for fighting"]},{ver:"3.2.40",gameVer:"1.92",date:"12/01/2024",features:["Updated stamps page (might be a bit buggy)","Updated the Active Exp Calculator to be able to calculate a selected level","Added an alert for maximum capacity for sailing chests to the dashboard","Added missing items to material tracker","Added enemies to the Territories tab","Added distinction between the various types of Exp in the quests page"],fixes:["Fixed alerts for refinery salts","Fixed card search stars calculations"]},{ver:"3.2.39",gameVer:"1.92",date:"06/01/2024",features:["Added an option to material tracker in dashboard settings to apply threshold either from above or below","Added an option to the character dashboard settings to always see talents regardless of their cooldown","Added an estimated trash per day to the islands page","Added the following leaderboards: Bit, Total Cards, Total Vials, Colosseum and Minigames, Fractal hours, Dungeon credits and Flurbos, Afk time","Made RNG items display in dungeons page more concise"],fixes:["Fixed a bug with displaying crystal countdown progress while skill isn't specced","Fixed weekly bosses dashboard alert not disappearing when unchecked","Grammar :)"]},{ver:"3.2.38",gameVer:"1.92",date:"04/01/2024",features:["Added an option to search a player in the leaderboards","Added card set information on the cards page","Added eggs alert to the dashboard","Added an option to copy weekly bosses data to clipboard","Added penpals highscore to Account -> General page",'Updated the website\'s tab title in the browser to show the page name first (e.g. "Dungeons | Idleon Toolbox")'],fixes:["Fixed a bug in calculating foraging speed in breeding page","Fixed a visual bugs in gaming page","Fixed the issue with crushing pages (hopefully)"]},{ver:"3.2.37",gameVer:"1.92",date:"30/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/breeding",children:"Territory"})," tab to the breeding page"]}),"Added a toggle to Pets tabs in breeding page to group pets by worlds / stats","Added an option to see the whole raw json data in the data page"],fixes:["Fixed log book","Fixed a bug in guaranteed drop calculator page","Fixed drop rate calculations",'Fixed consistency of "Maxed" display across the site (and grammar :))']},{ver:"3.2.36",gameVer:"1.92",date:"29/12/2023",features:[(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/weekly-bosses",children:"weekly bosses"})," page is now much more detailed"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/guaranteed-drop-calculator",children:"guaranteed drop calculator"})," page"]}),"Added log book to gaming page","Added condense view to bubbles page"],fixes:[]},{ver:"3.2.35",gameVer:"1.92",date:"26/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/weekly-bosses",children:"weekly bosses"})," page and added them to the dashboard as well"]})],fixes:[]},{ver:"3.2.34",gameVer:"1.92",date:"24/12/2023",features:["Added condensed view for the stamps page","Added an alert for when a character has unspent anvil points"],fixes:[]},{ver:"3.2.33",gameVer:"1.92",date:"24/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/leaderboards",children:"leaderboards"})," page"]}),"To participate in the leaderboards, please upload your profile with leaderboard consent."],fixes:["Fixed small bug with player bubbles"]},{ver:"3.2.32",gameVer:"1.92",date:"22/12/2023",features:["Added unselected dungeon trait alert to the dashboard","Added an alert to notify when a character equips 'Blunder hill' and is at a level greater than 50."],fixes:["Fixed texts across to site to be more consistent"]},{ver:"3.2.31",gameVer:"1.92",date:"21/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Enhanced the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/dungeons",children:"dungeons"})," page - added rng items and stat boosts"]}),(0,d.jsxs)(r.Z,{children:["Added group by option to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/misc/storage",children:"storage"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added exp per trap + total exp per character to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"traps"})," page"]})],fixes:["Fixed a bug in cooking page where recipe kitchens were calculated as cooking meals"]},{ver:"3.2.30",gameVer:"1.92",date:"20/12/2023",features:["Added the option to select multiple items to the material tracker page","Added a material tracker alert to the dashboard under Etc -> Material tracker (in case you don't see the error, clear the dashboard config in data page)"],fixes:['Fixed a bug with dashboard characters\' afk time not showing "Active" when it should']},{ver:"3.2.29",gameVer:"1.92",date:"19/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/material-tracker",children:"material tracker"})," page - Add a material, set your own threshold and keep track of your inventory."]})],fixes:[]},{ver:"3.2.28",gameVer:"1.92",date:"16/12/2023",features:["Added mutation tab to Gaming page including DNA and mutation cost","Added refinery speed breakdown to refinery page","Added the ability to see all challenges in Equinox page","Added killroy and weekly boss (daily) alerts to dashboard"],fixes:["Fixed some calculations in stamps page"]},{ver:"3.2.27",gameVer:"1.92",date:"12/12/2023",features:[(0,d.jsxs)(r.Z,{children:["Added the ability to upload and share your profile under ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"data"})," page"]}),"Removed pastebin support"],fixes:["Fixed the calculation of jewel and chips rotations"]},{ver:"3.2.26",gameVer:"1.92",date:"06/12/2023",features:["Account -> Guild page now support tracking of 3 days (let me know if the behavior is not as expected)","Characters -> Talents now showing all skills' level and max level","Added sigil speed to sigils page","Account -> Stamps show the chance for a gilded stamp"],fixes:["Fixed the calculation of jewel and chips rotations"]},{ver:"3.2.25",gameVer:"1.92",date:"30/11/2023",features:["Added cost calculations to divinity page","Added the ability to see zow/chow for all characters with a filter","In character page, added the ability to hide all maxed post office boxes","In character page, added a Chips filter"],fixes:[]},{ver:"3.2.25",gameVer:"1.92",date:"28/11/2023",features:["Added more information to shrines tooltip (affecting characters, exp/hr)"],fixes:[]},{ver:"3.2.25",gameVer:"1.92",date:"23/11/2023",features:['Added an option to optimize the construction board by "Player xp rate" - this is highly experimental and might not work as expected so use at your own risk',"Added cog stat calculator to construction page",'Added "Plants picked" stat to the totals list in general page'],fixes:["Fixed a bug with construction exp calculations","Fixed class icons on active exp calc"]},{ver:"3.2.24",gameVer:"1.92",date:"13/11/2023",features:["Added a checkbox to show/hide the cost of the next level of salts in refinery page"],fixes:["Fixed a bug with worship alerts for individual characters","Fixed sprouts growth speed calculation","Fixed stamp reducer tooltip display"]},{ver:"3.2.23",gameVer:"1.92",date:"11/11/2023",features:["Added the ability to set a threshold for stamp reducer in dashboard alert","Added BobJoePickle to the World 2 shop options for the daily purchases","Added a feature to indicate the printer sample rate exceeding 90%.","Added the ability to highlight bubbles that are above the configured efficiency threshold in the bubbles page","Added more information to the Gaming -> General page, including: # of envelopes, snail level, encouragement, success and reset rates and more","Added tasks and merits pages under the account page + dashboard alerts for tasks","Added cost to next level and cost to max for atoms in atom collider page","Added a timer for counting down until the forge is emptied.","Added a display for the material cost of the next rank of all salts","Added gem shop page under account page with some priority options","Added more collapsable sections to the account page to make the navigation bar more concise"],fixes:["Fixed a bug where optimizing construction board was taking locked slots into account","Fixed a bug with the atom collider atoms max level","Fixed some bugs that popped up from the latest update"]},{ver:"3.2.22",gameVer:"1.92",date:"08/11/2023",features:["Added a prototype for optimizing construction board (under construction tab) - use at your own risk :)"],fixes:[]},{ver:"3.2.22",gameVer:"1.92",date:"06/11/2023",features:["Added totems tab in the worship page to calculate Exp and Souls from each totem"],fixes:[]},{ver:"3.2.21",gameVer:"1.92",date:"03/11/2023",features:[],fixes:["Fixed construction calculations"]},{ver:"3.2.20",gameVer:"1.92",date:"29/10/2023",features:['Added a tooltip to the dungeon page "Next happy hour" to show the actual date and time',"Added breeding multipliers and chance for breeding page"],fixes:["Fixed a bug where shrines placed on World 1 town weren't showing up on the website","Fixed drop rate formula","Fixed a display bug where star talents were displayed incorrectly.","Fixed sailing speed calculation","Fixed a bug with statue calculating statue bonus for onyx statue"]},{ver:"3.2.19",gameVer:"1.92",date:"25/10/2023",features:[],fixes:["Updated the display of the equipment view in Characters page to represent the actual equipment slots","Fixed a small typing issue with meals sorting","Fixed a bug with calculating 10 Ad Tablet bonus","Added a tooltip to indicate quest status in Quests page"]},{ver:"3.2.18",gameVer:"1.92",date:"24/10/2023",features:["Updated the website with version 1.92 data and assets"],fixes:["Fixed a problem with the max level of equinox","Fixed alerts for equinox"]},{ver:"3.2.17",gameVer:"1.91",date:"20/10/2023",features:["Updated the website with version 1.91 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/equinox",children:"Equinox"})," page under world 3"]})],fixes:[]},{ver:"3.2.16",gameVer:"1.90",date:"04/10/2023",features:["Added an option to export guild data to json format"],fixes:[]},{ver:"3.2.15",gameVer:"1.90",date:"02/10/2023",features:["Added an option to view rank 1 skills for across all characters","Hiding ranks for sailing and gaming"],fixes:[]},{ver:"3.2.14",gameVer:"1.90",date:"16/09/2023",features:[],fixes:["Updated the website with version 1.90 data and assets"]},{ver:"3.2.13",gameVer:"1.89",date:"14/09/2023",features:[],fixes:["Fixed logic for calculating buildings max level"]},{ver:"3.2.12",gameVer:"1.89",date:"10/09/2023",features:[],fixes:["Fixed calculation for meal speed from super chows"]},{ver:"3.2.11",gameVer:"1.89",date:"26/08/2023",features:[],fixes:["Added missing npcs to quests page","Fixed a bug with statue calculations"]},{ver:"3.2.10",gameVer:"1.89",date:"23/08/2023",features:[],fixes:["Fixed zow and chow logic"]},{ver:"3.2.9",gameVer:"1.89",date:"22/08/2023",features:["Updated the website with latest version's data and assets","Added world 4 new npcs","Added onyx display and calculations"],fixes:[]},{ver:"3.2.8",gameVer:"1.89",date:"09/08/2023",features:["Updated the website with version 1.89 data and assets"],fixes:[]},{ver:"3.2.7",gameVer:"1.88",date:"09/08/2023",features:["Added a timer for atom collider upgrades"],fixes:["Fixed a bug with captain comparison in dashboard"]},{ver:"3.2.6",gameVer:"1.88",date:"09/08/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/islands",children:"Islands"})," page under world 2"]}),"Added total stats line to the stats filter under character page"],fixes:["Added (the missing) Omar Da Ogar npc to quests page"]},{ver:"3.2.5",gameVer:"1.88",date:"04/08/2023",features:["Updated the website with version 1.88 data and assets"],fixes:[]},{ver:"3.2.4",gameVer:"1.87",date:"04/08/2023",features:["Added Blood Berserker and Beast Master builds"],fixes:["Better performance for guilds leaderboard","Fixed minor god bonus","Fixed equipped bubble calculation","Fixed calculation for afk gains formula","Fixed captain comparison logic and enhanced the display for it","Fixed a bug with displaying anvil related dashboard alerts"]},{ver:"3.2.3",gameVer:"1.87",date:"31/07/2023",features:[(0,d.jsxs)(r.Z,{children:["Added 2 guild related pages, ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/guild",children:"Guild"})," page and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/guilds",children:"Guilds"})," page"]})],fixes:["Fixed a bug with lab line width calculations","Fixed a bug with personal guild gp calculations","Fixed a bug with guild bonus calculations","Updated the guild leaderboard to be top 100"]},{ver:"3.2.2",gameVer:"1.87",date:"20/07/2023",features:["Added data and assets from version 1.87"],fixes:[]},{ver:"3.2.1",gameVer:"1.86",date:"14/07/2023",features:[(0,d.jsxs)(r.Z,{children:["Added chips and jewels rotations to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/laboratory",children:"Laboratory"})," page with the ability to filter specific jewels / chips "]}),"Added submitted builds for Blood berserker, Elemental Sorcerer and Bubonic Conjuror","Added the ability to select only one character to display in characters page","Added charge syphon timer to the dashboard ","Added meals breakpoint for level 40, 50 and 60"],fixes:["Fixed a bug with sorting buildings by time","Fixed a bug with wrong icon displayed in breeding page"]},{ver:"3.2.0",gameVer:"1.86",date:"01/07/2023",features:["Added data and assets from version 1.86","Updated design for Buildings page","Added world 4 and world 5 bosses keys to Account -> General page","Updated logic and design for upgradable bubbles from NLBL by lithium atom"],fixes:["Fixed a bug with trimmed slot","Fixed kitchen speed notation","Fixed a bug with lab and printer caused by doot doot","Fixed display for respawn time at Characters -> Stats","Fixed a display bug for very high damage numbers","Fixed an overflow bug with money values"]},{ver:"3.1.99",gameVer:"1.84",date:"19/06/2023",features:["Added total production per hour to the anvil page"],fixes:[]},{ver:"3.1.98",gameVer:"1.84",date:"18/06/2023",features:["Added 1.84 data and assets",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/companions",children:"Companions"})," page"]})],fixes:[]},{ver:"3.1.97",gameVer:"1.83",date:"17/06/2023",features:[],fixes:["Fixed a bug with apple login"]},{ver:"3.1.97",gameVer:"1.83",date:"16/06/2023",features:["Added Total daily charge, charge with syphon and time to full display for worship page"],fixes:["Fixed a bug with stamp calculations","Fixed worship max charge and rate calculations"]},{ver:"3.1.96",gameVer:"1.83",date:"15/06/2023",features:["Updated the login flow of the website \uD83C\uDF89",(0,d.jsxs)(r.Z,{component:"span",children:[(0,d.jsx)(r.Z,{component:"span",sx:{fontWeight:"bold"},children:"Deprecated"})," the ability to paste data into the website (steam data extractor is no longer supported, please use one of the other 3 login methods [Email, Google, Apple])"]})],fixes:["Fixed a bug with max liquid calculation"]},{ver:"3.1.95",gameVer:"1.83",date:"13/06/2023",features:["Updated design for the homepage \uD83C\uDF89 \uD83C\uDF8A \uD83C\uDF89",(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(r.Z,{sx:{fontWeight:"bold"},component:"span",children:"*Experimental*"})," Added more stats to Stats filter under ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/characters",children:"Characters"})," page e.g crit chance and damage, kills per hour (works better when you have 100% survivability), defence [* MIGHT BE VERY INACCURATE]"]}),"Updated some components design in hope for better readability",(0,d.jsxs)(r.Z,{children:["Moved the utility buttons to a separate ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"Data"})," page"]}),(0,d.jsxs)(r.Z,{children:["Updated the structure of dashboard alerts (if you're encountering any issue try to clean localStorage from the new ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/data",children:"Data"})," page)"]})],fixes:["Now displaying the correct effect for all stamps on the stamps page","Fixed an issue with 0 star cards","Fixed a bug with bags capacity","Bugs created on this release \uD83D\uDE05"]},{ver:"3.1.94",gameVer:"1.83",date:"09/06/2023",features:['Added "Subtract green stacks" to stamps page'],fixes:["Fixed printer calculation and breakdown"]},{ver:"3.1.93",gameVer:"1.83",date:"07/06/2023",features:["Added a God Planner to the tools section"],fixes:["Fixed a bug with bits display in gaming page","Fixed a bug with shinies alert in dashboard"]},{ver:"3.1.92",gameVer:"1.83",date:"06/06/2023",features:["Added a timer for construction buildings to Buildings page and a timer on dashboard for closest building to finish","Added a checkbox to filter by time to build in Buildings page"],fixes:["Fixed issues with login in iPhone"]},{ver:"3.1.92",gameVer:"1.83",date:"06/06/2023",features:["Added an overview of islands/captains to Boats And Captains tab in Sailing page","Added detailed information about statues in account page"],fixes:[]},{ver:"3.1.91",gameVer:"1.83",date:"03/06/2023",features:["Added data and assets from version 1.83"],fixes:[]},{ver:"3.1.90",gameVer:"1.82",date:"01/06/2023",features:["Added Void Trial Rerun, Arena Spirit, Taste Test to dashboard alerts","Added few submitted builds","Updated the view for refinery page (hopefully for the better) and now accounting for printed items from Printer"],fixes:["Fixed atom particles display","Fixed bubble calculations"]},{ver:"3.1.89",gameVer:"1.82",date:"31/05/2023",features:["Added Damage, Hp, Mp, Accuracy, Movement Speed info to Characters -> Stats filter (Might be inaccurate :) )","Added Construction calculations for Build rate, Player XP boost and flaggy rate","Added missing pet images in Breeding","Added happy hour timer to dashboard","Added an alert for finished flags on construction","Added a display of all fence pets in breeding page"],fixes:["Fixed postoffice, statues calculations","Possible fix for dashboard throwing exception randomly when update filters"]},{ver:"3.1.88",gameVer:"1.82",date:"27/05/2023",features:["Added dungeon items to item planner","Added inventory display in Characters page -> Inventory filter"],fixes:["Fixed a bug in item browser"]},{ver:"3.1.87",gameVer:"1.82",date:"26/05/2023",features:["Added shiny level alert to the dashboard","Added Random Event (when you haven't done an event) alert to the dashboard","Added capacity check for stamps upgrade, hovering the required item will show the recommended character with max capacity","Added capacity information to Characters page -> Bags filter (tooltip)"],fixes:["Fixed a display bug showing the wrong effect at the overflowing ladle tooltip","Fixed a bug with 6 cards not showing even when bonus is unlocked"]},{ver:"3.1.86",gameVer:"1.82",date:"25/05/2023",features:['Added a "Closest trap" timer to dashboard view','Added a "Next printer cycle" timer to dashboard view'],fixes:["Fixed cooking speed calc","Fixed shinies time calculations"]},{ver:"3.1.85",gameVer:"1.82",date:"24/05/2023",features:["Added concise character information to dashboard "],fixes:["Some small fixes all over the place :D"]},{ver:"3.1.84",gameVer:"1.82",date:"23/05/2023",features:["Added Import / Export to item planner (importing will override all of your sections)","Added afk gains breakdown (to help debug issues :D)","Added total kitchens speed to cooking page -> kitchens tab","Towers pages renamed to Buildings page"],fixes:["Fixed atom calculations in Printer page","Fixed max levels for all buildings"]},{ver:"3.1.83",gameVer:"1.82",date:"22/05/2023",features:["Added Afk Gains value under Characters page -> Stats filter (Might be inaccurate, let me know)"],fixes:["WIP: Anvil details under characters page is still kind of broken","Fixed logic for starsigns","Fixed a bug with added levels to talents","Fixed ccd calculations","Fixed cash multi calculations","Fixed printer sample calculations","Fixed a bug with displaying shovel at the dashboard","Fixed a bug with atom calculations"]},{ver:"3.1.82",gameVer:"1.82",date:"20/05/2023",features:["Added data and assets from version 1.82",(0,d.jsxs)(r.Z,{children:["Added Random Events predictor to dashboard and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/random-events",children:"Random Events"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added Sailing Trades predictor to dashboard and ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page to Trades tab"]}),"Added cooking speed bonus by voidwalker enhancement","Added Statues multi by voidwalker skill (Voodoo Statusification)"],fixes:["Now also check if the printer output is higher than atom threshold (instead of checking storage only)",'Now showing the actual boat speed in "Boats And Captain" tab']},{ver:"3.1.81",gameVer:"1.81",date:"19/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added sailing trades to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page under Trades tab"]})],fixes:["Fixed boat speed calculation (it was missing the SB talent)"]},{ver:"3.1.80",gameVer:"1.81",date:"18/05/2023",features:["Added 'Totals' section to the printer page, showing atoms generated from printer and total items printed in an hour/day/printer go brrr (let me know if it's inaccurate)","Added shops alerts to the dashboard","Updated logic for showing an alert for refinery"],fixes:[]},{ver:"3.1.79",gameVer:"1.81",date:"17/05/2023",features:["Added Respawn Time value and breakdown under Characters page -> Stats filter","Added a threshold input for alchemy in dashboard options (for liquids capacity)"],fixes:["Fixed a bug with sigils not displaying in dashboard"]},{ver:"3.1.78",gameVer:"1.81",date:"16/05/2023",features:["Added countdown timer for sigils"],fixes:["Fixed calculation for atom collider's cost calculation"]},{ver:"3.1.77",gameVer:"1.81",date:"14/05/2023",features:["Added Cash Multi value and breakdown under Characters page -> Stats filter","Added Drop Rate value and breakdown under Characters page -> Stats filter","Added support for No more Praying superbit","Added the correct bonus of golden food in Characters page -> Equipment filter -> Food tab","Added an option for crystal cooldown on dashboard to see non maxed skills"],fixes:["Fixed some calculation with obols stats","Fixed a bug with shrine bonus","Now calculating star signs with Infinite stars bonus"]},{ver:"3.1.76",gameVer:"1.81",date:"11/05/2023",features:[],fixes:["Fixed card progress calculations and added 5th star bonus to card page","Fixed a bug with bubble required material calculation","Fixed a bug with bubble atom cost calculation"]},{ver:"3.1.75",gameVer:"1.81",date:"10/05/2023",features:["Added a dashboard alert for max capacity liquids in alchemy",(0,d.jsxs)(r.Z,{children:["Added liquids progress to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/orld-2/cauldrons",children:"cauldrons"})," page"]}),"Added 0 to 20 (static) timer to library "],fixes:["Fixed Library Checkouts superbit bonus","Fixed shiny pets level up timer"]},{ver:"3.1.74",gameVer:"1.81",date:"09/05/2023",features:["Added timers for egg and shiny levels"],fixes:[]},{ver:"3.1.73",gameVer:"1.81",date:"08/05/2023",features:['Added Boat Speed value and a timer to "Boats and Captains" tab (Sailing page)','Added shop captains to "Boats and Captains" tab (Sailing page)'],fixes:["Fixed meals actual values in Meals and Kitchen tabs","Fixed boat artifact chance","Fixed an issue with statues not showing the correct statue level","Fixed a bug in Skill Mastery with second bonus from Sailing, Gaming and divinity"]},{ver:"3.1.72",gameVer:"1.81",date:"06/05/2023",features:["Enhanced talents and post office dashboard configuration and changed the design a little bit"],fixes:[]},{ver:"3.1.71",gameVer:"1.81",date:"05/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added printer sample rate to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/printer",children:"Printer"})," page"]})],fixes:["Fixed a bug with bonuses from equipment"]},{ver:"3.1.70",gameVer:"1.81",date:"03/05/2023",features:["New Alert in dashboard that will appear when your character can equip a new tier of a tool (pickaxe, hatchet, etc)"],fixes:[]},{ver:"3.1.69",gameVer:"1.81",date:"01/05/2023",features:[(0,d.jsxs)(r.Z,{children:["Added superbit information to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/gaming",children:"Gaming"})," page"]}),"Added colored bits in gaming page"],fixes:[]},{ver:"3.1.68",gameVer:"1.81",date:"29/04/2023",features:["Added data and assets from version 1.81","Added support for 5* cards",(0,d.jsxs)(r.Z,{children:["Added Construct Mastery to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/rift",children:"Rift"})," page (if you've unlocked it)"]}),"Applied construct bonuses to Refinery page","Applied superbit bonus to cooking","Applied library bonus from superbit","Work in progress: superbits upgrades and their effect on everything"],fixes:["Fixed a bug with library causing the app to crash"]},{ver:"3.1.67",gameVer:"1.80b",date:"28/04/2023",features:["Added an option to see production alert 1 hour before its being full","Added threshold levels indication for skill mastery"],fixes:["More accurate bargain tag check for dashboard","Ready talents are now showing only when they are available for the character","Fixed a bug with gilded stamp","Library is only showing when world 3 is unlocked (dashboard)"]},{ver:"3.1.66",gameVer:"1.80b",date:"23/04/2023",features:[],fixes:["Alerts are now only showing if you've unlocked the relevant world!",(0,d.jsxs)(r.Z,{children:["Added indication for infinite stars on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/constellations",children:"Constellations"})," page - star sign tab"]}),"Added shiny bonuses to Refinery and Meals","Updated alerts logic"]},{ver:"3.1.65",gameVer:"1.80b",date:"22/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/rift",children:"Rift"})," page including Tasks, Bonuses and Skill Mastery page"]}),(0,d.jsxs)(r.Z,{children:["Added Pets tab to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/breeding",children:"Breeding"})," page to display information about pets including shiny level, passive and gene information"]}),"Applied rift Vial Mastery bonus to all vials","Applied rift Skill Mastery bonus to the Printer","Added eldritch artifacts support"],fixes:[]},{ver:"3.1.63",gameVer:"1.80",date:"20/04/2023",features:["Fixed Apple login"],fixes:[]},{ver:"3.1.62",gameVer:"1.80",date:"19/04/2023",features:["Added support for Apple login","Added data and assets from version 1.80"],fixes:[]},{ver:"3.1.61",gameVer:"1.79",date:"18/04/2023",features:[],fixes:["Fixed a bug with gaming alerts","Fixed a bug with refinery"]},{ver:"3.1.60",gameVer:"1.79",date:"15/04/2023",features:[],fixes:["Fixed a bug with Crystal Countdown calculation"]},{ver:"3.1.59",gameVer:"1.79",date:"14/04/2023",features:[],fixes:["Added missing rank up alert for salts in refinery"]},{ver:"3.1.58",gameVer:"1.79",date:"10/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Added the ability to create custom builds in ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/builds",children:"Builds"})," page"]})],fixes:["Fixed item planner bug","Fixed a bug with calculating additional talent levels for Elemental Sorcerer (again)"]},{ver:"3.1.57",gameVer:"1.79",date:"09/04/2023",features:["Added Defence tag to Card Search"],fixes:["Fixed material calculations for bubbles","Fixed a bug with calculating additional talent levels for Elemental Sorcerer"]},{ver:"3.1.57",gameVer:"1.79",date:"05/04/2023",features:["Added particle cost for bubbles (displayed when required material is higher than 100M)","Added indication of how many particle upgrade left to bubble page","Added Giant Mob Spawn Chance card to the dashboard (near library timer)"],fixes:["Fixed a bug on Item Planner when selecting 'Show Missing Items'","Updated required material for bubble to be capped at 1000M (1B)"]},{ver:"3.1.56",gameVer:"1.79",date:"04/04/2023",features:[(0,d.jsxs)(r.Z,{children:["Updated some logic and display for ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/slab",children:"Slab"})," page"]})],fixes:["Fixed a bug with guild data when importing from steam-extractor"]},{ver:"3.1.55",gameVer:"1.79",date:"03/04/2023",features:["Added an ability to search by description in Item Browser","Added guild tasks alert to dashboard","Added crystal cooldown alert to dashboard (when reaching max reduction)","Added extra bubbles to 'No Bubble Left Behind' from W4 merit shop",(0,d.jsxs)(r.Z,{children:["Updated logic for ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/item-planner",children:"Item Planner"})," page!"]}),"Added names to sections and made them collapsable","Enabled Item Planner and Item Browser to logged out users as well"],fixes:["Fix bug with max traps in dashboard","Fixed a bug with 'Show Missing Item' in Item Planner"]},{ver:"3.1.54",gameVer:"1.79",date:"01/04/2023",features:["Added data and assets from version 1.79"],fixes:[]},{ver:"3.1.53",gameVer:"1.78c",date:"28/03/2023",features:[],fixes:["Fixed a bug where Traps option in also turned off Obols option in dashboard setting","Updated logic for max traps with CALL ME ASH bubble now working globally"]},{ver:"3.1.52",gameVer:"1.78c",date:"28/03/2023",features:["Added gaming dashboard alerts (Max sprouts and sprinkler drops, squirrel and shovel alerts if you haven't clicked for over an hour)","Added sprouts and sprinkler drops indication to gaming page"],fixes:[]},{ver:"3.1.51",gameVer:"1.78c",date:"27/03/2023",features:["Added data and assets from version 1.78c","Added indication for stamps that you can upgrade based on your stored materials and money"],fixes:[]},{ver:"3.1.50",gameVer:"1.78.0",date:"25/03/2023",features:["Added data and assets from version 1.78","Added 'Sort By' filter for meals (for next level ,lv. 11 and lv. 30)"],fixes:["Fixed the email and password login flow (didn't notice it wasn't working correctly)"]},{ver:"3.1.49",gameVer:"1.77.0",date:"24/03/2023",features:["Added 'Sort By' filter for meals (for next level ,lv. 11 and lv. 30)"],fixes:["Fixed library speed calculation"]},{ver:"3.1.48",gameVer:"1.77.0",date:"22/03/2023",features:["Added library timer to dashboard"],fixes:["Updated logic for post office dashboard notification (doesn't show up when maxed all boxes)"]},{ver:"3.1.47",gameVer:"1.77.0",date:"21/03/2023",features:[(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/dashboard",children:"Dashboard"})," page!"]}),(0,d.jsxs)(r.Z,{children:["Added a tooltip for boss keys + colo tickets on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/general",children:"General"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added Stamp Reducer indication on ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/atom-collider",children:"Atom Collider"})," page"]}),"Added Subtract Green Stacks option for vials in dashboard (this will subtract 10M from your current amount to make sure you will still have green stack after upgrading)","Added a tooltip for exact quantity for items in storage"],fixes:["Fixed wizard towers max level (from atom collider)","Some bug fixes for low level accounts","Added missing W5 catching and chopping targets (ops)","Fixed a bug on Vials page"]},{ver:"3.1.46",gameVer:"1.77.0",date:"18/03/2023",features:[],fixes:["Update looty (hopefully it is more accurate)","Update W5 quest header (visual update)",'Updated atoms description with the correct "Total Bonus"','Fixed cooking speed to account for "Fluoride - Void Plate Chef" atom']},{ver:"3.1.45",gameVer:"1.77.0",date:"17/03/2023",features:[],fixes:["Added Elemental Sorcerer family bonus to talent levels"]},{ver:"3.1.44",gameVer:"1.77.0",date:"15/03/2023",features:["Added extra printer slots","Added calculation for 'Polytheism' talent of Elemental Sorcerer"],fixes:[]},{ver:"3.1.43",gameVer:"1.77.0",date:"04/03/2023",features:["Updated the website with 1.77.0 data and assets"],fixes:[]},{ver:"3.1.42",gameVer:"1.76.0",date:"24/02/2023",features:["Updated the website with 1.76.0 data and assets","Added new constellations"],fixes:["Carry bags order"]},{ver:"3.1.41",gameVer:"1.75.1",date:"10/02/2023",features:["Added materials per hour for refinery page"],fixes:[]},{ver:"3.1.40",gameVer:"1.75.1",date:"10/02/2023",features:["Updated the website with 1.75.1 data and assets"],fixes:[]},{ver:"3.1.39",gameVer:"1.75",date:"10/02/2023",features:["Updated the website with 1.75 data and assets"],fixes:[]},{ver:"3.1.38",gameVer:"1.74",date:"09/02/2023",features:[],fixes:["minor issue with captain exp requirement"]},{ver:"3.1.37",gameVer:"1.74",date:"31/01/2023",features:["Update the website with 1.74 data and assets",'Added "King of the remembrance" calculation to printer'],fixes:["Shrine bonus is now calculated correctly (hopefully)","Added extra levels from symbol talents and bear god","Fixed family bonuses to account for The Family Guy talent"]},{ver:"3.1.36",gameVer:"1.73",date:"23/01/2023",features:[],fixes:["Fixed atom collider bug when freshly opened"]},{ver:"3.1.35",gameVer:"1.73",date:"11/01/2023",features:["Added images and data from version 1.73"],fixes:["Fixed sigil bonuses"]},{ver:"3.1.34",gameVer:"1.72",date:"11/01/2023",features:["Added images and data from version 1.72",(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/atom-collider",children:"Atom Collider"})," page"]})],fixes:[]},{ver:"3.1.33",gameVer:"1.71",date:"06/01/2023",features:["Added library checkouts counter with breakpoints for 16, 18, 20 on Account -> General page (let me know if the timers are off)","Added percentage completed of the boat trip to the island"],fixes:[]},{ver:"3.1.32",gameVer:"1.71",date:"31/12/2022",features:[],fixes:["Fixed a bug where accounts without world 5 data would crash"]},{ver:"3.1.31",gameVer:"1.71",date:"30/12/2022",features:["Added max possible nugget roll possible","Added the required resources for a boat upgrade"],fixes:["Fixed a bug with islands names in sailing"]},{ver:"3.1.30",gameVer:"1.71",date:"29/12/2022",features:["Added chests, boats and captains display","Added crystal chance breakdown","Added divinity style to the activity filter when character is afk in divinity"],fixes:["Added indication for lab by linking Goharut as a god"]},{ver:"3.1.29",gameVer:"1.71",date:"28/12/2022",features:["Added timer for acorns in gaming page"],fixes:["Fixed gaming upgrades bonus and cost"]},{ver:"3.1.28",gameVer:"1.71",date:"27/12/2022",features:["Added a timer for dirty shovel (+ nuggets break points)","Applied most artifacts bonuses all over the website","Added tooltip over printer items showing the boosted value from lab,artifacts,gods","Divinity - now correctly showing unlocked gods"],fixes:["Sigils not calculated with artifacts bonus"]},{ver:"3.1.27",gameVer:"1.70",date:"26/12/2022",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/sailing",children:"Sailing"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/divinity",children:"Divinity"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-5/gaming",children:"Gaming"})," page"]})],fixes:["Added refinery speed stamp to refinery calculations","Fixed minor bug with un-acquired stamps"]},{ver:"3.1.26",gameVer:"1.70",date:"23/12/2022",features:[],fixes:["Added missing meals (from world 5)","Added basic logic for deities to activate lab"]},{ver:"3.1.25",gameVer:"1.70",date:"22/12/2022",features:[],fixes:["Added world 5 quests npc","Added world 5 vials","Added world 5 cards","Added world 5 death note","Added world 5 bubbles"]},{ver:"3.1.24",gameVer:"1.70",date:"20/12/2022",features:[],fixes:["Fixed small calculation error in max worship"]},{ver:"3.1.23",gameVer:"1.70",date:"19/12/2022",features:["Added data and assets for world 5!"],fixes:['Fixed timer in "Stats" filter to count up instead of down (please let me know if there are any issue with timers)']},{ver:"3.1.22",gameVer:"1.60",date:"21/11/2022",features:[],fixes:["Fixed small calculation error in cooking page","Added missing Demon Genie icon","Added exp per hour to exp calculator"]},{ver:"3.1.21",gameVer:"1.60",date:"11/10/2022",features:[],fixes:["Fixed total mat printed fixed"]},{ver:"3.1.20",gameVer:"1.60",date:"09/10/2022",features:["Added boop to zow/chow view","Added total material printed to Account -> General"],fixes:[]},{ver:"3.1.19",gameVer:"1.60",date:"15/09/2022",features:["Added additional information to anvil, worship and trap pages"],fixes:[]},{ver:"3.1.18",gameVer:"1.60",date:"09/08/2022",features:["Added an option to hide capped meals","Added progress indicator for cards","Cards you haven't found will appear with low opacity"],fixes:[]},{ver:"3.1.17",gameVer:"1.60",date:"30/07/2022",features:[],fixes:["Fixed AFK time in stats","Fixed obols ordering"]},{ver:"3.1.16",gameVer:"1.60",date:"12/07/2022",features:["Updated data to patch 1.60"],fixes:[]},{ver:"3.1.15",gameVer:"1.59",date:"08/07/2022",features:["Added number of ladles needed for level up in meals page"],fixes:["Fixed meal speed calculations","Fixed overflowing ladle calculations"]},{ver:"3.1.14",gameVer:"1.59",date:"08/07/2022",features:[(0,d.jsxs)(r.Z,{children:["Added total critters calculations to ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"Traps"})," page"]})],fixes:[]},{ver:"3.1.13",gameVer:"1.59",date:"08/07/2022",features:["Added an option to login with email and password (I'm still not saving anything anywhere so don't worry)"],fixes:["Fixed a bug in traps page caused when there's no trap box equipped"]},{ver:"3.1.12",gameVer:"1.59",date:"05/07/2022",features:[(0,d.jsxs)(r.Z,{children:["Added sections to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/item-planner",children:"item planner"})," page that allows you to track several items separately"]}),"Updated the website data with 1.59 patch"],fixes:[]},{ver:"3.1.11",gameVer:"1.58",date:"02/07/2022",features:[],fixes:["Cogstruction: fix for empties cog array"]},{ver:"3.1.10",gameVer:"1.58",date:"28/06/2022",features:[(0,d.jsxs)(r.Z,{children:["Added trap type, quantity and exp (by hovering the trap) to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-3/traps",children:"Traps"})," page"]})],fixes:[]},{ver:"3.1.8",gameVer:"1.58",date:"14/06/2022",features:["Added meal speed contribution view"],fixes:[]},{ver:"3.1.7",gameVer:"1.58",date:"01/06/2022",features:[(0,d.jsxs)(r.Z,{children:["Added ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-2/cauldrons",children:"Cauldrons"})," page to view all cauldrons and cauldrons upgrades from p2w tab"]})],fixes:[]},{ver:"3.1.6",gameVer:"1.58",date:"30/05/2022",features:["Updated to version 1.58"],fixes:[]},{ver:"3.1.5",gameVer:"1.57",date:"26/05/2022",features:[(0,d.jsxs)(r.Z,{children:["Added builds from idleon companion under Tools and can be accessed like this ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/tools/builds?b=barbarian&c=1",children:"https://idleontoolbox.com/tools/builds?b=barbarian&c=1"})," (The new classes are still missing builds, let me know if you want to add some)"]}),(0,d.jsxs)(r.Z,{children:["Added forge upgrades tab to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-1/forge",children:"Forge"})," page"]}),(0,d.jsxs)(r.Z,{children:["Added claims counter for spices under to the ",(0,d.jsx)(i.Z,{href:"https://idleontoolbox.com/account/world-4/cooking",children:"Cooking"})," page"]})],fixes:[]},{ver:"3.1.4",gameVer:"1.57",date:"26/05/2022",features:["Added coin cost to max calculation for anvil","Small refinery visual bug fix"],fixes:[]},{ver:"3.1.3",gameVer:"1.57",date:"24/05/2022",features:["Added an option to apply Overflowing ladle (Blood Berserker talent) to meals"],fixes:[]},{ver:"3.1.2",gameVer:"1.57",date:"24/05/2022",features:["Apocalypses page under Account tab"],fixes:[]},{ver:"3.1.1",gameVer:"1.57",date:"24/05/2022",features:[],fixes:["Hopefully fixed lab calculations"]},{ver:"3.1.0",gameVer:"1.57",date:"23/05/2022",features:["Updated all data to version 1.57","(Things might still be inaccurate, I'm still updating the formulas to account for all the new stuff)",'Added a light version of a "Public Profile" using pastebin to import your data, instructions can be found on the button above (let me know if you experience any kind of problems in any type of connection)'],fixes:[]},{ver:"3.0.10",gameVer:"1.56.1",date:"22/05/2022",features:[],fixes:["Fixed a bug with dungeons happy hour timer counting up","Fixed a bug with cogstruction data export"]},{ver:"3.0.9",gameVer:"1.56.1",date:"21/05/2022",features:[],fixes:["Fixed sorting meals logic","Fixed meals cost calculations"]},{ver:"3.0.8",gameVer:"1.56.1",date:"21/05/2022",features:["Added towers page under Account -> World 3"],fixes:[]},{ver:"3.0.7",gameVer:"1.56.1",date:"20/05/2022",features:["(Re-)Added the item browser which lets you find an item anywhere in your account"],fixes:[]},{ver:"3.0.6",gameVer:"1.56.1",date:"20/05/2022",features:["Added 'chance not to consume food' percentage in 'Stats' filter"],fixes:[]},{ver:"3.0.5",gameVer:"1.56.1",date:"19/05/2022",features:[],fixes:["Added doubling bonus chips to the calculations of cards and star signs","Fixed a small bug with displaying cards"]},{ver:"3.0.4",gameVer:"1.56.1",date:"19/05/2022",features:["Added minigame and library currency to Account -> General","Small visual update for dungeons"],fixes:[]},{ver:"3.0.3",gameVer:"1.56.1",date:"19/05/2022",features:["Quick and dirty storage page"],fixes:[]},{ver:"3.0.2",gameVer:"1.56.1",date:"18/05/2022",features:[],fixes:["Re-added points distribution in anvil details"]},{ver:"3.0.1",gameVer:"1.56.1",date:"18/05/2022",features:[],fixes:["Fixed a visual bug in construction page","Fixed calculation of anvil details"]},{ver:"3.0.0",gameVer:"1.56.1",date:"12/05/2022",features:["Reworked the website - the website is now responsive and can be used in mobile as well!","WIP: builds (from idleon companion)"],fixes:[]}]},35537:function(e,a,t){t.r(a);var d=t(85893),r=t(51233),i=t(67720),s=t(23972),o=t(67358),n=t(38895),l=t(22797),c=t(67294),u=t(87357),h=t(75716),g=t(23663),p=t(96540),f=t(27036),m=t(13486),b=t(70720),x=t(18434);let StyledSection=e=>{let{title:a,list:t,icon:i,topMargin:o=!0}=e;if(!t||0===t.length)return null;let n={add:(0,d.jsx)(p.Z,{sx:{color:m.Z[600]}}),fix:(0,d.jsx)(f.Z,{sx:{color:b.Z[300]}})};return(0,d.jsxs)(u.Z,{sx:{marginTop:o?"20px":0},children:[(0,d.jsxs)(r.Z,{direction:"row",alignItems:"center",gap:1,children:[n[i],(0,d.jsx)(s.Z,{sx:{color:"add"===i?m.Z[500]:b.Z[200]},variant:"h4",children:a})]}),(0,d.jsx)("ul",{style:{marginTop:20},children:t.map((e,t)=>(0,d.jsx)("li",{style:{marginTop:5},children:(0,d.jsx)(s.Z,{variant:"body1",component:"div",children:e})},"".concat(a,"-").concat(t)))})]})};a.default=e=>{var a;let{patchNotes:t}=e,[u,p]=(0,c.useState)(0),f=(0,g.a)();return t?null===(a=t||x.O)||void 0===a?void 0:a.map((e,a)=>(0,d.jsxs)(o.Z,{expanded:u===a,disableGutters:!0,sx:{"&:before":{display:"none"},border:"1px solid ".concat(f.palette.divider),"&:not(:last-child)":{borderBottom:0}},onChange:(e,t)=>p(t?a:null),children:[(0,d.jsxs)(n.Z,{sx:{flexDirection:"row-reverse",gap:2,"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"}},expandIcon:(0,d.jsx)(h.Z,{sx:{fontSize:"0.9rem"}}),children:["v",null==e?void 0:e.ver," - ",null==e?void 0:e.date]}),(0,d.jsx)(l.Z,{sx:{backgroundColor:"rgb(22, 22, 22)",p:3},children:(0,d.jsxs)(r.Z,{gap:3,children:[(0,d.jsx)(StyledSection,{icon:"add",topMargin:!1,title:"Features",list:null==e?void 0:e.features}),(0,d.jsx)(StyledSection,{icon:"fix",topMargin:!1,title:"Fixes",list:null==e?void 0:e.fixes})]})})]},"note"+a)):(0,d.jsx)(r.Z,{divider:(0,d.jsx)(i.Z,{}),gap:3,children:null===x.O||void 0===x.O?void 0:x.O.map((e,a)=>(0,d.jsxs)(r.Z,{gap:1,children:[(0,d.jsxs)(s.Z,{variant:"h3",children:["v",null==e?void 0:e.ver]}),(0,d.jsx)(StyledSection,{icon:"add",topMargin:!1,title:"Features",list:null==e?void 0:e.features}),(0,d.jsx)(StyledSection,{icon:"fix",topMargin:!1,title:"Fixes",list:null==e?void 0:e.fixes})]},"note"+a))})}}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/_app-8774daa567a68f75.js b/_next/static/chunks/pages/_app-2f3a0269d6ae119e.js
similarity index 92%
rename from _next/static/chunks/pages/_app-8774daa567a68f75.js
rename to _next/static/chunks/pages/_app-2f3a0269d6ae119e.js
index 19eef9c61..5f81a10e6 100644
--- a/_next/static/chunks/pages/_app-8774daa567a68f75.js
+++ b/_next/static/chunks/pages/_app-2f3a0269d6ae119e.js
@@ -3730,4 +3730,4 @@ This typically indicates that your device does not have a healthy Internet conne
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */registerVersion("firebase","9.22.0","app");var iB=(()=>{let e=getApps();return(null==e?void 0:e.length)>0?null==e?void 0:e[0]:initializeApp({apiKey:"AIzaSyAU62kOE6xhSrFqoXQPv6_WHxYilmoUxDk",authDomain:"idlemmo.firebaseapp.com",databaseURL:"idlemmo.firebaseio.com",storageBucket:"idlemmo.appspot.com",projectId:"idlemmo"})})(),iM=l(30925),iO=l(70473),ik=l(64605);let signInWithToken=async(e,t)=>{let l;let m=index_e3d5d3f4_getAuth(iB);if("apple"===t){let t=new index_e3d5d3f4_OAuthProvider("apple.com");l=t.credential({idToken:null==e?void 0:e.id_token,rawNonce:null==e?void 0:e.nonce})}else"google"===t&&(l=GoogleAuthProvider.credential(e,null));let u=await signInWithCredential(m,l).catch(function(e){let t=e.code;if("auth/account-exists-with-different-credential"===t)throw Error("Email already associated with another account.");throw console.error("Error while trying to sign in with credentials: ",e),Error(e)});return null==u?void 0:u.user},signInWithEmailPassword=async function(){let{email:e,password:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=index_e3d5d3f4_getAuth(iB),m=await signInWithEmailAndPassword(l,e,t).catch(function(e){let t=e.code;if("auth/account-exists-with-different-credential"===t)throw Error("Email already associated with another account.");if("auth/invalid-email"===t||"auth/user-not-found"===t||"auth/invalid-password"===t||"auth/wrong-password"===t)throw Error("Username or password is incorrect");throw console.error("Error while trying to sign in with credentials: ",e),Error(e)});return null==m?void 0:m.user},checkUserStatus=()=>{let e=index_e3d5d3f4_getAuth(iB);return new Promise((t,l)=>{try{e.onAuthStateChanged(e=>{e?t(e):t(null)})}catch(e){l(e)}})},subscribe=async(e,t,l)=>{let m;let u=index_esm2017_getApp(),d=getDatabase(u),y=Rh(u,{});goOnline(d);let h=ref(d),g=await getSnapshot(h,"_uid/".concat(e));if((null==y?void 0:y.type)==="firestore"){let e=await af(gh(y,"_vars","_vars"));e.exists()&&(m=e.data())}if((null==g?void 0:g.length)>0){let u;let d=await af(gh(y,"_data",e));return d.exists()&&(u=d._document.createTime.toTimestamp()),If(gh(y,"_data",e),{includeMetadataChanges:!0},async d=>{if(d.exists()){let y=await getSnapshot(h,"_comp/".concat(e)),E=await getSnapshot(h,"_usgu/".concat(e,"/g")),b=await getSnapshot(h,"_guild/".concat(E)),L=d.data();l(L,g,y,{stats:(0,iM.tryToParse)(null==L?void 0:L.Guild),members:Object.values((null==b?void 0:b.m)||{}),points:null==b?void 0:b.p},m,u,e,t)}},e=>{console.error("Error has occurred on subscribe",e)})}},getGuilds=async e=>{try{var t;let l=Date.now(),m=index_esm2017_getApp(),u=getDatabase(m),d=Rh(m,{}),y=_h(d,"_guildStat"),h=await df(Rl(y)),g=[];h.forEach(e=>{let{stats:t,n:l,i:m}=e.data()||{},u=null==t?void 0:t.reduce((e,t,l)=>{var m,u;return e+(0,ik.TS)(t,null===iO.guildBonuses||void 0===iO.guildBonuses?void 0:null===(m=iO.guildBonuses[l])||void 0===m?void 0:m.gpBaseCost,null===iO.guildBonuses||void 0===iO.guildBonuses?void 0:null===(u=iO.guildBonuses[l])||void 0===u?void 0:u.gpIncrease)},0);g.push({id:e.id,totalStatCost:u,guildName:l,guildIcon:m})});let E=Date.now();console.info("Guild firestore execution time: ".concat(E-l," ms"));let b=g.sort((e,t)=>(null==t?void 0:t.totalStatCost)-(null==e?void 0:e.totalStatCost)),L=null==b?void 0:b.slice(0,150),k=L.map(e=>{let{id:t}=e;return get(query(ref(u,"_guild/".concat(t))))}),V=await Promise.all(k),j=null==V?void 0:V.map((e,t)=>{let l=e.val(),m=null==L?void 0:L[t];return{...m,totalGp:((null==l?void 0:l.p)||0)+(null==m?void 0:m.totalStatCost),members:Object.values((null==l?void 0:l.m)||{})}}),ee=null===(t=j.sort((e,t)=>(null==t?void 0:t.totalGp)-(null==e?void 0:e.totalGp)))||void 0===t?void 0:t.filter(e=>{let{members:t}=e;return(null==t?void 0:t.length)>10}),ea=Date.now();console.info("Guild realtime db execution time: ".concat(ea-l," ms")),e({guilds:ee})}catch(t){console.error(t),e({guilds:[],error:!0})}},getSnapshot=async(e,t)=>{try{let l=await get(child(e,t));if(l&&l.exists())return l.val();return console.error("No data available for key ".concat(t)),null}catch(e){return console.error("Error while fetching data for key ".concat(t,": "),e),null}},userSignOut=async()=>{let e=index_e3d5d3f4_getAuth(iB);await signOut(e).then(()=>{console.info("Logged off successfully")}).catch(e=>{let t=e.code,l=e.message;console.error("Error while logging out: ".concat(t),l)})}},7337:function(e,t,l){"use strict";l.d(t,{IS:function(){return appleAuthorize},Yw:function(){return getAppleCode},r1:function(){return geAppleStatus}});let appleAuthorize=async e=>{let{device_code:t,h_nonce:l,statusToken:m}=e,u=new URLSearchParams({client_id:"com.lavaflame.idleon.service.signin",nonce:l,redirect_uri:"https://us-central1-idlemmo.cloudfunctions.net/xapsi",response_mode:"form_post",response_type:"code id_token",scope:"email",code:t,state:m});window.open("https://appleid.apple.com/auth/authorize?".concat(u.toString()),"_blank","popup")},getAppleCode=async()=>{let e=encodeURIComponent("https://us-central1-idlemmo.cloudfunctions.net/tspa"),t=await fetch("https://appleauth.idleontoolbox.workers.dev/?url=".concat(e),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});return await t.json()},geAppleStatus=async e=>{let{device_code:t,statusToken:l}=e,m=new URLSearchParams;m.append("device_code",t),m.append("statusToken",l);let u=encodeURIComponent("https://us-central1-idlemmo.cloudfunctions.net/capsc"),d=await fetch("https://appleauth.idleontoolbox.workers.dev/?url=".concat(u),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:m});return await d.json()}},67998:function(e,t,l){"use strict";l.d(t,{N:function(){return getUserToken},l:function(){return getUserAndDeviceCode}});let getUserAndDeviceCode=async()=>{let e=await fetch("https://oauth2.googleapis.com/device/code",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"client_id=267901585099-u6fjd75v6k9gefq7bcokcndv99riir5j&scope=email profile"});return await e.json()},getUserToken=async e=>{try{let t=await fetch("https://oauth2.googleapis.com/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"client_id=267901585099-u6fjd75v6k9gefq7bcokcndv99riir5j&client_secret=HzoZF-UKUNfFwBuz4vafwsaR&device_code=".concat(e,"&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code")});return await t.json()}catch(e){console.error("Error has occurred while trying to authenticate:",e)}}},97498:function(e,t){"use strict";var l,m;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{PrefetchKind:function(){return l},ACTION_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return d},ACTION_RESTORE:function(){return y},ACTION_SERVER_PATCH:function(){return h},ACTION_PREFETCH:function(){return g},ACTION_FAST_REFRESH:function(){return E},ACTION_SERVER_ACTION:function(){return b}});let u="refresh",d="navigate",y="restore",h="server-patch",g="prefetch",E="fast-refresh",b="server-action";(m=l||(l={})).AUTO="auto",m.FULL="full",m.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10030:function(e,t,l){"use strict";function getDomainLocale(e,t,l,m){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),l(22866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65170:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return eo}});let m=l(38754),u=m._(l(67294)),d=l(74450),y=l(92227),h=l(64364),g=l(10109),E=l(73607),b=l(11823),L=l(89031),k=l(40920),V=l(10030),j=l(77192),ee=l(97498),ea=new Set;function prefetch(e,t,l,m,u,d){if(!d&&!(0,y.isLocalURL)(t))return;if(!m.bypassPrefetchedCheck){let u=void 0!==m.locale?m.locale:"locale"in e?e.locale:void 0,d=t+"%"+l+"%"+u;if(ea.has(d))return;ea.add(d)}let h=d?e.prefetch(t,u):e.prefetch(t,l,m);Promise.resolve(h).catch(e=>{})}function isModifiedEvent(e){let t=e.currentTarget,l=t.getAttribute("target");return l&&"_self"!==l||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function linkClicked(e,t,l,m,d,h,g,E,b,L){let{nodeName:k}=e.currentTarget,V="A"===k.toUpperCase();if(V&&(isModifiedEvent(e)||!b&&!(0,y.isLocalURL)(l)))return;e.preventDefault();let navigate=()=>{let e=null==g||g;"beforePopState"in t?t[d?"replace":"push"](l,m,{shallow:h,locale:E,scroll:e}):t[d?"replace":"push"](m||l,{forceOptimisticNavigation:!L,scroll:e})};b?u.default.startTransition(navigate):navigate()}function formatStringOrUrl(e){return"string"==typeof e?e:(0,h.formatUrl)(e)}let el=u.default.forwardRef(function(e,t){let l,m;let{href:y,as:h,children:ea,prefetch:el=null,passHref:eo,replace:e_,shallow:ec,scroll:em,locale:ed,onClick:ep,onMouseEnter:ey,onTouchStart:eh,legacyBehavior:eT=!1,...ef}=e;l=ea,eT&&("string"==typeof l||"number"==typeof l)&&(l=u.default.createElement("a",null,l));let ev=u.default.useContext(b.RouterContext),eg=u.default.useContext(L.AppRouterContext),eS=null!=ev?ev:eg,eN=!ev,eC=!1!==el,eR=null===el?ee.PrefetchKind.AUTO:ee.PrefetchKind.FULL,{href:eI,as:ew}=u.default.useMemo(()=>{if(!ev){let e=formatStringOrUrl(y);return{href:e,as:h?formatStringOrUrl(h):e}}let[e,t]=(0,d.resolveHref)(ev,y,!0);return{href:e,as:h?(0,d.resolveHref)(ev,h):t||e}},[ev,y,h]),eE=u.default.useRef(eI),eF=u.default.useRef(ew);eT&&(m=u.default.Children.only(l));let eP=eT?m&&"object"==typeof m&&m.ref:t,[eD,eA,eL]=(0,k.useIntersection)({rootMargin:"200px"}),ex=u.default.useCallback(e=>{(eF.current!==ew||eE.current!==eI)&&(eL(),eF.current=ew,eE.current=eI),eD(e),eP&&("function"==typeof eP?eP(e):"object"==typeof eP&&(eP.current=e))},[ew,eP,eI,eL,eD]);u.default.useEffect(()=>{eS&&eA&&eC&&prefetch(eS,eI,ew,{locale:ed},{kind:eR},eN)},[ew,eI,eA,ed,eC,null==ev?void 0:ev.locale,eS,eN,eR]);let eU={ref:ex,onClick(e){eT||"function"!=typeof ep||ep(e),eT&&m.props&&"function"==typeof m.props.onClick&&m.props.onClick(e),eS&&!e.defaultPrevented&&linkClicked(e,eS,eI,ew,e_,ec,em,ed,eN,eC)},onMouseEnter(e){eT||"function"!=typeof ey||ey(e),eT&&m.props&&"function"==typeof m.props.onMouseEnter&&m.props.onMouseEnter(e),eS&&(eC||!eN)&&prefetch(eS,eI,ew,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eR},eN)},onTouchStart(e){eT||"function"!=typeof eh||eh(e),eT&&m.props&&"function"==typeof m.props.onTouchStart&&m.props.onTouchStart(e),eS&&(eC||!eN)&&prefetch(eS,eI,ew,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eR},eN)}};if((0,g.isAbsoluteUrl)(ew))eU.href=ew;else if(!eT||eo||"a"===m.type&&!("href"in m.props)){let e=void 0!==ed?ed:null==ev?void 0:ev.locale,t=(null==ev?void 0:ev.isLocaleDomain)&&(0,V.getDomainLocale)(ew,e,null==ev?void 0:ev.locales,null==ev?void 0:ev.domainLocales);eU.href=t||(0,j.addBasePath)((0,E.addLocale)(ew,e,null==ev?void 0:ev.defaultLocale))}return eT?u.default.cloneElement(m,eU):u.default.createElement("a",{...ef,...eU},l)}),eo=el;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40920:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let m=l(67294),u=l(63436),d="function"==typeof IntersectionObserver,y=new Map,h=[];function createObserver(e){let t;let l={root:e.root||null,margin:e.rootMargin||""},m=h.find(e=>e.root===l.root&&e.margin===l.margin);if(m&&(t=y.get(m)))return t;let u=new Map,d=new IntersectionObserver(e=>{e.forEach(e=>{let t=u.get(e.target),l=e.isIntersecting||e.intersectionRatio>0;t&&l&&t(l)})},e);return t={id:l,observer:d,elements:u},h.push(l),y.set(l,t),t}function observe(e,t,l){let{id:m,observer:u,elements:d}=createObserver(l);return d.set(e,t),u.observe(e),function(){if(d.delete(e),u.unobserve(e),0===d.size){u.disconnect(),y.delete(m);let e=h.findIndex(e=>e.root===m.root&&e.margin===m.margin);e>-1&&h.splice(e,1)}}}function useIntersection(e){let{rootRef:t,rootMargin:l,disabled:y}=e,h=y||!d,[g,E]=(0,m.useState)(!1),b=(0,m.useRef)(null),L=(0,m.useCallback)(e=>{b.current=e},[]);(0,m.useEffect)(()=>{if(d){if(h||g)return;let e=b.current;if(e&&e.tagName){let m=observe(e,e=>e&&E(e),{root:null==t?void 0:t.current,rootMargin:l});return m}}else if(!g){let e=(0,u.requestIdleCallback)(()=>E(!0));return()=>(0,u.cancelIdleCallback)(e)}},[h,l,t,g,b.current]);let k=(0,m.useCallback)(()=>{E(!1)},[]);return[L,g,k]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7898:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return _app}});var m=l(85893),u=l(67294),d=l(23663),y=l(87462),h=l(63366);let g=u.createContext(null);function useTheme(){let e=u.useContext(g);return e}let E="function"==typeof Symbol&&Symbol.for;var b=E?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(e,t){if("function"==typeof t){let l=t(e);return l}return{...e,...t}}var ThemeProvider_ThemeProvider=function(e){let{children:t,theme:l}=e,d=useTheme(),y=u.useMemo(()=>{let e=null===d?l:mergeOuterLocalTheme(d,l);return null!=e&&(e[b]=null!==d),e},[l,d]);return(0,m.jsx)(g.Provider,{value:y,children:t})},L=l(34168);let k={};function useThemeScoping(e,t,l,m=!1){return u.useMemo(()=>{let u=e&&t[e]||t;if("function"==typeof l){let d=l(u),h=e?(0,y.Z)({},t,{[e]:d}):d;return m?()=>h:h}return e?(0,y.Z)({},t,{[e]:l}):(0,y.Z)({},t,l)},[e,t,l,m])}var esm_ThemeProvider_ThemeProvider=function(e){let{children:t,theme:l,themeId:u}=e,y=(0,L.Z)(k),h=useTheme()||k,g=useThemeScoping(u,y,l),E=useThemeScoping(u,h,l,!0);return(0,m.jsx)(ThemeProvider_ThemeProvider,{theme:E,children:(0,m.jsx)(d.T.Provider,{value:g,children:t})})},V=l(10606);let j=["theme"];function styles_ThemeProvider_ThemeProvider(e){let{theme:t}=e,l=(0,h.Z)(e,j),u=t[V.Z];return(0,m.jsx)(esm_ThemeProvider_ThemeProvider,(0,y.Z)({},l,{themeId:u?V.Z:void 0,theme:u||t}))}var ee=l(71657),ea=l(17297);let html=(e,t)=>(0,y.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),body=e=>(0,y.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),styles=(e,t=!1)=>{var l,m;let u={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,l])=>{var m;u[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(m=l.palette)?void 0:m.mode}});let d=(0,y.Z)({html:html(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,y.Z)({margin:0},body(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},u),h=null==(l=e.components)?void 0:null==(m=l.MuiCssBaseline)?void 0:m.styleOverrides;return h&&(d=[d,h]),d};var CssBaseline_CssBaseline=function(e){let t=(0,ee.Z)({props:e,name:"MuiCssBaseline"}),{children:l,enableColorScheme:d=!1}=t;return(0,m.jsxs)(u.Fragment,{children:[(0,m.jsx)(ea.Z,{styles:e=>styles(e,d)}),l]})};l(7650);var el=l(90602),eo=l(49946);l(70415);var e_=l(9008),ec=l.n(e_),em=l(4298),ed=l.n(em),ep=l(21480),ey=l(11163);function WaitForRouter(e){let{children:t}=e,l=(0,ey.useRouter)(),[d,y]=(0,u.useState)(!1);return((0,u.useEffect)(()=>{y(!0)},[]),d&&l.isReady)?(0,m.jsx)(m.Fragment,{children:t}):(0,m.jsx)(m.Fragment,{})}var eh=l(2962),eT=l(90948),ef=l(86010),ev=l(94780),eg=l(98216),eS=l(90629),eN=l(1588),eC=l(34867);function getAppBarUtilityClass(e){return(0,eC.Z)("MuiAppBar",e)}(0,eN.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);let eR=["className","color","enableColorOnDark","position"],useUtilityClasses=e=>{let{color:t,position:l,classes:m}=e,u={root:["root",`color${(0,eg.Z)(t)}`,`position${(0,eg.Z)(l)}`]};return(0,ev.Z)(u,getAppBarUtilityClass,m)},joinVars=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,eI=(0,eT.ZP)(eS.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,t[`position${(0,eg.Z)(l.position)}`],t[`color${(0,eg.Z)(l.color)}`]]}})(({theme:e,ownerState:t})=>{let l="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,y.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,y.Z)({},"default"===t.color&&{backgroundColor:l,color:e.palette.getContrastText(l)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,y.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,y.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:joinVars(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:joinVars(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:joinVars(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:joinVars(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ew=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiAppBar"}),{className:u,color:d="primary",enableColorOnDark:g=!1,position:E="fixed"}=l,b=(0,h.Z)(l,eR),L=(0,y.Z)({},l,{color:d,position:E,enableColorOnDark:g}),k=useUtilityClasses(L);return(0,m.jsx)(eI,(0,y.Z)({square:!0,component:"header",ownerState:L,elevation:4,className:(0,ef.Z)(k.root,u,"fixed"===E&&"mui-fixed"),ref:t},b))});function getToolbarUtilityClass(e){return(0,eC.Z)("MuiToolbar",e)}(0,eN.Z)("MuiToolbar",["root","gutters","regular","dense"]);let eE=["className","component","disableGutters","variant"],Toolbar_useUtilityClasses=e=>{let{classes:t,disableGutters:l,variant:m}=e;return(0,ev.Z)({root:["root",!l&&"gutters",m]},getToolbarUtilityClass,t)},eF=(0,eT.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,!l.disableGutters&&t.gutters,t[l.variant]]}})(({theme:e,ownerState:t})=>(0,y.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48}),({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar),eP=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiToolbar"}),{className:u,component:d="div",disableGutters:g=!1,variant:E="regular"}=l,b=(0,h.Z)(l,eE),L=(0,y.Z)({},l,{component:d,disableGutters:g,variant:E}),k=Toolbar_useUtilityClasses(L);return(0,m.jsx)(eF,(0,y.Z)({as:d,className:(0,ef.Z)(k.root,u),ref:t,ownerState:L},b))});var eD=l(87357),eA=l(34587),eL=l(52196),ex=l(51233),eU=l(41796),eQ=l(47739),eG=l(58974),eB=l(51705),eM=l(59773),eO=l(68686);let ek=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ListItemButton_useUtilityClasses=e=>{let{alignItems:t,classes:l,dense:m,disabled:u,disableGutters:d,divider:h,selected:g}=e,E=(0,ev.Z)({root:["root",m&&"dense",!d&&"gutters",h&&"divider",u&&"disabled","flex-start"===t&&"alignItemsFlexStart",g&&"selected"]},eO.t,l);return(0,y.Z)({},l,E)},eW=(0,eT.ZP)(eQ.Z,{shouldForwardProp:e=>(0,eT.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.dense&&t.dense,"flex-start"===l.alignItems&&t.alignItemsFlexStart,l.divider&&t.divider,!l.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,y.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eO.Z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eO.Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eO.Z.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eO.Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eO.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),eH=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiListItemButton"}),{alignItems:d="center",autoFocus:g=!1,component:E="div",children:b,dense:L=!1,disableGutters:k=!1,divider:V=!1,focusVisibleClassName:j,selected:ea=!1,className:el}=l,eo=(0,h.Z)(l,ek),e_=u.useContext(eM.Z),ec=u.useMemo(()=>({dense:L||e_.dense||!1,alignItems:d,disableGutters:k}),[d,e_.dense,L,k]),em=u.useRef(null);(0,eG.Z)(()=>{g&&em.current&&em.current.focus()},[g]);let ed=(0,y.Z)({},l,{alignItems:d,dense:ec.dense,disableGutters:k,divider:V,selected:ea}),ep=ListItemButton_useUtilityClasses(ed),ey=(0,eB.Z)(em,t);return(0,m.jsx)(eM.Z.Provider,{value:ec,children:(0,m.jsx)(eW,(0,y.Z)({ref:ey,href:eo.href||eo.to,component:(eo.href||eo.to)&&"div"===E?"button":E,focusVisibleClassName:(0,ef.Z)(ep.focusVisible,j),ownerState:ed,className:(0,ef.Z)(ep.root,el)},eo,{classes:ep,children:b}))})});var eK=l(59334),eY=l(78462);let ItemsWrapper=e=>{let{drawer:t,children:l}=e;return t?(0,m.jsx)(eY.Z,{component:"nav",children:l}):(0,m.jsx)(ex.Z,{component:"nav",direction:"row",gap:1,sx:{display:{xs:"none",lg:"flex"}},children:l})};var NavBar_NavItemsList=e=>{let{drawer:t}=e,{state:l}=(0,u.useContext)(ep.I),d=(0,ey.useRouter)();return(0,m.jsx)(ex.Z,{direction:t?"column":"row",justifyContent:t?"flex-start":"center",sx:{width:"100%",maxWidth:t?eL.RK:"inherit"},children:(0,m.jsx)(ItemsWrapper,{drawer:t,children:eL.te.map((e,u)=>{if(!(null==l?void 0:l.signedIn)&&!(null==l?void 0:l.profile)&&!(null==l?void 0:l.demo)&&!(null==l?void 0:l.manualImport)&&!eL.TE.includes(e)||(null==l?void 0:l.profile)&&"guilds"===e)return null;let y="account"===e?"account/misc/general":"tools"===e?"tools/card-search":e;return(0,m.jsx)(eH,{component:eA.Z,selected:null==d?void 0:d.pathname.includes(e),to:{pathname:"/".concat(y),query:null==d?void 0:d.query},sx:{borderRadius:t?"inherit":2,p:t?"8px 16px":"0 8px"},"data-cy":"nav-item-".concat(y),dense:!t,size:"medium",children:(0,m.jsx)(eK.Z,{component:"span",disableTypography:!0,sx:{fontWeight:"bold",fontSize:14},children:e.toUpperCase()})},"".concat(e,"-").concat(u))})})})},eZ=l(39485),eV=l(13540),ez=l(83321),eX=l(98396),ej=l(50657),eJ=l(37645),e$=l(23972),e0=l(23795),e1=l(6514),e2=l(11703),e5=l(40044),e3=l(88557),e4=l(79535),e6=l(34721),e7=l(93946),e9=l(50594),common_Switch=e=>{let{selected:t,children:l}=e,m=Array.isArray(l)?l:[l];return null==m?void 0:m.filter(e=>{let{props:l}=e;return(null==l?void 0:l["switch-id"])===t})},e8=l(50135),te=l(66242),ti=l(44267),tl=l(6875),to=l(31812),Logins_EmailLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(""),[g,E]=(0,u.useState)(""),[b,L]=(0,u.useState)(!1),[k,V]=(0,u.useState)(""),handleChange=e=>{L(!1),V("");let t="email"===e.target.name?h:E;t(e.target.value)},handleKeyDown=async e=>{"Enter"===e.code&&await handleSubmit()},handleAuthenticating=()=>{d(!0)},handleSubmit=async()=>{if(L(!0),y&&g){let e;handleAuthenticating();try{e=await (0,tl.tc)({email:y,password:g})}catch(e){d(!1),t({type:"loginError",data:null==e?void 0:e.message})}t({type:"login",data:{loginData:e,loginType:"email"}})}else V("Please enter valid email and password")};return(0,m.jsxs)(ex.Z,{gap:3,children:[(0,m.jsx)(e8.Z,{inputProps:{autoComplete:"off"},value:y,error:b&&!y,name:"email",onChange:handleChange,onKeyDown:handleKeyDown,label:"Email"}),(0,m.jsx)(e8.Z,{value:g,error:b&&!g,name:"password",onChange:handleChange,onKeyDown:handleKeyDown,label:"Password",inputProps:{type:"password",autoComplete:"off"}}),(0,m.jsx)(to.Z,{onClick:handleSubmit,loading:l,variant:"contained",children:"Login"}),(null==e?void 0:e.loginError)||k?(0,m.jsx)(te.Z,{raised:!0,sx:{bgcolor:"#c02222"},children:(0,m.jsx)(ti.Z,{children:(0,m.jsx)(e$.Z,{variant:"body1",children:(null==e?void 0:e.loginError)||k})})}):null]})},t_=l(98456),tm=l(67998);let td="https://www.google.com/device";var Logins_GoogleLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(""),[g,E]=(0,u.useState)(!1);(0,u.useEffect)(()=>{g&&!l&&E(!1)},[l]),(0,u.useEffect)(()=>{let getCode=async()=>{let e=await (0,tm.l)(),l=null==e?void 0:e.user_code,m=null==e?void 0:e.device_code;h(l),t({type:"login",data:{loginData:{userCode:l,deviceCode:m},loginType:"google"}})};getCode()},[]);let handleAuthenticating=()=>{d(!0)},handleCopyAndOpenUrl=async()=>{try{await navigator.clipboard.writeText(y),window.open(td,"_blank","noopener,noreferrer"),handleAuthenticating()}catch(e){console.error(e)}};return(0,m.jsxs)(ex.Z,{alignItems:"center",gap:2,sx:{px:5},children:[(0,m.jsx)(e$.Z,{textAlign:"center",children:"To sign in with Google, go to the following url and enter the code below to verify it is you"}),(0,m.jsx)(e0.Z,{mr:1,target:"_blank",href:td,rel:"noreferrer",onClick:handleAuthenticating,children:"https://www.google.com/device"}),(0,m.jsx)(e$.Z,{justifySelf:"center",textAlign:"center",sx:{p:1,border:"1px solid white",borderRadius:1,margin:"0 auto",minWidth:100},width:"fit-content",children:y||(0,m.jsx)(t_.Z,{sx:{textAlign:"center"},size:14})}),(0,m.jsx)(to.Z,{loading:g||!y,variant:"contained",onClick:handleCopyAndOpenUrl,children:(0,m.jsx)("span",{children:"Copy code and open Url"})}),(0,m.jsx)(e$.Z,{mt:2,color:"error",variant:"body1",children:null==e?void 0:e.loginError})]})},tp=l(7337),Logins_AppleLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),handleAppleLogin=async()=>{if(!l){handleAuthenticating();try{let e=await (0,tp.Yw)();await (0,tp.IS)(e),t({type:"login",data:{loginData:{...e||{}},loginType:"apple"}})}catch(e){t({type:"loginError",data:e})}}},handleAuthenticating=()=>{d(!0)};return(0,m.jsxs)(ex.Z,{sx:{px:5},children:[(0,m.jsx)(e$.Z,{textAlign:"center",children:"An Apple Sign-in page will open for you in a popup, Please complete the steps there, then return here"}),(0,m.jsx)(e$.Z,{textAlign:"center",variant:"caption",children:"* please make sure you enable pop-ups in your browser"}),(0,m.jsx)(to.Z,{loading:l,sx:{mt:3},onClick:handleAppleLogin,variant:"contained",children:"Login"}),(0,m.jsx)(e$.Z,{mt:2,color:"error",variant:"body1",children:null==e?void 0:e.loginError})]})};let ty=[{name:"email",icon:(0,m.jsx)(e3.Z,{})},{name:"gmail",icon:(0,m.jsx)(e4.Z,{})},{name:"apple",icon:(0,m.jsx)(e6.Z,{})}];var NavBar_LoginDialog=e=>{let{open:t,onClose:l}=e,{dispatch:d,setWaitingForAuth:y,waitingForAuth:h}=(0,u.useContext)(ep.I),[g,E]=(0,u.useState)(0),b=(0,eX.Z)(e=>e.breakpoints.down("sm"),{noSsr:!0}),handleClose=()=>{E(0),d({type:"loginError",data:""}),y(!1),l()};return(0,m.jsxs)(ej.Z,{fullWidth:!0,maxWidth:"sm",open:t,onClose:handleClose,children:[(0,m.jsxs)(eJ.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,m.jsxs)(ex.Z,{children:[(0,m.jsx)(e$.Z,{variant:"h6",children:"Login"}),(0,m.jsx)(e$.Z,{variant:"body2",children:"Use the same credentials as your idleon account"}),(0,m.jsx)(e0.Z,{sx:{fontSize:14,width:"fit-content"},href:"https://www.reddit.com/r/idleon/comments/12ccw2h/steam_email/",target:"_blank",children:"Can't remember your email?"})]}),(0,m.jsx)(e7.Z,{onClick:handleClose,children:(0,m.jsx)(e9.Z,{})})]}),(0,m.jsxs)(e1.Z,{children:[(0,m.jsx)(e2.Z,{centered:!0,sx:{marginBottom:3},variant:"fullWidth",value:g,onChange:(e,t)=>{E(t),d({type:"loginError",data:""}),y(!1)},children:ty.map((e,t)=>{let{name:l,icon:u}=e;return(0,m.jsx)(e5.Z,{disabled:h,iconPosition:b?"top":"start",label:l,icon:u},"".concat(l,"-").concat(t))})}),(0,m.jsxs)(common_Switch,{selected:g,children:[(0,m.jsx)(Logins_EmailLogin,{"switch-id":0}),(0,m.jsx)(Logins_GoogleLogin,{"switch-id":1}),(0,m.jsx)(Logins_AppleLogin,{"switch-id":2})]})]})]})},NavBar_LoginButton=()=>{let{state:e,logout:t}=(0,u.useContext)(ep.I),[l,d]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{d(!1)},[null==e?void 0:e.signedIn]),(0,m.jsxs)(eD.Z,{sx:{marginLeft:"auto"},children:[(null==e?void 0:e.signedIn)?(0,m.jsx)(ez.Z,{sx:{color:"white","&:hover":{borderColor:"white"}},onClick:()=>{t()},startIcon:(0,m.jsx)(eV.Z,{}),children:"Logout"}):(0,m.jsx)(ez.Z,{sx:{color:"white","&:hover":{borderColor:"white"}},onClick:()=>{d(!0)},startIcon:(0,m.jsx)(eZ.Z,{}),children:"Login"}),(0,m.jsx)(NavBar_LoginDialog,{open:l,onClose:()=>d(!1)})]})},tT=l(84995),tf=l(8662),tv=l(57144),tg=l(2734),tS=l(30577),tN=l(5340);let tC=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getTranslateValue(e,t,l){let m;let u=t.getBoundingClientRect(),d=l&&l.getBoundingClientRect(),y=(0,tN.Z)(t);if(t.fakeTransform)m=t.fakeTransform;else{let e=y.getComputedStyle(t);m=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let h=0,g=0;if(m&&"none"!==m&&"string"==typeof m){let e=m.split("(")[1].split(")")[0].split(",");h=parseInt(e[4],10),g=parseInt(e[5],10)}return"left"===e?d?`translateX(${d.right+h-u.left}px)`:`translateX(${y.innerWidth+h-u.left}px)`:"right"===e?d?`translateX(-${u.right-d.left-h}px)`:`translateX(-${u.left+u.width-h}px)`:"up"===e?d?`translateY(${d.bottom+g-u.top}px)`:`translateY(${y.innerHeight+g-u.top}px)`:d?`translateY(-${u.top-d.top+u.height-g}px)`:`translateY(-${u.top+u.height-g}px)`}function resolveContainer(e){return"function"==typeof e?e():e}function setTranslateValue(e,t,l){let m=resolveContainer(l),u=getTranslateValue(e,t,m);u&&(t.style.webkitTransform=u,t.style.transform=u)}let tR=u.forwardRef(function(e,t){let l=(0,tg.Z)(),d={enter:l.transitions.easing.easeOut,exit:l.transitions.easing.sharp},g={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{addEndListener:E,appear:b=!0,children:L,container:k,direction:V="down",easing:j=d,in:ee,onEnter:ea,onEntered:el,onEntering:eo,onExit:e_,onExited:ec,onExiting:em,style:ed,timeout:ep=g,TransitionComponent:ey=tf.ZP}=e,eh=(0,h.Z)(e,tC),eT=u.useRef(null),ef=(0,eB.Z)(L.ref,eT,t),normalizedTransitionCallback=e=>t=>{e&&(void 0===t?e(eT.current):e(eT.current,t))},ev=normalizedTransitionCallback((e,t)=>{setTranslateValue(V,e,k),(0,tS.n)(e),ea&&ea(e,t)}),eg=normalizedTransitionCallback((e,t)=>{let m=(0,tS.C)({timeout:ep,style:ed,easing:j},{mode:"enter"});e.style.webkitTransition=l.transitions.create("-webkit-transform",(0,y.Z)({},m)),e.style.transition=l.transitions.create("transform",(0,y.Z)({},m)),e.style.webkitTransform="none",e.style.transform="none",eo&&eo(e,t)}),eS=normalizedTransitionCallback(el),eN=normalizedTransitionCallback(em),eC=normalizedTransitionCallback(e=>{let t=(0,tS.C)({timeout:ep,style:ed,easing:j},{mode:"exit"});e.style.webkitTransition=l.transitions.create("-webkit-transform",t),e.style.transition=l.transitions.create("transform",t),setTranslateValue(V,e,k),e_&&e_(e)}),eR=normalizedTransitionCallback(e=>{e.style.webkitTransition="",e.style.transition="",ec&&ec(e)}),eI=u.useCallback(()=>{eT.current&&setTranslateValue(V,eT.current,k)},[V,k]);return u.useEffect(()=>{if(ee||"down"===V||"right"===V)return;let e=(0,tv.Z)(()=>{eT.current&&setTranslateValue(V,eT.current,k)}),t=(0,tN.Z)(eT.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[V,ee,k]),u.useEffect(()=>{ee||eI()},[ee,eI]),(0,m.jsx)(ey,(0,y.Z)({nodeRef:eT,onEnter:ev,onEntered:eS,onEntering:eg,onExit:eC,onExited:eR,onExiting:eN,addEndListener:e=>{E&&E(eT.current,e)},appear:b,in:ee,timeout:ep},eh,{children:(e,t)=>u.cloneElement(L,(0,y.Z)({ref:ef,style:(0,y.Z)({visibility:"exited"!==e||ee?void 0:"hidden"},ed,L.props.style)},t))}))});function getDrawerUtilityClass(e){return(0,eC.Z)("MuiDrawer",e)}(0,eN.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let tI=["BackdropProps"],tw=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Drawer_overridesResolver=(e,t)=>{let{ownerState:l}=e;return[t.root,("permanent"===l.variant||"persistent"===l.variant)&&t.docked,t.modal]},Drawer_useUtilityClasses=e=>{let{classes:t,anchor:l,variant:m}=e,u={root:["root"],docked:[("permanent"===m||"persistent"===m)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,eg.Z)(l)}`,"temporary"!==m&&`paperAnchorDocked${(0,eg.Z)(l)}`]};return(0,ev.Z)(u,getDrawerUtilityClass,t)},tE=(0,eT.ZP)(tT.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:Drawer_overridesResolver})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),tF=(0,eT.ZP)("div",{shouldForwardProp:eT.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Drawer_overridesResolver})({flex:"0 0 auto"}),tq=(0,eT.ZP)(eS.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.paper,t[`paperAnchor${(0,eg.Z)(l.anchor)}`],"temporary"!==l.variant&&t[`paperAnchorDocked${(0,eg.Z)(l.anchor)}`]]}})(({theme:e,ownerState:t})=>(0,y.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),tP={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(e){return -1!==["left","right"].indexOf(e)}function getAnchor(e,t){return"rtl"===e.direction&&isHorizontal(t)?tP[t]:t}let tD=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiDrawer"}),d=(0,tg.Z)(),g={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{anchor:E="left",BackdropProps:b,children:L,className:k,elevation:V=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:ea}={},onClose:el,open:eo=!1,PaperProps:e_={},SlideProps:ec,TransitionComponent:em=tR,transitionDuration:ed=g,variant:ep="temporary"}=l,ey=(0,h.Z)(l.ModalProps,tI),eh=(0,h.Z)(l,tw),eT=u.useRef(!1);u.useEffect(()=>{eT.current=!0},[]);let ev=getAnchor(d,E),eg=(0,y.Z)({},l,{anchor:E,elevation:V,open:eo,variant:ep},eh),eS=Drawer_useUtilityClasses(eg),eN=(0,m.jsx)(tq,(0,y.Z)({elevation:"temporary"===ep?V:0,square:!0},e_,{className:(0,ef.Z)(eS.paper,e_.className),ownerState:eg,children:L}));if("permanent"===ep)return(0,m.jsx)(tF,(0,y.Z)({className:(0,ef.Z)(eS.root,eS.docked,k),ownerState:eg,ref:t},eh,{children:eN}));let eC=(0,m.jsx)(em,(0,y.Z)({in:eo,direction:tP[ev],timeout:ed,appear:eT.current},ec,{children:eN}));return"persistent"===ep?(0,m.jsx)(tF,(0,y.Z)({className:(0,ef.Z)(eS.root,eS.docked,k),ownerState:eg,ref:t},eh,{children:eC})):(0,m.jsx)(tE,(0,y.Z)({BackdropProps:(0,y.Z)({},b,ea,{transitionDuration:ed}),className:(0,ef.Z)(eS.root,eS.modal,k),open:eo,ownerState:eg,onClose:el,hideBackdrop:j,ref:t},eh,ey,{children:eC}))});var tA=l(326),tL=l(61599),tx=l(67720),tU=l(60181),tQ=l(23508),tG=l(97212),tB=l(57922),tM=l(30925),tO=l(38273),tk=l(40929);let tW={misc:{icon:"data/CharSlot",categories:[{label:"general",icon:"data/ClassIcons1"},{label:"storage",icon:"data/InvStorage42"},{label:"quests",icon:"data/Quest62"},{label:"dungeons",icon:"data/DungeonA7"},{label:"apocalypses",icon:"data/UISkillIcon110"},{label:"constellations",icon:"data/StarTitle1"},{label:"randomEvents",icon:"etc/Mega_Grumblo"},{label:"guild",icon:"etc/Guild"}]},"premium-currency":{style:{filter:"hue-rotate(180deg)"},icon:"data/PremiumGem",categories:[{label:"gemShop",icon:"data/PremiumGem"},{label:"companions",icon:"data/PremiumGem",style:{filter:"hue-rotate(280deg)"}}]},"task board":{icon:"etc/TasksStar",categories:[{label:"achievements",icon:"data/TaskAchBorder1"},{label:"tasks",icon:"etc/TasksStar"},{label:"merits",icon:"etc/Merit_4"}]},"world 1":{icon:"data/BadgeG2",categories:[{label:"anvil",icon:"data/ClassIcons43"},{label:"forge",icon:"data/ForgeD"},{label:"bribes",icon:"data/BribeW"},{label:"stamps",icon:"data/StampA34"},{label:"owl",icon:"etc/Owl"}]},"world 2":{icon:"data/BadgeD2",categories:[{label:"bubbles",icon:"data/aBrewOptionA0"},{label:"Cauldrons",icon:"data/aStirringStick0"},{label:"vials",icon:"data/aVials1"},{label:"sigils",icon:"data/LabBonus12"},{label:"arcadeShop",icon:"data/PachiBall1"},{label:"islands",icon:"data/Island1"},{label:"weeklyBosses",icon:"etc/SWR_Containment"},{label:"kangaroo",icon:"data/RooA"},{label:"voteBallot",icon:"etc/VoteBallot"}]},"world 3":{icon:"data/BadgeI2",categories:[{label:"Printer",icon:"data/ConTower0"},{label:"refinery",icon:"data/TaskSc6"},{label:"atomCollider",icon:"data/ConTower8"},{label:"Equinox",icon:"data/Quest78"},{label:"buildings",icon:"data/ConTower7"},{label:"deathNote",icon:"data/ConTower2"},{label:"worship",icon:"data/ClassIcons50"},{label:"prayers",icon:"data/PrayerSel"},{label:"Traps",icon:"data/TrapBoxSet1"},{label:"saltLick",icon:"data/ConTower3"},{label:"construction",icon:"data/ClassIcons49"}]},"world 4":{icon:"data/Ladle",categories:[{label:"cooking",icon:"data/ClassIcons51"},{label:"breeding",icon:"data/ClassIcons52"},{label:"laboratory",icon:"data/ClassIcons53"},{label:"rift",icon:"data/Mface75"},{label:"killroyPrime",icon:"etc/KillroyPrime"},{label:"tome",icon:"etc/Tome_0"}]},"world 5":{icon:"data/GemP24",categories:[{label:"sailing",icon:"data/ClassIcons54"},{label:"divinity",icon:"data/ClassIcons55"},{label:"gaming",icon:"data/ClassIcons56"},{label:"slab",icon:"etc/Slab"}]},"world 6":{icon:"etc/sneaking-temp",categories:[{label:"farming",icon:"data/ClassIcons57"},{label:"sneaking",icon:"data/ClassIcons58"},{label:"summoning",icon:"data/ClassIcons59"},{label:"beanstalk",icon:"etc/beanstalk1"}]}};var AppDrawer_AccountDrawer=()=>{var e,t;let{state:l}=(0,u.useContext)(ep.I),[d,y]=(0,u.useState)({}),h=(0,ey.useRouter)(),handleClick=(e,t)=>{if(t)return y({...d,[e]:!(null==d?void 0:d[e])});handleLabelClick("",e)},handleLabelClick=(e,t)=>{let l=e?"/account/".concat(e.split(" ").join("-"),"/").concat(t):"/account/".concat(t);void 0!==window.gtag&&window.gtag("event","handle_nav",{event_category:l,event_label:"engagement",value:1}),h.push({pathname:l,query:h.query})},isSelected=e=>h.pathname.includes(e);return(0,m.jsxs)(ex.Z,{sx:{height:"100%"},children:[(0,m.jsx)(tx.Z,{}),(0,m.jsxs)(eY.Z,{children:[(null==l?void 0:null===(e=l.account)||void 0===e?void 0:e.accountCreateTime)?(0,m.jsxs)(tG.ZP,{children:["Account created at: ",(0,tk.Z)(null==l?void 0:null===(t=l.account)||void 0===t?void 0:t.accountCreateTime,"dd/MM/yyyy HH:mm:ss")]}):null,Object.entries(tW).map((e,t)=>{let[l,y]=e,{icon:h,categories:g,style:E}=y;return(0,m.jsxs)(u.Fragment,{children:[(0,m.jsxs)(tG.ZP,{"data-cy":l,button:!0,selected:isSelected(l),onClick:()=>handleClick(l,g),children:[(0,m.jsx)("img",{className:"list-img",width:32,height:32,style:{objectFit:"contain",...E},src:"".concat(tM.prefix).concat(h,".png"),alt:""}),(0,m.jsx)(eK.Z,{style:{marginLeft:10},primary:l.split("-").join(" ").capitalizeAllWords()}),g?(null==d?void 0:d[l])?(0,m.jsx)(tU.Z,{}):(0,m.jsx)(tQ.Z,{}):null]}),g?(0,m.jsx)(tB.Z,{in:null==d?void 0:d[l],timeout:"auto",unmountOnExit:!0,children:null==g?void 0:g.map((e,t)=>{let u=null==e?void 0:e.label.split(/(?=[A-Z])/).map(e=>e.toLowerCase()).join("-");return(0,m.jsxs)(tG.ZP,{selected:isSelected(u),"data-cy":u,style:{paddingLeft:35},button:!0,onClick:()=>handleLabelClick(l,u),children:[(0,m.jsx)("img",{className:"list-img",width:32,height:32,style:{objectFit:"contain",...null==e?void 0:e.style},src:"".concat(tM.prefix).concat(e.icon,".png"),alt:""}),(0,m.jsx)(eK.Z,{style:{marginLeft:10},primary:null==e?void 0:e.label.split(/(?=[A-Z])/).join(" ").capitalize()})]},e+" "+t)})}):null]},l+" "+t)})]}),(0,m.jsx)(eY.Z,{style:{marginTop:"auto"},children:(0,m.jsx)(tG.ZP,{children:(0,m.jsx)(eK.Z,{children:(0,m.jsx)(tO.Z,{display:"inline-block"})})})}),(0,m.jsx)(tx.Z,{})]})},tH=l(69368),tK=l(84592);let tY=["className"],ListItemIcon_useUtilityClasses=e=>{let{alignItems:t,classes:l}=e;return(0,ev.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},tK.f,l)},tZ=(0,eT.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,"flex-start"===l.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,y.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),tV=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiListItemIcon"}),{className:d}=l,g=(0,h.Z)(l,tY),E=u.useContext(eM.Z),b=(0,y.Z)({},l,{alignItems:E.alignItems}),L=ListItemIcon_useUtilityClasses(b);return(0,m.jsx)(tZ,(0,y.Z)({className:(0,ef.Z)(L.root,d),ownerState:b,ref:t},g))});var tz=l(87918),tX=l(2511),AppDrawer_CharactersDrawer=()=>{var e,t;let{state:l,dispatch:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(null),[g,E]=u.useState((null==l?void 0:l.displayedCharacters)?null==l?void 0:l.displayedCharacters:{all:!1,...null==l?void 0:null===(e=l.characters)||void 0===e?void 0:e.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!1}},{})}),[b,L]=(0,u.useState)(l.filters?l.filters:tM.sections.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!1}},{})),handleCharacterChange=(e,t,m)=>{var u,y;let h;E(h=m?{...null==l?void 0:null===(u=l.characters)||void 0===u?void 0:u.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:m===l}},{}),all:!1}:"all"===e?{all:!g.all,...null==l?void 0:null===(y=l.characters)||void 0===y?void 0:y.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!g.all}},{})}:{...g,[e.target.name]:e.target.checked}),d({type:"displayedCharacters",data:h})},k=(0,u.useMemo)(()=>{var e;return null==l?void 0:null===(e=l.characters)||void 0===e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+(l||0)},0)},[l]),handleChipClick=e=>{let t={...b,[e]:!(null==b?void 0:b[e])};void 0!==window.gtag&&window.gtag("event","filter_selection",{event_category:e,event_label:"engagement",value:!(null==b?void 0:b[e])}),L(t),d({type:"filters",data:t})};return(0,m.jsxs)(ex.Z,{sx:{height:"100%"},children:[(0,m.jsx)(tx.Z,{}),(0,m.jsxs)(eY.Z,{dense:!0,children:[(0,m.jsx)(tG.ZP,{secondaryAction:(0,m.jsx)(tH.Z,{edge:"end",onChange:()=>handleCharacterChange("all"),checked:null==g?void 0:g.all}),children:(0,m.jsxs)(eK.Z,{children:["All (Lv. ",k,")"]})}),null==l?void 0:null===(t=l.characters)||void 0===t?void 0:t.map((e,t)=>{let{name:l,classIndex:u,level:d}=e;return(0,m.jsxs)(tG.ZP,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),secondaryAction:(0,m.jsx)(tH.Z,{edge:"end",name:"".concat(l),onChange:handleCharacterChange,checked:null==g?void 0:g[l],role:"checkbox","aria-label":"Check to see stats for ".concat(l)}),children:[(0,m.jsx)(tV,{children:(0,m.jsx)(tX.Z,{title:"Lv. ".concat(d),children:(0,m.jsx)("img",{style:{width:38,height:36},src:"".concat(tM.prefix,"data/ClassIcons").concat(u,".png"),alt:""})})}),(0,m.jsx)(eK.Z,{sx:{height:30,margin:0},id:l,primary:l,secondary:y===t?(0,m.jsx)("span",{onClick:()=>handleCharacterChange(null,null,l),style:{textDecoration:"underline",cursor:"pointer"},children:"Only"}):""})]},"".concat(l,"-").concat(t))})]}),(0,m.jsx)(tx.Z,{}),(0,m.jsx)(eY.Z,{children:(0,m.jsx)(tG.ZP,{children:(0,m.jsxs)(ex.Z,{gap:2,children:[(0,m.jsx)(e$.Z,{children:"Filter by section"}),(0,m.jsx)(ex.Z,{direction:"row",rowGap:1.5,columnGap:1,flexWrap:"wrap",children:tM.sections.map((e,t)=>{let{name:l}=e;return(0,m.jsx)(tz.Z,{sx:{borderRadius:"8px",height:24,minWidth:60,maxWidth:150,border:"1px solid gray"},onClick:()=>handleChipClick(l),size:"small",variant:(null==b?void 0:b[l])?"filled":"outlined",color:(null==b?void 0:b[l])?"primary":"default",label:l},"".concat(l,"-").concat(t))})})]})})}),(0,m.jsx)(tx.Z,{}),(0,m.jsx)(eY.Z,{style:{marginTop:"auto"},children:(0,m.jsx)(tG.ZP,{children:(0,m.jsx)(eK.Z,{children:(0,m.jsx)(tO.Z,{display:"inline-block"})})})})]})},tj=l(27530);let tJ=(0,tL.Z)(tD)(()=>({display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:eL.RK},"& .MuiPaper-root":{backgroundImage:"none"}}));var NavBar_AppDrawer=e=>{let{permanent:t}=e,{state:l}=(0,u.useContext)(ep.I),d=(0,ey.useRouter)(),[y,h]=(0,u.useState)(!1);(0,u.useEffect)(()=>{h(!1)},[d.pathname]);let toggleDrawer=(e,t)=>{h(!t)},getDrawer=()=>d.pathname.includes("/account")?(0,m.jsx)(AppDrawer_AccountDrawer,{}):d.pathname.includes("/characters")?(0,m.jsx)(AppDrawer_CharactersDrawer,{}):d.pathname.includes("/tools")?(0,m.jsx)(tj.Z,{}):null;return(0,m.jsxs)(eD.Z,{component:"nav",sx:{display:"flex",alignItems:"center",height:eL.OC},children:[(0,m.jsx)(e7.Z,{onClick:e=>toggleDrawer(e,y),"aria-label":"open drawer",edge:"start",sx:{mr:2,display:{xs:"inherit",lg:"none"}},children:(0,m.jsx)(tA.Z,{})}),(0,m.jsxs)(ex.Z,{children:[(0,m.jsx)(e0.Z,{to:{pathname:"/",query:d.query},underline:"none",component:eA.Z,sx:{mr:2},color:"inherit",noWrap:!0,variant:"h6",children:"Idleon Toolbox"}),(null==l?void 0:l.lastUpdated)?(0,m.jsx)(e$.Z,{variant:"caption",children:(0,tk.Z)(null==l?void 0:l.lastUpdated,"dd/MM/yyyy HH:mm:ss")}):null]}),t?(0,m.jsxs)(tJ,{variant:"permanent",open:!0,sx:{display:(0,tM.shouldDisplayDrawer)(d.pathname)?{xs:"none",lg:"inherit"}:"none"},children:[(0,m.jsx)(eP,{sx:{height:eL.OC,minHeight:eL.OC}}),getDrawer()]}):(0,m.jsxs)(tJ,{sx:{display:{xs:"inherit",lg:"none"}},anchor:"left",open:y,onClose:()=>h(!1),children:[(0,m.jsx)(eP,{sx:{height:eL.OC,minHeight:eL.OC}}),(0,m.jsx)(NavBar_NavItemsList,{drawer:!0}),(0,m.jsx)(tx.Z,{}),getDrawer()]})]})},t$=l(13250),t0=l(56868),t1=l(36111);let t2=(0,eT.ZP)(ew,{shouldForwardProp:e=>"open"!==e})(e=>{let{theme:t,open:l}=e;return{zIndex:t.zIndex.drawer+1,transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),...l&&{marginLeft:eL.RK,width:"calc(100% - ".concat(eL.RK,"px)"),transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})}}});var common_NavBar=e=>{var t,d,y,h;let{children:g}=e,{dispatch:E,state:b}=(0,u.useContext)(ep.I),L=(0,ey.useRouter)(),k=(0,eX.Z)(e=>e.breakpoints.down("sm"),{noSsr:!0}),V=(0,tM.shouldDisplayDrawer)(null==L?void 0:L.pathname),handlePaste=async()=>{try{let e=JSON.parse(await navigator.clipboard.readText()),{data:t,charNames:m,companion:u,guildData:d,serverVars:y}=e,{parseData:h}=await l.e(3736).then(l.bind(l,83736)),g=h(t,m,u,d,y),b=new Date().getTime();localStorage.setItem("lastUpdated",JSON.stringify(b)),console.log("Manual Import",{...g,lastUpdated:b,manualImport:!0}),localStorage.setItem("rawJson",JSON.stringify({data:t,charNames:m,companion:u,guildData:d,serverVars:y,lastUpdated:b})),E({type:"data",data:{...g,lastUpdated:b,manualImport:!0}})}catch(e){console.error("Error while trying to manual import",e)}};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eD.Z,{sx:{display:"flex"},children:(0,m.jsx)(t2,{compopnent:"nav",children:(0,m.jsxs)(eP,{sx:{height:eL.OC,minHeight:eL.OC},children:[(0,m.jsx)(NavBar_AppDrawer,{}),(0,m.jsx)(NavBar_NavItemsList,{}),tM.isProd?null:(0,m.jsx)(e7.Z,{"data-cy":"paste-data",color:"inherit",onClick:handlePaste,children:(0,m.jsx)(t0.Z,{})}),(null==b?void 0:b.profile)&&(null==b?void 0:null===(d=b.characters)||void 0===d?void 0:null===(t=d[0])||void 0===t?void 0:t.name)?(0,m.jsxs)(e$.Z,{variant:"caption",children:["Inspecting ",null==b?void 0:null===(h=b.characters)||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y.name]}):null,(0,m.jsx)(NavBar_LoginButton,{})]})})}),(0,m.jsx)(NavBar_AppDrawer,{permanent:!0}),(0,m.jsx)(eD.Z,{sx:{textAlign:"center",pt:1,pr:3,pl:{xs:3,lg:V?"".concat(eL.RK+24,"px"):3}},children:(0,m.jsxs)(e$.Z,{component:"div",variant:"caption",sx:{fontSize:15},children:["* Please consider disabling your ad-blocker to show your support for the platform, ensuring free access to valuable content for all users ",(0,m.jsx)(t1.Z,{color:"error",sx:{fontSize:12}})]})}),(0,m.jsx)(eD.Z,{component:"main",sx:{pt:3,pr:3,pl:{xs:3,lg:V?"".concat(eL.RK+24,"px"):3},mb:k?"75px":"110px"},children:g}),(0,m.jsx)(eD.Z,{style:{backgroundColor:tM.isProd?"":"#d73333",position:"fixed",bottom:0,left:{xs:"inherit",lg:V?eL.RK:3},width:"100%"},children:(0,m.jsx)(t$.a,{style:{display:"block",height:k?50:90,maxHeight:k?50:90,maxWidth:1200,margin:"0 auto"},client:"ca-pub-1842647313167572",slot:"1488341218",format:""})},null==L?void 0:L.pathname)]})};let t5=(0,el.Z)({key:"css"}),t3=["https://firestore.googleapis.com","https://tpc.googlesyndication.com","https://partner.googleadservices.com","https://pagead2.googlesyndication.com","https://identitytoolkit.googleapis.com","https://googleads.g.doubleclick.net","https://www.google-analytics.com","https://adservice.google.co.il","https://www.googletagmanager.com","https://adservice.google.com"];var _app=e=>{let{Component:t,emotionCache:l=t5,pageProps:u}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ec(),{children:[(0,m.jsx)("title",{children:"Idleon Toolbox"}),(0,m.jsx)("meta",{name:"description",content:"Power up your Legends of Idleon adventure with Idleon Toolbox's essential tools and resources for optimizing gameplay, character builds, crafting, and more."}),(0,m.jsx)("meta",{name:"googlebot",content:"index,follow"}),null==t3?void 0:t3.map(e=>(0,m.jsx)("link",{rel:"preconnect",href:e},e))]}),!1,(0,m.jsx)(ed(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-YER8JY07QK"}),(0,m.jsx)(ed(),{id:"ga-analytics",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'G-YER8JY07QK'); \n "}),(0,m.jsx)(ed(),{async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1842647313167572",id:"ads-by-google",strategy:"afterInteractive",crossOrigin:"anonymous"}),(0,m.jsx)(d.C,{value:l,children:(0,m.jsx)(styles_ThemeProvider_ThemeProvider,{theme:eo.Z,children:(0,m.jsxs)(d.b,{theme:eo.Z,children:[(0,m.jsx)(CssBaseline_CssBaseline,{}),(0,m.jsx)(WaitForRouter,{children:(0,m.jsx)(ep.Z,{children:(0,m.jsxs)(common_NavBar,{children:[(0,m.jsx)(eh.lX,{openGraph:{type:"website",locale:"en_US",url:"https://www.idleontoolbox.com/",siteName:"Idleon Toolbox"}}),(0,m.jsx)(t,{...u})]})})})]})})})]})}},9339:function(e,t,l){"use strict";l.d(t,{fC:function(){return calcTotalAchievements},jy:function(){return getAchievements},k6:function(){return getAchievementStatus}});var m=l(30925),u=l(70473);let getAchievements=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.AchieveReg)||(null==e?void 0:e.AchieveReg),l=(0,m.tryToParse)(null==e?void 0:e.SteamAchieve)||(null==e?void 0:e.SteamAchieve);return parseAchievements(t,l)},parseAchievements=(e,t)=>null===u.achievements||void 0===u.achievements?void 0:u.achievements.map((l,m)=>{let{steamIndex:u}=l,d=u?(null==t?void 0:t[u])===-1:(null==e?void 0:e[m])===-1,y=u?null==t?void 0:t[u]:null==e?void 0:e[m];return{...l,completed:d,...y>=0?{currentQuantity:y}:{}}}),getAchievementStatus=(e,t)=>{if(!(null==e?void 0:e[t]))return 0;switch(t){case 27:case 37:case 44:case 107:case 109:case 117:return 5;case 108:return 10;case 99:case 104:return 20;default:var l;return(null==e?void 0:null===(l=e[t])||void 0===l?void 0:l.completed)?1:0}},calcTotalAchievements=e=>e.reduce((e,t)=>{let{completed:l}=t;return l?e+1:e},0)},88054:function(e,t,l){"use strict";l.d(t,{AK:function(){return getMaxCauldron},B9:function(){return updateVials},GG:function(){return getUpgradeableBubbles},It:function(){return calcSigilsLevels},RG:function(){return applyArtifactBonusOnSigil},Tw:function(){return getEquippedBubbles},Vq:function(){return getSigilBonus},YG:function(){return getVialsBonusByEffect},a2:function(){return getBubbleAtomCost},e5:function(){return calcBubbleLevels},iu:function(){return getVialsBonusByStat},jd:function(){return getLiquidCauldrons},k_:function(){return calcVialsLevels},ln:function(){return eo},mD:function(){return el},om:function(){return getBubbleBonus},p4:function(){return getAlchemy},y7:function(){return getActiveBubbleBonus}});var m=l(30925),u=l(70473),d=l(16727),y=l(32387),h=l(89260),g=l(15893),E=l(10924),b=l(1972),L=l(71345),k=l(67896);let V={0:"power",1:"quicc",2:"high-iq",3:"kazam"},j={0:"water drops",1:"liquid n2",2:"trench h2o",3:"toxic mercury"},ee={0:"O",1:"G",2:"P",3:"Y"},ea={_:"power",a:"quicc",b:"high-iq",c:"kazam"},el={brewing:170,liquidsRegen:100,liquidsCapacity:80,cauldronsSpeed:150,cauldronsNewBubble:125,cauldronsBoostReq:100,vialsAttempts:15,vialsRng:45},getAlchemy=(e,t,l)=>{var u,d;let y=(0,m.createArrayOfArrays)(null==e?void 0:e.CauldronInfo)||(null==e?void 0:e.CauldronInfo),h=(0,m.tryToParse)(null==e?void 0:e.CauldronJobs1)||(null==e?void 0:null===(u=e.CauldronJobs)||void 0===u?void 0:u[1]),g=getCauldronStats(e);return(null==y?void 0:y[8])&&(null==y?void 0:null===(d=y[8])||void 0===d?void 0:d.length)===0&&(y[8]=g.slice(0,16)),parseAlchemy(e,y,h,g,l)},parseAlchemy=(e,t,l,m,u)=>{let d=null==l?void 0:l.map((e,t)=>({activity:e,index:t})),y=getPay2Win(e,d,u),h=getBubbles(t),g=getCauldrons(null==t?void 0:t[5],m.slice(0,16),y,h,d),E=getVials(null==t?void 0:t[4]);return{p2w:y,bubbles:h,vials:E,cauldrons:g,cauldronsInfo:m,multiplierArray:null==t?void 0:t[10],liquids:null==t?void 0:t[6],activities:d}},getLiquidCauldrons=e=>{var t,l;let m=null==e?void 0:null===(t=e.alchemy)||void 0===t?void 0:t.liquids,u=null==e?void 0:null===(l=e.alchemy)||void 0===l?void 0:l.cauldronsInfo.slice(18);return m.map((t,l)=>{var m,d,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let[eT,ef]=u[4*l],[ev,eg]=u[4*l+1],[eS,eN]=[getCauldronBrewReq(ef+1),getCauldronBrewReq(eg+1)],eC=getCauldronBrewBonus(l+4,ef),eR=null!==(eh=null==e?void 0:null===(m=e.gemShopPurchases)||void 0===m?void 0:m.find((e,t)=>106===t))&&void 0!==eh?eh:0,eI=(0,y.W)(null==e?void 0:e.saltLick,5),ew=0;eR>l&&(ew=.5+eI/100),(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[123])>l&&(ew=0===ew?1:eI/100+2);let eE=getBubbleBonus(null==e?void 0:null===(k=e.alchemy)||void 0===k?void 0:k.bubbles,"kazam","DA_DAILY_DRIP",!1),eF=getVialsBonusByEffect(null==e?void 0:null===(V=e.alchemy)||void 0===V?void 0:V.vials,null,"Liquid".concat(l+1,"Cap")),eP=(0,g.c9)(null==e?void 0:e.lab.labBonuses,8),eD=(0,g.pc)(null==e?void 0:e.lab.jewels,16,eP),eA=(0,h.F4)(e,null,"Liquid".concat(0===l||1===l?"12":"34"),eD),eL=(0,E.pA)(null==e?void 0:e.rift,null==e?void 0:null===(ee=e.totalSkillsLevels)||void 0===ee?void 0:null===(j=ee.alchemy)||void 0===j?void 0:j.rank,4),ex=(0,g.c9)(null==e?void 0:e.lab.labBonuses,6),eU=null==e?void 0:null===(ec=e.alchemy)||void 0===ec?void 0:null===(e_=ec.p2w)||void 0===e_?void 0:null===(eo=e_.liquids)||void 0===eo?void 0:null===(el=eo[l])||void 0===el?void 0:null===(ea=el.capacity)||void 0===ea?void 0:ea.level,eQ=(0,b.mV)(e,"Cap_for_all_Liquids_in_Alchemy"),eG=null===(em=(0,L.d)(null==e?void 0:null===(ed=e.arcade)||void 0===ed?void 0:ed.shop,"Cap_for_all_Liquids"))||void 0===em?void 0:em.bonus,eB=eE*Math.max(Math.pow((null==e?void 0:null===(ey=e.totalSkillsLevels)||void 0===ey?void 0:null===(ep=ey.alchemy)||void 0===ep?void 0:ep.level)/25,.3),0),eM=ew+(eA+5*eL)/100;return{maxLiquid:Math.ceil((1+eM)*(ex*(10+(eC+(eF+(eU+(eB+(eQ+Math.ceil(eG))))))))),decantCap:{level:ef,progress:eT,req:eS},decantRate:{level:eg,progress:ev,req:eN}}})},getCauldronBrewReq=e=>Math.floor(1.6+Math.pow(1.25*e,1.8)),getCauldronBrewBonus=(e,t)=>e<4?Math.round(10*(0,m.growth)("decay",90,100,t,0,0))/10:Math.round(t),getPay2Win=(e,t,l)=>{let u={0:4,1:5,2:6},d=t.filter((e,t)=>{let{activity:m}=e;return m<100&&m>=4&&-1!==m&&t<(null==l?void 0:l.length)}),y={},[h,g,E,b,,L]=(0,m.tryToParse)(null==e?void 0:e.CauldronP2W)||(null==e?void 0:e.CauldronP2W);return y.cauldrons=h.toChunks(3).map((e,t)=>{let[l,m,u]=e;return{name:V[t],speed:{cost:getP2wCauldronCost("cauldron",0,l),costToMax:getCostToMax("cauldron",0,l,el.cauldronsSpeed),level:l},newBubble:{cost:getP2wCauldronCost("cauldron",1,m),costToMax:getCostToMax("cauldron",1,m,el.cauldronsNewBubble),level:m},boostReq:{cost:getP2wCauldronCost("cauldron",2,u),costToMax:getCostToMax("cauldron",2,u,el.cauldronsBoostReq),level:u}}}),y.liquids=g.toChunks(2).map((e,t)=>{let[l,m]=e;return{name:j[t],regen:{cost:getP2wCauldronCost("liquid",0,l),costToMax:getCostToMax("liquid",0,l,el.liquidsRegen),level:l},capacity:{cost:getP2wCauldronCost("liquid",1,m),costToMax:getCostToMax("liquid",1,m,el.liquidsCapacity),level:m},players:null==d?void 0:d.filter(e=>{let{activity:l}=e;return l===(null==u?void 0:u[t])})}}).filter(e=>{let{name:t}=e;return t}),y.vials={attempts:(null==E?void 0:E[0])||0,rng:(null==E?void 0:E[1])||0},y.player={speed:(null==b?void 0:b[0])||0,extraExp:(null==b?void 0:b[1])||0},y.sigils=getSigils(e,t,l),y.vialsAttempts={current:L[0],max:Math.round(3+(null==E?void 0:E[0]))},y},getCostToMax=(e,t,l,m)=>{let u=0;for(let d=l;d"liquid"===e?0===t?Math.round(2500*Math.pow(1.19-.135*l/(100+l),l)):Math.round(3500*Math.pow(1.2-.13*l/(100+l),l)):"cauldron"===e?0===t?Math.round(2500*Math.pow(1.15-.117*l/(100+l),l)):1===t?Math.round(3200*Math.pow(1.18-.145*l/(100+l),l)):Math.round(3750*Math.pow(1.2-.14*l/(100+l),l)):0,getBubbles=e=>{let t={0:{5:"",7:"Pickaxes_and_Fishing_Rods"},1:{5:"",6:"Catching_Nets_and_Traps"},2:{5:"",6:"Hatchets_and_Worship_Skulls"},3:{7:"",25:""}};return null==e?void 0:e.reduce((e,l,m)=>{var d;return m<=3?{...e,[null==V?void 0:V[m]]:null===(d=Object.keys(l))||void 0===d?void 0:d.reduce((e,d,y)=>{var h,g;return"length"!==d?[...e,{level:parseInt(null==l?void 0:l[d])||0,index:y,rawName:"aUpgrades".concat(ee[m]).concat(y),...u.cauldrons[null==V?void 0:V[m]][d],desc:null===(g=u.cauldrons[null==V?void 0:V[m]][d])||void 0===g?void 0:g.desc.replace("$",null==t?void 0:null===(h=t[m])||void 0===h?void 0:h[y])}]:e},[])}:e},{})},getEquippedBubbles=(e,t,l)=>{var u;let d=(0,m.tryToParse)(null==e?void 0:e.CauldronBubbles)||(null==e?void 0:e.CauldronBubbles);return null==d?void 0:null===(u=d.filter((e,t)=>t<(null==l?void 0:l.length)))||void 0===u?void 0:u.map(e=>null==e?void 0:e.reduce((e,l)=>{var m;let u=ea[l[0]],d=u?null==l?void 0:l.substring(1):null;return[...e,d?null==t?void 0:null===(m=t[u])||void 0===m?void 0:m[d]:{}]},[])).filter(e=>e.length)},getActiveBubbleBonus=(e,t,l,u)=>{var d,y;let h=(0,E.fe)(u,4);if(h)return getBubbleBonus(null==u?void 0:null===(d=u.alchemy)||void 0===d?void 0:d.bubbles,t,l,!1);let g=null==e?void 0:e.find(e=>{let{bubbleName:t}=e;return l===t});return(g||h)&&null!==(y=(0,m.growth)(null==g?void 0:g.func,null==g?void 0:g.level,null==g?void 0:g.x1,null==g?void 0:g.x2,!1))&&void 0!==y?y:0},getBubbleBonus=(e,t,l,u,d)=>{var y,h,g,E,b;let L=null==e?void 0:null===(y=e[t])||void 0===y?void 0:y.findIndex(e=>{let{bubbleName:t}=e;return t===l});if(-1===L)return 0;let k={quicc:[0,6,9,12,14].toSimpleObject(),power:[0,2,4,7,14].toSimpleObject(),"high-iq":[0,2,6,12,14].toSimpleObject()},V=null==e?void 0:null===(h=e[t])||void 0===h?void 0:h[L],j=null==e?void 0:null===(g=e[t])||void 0===g?void 0:g[1],ee=d?(0,m.growth)(null==j?void 0:j.func,null==j?void 0:j.level,null==j?void 0:j.x1,null==j?void 0:j.x2,u):1,ea=null==e?void 0:null===(E=e[t])||void 0===E?void 0:E[16],el=(null==k?void 0:null===(b=k[t])||void 0===b?void 0:b[L])?(0,m.growth)(null==ea?void 0:ea.func,null==ea?void 0:ea.level,null==ea?void 0:ea.x1,null==ea?void 0:ea.x2,u):1;return(0,m.growth)(null==V?void 0:V.func,null==V?void 0:V.level,null==V?void 0:V.x1,null==V?void 0:V.x2,u)*ee*el},getVials=e=>Object.keys(e).reduce((t,l,m)=>{let d=null===u.vials||void 0===u.vials?void 0:u.vials[m];return"length"!==l?[...t,{...d,level:parseInt(null==e?void 0:e[l])||0}]:t},[]).filter(e=>{let{name:t}=e;return t}),getVialsBonusByEffect=(e,t,l)=>null==e?void 0:e.reduce((e,u)=>{var d;let{func:y,level:h,x1:g,x2:E,desc:b,stat:L,multiplier:k=1}=u;return t&&!b.includes(t)||l&&!L.includes(l)?e:e+(null!==(d=(0,m.growth)(y,h,g,E,!1))&&void 0!==d?d:0)*k},0),getVialsBonusByStat=(e,t)=>null==e?void 0:e.reduce((e,l)=>{var u;let{func:d,level:y,x1:h,x2:g,multiplier:E=1,stat:b}=l;return t!==b?e:e+(null!==(u=(0,m.growth)(d,y,h,g))&&void 0!==u?u:0)*E},0),applyVialsMulti=(e,t)=>null==e?void 0:e.map(e=>({...e,multiplier:t})),updateVials=e=>{let t;let l=(0,g.c9)(e.lab.labBonuses,10);if(t=applyVialsMulti(e.alchemy.vials,l),(0,k.RB)(e.rift,"Vial_Mastery")){var m,u;let d=null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:null===(m=u.vials)||void 0===m?void 0:m.filter(e=>{let{level:t}=e;return 13===t}),y=1+2*(null==d?void 0:d.length)/100;t=applyVialsMulti(e.alchemy.vials,l*y)}return t},getCauldrons=(e,t,l,m,u)=>{let d=u.filter(e=>{let{activity:t}=e;return t<100&&-1!==t}),y={0:"power",4:"quicc",8:"high-iq",12:"kazam"},h={};for(let u=0,E=t.length;u{let{activity:t}=e;return t===u/4});h[y[u]]={progress:null==e?void 0:e[u/4],req:getMaxCauldron(null==m?void 0:null===(g=m[y[u]])||void 0===g?void 0:g.length),players:j},Object.entries(V).forEach(e=>{var t,m;let[d,g]=e,[E,b]=g;h[y[u]]={...h[y[u]],boosts:{...h[y[u]].boosts,[d]:{progress:E,level:parseInt(b),req:getCauldronBonus(0,2,null===(m=l.cauldrons[u/4])||void 0===m?void 0:null===(t=m.boostReq)||void 0===t?void 0:t.level,parseInt(b))}}}})}return h},getMaxCauldron=e=>3+Math.pow(3*e,2.2)*Math.pow(1.3,e),getP2WBonus=(e,t,l)=>{let[d,y,h]=u.p2w[e][t],g=Math.max(0,(0,m.growth)(h,l,d,y));return Math.max((100-g)/100,.05)},getCauldronBonus=(e,t,l,m)=>{let u=getP2WBonus(0,2,l);return Math.floor(1+2*(Math.pow(1.5*(m+1),1.6)*Math.pow(1.073,m+1))*u)},getCauldronStats=e=>{var t,l,m;return(null==e?void 0:e.CauldUpgLVs)&&(null==e?void 0:e.CauldUpgXPs)?null==e?void 0:null===(t=e.CauldUpgLVs)||void 0===t?void 0:t.map((t,l)=>{var m;return[null==e?void 0:null===(m=e.CauldUpgXPs)||void 0===m?void 0:m[l],t]}):null==e?void 0:null===(m=e.CauldronInfo)||void 0===m?void 0:null===(l=m[8])||void 0===l?void 0:l.reduce((e,t)=>[...e,...t],[])},getSigils=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.CauldronP2W)||(null==e?void 0:e.CauldronP2W);return parseSigils(u,t,l)},parseSigils=(e,t,l)=>{let m=null==e?void 0:e[4],d=[];for(let e=0,y=m.length;e{let{activity:m,index:u}=t;return m>=100&&Math.floor(m-100)===e/2&&u<11&&u<(null==l?void 0:l.length)});g&&(d=[...d,{...g,unlocked:h,progress:y,bonus:2===h?g.jadeBonus:1===h?null==g?void 0:g.boostBonus:0===h?null==g?void 0:g.unlockBonus:0,characters:E}])}return d.map((e,t)=>({...e,index:t}))},getSigilBonus=(e,t)=>e?null==e?void 0:e.reduce((e,l)=>(null==l?void 0:l.name)!==t?e:e+(null==l?void 0:l.bonus),0):0,applyArtifactBonusOnSigil=(e,t)=>{let l=(0,d.YS)(t,"Chilled_Yarn");if(!l)return e;let m=1+(null==l?void 0:l.bonus);return null==e?void 0:e.map(e=>({...e,bonus:e.bonus*m}))},eo=[0,100,1e3,2500,1e4,5e4,1e5,5e5,1000001,5e6,25e6,1e8,1e9,5e10],getBubbleAtomCost=(e,t)=>Math.floor(t/1e9*(e+1)*Math.pow(1.04,e)*100),calcBubbleLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0)),0):0},calcVialsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0):0},calcSigilsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{unlocked:l}=t;return e+(l+1)},0):0},getNblbBubbles=(e,t,l)=>{var m;let u=Object.values((null==e?void 0:null===(m=e.alchemy)||void 0===m?void 0:m.bubbles)||{}).map(e=>e.filter(e=>{let{level:l,index:m}=e;return l>=5&&me.level-t.level)),d=Math.ceil(Math.min(10,l)/4),y=[];for(let e=0;e{var t,l,m,u,y,h,g,E,b,L;let k=3,V=null==e?void 0:null===(m=e.lab)||void 0===m?void 0:null===(l=m.labBonuses)||void 0===l?void 0:null===(t=l.find(e=>"No_Bubble_Left_Behind"===e.name))||void 0===t?void 0:t.active;if(!V)return null;let j=Object.values(null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:u.bubbles).flatMap((e,t)=>e.map((e,l)=>({...e,tab:t,flatIndex:1e3*t+l}))),ee=j.filter(e=>{let{level:t,index:l}=e;return t>=5&&l<15}),ea=ee.sort((e,t)=>t.flatIndex-e.flatIndex).sort((e,t)=>e.level-t.level),el=null==e?void 0:null===(h=e.lab)||void 0===h?void 0:null===(y=h.jewels)||void 0===y?void 0:y.find(e=>"Pyrite_Rhinestone"===e.name);(null==el?void 0:el.acquired)&&k++;let eo=(0,d.YS)(null==e?void 0:null===(g=e.sailing)||void 0===g?void 0:g.artifacts,"Amberite"),e_=(null==eo?void 0:eo.acquired)||1;eo&&(k+=(null==eo?void 0:eo.baseBonus)*e_);let ec=null==e?void 0:null===(L=e.tasks)||void 0===L?void 0:null===(b=L[2])||void 0===b?void 0:null===(E=b[3])||void 0===E?void 0:E[6];ec>0&&(k+=ec);let em=ea.slice(0,k),ed=getNblbBubbles(e,25,k);return{normal:em,atomBubbles:ed,breakdown:[{name:"Base",value:3},{name:"Artifact",value:((null==eo?void 0:eo.baseBonus)||0)*e_},{name:"Merit",value:ec},{name:"Jewel",value:(null==el?void 0:el.acquired)?1:0}]}}},33739:function(e,t,l){"use strict";l.d(t,{J7:function(){return calcTotals},KC:function(){return getAnvil},MH:function(){return getTimeTillCap},eW:function(){return getPlayerAnvil},uv:function(){return calcAnvilExp}});var m=l(70473),u=l(10924),d=l(29129),y=l(88054),h=l(30796),g=l(96707),E=l(54685),b=l(88344),L=l(1972),k=l(64569),V=l(74861),j=l(15815),ee=l(32387),ea=l(11028),el=l(4056),eo=l(64605),e_=l(56552),ec=l(19834),em=l(9339),ed=l(5432),ep=l(20385);let getAnvilSpeed=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,y=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,g=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,E=(0,u.Yu)(e);return(1+(l+2*t)/100)*(1+(m+y)/100)*(1+d/100)*E*(1+(h+g)/100)},getTotalMonsterMatCost=function(){let{costThreshold:e,startingIndex:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,m=arguments.length>2?arguments[2]:void 0;if(!e)return 0;let u=0;for(let e=t;eMath.round((Math.pow(e+1,1.5)+e)*Math.max(.1,1-t/100)),getAnvilUpgradeCostItem=e=>{var t;let l=m.anvilUpgradeCost.findIndex((t,l)=>{let{costThreshold:u}=t;return e{let l=0;for(let m=0;mMath.round((Math.pow(e,3)+50)*(1+e/100)*Math.max(.1,1-t/100)),getCoinToMax=(e,t)=>{let l=0;for(let m=e;m<600;m++)l+=getCoinCost(m,t,!0);return null!=l?l:0},getAnvilExp=(e,t)=>{let l=(1+3*e/100)*t;return l<20?l:Math.min(20+(l-20)/(l-20+70)*50,75)},getAnvil=(e,t)=>{let l=null==e?void 0:e.AnvilPA,m=(0,h._X)(null==t?void 0:t.talents,1,"ACME_ANVIL"),u=0;if(m){var d,y,g;u=(null==e?void 0:null===(d=e.SkillLevels)||void 0===d?void 0:d[281])+m*Math.floor((null==t?void 0:null===(g=t.skillsInfo)||void 0===g?void 0:null===(y=g.smithing)||void 0===y?void 0:y.level)/10)}let[E,b,L,k,V,j]=null==e?void 0:e.AnvilPAstats,ee={availablePoints:E,pointsFromCoins:b,pointsFromMats:L,pointsFromAcme:u,xpPoints:k,speedPoints:V,capPoints:j},ea=null==e?void 0:e.AnvilPAselect;return{anvilProduction:l,anvilStats:ee,anvilSelected:ea}},getPlayerAnvil=(e,t,l)=>{var ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK;let{anvil:eY}=e,{anvilProduction:eZ,anvilStats:eV,anvilSelected:ez}=eY||{},{availablePoints:eX,pointsFromCoins:ej,pointsFromMats:eJ,pointsFromAcme:e$,xpPoints:e0,speedPoints:e1,capPoints:e2}=eV||{};Array.isArray(ez)||(ez=[ez]);let e5=null==eZ?void 0:eZ.reduce((e,t,l)=>{var u;let[d,y,h,g]=t;return[...e,{currentAmount:d,currentXP:y,currentProgress:parseFloat(h),totalProduced:g,...m.anvilProducts[l]||{},hammers:null==ez?void 0:null===(u=ez.filter(e=>e===l))||void 0===u?void 0:u.length}]},[]),e3={availablePoints:eX,pointsFromCoins:ej,pointsFromMats:eJ,pointsFromAcme:e$,xpPoints:e0,speedPoints:e1,capPoints:e2},e4=(0,y.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","ANVILNOMICS"),e6=null===(eh=h.pV[null==e?void 0:e.class])||void 0===eh?void 0:eh.includes("Archer"),e7=e6?(0,y.om)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.bubbles,"quicc","ARCHER_OR_BUST"):1,e9=e4*e7,e8=getAnvilUpgradeCostItem(eJ);e3.anvilCost={...e8,totalMats:getTotalMonsterMatCost(e8,eJ,e9),nextMatUpgrade:getMonsterMatCost(eJ,e9),totalCoins:getTotalCoinCost(ej,e9),nextCoinUpgrade:getCoinCost(ej,e9,!0),coinsToMax:getCoinToMax(ej,e9)};let te=(0,g.o9)(e,l,"Skill_EXP_gain"),ti=(0,E.Xt)(null==e?void 0:e.cards,"Z7"),tl=(0,E.OK)(null==l?void 0:l.cards,"Skill_EXP_(Passive)"),to=(0,u.tE)("Golden_Ham",e,l),t_=(null==e?void 0:null===(ev=e.cards)||void 0===ev?void 0:null===(ef=ev.cardSet)||void 0===ef?void 0:ef.rawName)==="CardSet3"?null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:null===(eg=eS.cardSet)||void 0===eg?void 0:eg.bonus:0,tm=(0,h.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),td=(0,h.xI)(t,l,tm,536),tp=(0,h.xI)(t,l,tm,35,e),ty=(0,h.c4)(e,t,l),tT=(0,k.wt)(null==l?void 0:l.shrines,5,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eN=l.sailing)||void 0===eN?void 0:eN.artifacts),tf=(0,V.U6)(null==l?void 0:l.statues,"StatueG18",null==e?void 0:e.talents),tv=null===(eC=(0,j.Y0)(null==e?void 0:e.activePrayers,"Unending_Energy",l))||void 0===eC?void 0:eC.bonus,tg=null===(eR=(0,j.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Proficiency",l))||void 0===eR?void 0:eR.bonus,tS=null===(eI=(0,j.Y0)(null==e?void 0:e.activePrayers,"Skilled_Dimwit",l))||void 0===eI?void 0:eI.curse,tN=null===(ew=(0,j.Y0)(null==e?void 0:e.activePrayers,"The_Royal_Sampler",l))||void 0===ew?void 0:ew.curse,tC=(0,b.zi)(e,27,l),tR=(0,h.eZ)(null==e?void 0:e.activeBuffs,"MAESTRO_TRANSFUSION"),tI=(0,ee.W)(null==l?void 0:l.saltLick,3),tw=(0,ea.U4)(null==l?void 0:null===(eE=l.dungeons)||void 0===eE?void 0:eE.upgrades,"Class_Exp"),tE=(0,el.xV)(null==e?void 0:e.postOffice,"Myriad_Crate",2),tF=(0,em.k6)(null==l?void 0:l.achievements,283),tq=(0,em.k6)(null==l?void 0:l.achievements,284),tP=(0,em.k6)(null==l?void 0:l.achievements,294),tD=(0,u.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,1),tA=(0,u.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,4),tL=(0,ed.du)(null==l?void 0:null===(eF=l.breeding)||void 0===eF?void 0:eF.pets,"Skill_EXP"),tx=null!==(ek=null===(eP=(0,ep.Ob)(l,"MSA_Skill_EXP"))||void 0===eP?void 0:eP.bonus)&&void 0!==ek?ek:0,tU=0,tQ=(0,ec.s8)(l,t,7);(null==tQ?void 0:tQ[null==e?void 0:e.playerId])!==-1&&(tU=(0,ec.zJ)(null==l?void 0:null===(eW=l.divinity)||void 0===eW?void 0:eW.linkedDeities,t,7)||0),e3.baseAnvilExp=te+(ti+to+ty*Math.min(1,td?ty:0)+(t_+tl+(Math.min(150,100*tp)+tT)+tf+tv+tg-tS-tN+(tC+(tR+(tI+(tw+(tE+(tU+(10*tF+(25*tq+(10*tP+(tD+(tA+(tL+tx))))))))))))));let tG=(0,L.fE)(l,"skills","StampB3",e),tB=(0,el.xV)(null==e?void 0:e.postOffice,"Blacksmith_Box",1),tM=(0,y.y7)(null==e?void 0:e.equippedBubbles,"quicc","HAMMER_HAMMER",l),tO=(0,V.U6)(null==l?void 0:l.statues,"StatueG12",null==e?void 0:e.talents),tk=(0,g.o9)(e,l,"Speed_in_Town"),tW=(0,h._X)(null==e?void 0:e.talents,0,"BROKEN_TIME");e3.anvilSpeed=3600*getAnvilSpeed(null==e?void 0:null===(eD=e.stats)||void 0===eD?void 0:eD.agility,e1,tG,tB,tM,tO,tk,tW);let tH=0,tK=null===(eA=(0,j.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",l))||void 0===eA?void 0:eA.curse,tY=null===(eL=(0,j.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",l))||void 0===eL?void 0:eL.bonus;(null==l?void 0:null===(eU=l.guild)||void 0===eU?void 0:null===(ex=eU.guildBonuses)||void 0===ex?void 0:ex.length)>0&&(tH=(0,eo._r)(null==l?void 0:null===(eH=l.guild)||void 0===eH?void 0:eH.guildBonuses,2));let tZ=(0,h._X)(null==e?void 0:e.starTalents,null,"TELEKINETIC_STORAGE"),tV=(0,k.wt)(null==l?void 0:l.shrines,3,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eQ=l.sailing)||void 0===eQ?void 0:eQ.artifacts),tz=(0,d.k)(null==l?void 0:l.bribes,"Bottomless_Bags"),tX=(1+(tH+tZ)/100)*(1+tV/100)*Math.max(1-tK/100,.4)*(1+(tY+tz)/100),tj=(0,L.fE)(l,"skills","StampB8",e),tJ=(0,L.fE)(l,"misc","StampC2",e),t$=null!==(eK=null==l?void 0:null===(eG=l.gemShopPurchases)||void 0===eG?void 0:eG.find((e,t)=>58===t))&&void 0!==eK?eK:0,t0=(0,h._X)(null==e?void 0:e.talents,0,"EXTRA_BAGS"),t1=(0,g.o9)(e,l,"Carry_Cap"),t2=null==e?void 0:null===(eB=e.carryCapBags)||void 0===eB?void 0:eB.find(e=>{let{Class:t}=e;return"bCraft"===t}),t5=(0,e_.nR)(t2,{allCapacity:tX,mattyBagStampBonus:tj,masonJarStampBonus:tJ,gemShopCarryBonus:t$,extraBagsTalentBonus:t0,starSignExtraCap:t1});e3.anvilCapacity=Math.round(t5*(2+.1*e2));let t3=ez.sort((e,t)=>e-t).map(e=>m.anvilProducts[e]);return{guild:(null==l?void 0:null===(eO=l.guild)||void 0===eO?void 0:null===(eM=eO.guildBonuses)||void 0===eM?void 0:eM.length)>0,stats:e3,production:e5,selected:t3}},calcAnvilExp=(e,t,l,m,d)=>{var y,g;let b=(0,h._X)(null==e?void 0:e.talents,1,"FOCUSED_SOUL"),k=(0,h._X)(null==e?void 0:e.talents,0,"HAPPY_DUDE"),V=(0,E.OK)(null==l?void 0:l.cards,"Smithing_EXP_(Passive)"),j=(0,el.xV)(null==e?void 0:e.postOffice,"Blacksmith_Box",0),ee=(0,L.mV)(l,"SmithExp",e),ea=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(g=l.totalSkillsLevels)||void 0===g?void 0:null===(y=g.smithing)||void 0===y?void 0:y.rank,0),eo=(0,h.A5)(t,2,"Maestro","LEFT_HAND_OF_LEARNING"),e_=(0,h.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),ec=(0,h.xI)(t,l,e_,42);(0,h.gW)(null==e?void 0:e.class,"Maestro")&&ec&&(eo*=2);let em=Math.max(.1,(1+(b+(ee+(k+25*ea)))/100)*(1+V/100)*(1+j/100)+(m+eo)/100),ed=getAnvilExp(d,em);return 100*(ed-1)},getTimeTillCap=e=>{let{hammers:t,currentAmount:l,currentProgress:m,requiredAmount:u,afkTime:d,stats:y}=e,h=(new Date().getTime()-d)/1e3,g=Math.min(Math.round(l+(m+h*(null==y?void 0:y.anvilSpeed)/3600)/u*(null!=t?t:0)),null==y?void 0:y.anvilCapacity);return((null==y?void 0:y.anvilCapacity)-g)/((null==y?void 0:y.anvilSpeed)/3600/u*(null!=t?t:0))},calcTotals=(e,t)=>{var l;return null==e?void 0:null===(l=e.anvil)||void 0===l?void 0:l.reduce((l,m,u)=>{let{stats:d,production:y}=getPlayerAnvil(null==t?void 0:t[u],t,e),h=null==y?void 0:y.filter(e=>{let{hammers:t}=e;return t>0});return null==h||h.forEach(e=>{let{hammers:t,rawName:m,requiredAmount:u}=e,y=Math.min((null==d?void 0:d.anvilSpeed)*t/u,null==d?void 0:d.anvilCapacity);(null==l?void 0:l[m])?l[m]+=y:l[m]=y}),l},{})}},71345:function(e,t,l){"use strict";l.d(t,{d:function(){return getArcadeBonus},z:function(){return getArcade}});var m=l(30925),u=l(70473),d=l(11028);let getArcade=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.ArcadeUpg)||(null==e?void 0:e.ArcadeUpg);return parseArcade(u,t,l)},parseArcade=(e,t,l)=>{var y,h;let g=null==t?void 0:null===(y=t.accountOptions)||void 0===y?void 0:y[74],E=null==t?void 0:null===(h=t.accountOptions)||void 0===h?void 0:h[75],b=Math.round((0,d.he)(t)/Math.max(1800,(0,d.gq)(t))),L=null===u.arcadeShop||void 0===u.arcadeShop?void 0:u.arcadeShop.map((t,u)=>{var d,y;let{x1:h,x2:g,func:E}=t,b=null!==(y=null==e?void 0:e[u])&&void 0!==y?y:0;return{...t,level:b,active:null==l?void 0:null===(d=l.ArcadeBonuses)||void 0===d?void 0:d.includes(u),bonus:(0,m.growth)(E,b,h,g,!1),iconName:"PachiShopICON".concat(u)}}),k=null==L?void 0:L.reduce((e,t)=>{let{level:l}=t;return e+l},0);return{shop:L,balls:g,goldBalls:E,maxBalls:b,totalUpgradeLevels:k}},getArcadeBonus=(e,t)=>null==e?void 0:e.find(e=>{let{effect:l}=e;return l.includes(t)})},95331:function(e,t,l){"use strict";l.d(t,{Bm:function(){return calcTotalAtomLevels},Xp:function(){return getAtomColliderThreshold},_m:function(){return getAtomBonus},nK:function(){return getAtoms}});var m=l(30925),u=l(70473),d=l(88054),y=l(20385),h=l(1972);let getAtoms=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.Atoms)||(null==e?void 0:e.Atoms),u=(0,m.tryToParse)(null==e?void 0:e.Divinity)||(null==e?void 0:e.Divinity);return parseAtoms(u,l,t)},parseAtoms=(e,t,l)=>{var m,g;let E=null!=t?t:[],b=null==e?void 0:e[39],L=null===u.atomsInfo||void 0===u.atomsInfo?void 0:u.atomsInfo.map((e,m)=>{var g,b,L,k,V,j,ee,ea,el,eo;let e_=null!==(j=null==E?void 0:E[m])&&void 0!==j?j:0,ec=null!==(ee=null==l?void 0:null===(L=l.towers)||void 0===L?void 0:null===(b=L.data)||void 0===b?void 0:null===(g=b[8])||void 0===g?void 0:g.level)&&void 0!==ee?ee:0,em=null!==(ea=null==t?void 0:t[9])&&void 0!==ea?ea:0,ed=(0,d.om)(null==l?void 0:null===(k=l.alchemy)||void 0===k?void 0:k.bubbles,"kazam","ATOM_SPLIT",!1),ep=null!==(el=null===(V=(0,y.Ob)(l,"Atom_Redux"))||void 0===V?void 0:V.unlocked)&&void 0!==el?el:0,ey=null!==(eo=(0,y.Ob)(l,"Isotope_Discovery"))&&void 0!==eo?eo:0,eh=(0,h.mV)(l,"Lower_Atom_Upgrade_Costs"),eT=Math.round(20+10*+!!ey),ef={account:l,atomReductionFromAtom:em,reduxSuperbit:ep,bubbleBonus:ed,atomColliderLevel:ec,stampBonusReduction:eh,atomInfo:e,level:e_},ev=getCost(ef),eg=getCost({...ef,level:e_+1}),eS=getCostToMax({...ef,maxLevel:eT}),eN=parseAtomBonus(e,e_,l);return{level:e_,maxLevel:eT,rawName:"Atom".concat(m),...(null===u.atomsInfo||void 0===u.atomsInfo?void 0:u.atomsInfo[m])||{},cost:Math.floor(ev),nextLeveCost:Math.floor(eg),costToMax:Math.floor(eS),bonus:eN}}),k=null==l?void 0:null===(m=l.accountOptions)||void 0===m?void 0:m[134],V=null==L?void 0:L.find(e=>{let{name:t}=e;return"Hydrogen_-_Stamp_Decreaser"===t}),j=Math.min(90,(null!==(g=null==V?void 0:V.level)&&void 0!==g?g:0)*k);return{particles:b,atoms:L,stampReducer:j}},getCost=e=>{var t;let{account:l,atomReductionFromAtom:m,reduxSuperbit:u,bubbleBonus:d,atomColliderLevel:y,stampBonusReduction:h,atomInfo:g,level:E}=e,b=1/(1+(h+m+10*(u?1:0)+d+y/10+7*(null==l?void 0:null===(t=l.tasks)||void 0===t?void 0:t[2][4][6]))/100);return b*((null==g?void 0:g.x3)+(null==g?void 0:g.x1)*E)*Math.pow(null==g?void 0:g.x2,E)},getCostToMax=e=>{let t=0;for(let l=null==e?void 0:e.level;l<(null==e?void 0:e.maxLevel);l++)t+=getCost({...e,level:l});return t},parseAtomBonus=(e,t,l)=>{var m,u,d;if((null==e?void 0:e.name)==="Fluoride_-_Void_Plate_Chef"){let d=null==l?void 0:null===(u=l.cooking)||void 0===u?void 0:null===(m=u.meals)||void 0===m?void 0:m.reduce((e,t)=>{let{level:l}=t;return l>=30?e+1:e},0);return 100*(Math.pow(1+(null==e?void 0:e.baseBonus)*t/100,d)-1)}if((null==e?void 0:e.name)==="Carbon_-_Wizard_Maximizer")return(null==e?void 0:e.baseBonus)*(null==l?void 0:null===(d=l.towers)||void 0===d?void 0:d.wizardOverLevels)},getAtomBonus=(e,t)=>{var l,m;let u=null==e?void 0:null===(l=e.atoms)||void 0===l?void 0:l.atoms;return null==u?void 0:null===(m=u.filter(e=>(null==e?void 0:e.name)===t).map(l=>{var m;return"Fluoride_-_Void_Plate_Chef"===t?null==l?void 0:l.bonus:"Carbon_-_Wizard_Maximizer"!==t?(null==l?void 0:l.level)*(null==l?void 0:l.baseBonus):(null==l?void 0:l.baseBonus)*(null==e?void 0:null===(m=e.towers)||void 0===m?void 0:m.wizardOverLevels)}))||void 0===m?void 0:m[0]},getAtomColliderThreshold=e=>0===e?15e6:1===e?25e6:2===e?1e8:3===e?25e7:105e7,calcTotalAtomLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},5432:function(e,t,l){"use strict";l.d(t,{N5:function(){return getBreeding},XM:function(){return addBreedingChance},cg:function(){return getTimeToLevel},du:function(){return getShinyBonus},eJ:function(){return calcUpgradeBonus},sd:function(){return calcHighestPower}});var m=l(70473),u=l(30925),d=l(88054),y=l(1972),h=l(15893),g=l(89260),E=l(9339);let getBreeding=(e,t)=>{let l=(0,u.tryToParse)(null==e?void 0:e.Breeding)||(null==e?void 0:e.Breeding),m=(0,u.tryToParse)(null==e?void 0:e.Pets)||(null==e?void 0:e.Pets),d=(0,u.tryToParse)(null==e?void 0:e.PetsStored)||(null==e?void 0:e.PetsStored),y=(0,u.tryToParse)(null==e?void 0:e.Territory)||(null==e?void 0:e.Territory),h=(0,u.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking);return parseBreeding(l,y,m,d,h,t)},parseBreeding=(e,t,l,u,d,y)=>{var h,g,E,b,L,k,V,j,ee,ea,el,eo,e_;let ec=null==e?void 0:e[0],em=null==e?void 0:null===(h=e[3])||void 0===h?void 0:h[8],ed=null==e?void 0:e[1],ep=null==e?void 0:null===(g=e[2])||void 0===g?void 0:g.map((e,t)=>({...m.petUpgrades[t]||[],level:e})),ey={second:(null==ep?void 0:null===(E=ep[2])||void 0===E?void 0:E.level)>0,third:(null==ep?void 0:null===(b=ep[4])||void 0===b?void 0:b.level)>0,fourth:(null==ep?void 0:null===(L=ep[6])||void 0===L?void 0:L.level)>0,fifth:(null==ep?void 0:null===(k=ep[9])||void 0===k?void 0:k.level)>0},eh=null==u?void 0:u.map(e=>{let[t,l,m]=e;return{name:t,level:l,power:m}}),eT=null==e?void 0:e.slice(4,8),ef=null==e?void 0:e.slice(22,26),ev=null==e?void 0:null===(V=e[2])||void 0===V?void 0:V[4],eg=Math.round(5+ev+2*(null!==(e_=null==y?void 0:null===(j=y.gemShopPurchases)||void 0===j?void 0:j.find((e,t)=>125===t))&&void 0!==e_?e_:0)),eS=null==l?void 0:l.slice(0,eg),eN=null==eS?void 0:eS.reduce((e,t)=>{let[l,,,m]=t;return 0===m?e:{...e,[l]:(null==e?void 0:e[l])?(null==e?void 0:e[l])+1:1}},{}),eC=null==t?void 0:t.map(e=>{let[,t]=e;return t}),eR=null==t?void 0:t.map(e=>{let[t]=e;return t}),eI=null==l?void 0:null===(ea=l.slice(27))||void 0===ea?void 0:null===(ee=ea.map(e=>{var t;let[l,u,d,y]=e,h=null===m.petGenes||void 0===m.petGenes?void 0:m.petGenes[u],g=null===m.monsters||void 0===m.monsters?void 0:null===(t=m.monsters[l])||void 0===t?void 0:t.Name;return{name:l,realName:g,x1:u,power:d,x3:y,gene:h}}))||void 0===ee?void 0:ee.toChunks(4),ew=m.territory.filter((e,t)=>14!==t),eE=null==ew?void 0:ew.map((e,t)=>{var l,m,u,d,y,h,g;let E=(null==eI?void 0:eI[t])||[],b=(null==eI?void 0:eI[t-1])||[],L=(null==eI?void 0:eI[t+1])||[],k=null==E?void 0:E.reduce((e,t,l)=>e+getForageSpeed({team:E,previousTeam:b,teamMember:t,position:l}),0),V=null==E?void 0:E.reduce((e,t)=>e+getFightPower(t),0),j=null==E?void 0:E.some(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.abilityType)===0}),ee=j?0:null==E?void 0:null===(l=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Flashy"}))||void 0===l?void 0:l.length,ea=null==E?void 0:null===(m=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Fleeter"}))||void 0===m?void 0:m.length,el=null==E?void 0:null===(u=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Fasidious"}))||void 0===u?void 0:u.length,eo=null==E?void 0:E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Miasma"});if(eo.length){let e=null==E?void 0:null===(g=E.map(e=>{let{gene:t}=e;return null==t?void 0:t.name}))||void 0===g?void 0:g.every((e,t,l)=>l.indexOf(t)===e);eo=e?1:4}else eo=1;let e_=[...E,...b,...L],ec=null==e_?void 0:null===(d=e_.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Badumdum"}))||void 0===d?void 0:d.length,em=null==e_?void 0:null===(y=e_.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Tsar"}))||void 0===y?void 0:y.length,ed=k*Math.pow(1.3,ea)*Math.pow(1.2,ec)*Math.pow(1.5,ee)*Math.pow(1.5,el)*eo,ep=(V+k*t)*Math.pow(1.5,em){var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Monolithic"}).length/5+1),eh=t>14?null==ew?void 0:null===(h=ew[t-1])||void 0===h?void 0:h.powerReq:null==e?void 0:e.powerReq,eT=(eh+(null==eC?void 0:eC[t]))*Math.pow(ey,null==eC?void 0:eC[t]);return{...e,team:E,forageSpeed:ep,reqProgress:eT,currentProgress:null==eR?void 0:eR[t]}}),eF=[],eP={},eD=0,eA=null===m.petStats||void 0===m.petStats?void 0:m.petStats.map((e,t)=>{let l=null==ed?void 0:ed[t];return null==e?void 0:e.map((e,m)=>{var u,d,y,h,g;let E=null===(u=Array(19).fill(1))||void 0===u?void 0:u.reduce((e,l,u)=>{var d;return(null==ef?void 0:null===(d=ef[t])||void 0===d?void 0:d[m])>Math.floor((1+Math.pow(u+1,1.6))*Math.pow(1.7,u+1))?u+2:e},0);E=(null==ef?void 0:null===(d=ef[t])||void 0===d?void 0:d[m])===0?0:0===E?1:E,eD+=0===E?1:E;let b=Math.floor((1+Math.pow(E,1.6))*Math.pow(1.7,E)),L=Math.round((null==e?void 0:e.baseValue)*E),k={...e,world:"World"+(t+1),level:null==eT?void 0:null===(y=eT[t])||void 0===y?void 0:y[m],shinyLevel:E,progress:null==ef?void 0:null===(h=ef[t])||void 0===h?void 0:h[m],goal:b,rawPassive:null==e?void 0:e.passive,passive:null==e?void 0:null===(g=e.passive)||void 0===g?void 0:g.replace("{",L),passiveValue:L,unlocked:m0&&(eP[null==e?void 0:e.passive]=L),(null==eN?void 0:eN[null==e?void 0:e.monsterRawName])&&eF.push(k),k})});return{passivesTotals:eP,storedPets:eh,eggs:ec,deadCells:em,speciesUnlocks:ed,fencePets:eF,fencePetsObject:eN,maxArenaLevel:null==y?void 0:null===(el=y.accountOptions)||void 0===el?void 0:el[89],timeToNextEgg:(null==y?void 0:null===(eo=y.accountOptions)||void 0===eo?void 0:eo[87])*1e3,petUpgrades:ep,arenaBonuses:m.arenaBonuses,unlockedBreedingMulti:ey,pets:eA,territories:eE,foragingRounds:eC,currentProgress:eR,totalShinyLevels:eD}},addBreedingChance=(e,t)=>{var l,m;let d=(0,u.tryToParse)(null==e?void 0:e.Breeding)||(null==e?void 0:e.Breeding),y=0,h=null==t?void 0:null===(m=t.breeding)||void 0===m?void 0:null===(l=m.pets)||void 0===l?void 0:l.map((e,l)=>null==e?void 0:e.map((e,m)=>{var u,h;let E=(0,g.eA)(null==t?void 0:null===(u=t.cooking)||void 0===u?void 0:u.kitchens),b=getBreedingMulti(t,d,l,m,null==t?void 0:null===(h=t.breeding)||void 0===h?void 0:h.unlockedBreedingMulti,E);return y+=Math.min(9,Math.floor(Math.pow((null==b?void 0:b.second)-1,.8))+1),{...e,breedingMultipliers:b}}));return{...null==t?void 0:t.breeding,pets:h,totalBreedabilityLv:y}},getBaseBreedChance=(e,t,l)=>{var u;let d=m.randomList[54].split(" ");return l+2>(null==e?void 0:null===(u=e[1])||void 0===u?void 0:u[t])?1/Math.max(1,d[m.petStats[t][l].passiveIndex]):1},getBreedingMulti=(e,t,l,u,E,b)=>{var L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey;let eh=1+Math.ceil(100*Math.pow((null==t?void 0:t[4+l|0][u])/10,1.9))/100,eT=(null==E?void 0:E.second)?1+Math.log(Math.max(1,Math.pow((null==t?void 0:t[l+13|0][u])+1,.725))):1,ef=(null==E?void 0:E.third)?1+(.25*Math.pow(null==t?void 0:null===(L=t[0])||void 0===L?void 0:L[0],1.4)+Math.pow((null==t?void 0:null===(k=t[0])||void 0===k?void 0:k[0])/3,6)):1,ev=(null==E?void 0:E.fourth)?0===l?1:1+.1*l+Math.max(1,Math.min(3,1+.15*(null==t?void 0:null===(V=t[2])||void 0===V?void 0:V[7])))*Math.pow((null==t?void 0:null===(j=t[1])||void 0===j?void 0:j[l-1|0])/(m.petStats[l-1].length-m.petStats[l-1].length/2),3):1,eg=(null==E?void 0:E.fifth)?Math.max(1,Math.pow((null==e?void 0:null===(ee=e.accountOptions)||void 0===ee?void 0:ee[86])+1,.3)):1,eS=getBaseBreedChance(t,l,u),eN=null!==(ey=null==e?void 0:null===(ea=e.gemShopPurchases)||void 0===ea?void 0:ea.find((e,t)=>119===t))&&void 0!==ey?ey:0,eC=(0,d.YG)(null==e?void 0:null===(el=e.alchemy)||void 0===el?void 0:el.vials,null,"NewPet"),eR=(0,d.om)(null==e?void 0:null===(eo=e.alchemy)||void 0===eo?void 0:eo.bubbles,"kazam","PETTING_THE_RIFT",!1),eI=(0,y.mV)(e,"New_Pet_Chance"),ew=(0,h.c9)(null==e?void 0:null===(e_=e.lab)||void 0===e_?void 0:e_.labBonuses,8),eE=(0,h.pc)(null==e?void 0:null===(ec=e.lab)||void 0===ec?void 0:ec.jewels,16,ew),eF=(0,g.F4)(e,null,"Npet",eE),eP=calcUpgradeBonus(null==e?void 0:null===(ed=e.breeding)||void 0===ed?void 0:null===(em=ed.petUpgrades)||void 0===em?void 0:em[9],9,e),eD=(1+10*eN/100)*(1+(eC+eR*(null==e?void 0:null===(ep=e.rift)||void 0===ep?void 0:ep.currentRift))/100)*(1+eI/100)*(1+eF/100)*Math.pow(Math.max(1,eP),b/100)*eS*eh*eT*ef*ev*eg;return{first:eh,second:eT,third:ef,fourth:ev,fifth:eg,totalChance:eD}},getShinyBonus=(e,t)=>null==e?void 0:e.reduce((e,l)=>e+(null==l?void 0:l.reduce((e,l)=>{let{passive:m,passiveValue:u}=l;return e+(m.includes(t)&&u)},0)),0),getTimeToLevel=(e,t,l,m)=>{if((null==e?void 0:e.shinyLevel)===m)return 0;let u=0;for(let t=null==e?void 0:e.shinyLevel;t0===t||2===t||4===t?null==e?void 0:e.level:1===t?4*(null==e?void 0:e.level):3===t?25*(null==e?void 0:e.level):5===t?(1+.25*(null==e?void 0:e.level))*Math.min(2,Math.max(1,1+.1*(0,E.k6)(null==l?void 0:l.achievements,221))):6===t?6*(null==e?void 0:e.level):7===t?1+.15*(null==e?void 0:e.level):8===t?1+2*(null==e?void 0:e.level):9===t?1+.02*(null==e?void 0:e.level):10===t?10*(null==e?void 0:e.level):11===t?Math.ceil(12*Math.pow(null==e?void 0:e.level,.698)):0,getForageSpeed=e=>{var t,l,m,u;let{team:d,previousTeam:y,teamMember:h,position:g}=e;if((null==h?void 0:null===(t=h.gene)||void 0===t?void 0:t.abilityType)===1){switch(null==h?void 0:null===(l=h.gene)||void 0===l?void 0:l.name){case"Forager":return 2*(null==h?void 0:h.power);case"Targeter":if((null==y?void 0:null===(u=y[g])||void 0===u?void 0:null===(m=u.gene)||void 0===m?void 0:m.name)==="Targeter")return 5*(null==h?void 0:h.power);break;case"Opticular":if(null==d?void 0:d.every(e=>e.power<=h.power))return 3*(null==h?void 0:h.power);break;case"Borger":if(y.some(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Forager"}))return 10*(null==h?void 0:h.power)}return null==h?void 0:h.power}return 0},getFightPower=e=>{var t,l;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.abilityType)===0?(null==e?void 0:null===(l=e.gene)||void 0===l?void 0:l.name)==="Mercenary"?2*e.power:e.power:0},calcHighestPower=e=>{var t;let l=null==e?void 0:null===(t=e.territories)||void 0===t?void 0:t.reduce((e,t)=>{let{team:l}=t;return[...e,...l]},[]),m=[...(null==e?void 0:e.storedPets)||[],...l].map(e=>{let{power:t}=e;return t});return Math.max(...m)}},29129:function(e,t,l){"use strict";l.d(t,{k:function(){return getBribeBonus},t:function(){return getBribes}});var m=l(30925),u=l(70473);let getBribes=e=>{let t=(null==e?void 0:e.BribeStatus)||(0,m.tryToParse)(null==e?void 0:e.BribeStatus);return parseBribes(t)},parseBribes=e=>null===u.bribes||void 0===u.bribes?void 0:u.bribes.map((t,l)=>{let m=null==e?void 0:e[l];return{...t,done:1===m}}),getBribeBonus=(e,t)=>{var l,m;return null!==(m=null==e?void 0:null===(l=e.find(e=>{let{name:l,done:m}=e;return l===t&&m}))||void 0===l?void 0:l.value)&&void 0!==m?m:0}},54685:function(e,t,l){"use strict";l.d(t,{BZ:function(){return calcCardBonus},OK:function(){return getCardBonusByEffect},QN:function(){return calcCardsLevels},V3:function(){return getPlayerCards},Xt:function(){return getEquippedCardBonus},vm:function(){return getCards},wt:function(){return getEquippedCardsData}});var m=l(70473),u=l(30925);let getCards=(e,t)=>{var l;let m=(null==e?void 0:null===(l=e.Cards)||void 0===l?void 0:l[0])||(0,u.tryToParse)(null==e?void 0:e.Cards0),d=(0,u.tryToParse)(null==e?void 0:e.Rift)||(null==e?void 0:e.Rift);return parseCards(m,d,t)},calculateStars=(e,t,l,m)=>{let u=0;for(let d=0;d<4+ +m;d++)"Boss3B"===l?t>1.5*Math.pow(d+1+Math.floor(d/3),2)&&(u=d+2):t>e*Math.pow(d+1+(Math.floor(d/3)+16*Math.floor(d/4)),2)&&(u=d+2);return u>0?u-1:u},calculateAmountToNextLevel=(e,t,l)=>t>=5?0:e*Math.pow(t+1+(Math.floor((t+1)/4)+16*Math.floor((t+1)/5)),2)-l+1,parseCards=(e,t,l)=>{let[u]=t||[],d=u>=45;return Object.entries(e).reduce((e,t)=>{var u,y;let[h,g]=t,E=null===m.cards||void 0===m.cards?void 0:m.cards[h],b=(null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[155])||"",L=(null==b?void 0:null===(y=b.toString())||void 0===y?void 0:y.split(","))||[],k=(null==L?void 0:L.includes(h))?5:calculateStars(null==E?void 0:E.perTier,g,h,d);return E?{...e,[null==E?void 0:E.displayName]:{...E,amount:g,stars:k,nextLevelReq:g+calculateAmountToNextLevel(null==E?void 0:E.perTier,k,g)}}:e},{})},calculateCardSetStars=(e,t)=>e&&t?t/(null==e?void 0:e.bonus)-1:null,getEquippedCardBonus=(e,t)=>{var l;let m=null==e?void 0:null===(l=e.equippedCards)||void 0===l?void 0:l.find(e=>{let{cardIndex:l}=e;return l===t});return m?calcCardBonus(m):0},getCardBonusByEffect=(e,t)=>{var l;return null===(l=Object.values(e||{}))||void 0===l?void 0:l.reduce((e,l)=>{var m;return(null==l?void 0:null===(m=l.effect)||void 0===m?void 0:m.includes(t))?e+calcCardBonus(l):e},0)},calcCardBonus=e=>{var t,l,m;return e?(null==e?void 0:e.bonus)*((null!==(t=null==e?void 0:e.stars)&&void 0!==t?t:-1)+1)*(null!==(l=null==e?void 0:e.chipBoost)&&void 0!==l?l:1):0},getPlayerCards=(e,t)=>{var l,u,d;if(!(null==e?void 0:e.CSetEq)&&!(null==e?void 0:e.CardEquip))return{};let y=null==e?void 0:e.CSetEq,h=getEquippedCardsData(null==e?void 0:e.CardEquip,t),g=m.cardSets[null===(l=Object.keys(y))||void 0===l?void 0:l[0]]||{};return{cardSet:{...g,bonus:null===(u=Object.values(y))||void 0===u?void 0:u[0],stars:calculateCardSetStars(g,null===(d=Object.values(y))||void 0===d?void 0:d[0])},equippedCards:h}},getEquippedCardsData=(e,t)=>null==e?void 0:e.map(e=>{var l,u,d,y;return{...(null===m.cards||void 0===m.cards?void 0:null===(l=m.cards[e])||void 0===l?void 0:l.displayName)?{cardName:null===m.cards||void 0===m.cards?void 0:null===(u=m.cards[e])||void 0===u?void 0:u.displayName}:{},...(null==t?void 0:null===(y=t.cards)||void 0===y?void 0:y[null===m.cards||void 0===m.cards?void 0:null===(d=m.cards[e])||void 0===d?void 0:d.displayName])||{}}}).filter((e,t)=>t<8),calcCardsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{stars:l}=t;return e+(l+1)},0):0}},56552:function(e,t,l){"use strict";l.d(t,{NA:function(){return getPlayerConstructionExpPerHour},P9:function(){return getRespawnRate},SD:function(){return initializeCharacter},VK:function(){return getDropRate},WU:function(){return getAfkGain},Yp:function(){return getPlayerSpeedBonus},bv:function(){return getCashMulti},nR:function(){return getPlayerCapacity},ql:function(){return getCharacters},wJ:function(){return getPlayerFoodBonus},x6:function(){return getPlayerConstructionSpeed}});var m=l(70473),u=l(10924),d=l(88344),y=l(23515),h=l(34664),g=l(30796),E=l(54685),b=l(1972),L=l(4056),k=l(88054),V=l(74861),j=l(96707),ee=l(33739),ea=l(15815),el=l(64605),eo=l(64569),e_=l(79603),ec=l(32387),em=l(11028),ed=l(89260),ep=l(74805),ey=l(15265),eh=l(19225),eT=l(15893),ef=l(9339),ev=l(30925),eg=l(71345),eS=l(16727),eN=l(5432),eC=l(19834),eR=l(72973),eI=l(67896),ew=l(95331),eE=l(8616),eF=l(13339),eP=l(79184),eD=l(77115),eA=l(48832),eL=l(30183);let{tryToParse:ex,createIndexedArray:eU,createArrayOfArrays:eQ}=l(30925),getCharacters=(e,t)=>{let l=t||[0,1,2,3,4,5,6,7,8];return null==l?void 0:l.map((t,l)=>{var m;let u=null===(m=Object.entries(e))||void 0===m?void 0:m.reduce((e,t)=>{let[m,u]=t,d=RegExp("_".concat(l),"g");if(d.test(m)){let t=ex(u),l=m,d=[];switch(!0){case m.includes("EquipOrder"):l="EquipmentOrder",u=eQ(u);break;case m.includes("EquipQTY"):l="EquipmentQuantity",u=eQ(u);break;case m.includes("AnvilPA_"):l="AnvilPA",t=eQ(u);break;case m.includes("EMm0"):{l="EquipmentMap",d=null==e?void 0:e[l];let m=eU(t);d?d.splice(0,0,m):d=[m];break}case m.includes("IMm_"):l="InventoryMap",t=ex(u);break;case m.includes("EMm1"):{l="EquipmentMap",d=null==e?void 0:e[l];let m=eU(t);d?d.splice(1,0,m):d=[m];break}case m.includes("BuffsActive"):l="BuffsActive",d=eQ(t);break;case m.includes("ItemQTY"):l="ItemQuantity";break;case m.includes("PVStatList"):l="PersonalValuesMap",t={...(null==e?void 0:e[l])||{},StatList:ex(u)};break;case m.includes("PVtStarSign"):l="PersonalValuesMap",t={...(null==e?void 0:e[l])||{},StarSign:ex(u)};break;case m.includes("ObolEqO0"):l="ObolEquippedOrder";break;case m.includes("ObolEqMAP"):l="ObolEquippedMap";break;case m.includes("SL_"):l="SkillLevels";break;case m.includes("SLpre_"):l="SkillPreset";break;case m.includes("SM_"):l="SkillLevelsMAX";break;case m.includes("KLA_"):l="KillsLeft2Advance";break;case m.includes("AtkCD_"):l="AttackCooldowns";break;case m.includes("POu_"):l="PostOfficeInfo";break;case m.includes("PTimeAway"):l="PlayerAwayTime",t*=1e3;break;default:var y;l=null==m?void 0:null===(y=m.split("_"))||void 0===y?void 0:y[0]}return{...e,[l]:(null==d?void 0:d.length)?d:t}}return{...e}},{});return{name:t,playerId:l,...u}})},initializeCharacter=(e,t,l,b)=>{var V,j,ea,el,eo,ec,em,ed,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8,te;let ti;let tl={};if(tl.playerId=e.playerId,tl.name=e.name,!(null==e?void 0:e.CharacterClass))return tl;tl.classIndex=null==e?void 0:e.CharacterClass,tl.class=null===m.classes||void 0===m.classes?void 0:m.classes[null==e?void 0:e.CharacterClass],tl.afkTime=(0,u.XQ)(null==e?void 0:e.PlayerAwayTime,null==l?void 0:null===(V=l.timeAway)||void 0===V?void 0:V.GlobalTime),tl.afkTarget=null===m.monsters||void 0===m.monsters?void 0:null===(j=m.monsters[null==e?void 0:e.AFKtarget])||void 0===j?void 0:j.Name,tl.afkType=null===m.monsters||void 0===m.monsters?void 0:null===(ea=m.monsters[null==e?void 0:e.AFKtarget])||void 0===ea?void 0:ea.AFKtype,tl.targetMonster=null==e?void 0:e.AFKtarget;let to=null==e?void 0:e.CurrentMap;tl.mapIndex=to,tl.currentMap=null===m.mapNames||void 0===m.mapNames?void 0:m.mapNames[to],tl.money=parseFloat(null==e?void 0:e.Money),tl.cooldowns=null==e?void 0:e.AttackCooldowns;let t_={0:"strength",1:"agility",2:"wisdom",3:"luck",4:"level"};tl.stats=null==e?void 0:null===(eo=e.PersonalValuesMap)||void 0===eo?void 0:null===(el=eo.StatList)||void 0===el?void 0:el.reduce((e,t,l)=>t_[l]?{...e,[t_[l]]:t}:e,{}),tl.level=(null==e?void 0:null===(ec=e.Lv0)||void 0===ec?void 0:ec[0])||0;let tm=null==e?void 0:e.InvBagsUsed,td=Object.keys(tm);tl.invBagsUsed=Object.entries(m.invBags).map(e=>{let[t,l]=e,m=t.match(/[0-9]+/g)[0];return(m=100>parseInt(m)?m-1:m,td.includes(String(m)))?{...l,rawName:t,acquired:!0}:{...l,rawName:t}});let tp=(null==e?void 0:e.MaxCarryCap)||[];tl.maxCarryCap=tp,tl.carryCapBags=Object.keys(tp).sort(function(e,t){return e.localeCompare(t)}).map(e=>{var t;if("Quests"===e||"fillerz"===e||"Statues"===e)return;let l=null===m.carryBags||void 0===m.carryBags?void 0:null===(t=m.carryBags[e])||void 0===t?void 0:t[tp[e]];return l||{rawName:"MaxCapBagNone",displayName:e,Class:e,capacity:tp[e],Type:"CARRY"}}).filter(e=>e),tl.statues=null==e?void 0:e.StatueLevels;let ty={0:"armor",1:"tools",2:"food"},tT=null==e?void 0:null===(em=e.EquipmentOrder)||void 0===em?void 0:em.reduce((e,t,l)=>({...e,[null==ty?void 0:ty[l]]:t}),{}),tf=null===(ed=e.EquipmentQuantity)||void 0===ed?void 0:ed.reduce((e,t,l)=>({...e,[null==ty?void 0:ty[l]]:t}),{}),tv=null===(ef=e.EquipmentMap)||void 0===ef?void 0:ef[0];tl.equipment=(0,d.tT)(tT.armor,tv,tl.name);let tg=null===(ev=e.EquipmentMap)||void 0===ev?void 0:ev[1];tl.tools=(0,d.tT)(tT.tools,tg,tl.name),tl.food=Array.from(Object.values(tT.food)).reduce((e,t,l)=>{var u;return t?[...e,{name:null===m.items||void 0===m.items?void 0:null===(u=m.items[t])||void 0===u?void 0:u.displayName,rawName:t,owner:tl.name,amount:parseInt(tf.food[l]||tf.food[l]),...(null===m.items||void 0===m.items?void 0:m.items[t])||{}}]:e},[]);let tS=e.InventoryOrder,tN=e.ItemQuantity,tC=e.InventoryMap;tl.inventory=(0,y.$v)(tS,tN,tl.name,tC),tl.inventorySlots=null==tS?void 0:tS.reduce((e,t)=>e+("LockedInvSpace"!==t?1:0),0);let tR=(null==e?void 0:null===(eg=e.PersonalValuesMap)||void 0===eg?void 0:eg.StarSign)||"";tl.starSigns=tR.split(",").map(e=>e&&"_"!==e?null===m.starSignByIndexMap||void 0===m.starSignByIndexMap?void 0:m.starSignByIndexMap[e]:null).filter(e=>e),tl.equippedBubbles=null==l?void 0:null===(eS=l.equippedBubbles)||void 0===eS?void 0:eS[null==e?void 0:e.playerId];let tI=null==e?void 0:e.Exp0,tw=null==e?void 0:e.ExpReq0,tE=(null==e?void 0:e.Lv0)||[];tl.skillsInfo=tE.reduce((e,t,l)=>{var m,u;return l<19?{...e,[null===(m=h.Pe[l])||void 0===m?void 0:m.name]:{level:-1!==t?t:0,exp:parseFloat(tI[l]),expReq:parseFloat(tw[l]),icon:null===(u=h.Pe[l])||void 0===u?void 0:u.icon,index:l}}:e},{}),tl.skillsInfoArray=Object.entries(tl.skillsInfo||{}).reduce((e,t)=>{let[l,m]=t;return[...e,{...m,skillName:l}]},[]).sort((e,t)=>e.index-t.index);let[,tF,tq]=(null==e?void 0:e.PlayerStuff)||[];tl.selectedTalentPreset=tF;let tP=null==e?void 0:e.SkillLevels,tD=null==e?void 0:e.SkillPreset,tA=null==e?void 0:e.SkillLevelsMAX,{talents:tL,flatTalents:tx,starTalents:tU,flatStarTalents:tQ}=createTalentPreset(null==tl?void 0:tl.class,tP,tA);tD&&(tl.talentPreset=createTalentPreset(null==tl?void 0:tl.class,tD,tA)),tl.talents=tL,tl.flatTalents=tx,tl.starTalents=tU,tl.flatStarTalents=tQ;let tG=null==e?void 0:e.BuffsActive;tl.activeBuffs=(0,g.ju)(tG,[...tx||[],...tQ||[]]),tl.activePrayers=null==e?void 0:null===(eR=e.Prayers)||void 0===eR?void 0:null===(eN=eR.filter(e=>-1!==e).map(e=>{var t;return null==l?void 0:null===(t=l.prayers)||void 0===t?void 0:t[e]}))||void 0===eN?void 0:eN.filter(e=>e),tl.postOffice=(0,L.dQ)(null==e?void 0:e.PostOfficeInfo,l),tl.selectedCardPreset=tq,tl.cardPresets=null==e?void 0:null===(eI=e.CardPreset)||void 0===eI?void 0:eI.map(e=>(0,E.wt)(e,l)),tl.cards=(0,E.V3)(e,l);let tB=null==l?void 0:null===(eF=l.lab)||void 0===eF?void 0:null===(eE=eF.playersChips)||void 0===eE?void 0:null===(ew=eE[null==e?void 0:e.playerId])||void 0===ew?void 0:ew.find(e=>20===e.index),tM=null==l?void 0:null===(eA=l.lab)||void 0===eA?void 0:null===(eD=eA.playersChips)||void 0===eD?void 0:null===(eP=eD[null==e?void 0:e.playerId])||void 0===eP?void 0:eP.find(e=>21===e.index);tl.cards.equippedCards=null==tl?void 0:null===(ex=tl.cards)||void 0===ex?void 0:null===(eL=ex.equippedCards)||void 0===eL?void 0:eL.map((e,t)=>0===t&&tB||7===t&&tM?{...e,chipBoost:2}:e);let tO=(0,ep.dR)(e,!1);tl.obols={...tO,stats:(0,ep.eX)(tO,l.obols)},tl.worship=(0,ey.T8)(tl,l,null==e?void 0:null===(eU=e.PlayerStuff)||void 0===eU?void 0:eU[0]),tl.quests=(0,eh.GU)(null==e?void 0:e.QuestComplete),tl.crystalSpawnChance=getPlayerCrystalChance(tl,l,b),tl.nonConsumeChance=getNonConsumeChance(tl,l);let tk=null==e?void 0:e.KillsLeft2Advance;tl.kills=null==tk?void 0:tk.reduce((e,t,l)=>{var u;return[...e,parseFloat(null===m.mapPortals||void 0===m.mapPortals?void 0:null===(u=m.mapPortals[l])||void 0===u?void 0:u[0])-parseFloat(null==t?void 0:t[0])]},[]);let tW=null===(eQ=h.du.mining)||void 0===eQ?void 0:eQ[to],tH=null===(eG=h.du.fishing)||void 0===eG?void 0:eG[to],tK=0,tY;tW?(tK=null===(e0=tl.skillsInfo)||void 0===e0?void 0:null===(e$=e0.mining)||void 0===e$?void 0:e$.level,tY="ClassIconsM"):tH?(tK=null===(e2=tl.skillsInfo)||void 0===e2?void 0:null===(e1=e2.fishing)||void 0===e1?void 0:e1.level,tY="ClassIcons45"):(tK=parseFloat(null===m.mapPortals||void 0===m.mapPortals?void 0:null===(e5=m.mapPortals[to])||void 0===e5?void 0:e5[0])-parseFloat(null==tk?void 0:tk[to]),tY="ClassIconsF"),tl.nextPortal={goal:null!==(e4=null===m.mapPortals||void 0===m.mapPortals?void 0:null===(eB=m.mapPortals[to])||void 0===eB?void 0:eB[0])&&void 0!==e4?e4:0,current:tK,currentIcon:tY},tl.zow=getBarbarianZowChow(tk,[1e5]),tl.chow=getBarbarianZowChow(tk,[1e6,1e8]);let tZ=(0,k.y7)(tl.equippedBubbles,"kazam","BIG_P",l),tV=null===(eO=tl.skillsInfo)||void 0===eO?void 0:null===(eM=eO.divinity)||void 0===eM?void 0:eM.level,tz=null==l?void 0:null===(eW=l.divinity)||void 0===eW?void 0:null===(ek=eW.linkedDeities)||void 0===ek?void 0:ek[tl.playerId];if(tl.linkedDeity=tz,-1!==tz&&(tl.deityMinorBonus=(0,eC.kI)(tl,l)),(null==tl?void 0:tl.class)==="Elemental_Sorcerer"){let t=null==e?void 0:null===(e6=e.SkillLevels)||void 0===e6?void 0:e6[505],l=t%10,u=null===m.gods||void 0===m.gods?void 0:m.gods[l];if(u&&(null==u?void 0:u.godIndex)!==tz){ti=null==u?void 0:u.godIndex;let e=null===m.gods||void 0===m.gods?void 0:null===(e7=m.gods[ti])||void 0===e7?void 0:e7.minorBonusMultiplier;tl.secondLinkedDeityIndex=l,tl.secondDeityMinorBonus=Math.max(1,tZ)*(tV/(60+tV))*e}}let tX=null==l?void 0:null===(eK=l.divinity)||void 0===eK?void 0:null===(eH=eK.linkedStyles)||void 0===eH?void 0:eH[null==tl?void 0:tl.playerId];tl.divStyle={...null===m.divStyles||void 0===m.divStyles?void 0:m.divStyles[tX],index:tX},tl.isDivinityConnected=(null==l?void 0:null===(eZ=l.divinity)||void 0===eZ?void 0:null===(eY=eZ.linkedDeities)||void 0===eY?void 0:eY[null==tl?void 0:tl.playerId])===4||(0,eT.Rp)(tl,4);let tj=(0,u.Hx)(t,"Elemental_Sorcerer",!0),tJ=(0,e_.D)(m.classFamilyBonuses,"LV_FOR_ALL_TALENTS_ABOVE_LV_1",tj);if((null==tl?void 0:tl.class)==="Elemental_Sorcerer"){tJ*=1+(0,g._X)(null==tl?void 0:tl.talents,3,"THE_FAMILY_GUY")/100;let e=(0,e_.q)(m.classFamilyBonuses,"LV_FOR_ALL_TALENTS_ABOVE_LV_1");tJ=(0,g.VG)(tJ,null==e?void 0:e.func,null==e?void 0:e.x1,null==e?void 0:e.x2)}let t$=(0,g.J0)(tL,null,tz,tl.secondLinkedDeityIndex,tl.deityMinorBonus,tl.secondDeityMinorBonus,tJ,l,tl);if(tl.addedLevelsBreakdown=null==t$?void 0:t$.breakdown,tl.addedLevels=null==t$?void 0:t$.value,tl.talents=(0,g.Nb)(tL,null,tl.addedLevels),tl.flatTalents=(0,g.Nb)(tL,tx,tl.addedLevels),tD){let e=(0,g.J0)(null==tl?void 0:null===(e9=tl.talentPreset)||void 0===e9?void 0:e9.talents,null,tz,tl.secondLinkedDeityIndex,tl.deityMinorBonus,tl.secondDeityMinorBonus,tJ,l,tl);tl.talentPreset={...tl.talentPreset,talents:(0,g.Nb)(null==tl?void 0:null===(e8=tl.talentPreset)||void 0===e8?void 0:e8.talents,null,null==e?void 0:e.value),flatTalents:(0,g.Nb)(null==tl?void 0:null===(te=tl.talentPreset)||void 0===te?void 0:te.talents,null,null==e?void 0:e.value),addedLevels:null==e?void 0:e.value,addedLevelsBreakdown:null==e?void 0:e.breakdown}}return tl.activeBuffs=null===(eV=tl.activeBuffs)||void 0===eV?void 0:eV.map(e=>{var t;let{name:l}=e;return null===(t=tl.flatTalents)||void 0===t?void 0:t.find(e=>{let{name:t}=e;return t===l})}),tl.talentsLoadout=null==e?void 0:null===(ej=e.AttackLoadout)||void 0===ej?void 0:null===(eX=ej.flat())||void 0===eX?void 0:null===(ez=eX.filter(e=>"Null"!==e))||void 0===ez?void 0:ez.map(e=>{var t,l;return(null===(t=tl.flatTalents)||void 0===t?void 0:t.find(t=>{let{skillIndex:l}=t;return e===l}))||(null===(l=tl.flatStarTalents)||void 0===l?void 0:l.find(t=>{let{skillIndex:l}=t;return e===l}))}),tl.npcDialog=null==e?void 0:e.NPCdialogue,tl.questComplete=null==e?void 0:e.QuestComplete,tl.questCompleted=null===(eJ=Object.entries((null==e?void 0:e.QuestComplete)||{}))||void 0===eJ?void 0:eJ.reduce((e,t)=>{let[l,m]=t;return e+(1===m?1:0)},0),tl.printerSample=getPrinterSampleRate(tl,l,t),tl.anvil=(0,ee.KC)(e,tl),tl},createTalentPreset=(e,t,l)=>{let m=null===g.pV||void 0===g.pV?void 0:g.pV[e],{flat:u,talents:d}=(0,g.o1)(e,m,t,l),{flat:y,talents:h}=(0,g.o1)(e,g.cd,t,l,!0);return{talents:d,flatTalents:u,starTalents:h,flatStarTalents:y}},getRespawnRate=(e,t)=>{var l,u,y,h,g,E,b,L,k,V,ee,ea,el,e_,ec,em,ed,ey,eh,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB;let{targetMonster:eM}=e,eO=null===m.monsters||void 0===m.monsters?void 0:m.monsters[eM];if(!eO||(null==eO?void 0:eO.AFKtype)==="Nothing")return{respawnRate:0,breakdown:[{name:"Not fighting",value:"TOWN"}]};let ek="riftAll"===eM,{RespawnTime:eW,worldIndex:eH}=eO,eK=(0,eo.wt)(null==t?void 0:t.shrines,7,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(l=t.sailing)||void 0===l?void 0:l.artifacts),eY=(0,eT.gw)(e,t,10),eZ=(0,d.zi)(e,47,t),eV=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(u=m.bonuses.etcBonuses)||void 0===u?void 0:u[47]),ez=(0,j.o9)(e,t,"Mob_Respawn_rate"),eX=(0,ef.k6)(null==t?void 0:t.achievements,44),ej=null==t?void 0:null===(g=t.tasks)||void 0===g?void 0:null===(h=g[2])||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y[1],eJ=null==t?void 0:null===(L=t.meritsDescriptions)||void 0===L?void 0:null===(b=L[0])||void 0===b?void 0:null===(E=b[1])||void 0===E?void 0:E.bonusPerLevel,e$=(0,ef.k6)(null==t?void 0:t.achievements,109),e0=null==t?void 0:null===(ee=t.tasks)||void 0===ee?void 0:null===(V=ee[2])||void 0===V?void 0:null===(k=V[1])||void 0===k?void 0:k[1],e1=null==t?void 0:null===(e_=t.meritsDescriptions)||void 0===e_?void 0:null===(el=e_[1])||void 0===el?void 0:null===(ea=el[1])||void 0===ea?void 0:ea.bonusPerLevel,e2=null==t?void 0:null===(ed=t.tasks)||void 0===ed?void 0:null===(em=ed[2])||void 0===em?void 0:null===(ec=em[1])||void 0===ec?void 0:ec[1],e5=null==t?void 0:null===(ev=t.meritsDescriptions)||void 0===ev?void 0:null===(eh=ev[1])||void 0===eh?void 0:null===(ey=eh[1])||void 0===ey?void 0:ey.bonusPerLevel,e3=null==t?void 0:null===(eN=t.tasks)||void 0===eN?void 0:null===(eS=eN[2])||void 0===eS?void 0:null===(eg=eS[3])||void 0===eg?void 0:eg[1],e4=null==t?void 0:null===(eI=t.meritsDescriptions)||void 0===eI?void 0:null===(eR=eI[3])||void 0===eR?void 0:null===(eC=eR[1])||void 0===eC?void 0:eC.bonusPerLevel,e6=(0,ef.k6)(null==t?void 0:t.achievements,308),e7=null==t?void 0:null===(eF=t.tasks)||void 0===eF?void 0:null===(eE=eF[2])||void 0===eE?void 0:null===(ew=eE[4])||void 0===ew?void 0:ew[1],e9=null==t?void 0:null===(eA=t.meritsDescriptions)||void 0===eA?void 0:null===(eD=eA[4])||void 0===eD?void 0:null===(eP=eD[1])||void 0===eP?void 0:eP.bonusPerLevel,e8=null==t?void 0:null===(eU=t.tasks)||void 0===eU?void 0:null===(ex=eU[2])||void 0===ex?void 0:null===(eL=ex[5])||void 0===eL?void 0:eL[1],te=null==t?void 0:null===(eB=t.meritsDescriptions)||void 0===eB?void 0:null===(eG=eB[5])||void 0===eG?void 0:null===(eQ=eG[1])||void 0===eQ?void 0:eQ.bonusPerLevel,ti=1===eH||ek?ej*eJ:2===eH?e0*e1:3===eH?e2*e5:4===eH?e3*e4:5===eH?e7*e9:6===eH?e8*te:0,tl=1===eH||ek?eX:2===eH?e$:5===eH?2*e6:0,to=[{name:"Shrine",value:eK/100},{name:"Equipment",value:eZ/100},{name:"Achievement",value:tl/100},{name:"Chip",value:eY/100},{name:"Starsigns",value:ez/100},{name:"Merit",value:ti/100}];return to.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{respawnRate:(ek?45:eW)/(1+(eK+eY+(eZ+eV)+tl+ez+ti)/100),breakdown:to}},getDropRate=(e,t,l)=>{var y,h,V,ee,e_,ec,em,ed,ey,eh,eS,eC,eI,ew,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$;let e0;let{luck:e1}=(null==e?void 0:e.stats)||{};e0=e1<1e3?(Math.pow(e1+1,.37)-1)/40:(e1-1e3)/(e1+2500)*.5+.297;let e2=(0,L.xV)(null==e?void 0:e.postOffice,"Non_Predatory_Loot_Box",0),e5=(0,g._X)(null==e?void 0:e.talents,1,"ROBBINGHOOD"),e3=(0,g._X)(null==e?void 0:e.talents,1,"CURSE_OF_MR_LOOTY_BOOTY"),e4=(0,g._X)(null==e?void 0:e.starTalents,null,"BOSS_BATTLE_SPILLOVER"),e6=(0,d.zi)(e,2,t),e7=(0,d.zi)(e,2,t,!0),e9=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(y=m.bonuses.etcBonuses)||void 0===y?void 0:y[2]),e8=(0,k.om)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.bubbles,"kazam","DROPPIN_LOADS",!1),te=(0,E.OK)(null==e?void 0:null===(V=e.cards)||void 0===V?void 0:V.equippedCards,"Total_Drop_Rate"),ti=(0,el._r)(null==t?void 0:null===(ee=t.guild)||void 0===ee?void 0:ee.guildBonuses,10),tl=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(e_=ec.cardSet)||void 0===e_?void 0:e_.rawName)==="CardSet26"||(null==e?void 0:null===(ed=e.cards)||void 0===ed?void 0:null===(em=ed.cardSet)||void 0===em?void 0:em.rawName)==="CardSet25"?null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:null===(ey=eh.cardSet)||void 0===ey?void 0:ey.bonus:0,to=(0,eo.wt)(null==t?void 0:t.shrines,4,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(eS=t.sailing)||void 0===eS?void 0:eS.artifacts),t_=null===(eC=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Midas_Minded",t))||void 0===eC?void 0:eC.bonus,tm=(0,k.Vq)(null==t?void 0:null===(ew=t.alchemy)||void 0===ew?void 0:null===(eI=ew.p2w)||void 0===eI?void 0:eI.sigils,"TROVE"),td=(0,eN.du)(null==t?void 0:null===(eL=t.breeding)||void 0===eL?void 0:eL.pets,"Drop_Rate"),tp=(0,j.o9)(e,t,"Drop_Rate"),ty=(0,j.o9)(e,t,"Drop_Rarity"),tT=(0,b.mV)(t,"+{%_Drop_Rate"),tf=(0,g.A5)(l,3,"Siege_Breaker","ARCHLORD_OF_THE_PIRATES",null,!0),tv=1+tf*(0,ev.lavaLog)(null!==(ej=null==t?void 0:null===(ex=t.accountOptions)||void 0===ex?void 0:ex[139])&&void 0!==ej?ej:0)/100,tg=(0,u.fe)(t,3)?null==t?void 0:null===(eG=t.companions)||void 0===eG?void 0:null===(eQ=eG.list)||void 0===eQ?void 0:null===(eU=eQ.at(3))||void 0===eU?void 0:eU.bonus:0,tS=null===(eB=(0,eg.d)(null==t?void 0:null===(eM=t.arcade)||void 0===eM?void 0:eM.shop,"Drop_Rate"))||void 0===eB?void 0:eB.bonus,tN=(0,eR.z)(null==t?void 0:null===(eO=t.equinox)||void 0===eO?void 0:eO.upgrades,"Faux_Jewels"),tC=(0,eT.gw)(e,t,3),tR=(0,eF.R)(t,"+{% Drop Rate"),tI=(0,ef.k6)(null==t?void 0:t.achievements,377),tw=(0,ef.k6)(null==t?void 0:t.achievements,381),tE=(0,u.tE)("Golden_Cake",e,t),tF=(0,E.OK)(null==t?void 0:t.cards,"Total_Drop_Rate_(Passive)"),tq=null!==(eJ=null==t?void 0:null===(eH=t.tome)||void 0===eH?void 0:null===(eW=eH.bonuses)||void 0===eW?void 0:null===(ek=eW[2])||void 0===ek?void 0:ek.bonus)&&void 0!==eJ?eJ:0,tP=(0,eP.I)(null==t?void 0:null===(eK=t.owl)||void 0===eK?void 0:eK.bonuses,"Drop Rate"),tD=null===(eY=(0,eD.iz)(null==t?void 0:null===(eZ=t.farming)||void 0===eZ?void 0:eZ.ranks,"Seed_of_Loot"))||void 0===eY?void 0:eY.bonus,tA=(0,eA.F)(t,27),tL=e5+e2+(e6+e9+e7)+e8+te+e3+tp+ty+ti+tl+to+t_+tm+td+tS+tg+tT+e4*(null!==(e$=null==t?void 0:null===(eV=t.accountOptions)||void 0===eV?void 0:eV[189])&&void 0!==e$?e$:0)+tN+tR+tq+tF+tE+(6*tI+4*tw)+tP+tD+ +tA+9,tx=1.4*e0+tL/100+1;tx<5&&tC>0&&(tx=Math.min(5,tx+tC/100));let tU=tx*tv,tQ=(null==t?void 0:null===(ez=t.accountOptions)||void 0===ez?void 0:ez[232])>=1;tQ&&(tU+=.3);let tG=(0,u.U7)(null==t?void 0:t.bundles,"bun_p");tG&&(tU*=1.2);let tB=(0,eE.vq)(t,"Cotton_Candy");tU*=1+tB/100;let tM=[{name:"Luck",value:1.4*e0},{name:"Talents",value:(e5+e3+e4*(null==t?void 0:null===(eX=t.accountOptions)||void 0===eX?void 0:eX[189]))/100},{name:"Post Office",value:e2/100},{name:"Equipment",value:(e6+e7)/100},{name:"Obols",value:e9/100},{name:"Bubble",value:e8/100},{name:"Cards",value:(te+tl+tF)/100},{name:"Shrine",value:to/100},{name:"Prayers",value:t_/100},{name:"Sigil",value:tm/100},{name:"Shiny",value:td/100},{name:"Arcade",value:tS/100},{name:"Starsign",value:(tp+ty)/100},{name:"Guild",value:ti/100},{name:"Siege Breaker",value:tv},{name:"Companion",value:tg/100},{name:"Equinox",value:tN/100},{name:"Gem Bundle",value:tG?1.2:0},{name:"Stamps",value:tT/100},{name:"Pristine Charm",value:tB/100},{name:"Tome",value:tq/100},{name:"Owl",value:tP/100},{name:"Summoning",value:tR/100},{name:"Ninja Mastery",value:tQ?.3:0},{name:"Golden food",value:tE/100},{name:"Achievements",value:(6*tI+4*tw)/100},{name:"Land rank",value:tD},{name:"Vote",value:tA},{name:"Base",value:1}];return tM.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{dropRate:tU,breakdown:tM}},getCashMulti=(e,t,l)=>{var y,h,b,j,ee,eo,e_,ec,ey,eh,ev,eg,eN,eR,eI,ew,eE,eF,eP,eD,ex,eU,eQ,eG,eB,eM,eO,ek;let{strength:eW,agility:eH,wisdom:eK}=(null==e?void 0:e.stats)||{},eY=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"power","PENNY_OF_STRENGTH",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="strength"),eZ=(0,k.om)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.bubbles,"quicc","DOLLAR_OF_AGILITY",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="agility"),eV=(0,k.om)(null==t?void 0:null===(b=t.alchemy)||void 0===b?void 0:b.bubbles,"high-iq","NICKEL_OF_WISDOM",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="wisdom"),ez=(0,eT.c9)(null==t?void 0:t.lab.labBonuses,8),eX=(0,eT.pc)(null==t?void 0:t.lab.jewels,16,ez),ej=(0,ed.F4)(t,null,"Cash",eX),eJ=null!==(ek=null===(j=(0,eS.YS)(null==t?void 0:null===(ee=t.sailing)||void 0===ee?void 0:ee.artifacts,"Maneki_Kat"))||void 0===j?void 0:j.bonus)&&void 0!==ek?ek:0,e$=null==t?void 0:null===(eo=t.accountOptions)||void 0===eo?void 0:eo[89],e0=null===m.randomList||void 0===m.randomList?void 0:m.randomList[53],e1=+(0,u.bV)(e$,e0,5),e2=+(0,u.bV)(e$,e0,14),e5=(0,V.U6)(null==t?void 0:t.statues,"StatueG20"),e3=(0,eT.c9)(null==t?void 0:t.lab.labBonuses,9),e4=null===(e_=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Jawbreaker",t))||void 0===e_?void 0:e_.bonus,e6=null==l?void 0:l.reduce((e,m)=>(0,u.fe)(t,3)?e+(0,eC.kI)(m,t,3,l):(null==m?void 0:m.linkedDeity)===3?e+(null==m?void 0:m.deityMinorBonus):e,0),e7=(0,k.YG)(null==t?void 0:null===(ec=t.alchemy)||void 0===ec?void 0:ec.vials,null,"MonsterCash"),e9=(0,d.zi)(e,3,t),e8=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(ey=m.bonuses.etcBonuses)||void 0===ey?void 0:ey[3]),te=(0,E.OK)(null==t?void 0:t.cards,"Money_from_mobs_(Passive)"),ti=(0,E.OK)(null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:eh.equippedCards,"Money_from_Monsters"),tl=(0,g._X)(null==e?void 0:e.talents,1,"CHACHING!"),to=(0,em.Qo)(null==t?void 0:null===(ev=t.dungeons)||void 0===ev?void 0:ev.upgrades,"Monster_Cash"),t_=(null==t?void 0:null===(eR=t.arcade)||void 0===eR?void 0:null===(eN=eR.shop)||void 0===eN?void 0:null===(eg=eN[10])||void 0===eg?void 0:eg.bonus)+(null==t?void 0:null===(eE=t.arcade)||void 0===eE?void 0:null===(ew=eE.shop)||void 0===ew?void 0:null===(eI=ew[11])||void 0===eI?void 0:eI.bonus),tm=(0,L.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",2),td=(0,el._r)(null==t?void 0:null===(eF=t.guild)||void 0===eF?void 0:eF.guildBonuses,8),tp=1*(0,g._X)(null==e?void 0:e.starTalents,null,"COINS_FOR_CHARON"),ty=(null==e?void 0:null===(eD=e.skillsInfo)||void 0===eD?void 0:null===(eP=eD.cooking)||void 0===eP?void 0:eP.level)/10,tT=ty*(0,g._X)(null==e?void 0:e.starTalents,null,"AMERICAN_TIPPER"),tf=(0,u.tE)("Golden_Bread",e,t),tv=(0,ef.k6)(null==t?void 0:t.achievements,235),tg=(0,ef.k6)(null==t?void 0:t.achievements,350),tS=(0,ef.k6)(null==t?void 0:t.achievements,376),{dropRate:tN}=getDropRate(e,t,l),tC=(0,eA.F)(t,34),tR=(0,eL.u)(null==t?void 0:null===(ex=t.kangaroo)||void 0===ex?void 0:ex.bonuses,"Cash"),tI=eY*Math.floor(eW/250)+(eZ*Math.floor(eH/250)+eV*Math.floor(eK/250)),tw=(1+tI/100)*(1+(ej+eJ+tR+tC)/100)*(1+(.5*e1+(e2+e5/100)))*(1+e3/100)*(1+e4/100)*(1+(e6+(null==t?void 0:null===(eG=t.farming)||void 0===eG?void 0:null===(eQ=eG.cropDepot)||void 0===eQ?void 0:null===(eU=eQ.cash)||void 0===eU?void 0:eU.value))/100)*(1+(e7+(e9+e8+(ti+te+(tl+(to+t_+(tm+(td*(1+Math.floor((null==e?void 0:e.mapIndex)/50))+(tp+(tT+(1+tf/100+(5*tv+10*tg+20*tS)))))))))))/100),tE=[{name:"Bubbles*",value:tI},{name:"Meal*",value:ej},{name:"Artifact*",value:eJ},{name:"Pet Arena*",value:100*(.5*e1+e2)},{name:"Statues",value:e5},{name:"Lab*",value:e3},{name:"Prayers*",value:e4},{name:"Divinity*",value:e6},{name:"Crop Depot*",value:null==t?void 0:null===(eO=t.farming)||void 0===eO?void 0:null===(eM=eO.cropDepot)||void 0===eM?void 0:null===(eB=eM.cash)||void 0===eB?void 0:eB.value},{name:"Vials",value:e7},{name:"Equipment",value:e9},{name:"Obols",value:e8},{name:"Cards",value:ti+te},{name:"Guild",value:td*(1+Math.floor((null==e?void 0:e.mapIndex)/50))},{name:"Talents",value:tp+tT},{name:"Golden Food",value:tf},{name:"Achievements",value:5*tv},{name:"Dungeons",value:to},{name:"Arcade",value:t_},{name:"Post Office",value:tm},{name:"Kangaroo",value:tR},{name:"Vote",value:tC},{name:"Drop Rate*",value:(tN<2?tN:Math.floor(tN<5?tN:tN+1))*100}];return tE.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{cashMulti:tw,breakdown:tE}},getPrinterSampleRate=(e,t,l)=>{var y,h,E,V,j,ee,el,eo;let em=(0,g._X)(null==e?void 0:e.starTalents,null,"PRINTER_SAMPLING"),ed=(0,ec.W)(null==t?void 0:t.saltLick,0),ep=(0,d.zi)(e,60,t),ey=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"kazam","SAMPLE_IT",!1),eh=(0,g._X)(null==e?void 0:e.talents,null,"SUPER_SAMPLES"),eT=(0,ef.k6)(null==t?void 0:t.achievements,158),ev=(0,k.YG)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.vials,"Printer_sample"),eS=null===(E=(0,ea.Y0)(null==e?void 0:e.activePrayers,"The_Royal_Sampler",t))||void 0===E?void 0:E.bonus,eN=(0,b.mV)(t,"3D_Printer_Sampling_Size"),eC=null==t?void 0:null===(ee=t.tasks)||void 0===ee?void 0:null===(j=ee[2])||void 0===j?void 0:null===(V=j[2])||void 0===V?void 0:V[4],eR=(0,u.Hx)(l,"Voidwalker"),eI=(0,e_.D)(m.classFamilyBonuses,"PRINTER_SAMPLE_SIZE",eR)||0,ew=null===(el=(0,eg.d)(null==t?void 0:null===(eo=t.arcade)||void 0===eo?void 0:eo.shop,"Sample_Size"))||void 0===el?void 0:el.bonus,eE=(0,L.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",0);return Math.floor(1e3*((em+(ed+ep)+(ey+(eh+Math.min(1,eT)))+ev+eS+eN+Math.min(5,.5*eC)+Math.min(5,eI)+(ew+eE))/100))/10},getBarbarianZowChow=(e,t)=>{let l=["Nothing","Z","Copper","Iron","Starfire","Plat","Void","Filler","JungleZ","Grandfrog's_Gazebo","Grandfrog's_Backyard","Gravel_Tomb","Heaty_Hole","Igloo's_Basement","Inside_the_Igloo","End_Of_The_Road","Efaunt's_Tomb","Eycicles's_Nest","Enclave_a_la_Troll","Chizoar's_Cavern","KattleKruk's_Volcano","Castle_Interior"].toSimpleObject(),u=Object.values(m.mapNames).map((l,u)=>{var d,y,h;let g=null===m.mapEnemiesArray||void 0===m.mapEnemiesArray?void 0:m.mapEnemiesArray[u],{MonsterFace:E,Name:b,AFKtype:L}=(null===m.monsters||void 0===m.monsters?void 0:m.monsters[g])||{},k=Math.abs((null==e?void 0:null===(d=e[u])||void 0===d?void 0:d[0])-(null===m.mapDetails||void 0===m.mapDetails?void 0:null===(h=m.mapDetails[u])||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y[0]));return{mapName:l,afkTarget:g,kills:k,monsterFace:E,name:b,afkType:L,done:null==t?void 0:t.map(e=>k>=e)}}).filter(e=>{let{mapName:t,afkTarget:m,name:u,afkType:d,kills:y,mapThreshold:h}=e;return"FIGHTING"===d&&!l[t]&&!d.includes("Fish")&&!d.includes("Bug")&&!t.includes("Colosseum")}),d=null==u?void 0:u.reduce((e,t)=>{let{done:l}=t;return[(null==l?void 0:l[0])?(null==e?void 0:e[0])+1:null==e?void 0:e[0],(null==l?void 0:l[1])?(null==e?void 0:e[1])+1:null==e?void 0:e[1]]},[0,0]);return{finished:d,list:u}},getPlayerCrystalChance=(e,t,l)=>{var m,u,d,y;let h=ex(null==l?void 0:l.Sailing)||(null==l?void 0:l.Sailing),k=null==h?void 0:h[3],V=(null==k?void 0:k[0])>0,j=(0,eo.wt)(null==t?void 0:t.shrines,6,e.mapIndex,t.cards,V),ee=(0,b.fE)(t,"misc","StampC3",e),ea=null==e?void 0:null===(u=e.cards)||void 0===u?void 0:null===(m=u.equippedCards)||void 0===m?void 0:m.find(e=>{let{cardIndex:t}=e;return"A10"===t}),el=ea?(0,E.BZ)(ea):0,e_=null==e?void 0:null===(y=e.cards)||void 0===y?void 0:null===(d=y.equippedCards)||void 0===d?void 0:d.find(e=>{let{cardIndex:t}=e;return"G4"===t}),ec=e_?(0,E.BZ)(e_):0,em=(0,g._X)(null==e?void 0:e.starTalents,null,"CRYSTALS_4_DAYYS"),ed=(0,g._X)(null==e?void 0:e.talents,1,"CMON_OUT_CRYSTALS"),ep=(0,L.xV)(null==e?void 0:e.postOffice,"Non_Predatory_Loot_Box",2),ey=[{name:"Cmon Out Crystals",value:ed},{name:"Crystal Shrine Bonus",value:j},{name:"Post Office",value:ep},{name:"Crystals 4 Days",value:em},{name:"Crystallin Stamp",value:ee},{name:"Poop Card",value:el},{name:"Demon Genie Card",value:ec}];return ey.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{value:5e-4*(1+ed/100)*(1+(ep+j)/100)*(1+em/100)*(1+ee/100)*(1+(el+ec)/100),breakdown:ey}},getPlayerFoodBonus=(e,t,l)=>{var m,u,y,h;let k=(0,L.xV)(null==e?void 0:e.postOffice,"Carepack_From_Mum",2),ee=(0,V.U6)(null==t?void 0:t.statues,"StatueG4",null==e?void 0:e.talents),ea=(0,d.zi)(e,9,t),el=(0,b.mV)(t,"Effect_from_Boost_Food",e),eo=(0,j.o9)(e,t,"All_Food_Effect"),e_=(0,E.Xt)(null==e?void 0:e.cards,"Y5"),ec=(null==e?void 0:null===(u=e.cards)||void 0===u?void 0:null===(m=u.cardSet)||void 0===m?void 0:m.rawName)==="CardSet1"?null==e?void 0:null===(h=e.cards)||void 0===h?void 0:null===(y=h.cardSet)||void 0===y?void 0:y.bonus:0,em=(0,g._X)(null==e?void 0:e.starTalents,null,"FROTHY_MALK");if(l){let l=(0,L.xV)(null==e?void 0:e.postOffice,"Carepack_From_Mum",1),m=(0,b.mV)(t,"Boost_Health_Effect",e);return 1+(l+(ee+(ea+(m+(eo+ec)))))/100}return 1+(k+(ee+(ea+(el+(eo+(e_+(ec+em)))))))/100},getPlayerSpeedBonus=(e,t,l)=>{var m,y,h,L,ee,ea,el,eo,e_,em,ed,ep;let ey,eh;let eT=(0,g._X)(null==e?void 0:e.talents,0,"FEATHERWEIGHT"),ef=(0,g._X)(null==e?void 0:e.talents,0,"FEATHER_FLIGHT"),ev=(0,b.mV)(l,"Movement_Speed",e),eg=(0,g.eZ)(null==e?void 0:e.activeBuffs,"STRAFE"),eS=(0,u.sU)(e,l,"MoveSpdBoosts");eh=(null===(m=e.stats)||void 0===m?void 0:m.agility)<1e3?(Math.pow((null===(h=e.stats)||void 0===h?void 0:h.agility)+1,.4)-1)/40:((null===(L=e.stats)||void 0===L?void 0:L.agility)-1e3)/((null===(ee=e.stats)||void 0===ee?void 0:ee.agility)+2500)*.5+.371;let eN=(0,V.U6)(null==l?void 0:l.statues,"StatueG2",null==e?void 0:e.talents),eC=(0,j.o9)(e,l,"Movement_Speed"),eR=(0,d.zi)(e,1,l),eI=(0,E.OK)(null==e?void 0:null===(y=e.cards)||void 0===y?void 0:y.equippedCards,"Move_Spd");ey=1+((ey=(eS+eT+ev+eg+(eN+(eC+(eR+(eI+ef)))))/100)+eh/2.2);let ew=(0,g._X)(null==e?void 0:e.starTalents,null,"TIPTOE_QUICKNESS");if(ey>2)ey=Math.floor(100*ey)/100;else if(ey>1.75)ey=Math.min(2,Math.floor(100*(ey+ew/100))/100);else{let t=(0,ec.W)(null==l?void 0:l.saltLick,7),m=null!==(ep=null==l?void 0:null===(e_=l.lab)||void 0===e_?void 0:null===(eo=e_.playersChips)||void 0===eo?void 0:null===(el=eo[null==e?void 0:e.playerId])||void 0===el?void 0:null===(ea=el.find(e=>15===e.index))||void 0===ea?void 0:ea.baseVal)&&void 0!==ep?ep:0,u=(0,k.Vq)(null==l?void 0:null===(ed=l.alchemy)||void 0===ed?void 0:null===(em=ed.p2w)||void 0===em?void 0:em.sigils,"TUFT_OF_HAIR");ey=Math.min(1.75,Math.floor(100*(ey+(t+m+(ew+u))/100))/100)}return Math.round(100*ey)},getAfkGain=(e,t,l)=>{var y,h,b,V,ee,ec,ed,ey,eh,ef,ev,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8;let te=[],ti=0,{afkType:tl}=e,{lab:to,guild:t_,dungeons:tm,accountOptions:td,bribes:tp,shrines:ty,charactersLevels:tT,tasks:tf}=l,tv=(null==tf?void 0:null===(h=tf[2])||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y[2])>(null==e?void 0:e.playerId)?2:0,tg=(0,u.jU)(t,"Beast_Master"),tS=(0,e_.D)(m.classFamilyBonuses,"ALL_SKILL_AFK_GAINS",tg),tN=(0,E.OK)(null==e?void 0:null===(b=e.cards)||void 0===b?void 0:b.equippedCards,"Skill_AFK_gain_rate"),tC=0;(null==t_?void 0:null===(V=t_.guildBonuses)||void 0===V?void 0:V.length)>0&&(tC=(0,el._r)(null==t_?void 0:t_.guildBonuses,7));let tR=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(ee=ec.cardSet)||void 0===ee?void 0:ee.rawName)==="CardSet5"?null==e?void 0:null===(ey=e.cards)||void 0===ey?void 0:null===(ed=ey.cardSet)||void 0===ed?void 0:ed.bonus:0,tI=(0,g.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),tw=(0,g.xI)(t,l,tI,79),tE=tw?(0,g._X)(null==e?void 0:e.talents,0,"SLEEPIN'_ON_THE_JOB"):0,tF=(0,k.Vq)(null==l?void 0:null===(ef=l.alchemy)||void 0===ef?void 0:null===(eh=ef.p2w)||void 0===eh?void 0:eh.sigils,"DREAM_CATCHER"),tq=(0,eT.gw)(e,l,8),tP=(0,d.zi)(e,59,l),tD=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(ev=m.bonuses.etcBonuses)||void 0===ev?void 0:ev[59]),tA=(0,d.zi)(e,24,l),tL=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(eS=m.bonuses.etcBonuses)||void 0===eS?void 0:eS[24]),tx=null===(eN=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",l))||void 0===eN?void 0:eN.bonus,tU=null===(eR=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",l))||void 0===eR?void 0:eR.curse,tQ=tv+(tS+(2+tN)+(tC+tR+(tE+(tF+tq)+(tA+tL+(tP+tD)+(tx-tU))))),tG=null===(eI=(0,eg.d)(null==l?void 0:null===(ew=l.arcade)||void 0===ew?void 0:ew.shop,"AFK_Gains_Rate"))||void 0===eI?void 0:eI.bonus,tB=(0,em.Qo)(null==l?void 0:null===(eE=l.dungeons)||void 0===eE?void 0:eE.upgrades,"AFK_Gains"),tM=(0,u.fe)(l,0)||(null==e?void 0:e.linkedDeity)===0||(null==e?void 0:e.secondLinkedDeityIndex)===0?1:0,tO=null==t?void 0:t.reduce((e,m)=>(0,u.fe)(l,0)?e+(0,eC.kI)(m,l,4,t):(null==m?void 0:m.linkedDeity)===4?(null==m?void 0:m.deityMinorBonus)>e?null==m?void 0:m.deityMinorBonus:e:(null==m?void 0:m.secondLinkedDeityIndex)===4&&(null==m?void 0:m.secondDeityMinorBonus)>e?null==m?void 0:m.secondDeityMinorBonus:e,0),tk=(0,u.fe)(l,6)&&5,tW=(0,u.f6)(l),tH=(0,g._X)(null==e?void 0:e.starTalents,null,"RANDO_EVENT_LOOTY"),tK=+(tG+(tB+(30*tM+(tO+(tk+tH*tW))))),tY=tQ+tK;te=[{title:"Base"},{name:""},{name:"Tasks",value:tv},{name:"Family",value:tS},{name:"Cards",value:tN},{name:"Guild",value:tC},{name:"Card Set",value:tR},{name:"Sleepin On The Job (VW Eclipse)",value:tE},{name:"Sigil",value:tF},{name:"Chips",value:tq},{name:"Equipment",value:tP+tA},{name:"Obols",value:tD+tL},{name:"Prayers",value:tx-tU},{name:"Arcade",value:tG},{name:"Dungeons",value:tB},{name:"Divinity Major",value:30*tM},{name:"Divinity Minor",value:tO},{name:"Companion",value:tk},{name:"Rando Event Looty",value:tH*tW},{name:""}];let tZ=(null==tp?void 0:null===(eF=tp[24])||void 0===eF?void 0:eF.done)?null==tp?void 0:null===(eP=tp[24])||void 0===eP?void 0:eP.value:0,tV=(0,eo.wt)(ty,8,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eD=l.sailing)||void 0===eD?void 0:eD.artifacts),tz=(0,g._X)(null==e?void 0:e.starTalents,null,"TICK_TOCK"),tX=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_SKILLING"),tj=(0,g._X)(null==e?void 0:e.talents,0,"ACTIVE_AFK'ER"),tJ=(0,g._X)(null==e?void 0:e.talents,2,"CATCHING_SOME_ZZZ'S"),t$=getTrappingStuff("TrapMGbonus",8,l),t0=(0,j.o9)(e,l,"Skill_AFK_Gain");if("FIGHTING"===tl){let t=(0,u.Hx)(tT,"Voidwalker"),y=(0,e_.D)(m.classFamilyBonuses,"FIGHTING_AFK_GAINS",t),h=(0,L.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",1),b=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_BRAWLING"),k=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_CASTING"),V=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_SHOOTING"),ee=(0,g._X)(null==e?void 0:e.talents,0,"SLEEPIN'_ON_THE_JOB"),ea=(null==tp?void 0:null===(eA=tp[3])||void 0===eA?void 0:eA.done)?null==tp?void 0:null===(eL=tp[3])||void 0===eL?void 0:eL.value:0,eo=(null==e?void 0:null===(eU=e.cards)||void 0===eU?void 0:null===(ex=eU.cardSet)||void 0===ex?void 0:ex.rawName)==="CardSet8"?null==e?void 0:null===(eG=e.cards)||void 0===eG?void 0:null===(eQ=eG.cardSet)||void 0===eQ?void 0:eQ.bonus:0,ec=(0,E.OK)(null==e?void 0:null===(eB=e.cards)||void 0===eB?void 0:eB.equippedCards,m.cardBonuses[43]),em=(0,d.zi)(e,20,l),ed=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(eM=m.bonuses.etcBonuses)||void 0===eM?void 0:eM[20]),ey=(0,j.o9)(e,l,"Fight_AFK_Gain"),eh=0;(null==t_?void 0:null===(eO=t_.guildBonuses)||void 0===eO?void 0:eO.length)>0&&(eh=(0,el._r)(null==t_?void 0:t_.guildBonuses,4));let eT=null!==(eY=null==l?void 0:null===(eK=l.lab)||void 0===eK?void 0:null===(eH=eK.playersChips)||void 0===eH?void 0:null===(eW=eH[null==e?void 0:e.playerId])||void 0===eW?void 0:null===(ek=eW.find(e=>7===e.index))||void 0===ek?void 0:ek.baseVal)&&void 0!==eY?eY:0;ti=.2+(y+h+b+ea+(V+eo+(k+(tz+(tv+tK+(ec+(ee+(em+ed+(tP+tD)+(ey+(eh+(tx-tU+eT)))))))))))/100,te=[...te,{title:"Fighting"},{name:""},{name:"Family",value:y},{name:"Post Office",value:h},{name:"Talents",value:b+k+V+ee},{name:"Bribe",value:ea},{name:"Card Set",value:eo},{name:"Cards",value:ec},{name:"Equipment",value:em+tP},{name:"Obols",value:ed+tD},{name:"Prayers",value:tx-tU},{name:"Chips",value:eT},{name:"Guild",value:eh},{name:"Starsign",value:ey}]}else if("COOKING"===tl){let t=(0,g._X)(null==e?void 0:e.talents,3,"WAITING_TO_COOL");ti=.25+(tX+tz+(tY+(t$+(t0+(tZ+t)))))/100,te=[...te,{title:"Cooking"},{name:""},{name:"Talents",value:tX+t+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ}]}else if("MINING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Dwarven_Supplies",2),m=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eV=l.totalSkillsLevels)||void 0===eV?void 0:null===(eZ=eV.mining)||void 0===eZ?void 0:eZ.rank,2),d=m?(0,E.OK)(null==l?void 0:l.cards,"Mining_Away_Gains"):(0,E.OK)(null==e?void 0:null===(ez=e.cards)||void 0===ez?void 0:ez.equippedCards,"Mining_Away_Gains"),y=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],h=(0,k.om)(null==l?void 0:null===(eX=l.alchemy)||void 0===eX?void 0:eX.bubbles,"power","DREAM_OF_IRONFISH",!1,"strength"===y);ti=.25+(tX+(t+(t$+tz+(tY+(d+(t0+(tZ+h)))))))/100,te=[...te,{title:"Mining"},{name:""},{name:"Talents",value:tX+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:d},{name:"Post Office",value:t},{name:"Bubble",value:h}]}else if("CHOPPIN"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Taped_Up_Timber",2),d=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eJ=l.totalSkillsLevels)||void 0===eJ?void 0:null===(ej=eJ.chopping)||void 0===ej?void 0:ej.rank,2),y=d?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[36]):(0,E.OK)(null==e?void 0:null===(e$=e.cards)||void 0===e$?void 0:e$.equippedCards,m.cardBonuses[36]),h=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],b=(0,k.om)(null==l?void 0:null===(e0=l.alchemy)||void 0===e0?void 0:e0.bubbles,"high-iq","TREE_SLEEPER",!1,"wisdom"===h);ti=.25+(tj+(t+(t$+tz+(tY+(y+(t0+(tZ+b)))))))/100,te=[...te,{title:"Choppin"},{name:""},{name:"Talents",value:tj+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:y},{name:"Post Office",value:t},{name:"Bubble",value:b}]}else if("FISHING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Sealed_Fishheads",2),y=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(e2=l.totalSkillsLevels)||void 0===e2?void 0:null===(e1=e2.fishing)||void 0===e1?void 0:e1.rank,2),h=y?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[39]):(0,E.OK)(null==e?void 0:null===(e5=e.cards)||void 0===e5?void 0:e5.equippedCards,m.cardBonuses[39]),b=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],V=(0,k.om)(null==l?void 0:null===(e3=l.alchemy)||void 0===e3?void 0:e3.bubbles,"power","DREAM_OF_IRONFISH",!1,"strength"===b),j=(0,d.zi)(e,64,l),ee=(0,d.zi)(e,64,l,!0),ea=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(e4=m.bonuses.etcBonuses)||void 0===e4?void 0:e4[64]);ti=.25+(tX+(tJ+(t$+t+(tz+(tY+(h+(t0+(tZ+(V+(j+ea+ee))))))))))/100,te=[...te,{title:"Fishing"},{name:""},{name:"Talents",value:tX+tJ+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:h},{name:"Post Office",value:t},{name:"Bubble",value:V},{name:"Equipment",value:j},{name:"Obols",value:ea},{name:"Tools",value:ee}]}else if("CATCHING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Bug_Hunting_Supplies",2),d=(0,g._X)(null==e?void 0:e.talents,2,"SUNSET_ON_THE_HIVES"),y=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(e7=l.totalSkillsLevels)||void 0===e7?void 0:null===(e6=e7.catching)||void 0===e6?void 0:e6.rank,2),h=y?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[41]):(0,E.OK)(null==e?void 0:null===(e9=e.cards)||void 0===e9?void 0:e9.equippedCards,m.cardBonuses[41]),b=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],V=(0,k.om)(null==l?void 0:null===(e8=l.alchemy)||void 0===e8?void 0:e8.bubbles,"quicc","FLY_IN_MIND",!1,"agility"===b);ti=.25+(d+(t$+t+(tz+(tY+(h+(t0+(tZ+V)))))))/100,te=[...te,{title:"Catching"},{name:""},{name:"Talents",value:d+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:h},{name:"Post Office",value:t},{name:"Bubble",value:V}]}else"LABORATORY"===tl&&(ti=.25+(tz+(tY+(t$+(t0+tZ))))/100,te=[...te,{title:"Laboratory"},{name:""},{name:"Talents",value:tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ}]);let t1=ti;ti<1.5&&(t1=Math.min(1.5,ti+tV/100)),te=[...te,{name:"Shrine (< 150)",value:ti<1.5?tV:0}];let t2=Math.max(.01,t1);return{afkGains:t2,breakdown:te}},getTrappingStuff=(e,t,l)=>{if("TrapMGbonus"===e){var u,d,y;let e=null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[99];if(e>=25*(t+1)){let e=null===m.randomList||void 0===m.randomList?void 0:null===(y=m.randomList[59])||void 0===y?void 0:null===(d=y.split(" "))||void 0===d?void 0:d.map(e=>parseFloat(e));return null==e?void 0:e[t]}return 0}return 1},getPlayerCapacity=(e,t)=>e?(0,u.UR)(e,t):50,getNonConsumeChance=(e,t)=>{let{starSigns:l,cards:m,postOffice:u,talents:d,equippedBubbles:y}=e,{lab:h}=t,b=(0,eT.c9)(null==h?void 0:h.labBonuses,8),V=(0,eT.pc)(null==h?void 0:h.jewels,8,b),ee=(0,k.y7)(y,"power","BITE_BUT_NOT_CHEW",t),ea=(0,g._X)(d,1,"FREE_MEAL"),el=(0,L.xV)(u,"Carepack_From_Mum",0),eo=(0,E.Xt)(null==m?void 0:m.equippedCards,"B3"),e_=(0,j.Wv)(l,t,"chance_to_not");return Math.min(Math.min(90+5*V,98+Math.min(ee,1)),Math.max(1,V)*(ea+(el+(eo+e_+ee))))},getPlayerConstructionSpeed=(e,t)=>{var l,u,y,h,E,V,j,ee;let ea=null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(l=u.construction)||void 0===l?void 0:l.level,eo=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],e_=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"power","CARPENTER",!1,"strength"===eo),ec=(0,b.mV)(t,"Building_Speed",e),em=(0,L.wO)(null==e?void 0:e.postOffice,"Construction_Container"),ed=(0,el._r)(null==t?void 0:null===(h=t.guild)||void 0===h?void 0:h.guildBonuses,5),ey=(0,d.zi)(e,30,t),eh=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(E=m.bonuses.etcBonuses)||void 0===E?void 0:E[30]),eT=(0,ef.k6)(null==t?void 0:t.achievements,153),eg=(0,eI.lC)(null==t?void 0:null===(V=t.towers)||void 0===V?void 0:V.totalLevels,"Build Spd"),eS=(0,k.YG)(null==t?void 0:null===(j=t.alchemy)||void 0===j?void 0:j.vials,null,"Contspd"),eN=(0,g._X)(null==e?void 0:e.talents,2,"REDOX_RATES",!1,!0),eC=(0,ew._m)(t,"Helium_-_Talent_Power_Stacker"),eR=(0,d.ju)([...null==t?void 0:t.storage,...(null==t?void 0:null===(ee=t.refinery)||void 0===ee?void 0:ee.refineryStorage)||[]],"Refinery1",!0,!0);return Math.floor(3*Math.pow(ea/2+.7,1.6)*(1+ea*e_/100)*(1+(ec+.25*em+(ed+(ey+eh)+Math.min(5,5*eT)+eg+eS))/100)*(1+eN*(eC+(0,ev.lavaLog)(eR))/100))},getPlayerConstructionExpPerHour=(e,t)=>{var l,m,u;let d=null==e?void 0:e.constructionSpeed,y=(0,k.y7)(e.equippedBubbles,"power","CALL_ME_BOB",t),h=(0,g._X)(null==e?void 0:e.talents,2,"SHARPER_SAWS"),E=(0,g._X)(null==e?void 0:e.talents,1,"TEMPESTUOUS_EMOTIONS"),ee=(0,k.YG)(null==t?void 0:null===(l=t.alchemy)||void 0===l?void 0:l.vials,null,"ConsExp"),ea=(0,V.U6)(null==t?void 0:t.statues,"StatueG19",null==e?void 0:e.talents),el=(0,b.mV)(t,"+{%_Construction_Exp_Gain",e),eo=(0,j.o9)(e,t,"Construct_Exp"),e_=(0,L.wO)(null==e?void 0:e.postOffice,"Construction_Container");return Math.ceil((Math.pow(d,.7)/2+(2+6*(null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(m=u.construction)||void 0===m?void 0:m.level)))*(1+(y+(h+E+(ee+(ea+(el+(eo+Math.max(0,.5*(e_-100))))))))/100))}},47212:function(e,t,l){"use strict";l.d(t,{q5:function(){return d},ZX:function(){return getBuildCost},VR:function(){return getConstruction},Bt:function(){return getExtraMaxLevels},d4:function(){return getTowers},ai:function(){return optimizeArrayWithSwaps}});var m=l(30925),u=l(70473);let createCogstructionData=(e,t)=>{let l=null==e?void 0:e.reduce((e,l,m)=>{let u=getCogstructionCogType(t[m]);if(!u)return e;let{a:d="",c:y="",d:h="",b:g="",e:E="",g:b="",k:L="",f:k=""}=l||{},V=[d,y,h,g,E,b,L,k].map((e,t)=>t<7?"".concat(getCogstructionValue(e)||"",","):getCogstructionValue(e)),j=t[m].includes("Player_")?t[m].split("Player_")[1]:"";return"".concat(e,"\n").concat(u,",").concat(j,",").concat(V.join(""))},"cog type,name,build_rate,flaggy_rate,exp_mult,exp_rate,build_rate_boost,flaggy_rate_boost,flaggy_speed,exp_rate_boost"),m="empties_x,empties_y",u=null==t?void 0:t.slice(0,96);for(let e=0;e<8;e++)for(let t=0;t<12;t++){let l=(7-e)*12+t;(null==u?void 0:u[l])==="Blank"&&(m="".concat(m,"\n").concat(t,",").concat(e))}return{cogData:l,empties:m}},getCogstructionCogType=e=>{if("Blank"===e)return null;if(e.includes("Player_"))return"Character";if("CogY"===e)return"Yang_Cog";if("CogZ"===e)return"Omni_Cog";let t=Object.entries({ad:"Plus",di:"X",up:"Up",do:"Down",ri:"Right",le:"Left",ro:"Row",co:"Col",cr:"Omni"}).find(t=>{let[l]=t;return e.endsWith(l)});return t?"".concat(t[1],"_Cog"):"Cog"},getCogstructionValue=e=>{var t;return(null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.includes("%"))?(null==e?void 0:e.value)>0&&!isNaN((null==e?void 0:e.value)/100)?(null==e?void 0:e.value)/100:"":(null==e?void 0:e.value)||""},getConstruction=(e,t)=>{let l=(null==e?void 0:e.CogMap)||(0,m.tryToParse)(null==e?void 0:e.CogM),u=(null==e?void 0:e.CogOrder)||(0,m.tryToParse)(null==e?void 0:e.CogO),d=createCogMap(l,null==u?void 0:u.length),y=parseConstruction(d),h=getFlags(e,y,u,t),g=createCogstructionData(y,u);return{...h,cogstruction:g}},getFlags=(e,t,l,u)=>{let d=(null==e?void 0:e.FlagUnlock)||(0,m.tryToParse)(null==e?void 0:e.FlagU),y=(null==e?void 0:e.FlagsPlaced)||(0,m.tryToParse)(null==e?void 0:e.FlagP);return parseFlags(d,y,t,l,u)},parseConstruction=e=>null==e?void 0:e.map(e=>{var t;return null===(t=Object.entries(e))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t;return(null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l])&&(null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l])!=="_"?{...e,[l]:{name:null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l],value:m}}:{...e,[l]:m}},{})}),createCogMap=(e,t)=>{let l=[];for(let m=0;m{var y,h;let g=null==e?void 0:e.reduce((e,d,y)=>{let h=null==m?void 0:m[y],g=null==l?void 0:l[y];return[...e,{currentAmount:-11===d?null===u.flagsReqs||void 0===u.flagsReqs?void 0:u.flagsReqs[y]:parseFloat(d),requiredAmount:null===u.flagsReqs||void 0===u.flagsReqs?void 0:u.flagsReqs[y],flagPlaced:null==t?void 0:t.includes(y),cog:{name:h,stats:g,originalIndex:y}}]},[]),E=null!==(h=null==d?void 0:null===(y=d.gemShopPurchases)||void 0===y?void 0:y.find((e,t)=>118===t))&&void 0!==h?h:0,b=null==l?void 0:l.map((e,t)=>({...e,name:null==m?void 0:m[t]})).filter(e=>{let{name:t}=e;return null==t?void 0:t.includes("Player_")}).reduce((e,t)=>{let{a:l}=t;return e+((null==l?void 0:l.value)||0)},0),L=evaluateBoard(g);return{...L,baseBoard:g,totalFlaggyRate:(null==L?void 0:L.totalFlaggyRate)*(1+50*E/100),playersBuildRate:b}},swapElements=(e,t,l)=>{var m,u;let d=[...e],y={...null===(m=d[t])||void 0===m?void 0:m.cog};return d[t]={...d[t],cog:{...null===(u=d[l])||void 0===u?void 0:u.cog}},d[l]={...d[l],cog:y},d},optimizeArrayWithSwaps=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2500,m=arguments.length>3?arguments[3]:void 0,u=[...e],d=evaluateBoard(u,m),y=null==d?void 0:d[t],h=[],g=Date.now();for(;Date.now()-gy&&(d=em,u=g,y=null==em?void 0:em[t],h=[...h,{from:e,to:l}])}return{...d,moves:h}},evaluateBoard=(e,t)=>{let{boosted:l}=getAllBoostedCogs(e),m=0,u=0,d=0,y=0,h=null==e?void 0:e.map((e,h)=>{var g,E,b,L,k,V,j,ee,ea,el,eo,e_;let{cog:ec}=e||{},{e:em,g:ed,f:ep}=(null==l?void 0:l[h])||{},ey=(null==ec?void 0:null===(E=ec.stats)||void 0===E?void 0:null===(g=E.a)||void 0===g?void 0:g.value)||0,eh=(null==ec?void 0:null===(L=ec.stats)||void 0===L?void 0:null===(b=L.c)||void 0===b?void 0:b.value)||0,eT=(null==ec?void 0:null===(V=ec.stats)||void 0===V?void 0:null===(k=V.b)||void 0===k?void 0:k.value)||0,ef=0;if(null==ec?void 0:null===(j=ec.name)||void 0===j?void 0:j.includes("Player_")){let e=null==t?void 0:t.find(e=>{let{name:t}=e;return t===(null==ec?void 0:ec.name.replace("Player_",""))});e?(ef=(null==e?void 0:e.constructionExpPerHour)*(1+((null==ep?void 0:ep.value)||0)/100),y+=ef):y+=eT}let ev=ey*(1+((null==em?void 0:em.value)||0)/100);m+=Math.max(ev,0),u+=(null==ec?void 0:null===(ea=ec.stats)||void 0===ea?void 0:null===(ee=ea.d)||void 0===ee?void 0:ee.value)||0;let eg=eh+eh*((null==ed?void 0:ed.value)||0)/100;return d+=Math.max(eg,0),{...e,cog:{...ec,stats:{...null==ec?void 0:ec.stats,a:{...null==ec?void 0:null===(el=ec.stats)||void 0===el?void 0:el.a,value:ev},c:{...null==ec?void 0:null===(eo=ec.stats)||void 0===eo?void 0:eo.c,value:eg},...t?{b:{...null==ec?void 0:null===(e_=ec.stats)||void 0===e_?void 0:e_.b,value:ef}}:{}}}}});return t&&(h=null==h?void 0:h.map(e=>{var t,l,m,d,y,h,g,E;return(null==e?void 0:null===(l=e.cog)||void 0===l?void 0:null===(t=l.name)||void 0===t?void 0:t.includes("Player_"))?{...e,cog:{...null==e?void 0:e.cog,stats:{...null==e?void 0:null===(m=e.cog)||void 0===m?void 0:m.stats,b:{...null==e?void 0:null===(y=e.cog)||void 0===y?void 0:null===(d=y.stats)||void 0===d?void 0:d.b,value:(null==e?void 0:null===(E=e.cog)||void 0===E?void 0:null===(g=E.stats)||void 0===g?void 0:null===(h=g.b)||void 0===h?void 0:h.value)*(1+u/100)}}}}:e})),{totalBuildRate:m,totalExpRate:u,totalFlaggyRate:d,totalPlayerExpRate:y*(t?1+u/100:1),board:h}},getAllBoostedCogs=e=>{let t={},l=Array(96).fill(0);for(let h=0;h<8;h++)for(let g=0;g<12;g++){var m,u,d,y;let E=(7-h)*12+g,b=null==e?void 0:null===(m=e[E])||void 0===m?void 0:m.cog,L=(null==e?void 0:null===(d=e[E])||void 0===d?void 0:null===(u=d.cog)||void 0===u?void 0:u.stats)||{},k=getAffectedIndexes(b,g,h);if((null==k?void 0:k.length)>0){k=null==k?void 0:null===(y=k.map(e=>{let[t,l]=e;return t<0||l<0||t>=12||l>=8?null:(7-l)*12+t}))||void 0===y?void 0:y.filter(e=>null!==e);let{e,f:m,g:u}=L||{};if(e||m||u)for(let e=0;e{var m;let u=[];switch(null==e?void 0:null===(m=e.stats)||void 0===m?void 0:m.h){case"diagonal":u.push([t-1,l-1],[t+1,l-1],[t-1,l+1],[t+1,l+1]);break;case"adjacent":u.push([t-1,l],[t,l+1],[t+1,l],[t,l-1]);break;case"up":u.push([t-1,l+2],[t,l+2],[t+1,l+2],[t-1,l+1],[t,l+1],[t+1,l+1]);break;case"right":u.push([t+2,l-1],[t+2,l],[t+2,l+1],[t+1,l-1],[t+1,l],[t+1,l+1]);break;case"down":u.push([t-1,l-2],[t,l-2],[t+1,l-2],[t-1,l-1],[t,l-1],[t+1,l-1]);break;case"left":u.push([t-2,l-1],[t-2,l],[t-2,l+1],[t-1,l-1],[t-1,l],[t-1,l+1]);break;case"row":for(let e=0;e<12;e++)t!==e&&u.push([e,l]);break;case"column":for(let e=0;e<8;e++)l!==e&&u.push([t,e]);break;case"corners":u.push([t-2,l-2],[t+2,l-2],[t-2,l+2],[t+2,l+2]);break;case"around":u.push([t,l-2],[t-1,l-1],[t,l-1],[t+1,l-1],[t-2,l],[t-1,l],[t+1,l],[t+2,l],[t-1,l+1],[t,l+1],[t+1,l+1],[t,l+2]);break;case"everything":for(let e=0;e<8;e++)for(let m=0;m<12;m++)(l!==e||t!==m)&&u.push([m,e])}return u},getTowers=e=>{let t=(null==e?void 0:e.TowerInfo)||(0,m.tryToParse)(null==e?void 0:e.Tower),l=(0,m.tryToParse)(null==e?void 0:e.TotemInfo)||(null==e?void 0:e.TotemInfo);return parseTowers(t,l)},parseTowers=(e,t)=>{var l;let m=null==t?void 0:t[0],d=null==m?void 0:m.reduce((e,t)=>e+t,0),y=Object.keys(u.towers).length,h=null==e?void 0:e.slice(54,62),g=0,E=0,b=null===(l=Object.entries(u.towers))||void 0===l?void 0:l.map(t=>{let[l,m]=t,u=null==e?void 0:e[null==m?void 0:m.index];return(null==m?void 0:m.index)>=9&&(null==m?void 0:m.index)<=17&&u>50&&(g+=u-50),E+=u,{...m,name:l,level:u,nextLevel:u+1===(null==e?void 0:e[m.index+y]),progress:null==e?void 0:e[(null==m?void 0:m.index)+12+2*y],inProgress:null==h?void 0:h.includes(null==m?void 0:m.index),slot:null==h?void 0:h.findIndex(e=>e===(null==m?void 0:m.index))}});return{data:b,buildMultiplier:null===u.randomList||void 0===u.randomList?void 0:u.randomList[13].split(" "),wizardOverLevels:g,totalLevels:E,totalWaves:d,towersTwo:null==e?void 0:e[2]}},getBuildCost=(e,t,l,m)=>{if(0===m)return 20*Math.pow(t+1,2)*Math.pow(1.6,t+1);{var u;let d=Number(null==e?void 0:null===(u=e.buildMultiplier)||void 0===u?void 0:u[m]);return d*Math.pow(l,t)}},d=[250,500,750,1e3,1250,1500,2500],getConstructionMasteryBonus=(e,t)=>6===t?e>=(null==d?void 0:d[6])?30:0:4===t?e>=(null==d?void 0:d[3])?100:0:5===t?e>=(null==d?void 0:d[5])?100:0:3===t&&e>=(null==d?void 0:d[1])?35:0,getExtraMaxLevels=(e,t,l)=>50===t?Math.round(2*l+getConstructionMasteryBonus(e,6,0)):101===t?getConstructionMasteryBonus(e,4,0):100===t?getConstructionMasteryBonus(e,5,0):15===t?getConstructionMasteryBonus(e,3,0):0},89260:function(e,t,l){"use strict";l.d(t,{Cz:function(){return ey},F4:function(){return getMealsBonusByEffectOrStat},GF:function(){return getChipsAndJewels},IG:function(){return parseKitchens},Kn:function(){return calcTimeToNextLevel},QR:function(){return calcTotalMeals},Qo:function(){return calcMealTime},Tt:function(){return getCooking},eA:function(){return getTotalKitchenLevels},sV:function(){return getMealLevelCost},vu:function(){return getKitchens},wR:function(){return applyMealsMulti},zp:function(){return ep}});var m=l(70473),u=l(1972);l(88344);var d=l(30925);l(4056);var y=l(15893),h=l(88054),g=l(10924),E=l(9339),b=l(16727),L=l(5432),k=l(20385),V=l(30796),j=l(72973),ee=l(74044);l(35909),l(99958);var ea=l(54685),el=l(71345),eo=l(13339),e_=l(78713),ec=l(96707),em=l(8616),ed=l(48832);let ep=["Grasslands","Jungle","Encroaching Forest","Tree Interior","Stinky Sewers","Desert Oasis","Beach Docks","Coarse Mountains","Twilight Desert","The Crypt","Frosty Peaks","Tundra Outback","Crystal Caverns","Pristalle Lake","Nebulon Mantle","Starfield Skies","Shores of Eternity","Molten Bay","Smokey Lake","Wurm Catacombs"],getCooking=(e,t)=>{let l=(0,d.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking),m=(0,d.tryToParse)(null==e?void 0:e.Meals)||(null==e?void 0:e.Meals),u=(0,d.tryToParse)(null==e?void 0:e.Territory)||(null==e?void 0:e.Territory);return parseCooking(m,u,l,t)},parseCooking=(e,t,l,m)=>{let u=getMeals(e,m),d=getSpices(e,t,m);return{meals:u,spices:d}},getSpices=(e,t,l)=>{var m,u;let d=null==t?void 0:t.reduce((e,t,l)=>{let[m,,,u,d]=t;return[...e,{progress:m,amount:d,rawName:u,name:ep[l]}]},[]),y=null==e?void 0:null===(m=e[3])||void 0===m?void 0:m.filter(e=>e>0).map((e,t)=>{var l;return{amount:e,toClaim:null==d?void 0:null===(l=d[t])||void 0===l?void 0:l.amount,rawName:"CookingSpice".concat(t),name:ep[t]}}),h=null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[100];return{toClaim:d,available:y,numberOfClaims:h}},getMeals=(e,t)=>{var l;let u=null==e?void 0:e[0],d=null==e?void 0:e[2],y=(0,L.du)(null==t?void 0:null===(l=t.breeding)||void 0===l?void 0:l.pets,"Bonuses_from_All_Meals");return null==u?void 0:u.map((e,t)=>t>66?null:{index:t,level:e,amount:null==d?void 0:d[t],shinyMulti:y,...(null===m.cookingMenu||void 0===m.cookingMenu?void 0:m.cookingMenu[t])||{}}).filter(e=>e)},applyMealsMulti=(e,t)=>null==e?void 0:e.map(e=>({...e,multiplier:1+t/100})),getSpiceUpgradeCost=e=>(e+1+Math.floor(Math.max(0,e-10)/2)+Math.pow(Math.max(0,e-30),1.2))*Math.pow(1.02,Math.max(0,e-60)),getMealsBonusByEffectOrStat=function(e,t,l){var m,u,d,y;let h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=(0,L.du)(null==e?void 0:null===(m=e.breeding)||void 0===m?void 0:m.pets,"Bonuses_from_All_Meals");return null!==(y=null==e?void 0:null===(d=e.cooking)||void 0===d?void 0:null===(u=d.meals)||void 0===u?void 0:u.reduce((e,m)=>{let{level:u,baseStat:d,effect:y,stat:E}=m;if(t){if(!y.includes(t))return e}else if(E!==l)return e;return"PxLine"===l?e+u*d:e+(1+(h+g)/100)*u*d},0))&&void 0!==y?y:0},getKitchens=(e,t,l)=>{let m=(0,d.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking),u=(0,d.tryToParse)(null==e?void 0:e.Atoms)||(null==e?void 0:e.Atoms);return parseKitchens(m,u,t,l)},parseKitchens=(e,t,l,d,L)=>{var j,ee,em,ep,ey,eh,eT;let{characterIndex:ef,enableNanoChip:ev}=L||{},eg=null==d?void 0:null===(j=d.accountOptions)||void 0===j?void 0:j[89],eS=null===m.randomList||void 0===m.randomList?void 0:m.randomList[53],eN=null==e?void 0:e.reduce((e,t)=>{let[l,m,u]=t.slice(6,9);return e+l+m+u},0),eC=null==d?void 0:null===(em=d.cooking)||void 0===em?void 0:null===(ee=em.meals)||void 0===ee?void 0:ee.reduce((e,t)=>{let{level:l}=t;return l>=11?e+1:e},0),eR=null==d?void 0:null===(ey=d.cooking)||void 0===ey?void 0:null===(ep=ey.meals)||void 0===ep?void 0:ep.reduce((e,t)=>{let{level:l}=t;return l>=30?e+1:e},0),eI=null==d?void 0:null===(eT=d.cooking)||void 0===eT?void 0:null===(eh=eT.meals)||void 0===eh?void 0:eh.reduce((e,t)=>{let{level:l}=t;return e+l},0);return null==e?void 0:e.map((e,L)=>{var j,ee,em,ep,ey,eh,eT,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej;let eJ;let[e$,e0,e1,e2,e5,e3,e4,e6,e7,,e9]=e;if(e$<=0)return null;let e8=(0,y.c9)(null==d?void 0:null===(j=d.lab)||void 0===j?void 0:j.labBonuses,8),te=(0,y.pc)(null==d?void 0:null===(ee=d.lab)||void 0===ee?void 0:ee.jewels,16,e8),ti=(0,y.pc)(null==d?void 0:null===(em=d.lab)||void 0===em?void 0:em.jewels,14,e8),tl=(0,u.mV)(d,"Meal_Cooking_Speed"),to=(0,h.iu)(null==d?void 0:null===(ep=d.alchemy)||void 0===ep?void 0:ep.vials,"MealCook"),t_=(0,h.iu)(null==d?void 0:null===(ey=d.alchemy)||void 0===ey?void 0:ey.vials,"6turtle"),tm=(0,h.iu)(null==d?void 0:null===(eh=d.alchemy)||void 0===eh?void 0:eh.vials,"6CookSpd"),td=getMealsBonusByEffectOrStat(d,null,"Mcook",te),tp=(0,h.om)(null==d?void 0:null===(eT=d.alchemy)||void 0===eT?void 0:eT.bubbles,"kazam","DIAMOND_CHEF",!1),ty=getMealsBonusByEffectOrStat(d,null,"KitchenEff",te),tT=null==d?void 0:null===(ew=d.cards)||void 0===ew?void 0:ew.Massive_Troll,tf=null!==(eV=null==tT?void 0:tT.stars)&&void 0!==eV?eV:0,tv=0===tf?0:tf+1,tg=(null==d?void 0:null===(eP=d.lab)||void 0===eP?void 0:null===(eF=eP.jewels)||void 0===eF?void 0:null===(eE=eF.slice(0,3))||void 0===eE?void 0:eE.every(e=>{let{active:t}=e;return t}))?2:1,tS=(0,y.pc)(null==d?void 0:null===(eD=d.lab)||void 0===eD?void 0:eD.jewels,0,e8)*tg,tN=L<(null==d?void 0:null===(eA=d.gemShopPurchases)||void 0===eA?void 0:eA.find((e,t)=>120===t)),tC=null!==(ez=null===(eL=(0,b.YS)(null==d?void 0:null===(ex=d.sailing)||void 0===ex?void 0:ex.artifacts,"Triagulon"))||void 0===eL?void 0:eL.bonus)&&void 0!==ez?ez:0,tR=Math.pow(tp,eC),tI=(0,E.k6)(null==d?void 0:d.achievements,225),tw=(0,E.k6)(null==d?void 0:d.achievements,224),tE=getMealsBonusByEffectOrStat(d,null,"zMealFarm",te),tF=(0,ea.OK)(null==d?void 0:d.cards,"Cooking_Spd_Multi_(Passive)"),tq=null!==(eX=null===(eU=(0,el.d)(null==d?void 0:null===(eQ=d.arcade)||void 0===eQ?void 0:eQ.shop,"Cook_SPD_multi"))||void 0===eU?void 0:eU.bonus)&&void 0!==eX?eX:0,tP=(0,eo.R)(d,"{var l;let m=null!==(l=(0,ec.o9)(t,d,"Cooking_SPD"))&&void 0!==l?l:0;return m>e?m:e},0);let tA=(0,k.Ob)(d,"MSA_Mealing"),tL=0;tA&&(tL=null==tA?void 0:tA.bonus);let tx=(0,V.A5)(l,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),tU=(0,V.A5)(l,3,"Voidwalker","BLOOD_MARROW"),tQ=(0,V.xI)(l,d,tx,146),tG=m.atomsInfo.findIndex(e=>{let{name:t}=e;return"Fluoride_-_Void_Plate_Chef"===t}),tB=0,tM=null==t?void 0:t[tG];tM&&(tB=Math.pow(1+(null===m.atomsInfo||void 0===m.atomsInfo?void 0:null===(ej=m.atomsInfo[tG])||void 0===ej?void 0:ej.baseBonus)*tM/100,eR));let tO=(0,ed.F)(d,13),tk=10*(1+Math.pow(Math.min(1.012,1+tU/100),eI)/100)*Math.max(1,null==d?void 0:null===(eM=d.farming)||void 0===eM?void 0:null===(eB=eM.cropDepot)||void 0===eB?void 0:null===(eG=eB.cookingSpeed)||void 0===eG?void 0:eG.value)*Math.max(1,Math.max(1,tQ))*(1+(tN?2:0))*(1+tO/100)*(1+tE*Math.ceil((tD+1)/50)/100)*Math.max(1,tR)*Math.max(1,tB)*(1+tL/100)*(1+e4/10)*(1+tC/100)*(1+tq/100)*(1+t_/100)*(1+to/100)*(1+(tl+Math.max(0,Math.floor(eN/25)*(ti||0)))/100)*(1+td/100)*(1+eJ/100)*(1+tP/100)*(1+tF/100)*(1+tm/100)*Math.max(1,tS)*(1+Math.min(6*tv+(20*tI+10*tw),100)/100)*(1+ty*Math.floor((e4+(e6+e7))/10)/100),tW=(0,h.YG)(null==d?void 0:null===(eO=d.alchemy)||void 0===eO?void 0:eO.vials,"Recipe_Cooking_Speed"),tH=(0,u.mV)(d,"New_Recipe_Cooking_Speed"),tK=getMealsBonusByEffectOrStat(d,null,"Rcook",te),tY=5*(1+(tN?1:0))*(1+tO/100)*Math.max(1,tR)*Math.max(1,tB)*(1+tL/100)*(1+e6/10)*(1+tW/100)*(1+tH/100)*(1+tK/100)*(1+Math.min(6*tv,50)/100)*(1+ty*Math.floor((e4+(e6+e7))/10)/100),tZ=1+Math.pow(5*e7,.85)/100,tV=(0,h.YG)(null==d?void 0:null===(ek=d.alchemy)||void 0===ek?void 0:ek.vials,null,"Kcosts"),tz=getMealsBonusByEffectOrStat(d,null,"KitchC",te),tX=(0,g.bV)(eg,eS,7),tj=(0,h.Vq)(null==d?void 0:null===(eH=d.alchemy)||void 0===eH?void 0:null===(eW=eH.p2w)||void 0===eW?void 0:eW.sigils,"GARLIC_GLOVE"),tJ=(0,e_.a)(d,"Fractal"),t$=null==tJ?void 0:null===(eK=tJ.shop)||void 0===eK?void 0:eK.find(e=>{let{effect:t,unlocked:l}=e;return t.includes("Kitchen_Upgrade_Costs")&&l}),t0=1/((1+(tV+tj)/100)*(1+(t$?30:0)/100)*(1+tz/100)*(1+(tN?40:0)/100)*(1+.5*(tX?1:0))),t1=1+t0*getSpiceUpgradeCost(e4),t2=1+t0*getSpiceUpgradeCost(e6),t5=1+t0*getSpiceUpgradeCost(e7),t3=[e1,e2,e5,e3].filter(e=>-1!==e),t4=t3.map(e=>{var t;return parseInt(null===(t=m.randomList[49])||void 0===t?void 0:t.split(" ")[e])}),t6=getMealsFromSpiceValues(m.randomList[49],t4).filter(e=>e>0).map(e=>{var t,l;return{index:e,rawName:null===m.cookingMenu||void 0===m.cookingMenu?void 0:null===(t=m.cookingMenu[e])||void 0===t?void 0:t.rawName,cookReq:null===m.cookingMenu||void 0===m.cookingMenu?void 0:null===(l=m.cookingMenu[e])||void 0===l?void 0:l.cookReq}});return{status:e$,meal:{...(null===m.cookingMenu||void 0===m.cookingMenu?void 0:m.cookingMenu[e0])||{},...(null==d?void 0:null===(eZ=d.cooking)||void 0===eZ?void 0:null===(eY=eZ.meals)||void 0===eY?void 0:eY[e0])||{}},luckLv:e7,fireLv:e6,speedLv:e4,currentProgress:e9,mealSpeed:tk,mealLuck:tZ,fireSpeed:tY,speedCost:t1,fireCost:t2,luckCost:t5,...3===e$?{spices:t3}:{},...3===e$?{possibleMeals:t6}:{}}}).filter(e=>e)},getMealsFromSpiceValues=(e,t)=>{let l=[];t.forEach(e=>{l.includes(e)||l.push(e)});let m=e.split(" ").map(e=>parseFloat(e)),u=t.reduce((e,t)=>e+m.indexOf(t),0);return e.includes(u)||l.push(u),!(t.length>2)||l.includes(u-1)||m.includes(u-1)||l.push(u-1),!(t.length>1)||l.includes(u+1)||m.includes(u+1)||l.push(u+1),l.sort((e,t)=>e{let{amount:y,level:h,cookReq:g}=t;if(h>=e)return 0;let E=0;for(let t=h;t{var u;let d=(null==m?void 0:null===(u=m.equinox)||void 0===u?void 0:u.challenges.find(e=>-1===e.current&&e.reward.includes("'Food_Lust'_Equinox_Upg_now_reduces_cost_by_-42%_per_stack")))?1:0;return 1/Math.min(5,Math.max(1,1+10*(0,E.k6)(t,233)/100))*Math.max(.001,Math.pow(Math.max(.58,.8-.22*d),(0,j.z)(l,"Food_Lust")))*(10+(e+Math.pow(e,2)))*Math.pow(1.2+.05*e,e)},calcTimeToNextLevel=(e,t,l)=>e*t/l,getTotalKitchenLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{speedLv:l,luckLv:m,fireLv:u}=t;return e+l+m+u},0),ey=100,getChipsAndJewels=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(!e)return[];let{serverVars:l,timeAway:m,lab:u}=e||{},d=null==u?void 0:u.chips,y=null==u?void 0:u.jewels,h=Math.floor((null==m?void 0:m.GlobalTime)/604800),g=[];for(let m=0;me;e++){let l=[];for(let t=0;2>t;t++){let u=new ee.Z(Math.round(h+m+500*e+(-1+2*t))),g=Math.floor(1e3*u.rand()),E=2===e?Math.round(g-Math.floor(g/y.length)*y.length):Math.round(g-Math.floor(g/(d.length-10*(1-e)))*(d.length-Math.round(10*(1-e))));l.push(E)}if(l[0]===t[e])for(let u=0;100>u;u++){let g=new ee.Z(Math.round(h+m+500*e+765*(u+1))),E=Math.floor(1e3*g.rand()),b=2===e?Math.round(E-Math.floor(E/y.length)*y.length):Math.round(E-Math.floor(E/(d.length-10*(1-e)))*(d.length-Math.round(10*(1-e))));if(l[0]!==b&&l[1]!==b){t[e]=b;break}}}for(let m=0;3>m;m++){-1!==l.ChipRepo[m]&&(t[m]=l.ChipRepo[m]);let u=(0,em.x5)(e,"Laboratory_Bling");18<=t[m]&&20>=t[m]&&u&&(t[m]=Math.max(1,t[m]-10))}let j=Math.floor((h+m)*6048e5);t=t.map((e,t)=>2===t?y[e]:d[e]),g.push({items:t,date:new Date(j)})}return g},calcTotalMeals=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},72339:function(e,t,l){"use strict";l.d(t,{C:function(){return notateDamage},m:function(){return getMaxDamage}});var m=l(30796),u=l(4056),d=l(11028),y=l(54685),h=l(64605),g=l(88054),E=l(88344),b=l(74805),L=l(79603),k=l(70473),V=l(10924),j=l(96707),ee=l(71345),ea=l(56552),el=l(74861),eo=l(1972),e_=l(30925),ec=l(64569),em=l(15815),ed=l(15893),ep=l(89260),ey=l(74629),eh=l(16727),eT=l(95331),ef=l(5432),ev=l(20385),eg=l(47212),eS=l(32387),eN=l(9339),eC=l(19834),eR=l(72973),eI=l(99958);let getMaxDamage=(e,t,l)=>{var u;let d={survivabilityMath:0},y=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],h=(0,m._X)(null==e?void 0:e.talents,1,"STRENGTH_IN_NUMBERS"),g=(0,m._X)(null==e?void 0:e.talents,1,"KNOWLEDGE_IS_POWER"),E=(0,m._X)(null==e?void 0:e.talents,1,"LUCKY_HIT"),b=((null==e?void 0:null===(u=e.stats)||void 0===u?void 0:u[y])||0)*(1+(h+(g+E))/100),{respawnRate:L}=(0,ea.P9)(e,l);d.respawnRate=L;let{afkGains:k}=(0,ea.WU)(e,t,l);d.afkGains=k,d.maxHp=getMaxHp(e,t,l),d.maxMp=getMaxMp(e,t,l),d.movementSpeed=(0,ea.Yp)(e,t,l),d.accuracy=getAccuracy(e,t,l,d.movementSpeed),d.critDamage=getCritDamage(e,t,l),d.critChance=getCritChance(e,t,l,d),d.hitChance=getHitChance(e,t,l,d),d.mastery=getMastery(e,t,l),d.miningEff=(0,eI.x4)(e,t,l,d);let{baseDamage:V}=getBaseDamage(e,t,l,d,b),j=getDamageFromHpMp(e,t,l,d,b),ee=getDamageFromPerX(e,t,l,d,j),el=getDamagePercent(e,t,l,d);return d.maxDamage=V*ee*el,d.minDamage=d.mastery*d.maxDamage,d.defence=getPlayerDefence(e,t,l,d),d.survivability=getSurvivability(e,t,l,d),d.killsPerHour=getKillsPerHour(e,t,l,d),d.survivabilityMath=d.killsPerHour*d.afkGains*(d.survivability/100),d.survivability=getSurvivability(e,t,l,d),d.killsPerHour=getKillsPerHour(e,t,l,d),d.killPerkill=getKillPerKill(e,t,l,d),d.finalKillsPerHour=Math.floor(d.killsPerHour*d.afkGains*(d.survivability/100)*d.killPerkill),d},notateDamage=e=>{let t=[];return 9999999>e.maxDamage?t.push(Math.ceil(e.minDamage)+"~"+Math.ceil(e.maxDamage)):999999999>e.maxDamage?t.push(Math.ceil(e.minDamage/1e3)/1e3+"[~"+Math.ceil(e.maxDamage/1e3)/1e3+"["):9999999999999>e.maxDamage?t.push(Math.ceil(e.minDamage/1e5)/10+"[~"+Math.ceil(e.maxDamage/1e5)/10+"["):t.push(Math.ceil(e.minDamage/1e9)/1e3+"!~"+Math.ceil(e.maxDamage/1e9)/1e3+"!"),t},getMastery=(e,t,l)=>{var u,d;let h=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],b=(0,g.om)(null==l?void 0:null===(u=l.alchemy)||void 0===u?void 0:u.bubbles,"quicc","LIL_BIG_DAMAGE",!1,"agility"===h),L=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Minimum_Damage"),k=(0,m._X)(null==e?void 0:e.talents,2,"MASTERY_UP"),V=(0,E.zi)(e,21,l);return Math.min(.8,.35+(b+(L+(k+V)))/100)},getDamagePercent=(e,t,l)=>{var d,h,ee,ea,el,eo,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8,te,ti,tl,to,t_,tm,td;let tp=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],{strength:ty,agility:tT,wisdom:tf,luck:tv}=(null==e?void 0:e.stats)||{},tg=(0,m._X)(null==e?void 0:e.talents,3,"WORMHOLE_EMPEROR"),tS=1+tg*(0,e_.lavaLog)(null!==(e9=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[152])&&void 0!==e9?e9:0)/100,tN=(0,eR.z)(null==l?void 0:null===(h=l.equinox)||void 0===h?void 0:h.upgrades,"Matching_Scims"),tC=5*(0,ey.MH)(l),tR=(0,m.eZ)(null==e?void 0:e.activeBuffs,"NO_PAIN_NO_GAIN"),tI=(0,j.o9)(e,l,"Total_Damage"),tw=null!==(e8=null==l?void 0:null===(ee=l.divinity)||void 0===ee?void 0:ee.unlockedDeities)&&void 0!==e8?e8:0,tE=(0,m.A5)(t,3,"Elemental_Sorcerer","GODS_CHOSEN_CHILDREN",!1,!0),tF=(0,m.A5)(t,3,"Voidwalker","POWER_ORB"),tq=(0,ec.wt)(null==l?void 0:l.shrines,0,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(ea=l.sailing)||void 0===ea?void 0:ea.artifacts),tP=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",2),tD=(0,u.xV)(null==e?void 0:e.postOffice,"Scurvy_C'arr'ate",2),tA=(0,u.xV)(null==e?void 0:e.postOffice,"Gaming_Lootcrate",2),tL=(0,V.jU)(t,"Blood_Berserker"),tx=(0,m._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),tU=(0,L.D)(k.classFamilyBonuses,"TOTAL_DAMAGE",tL),tQ=tU*((null==e?void 0:e.class)==="Blood_Berserker"&&tx>0?1+tx/100:1),tG=(0,eh.YS)(null==l?void 0:null===(el=l.sailing)||void 0===el?void 0:el.artifacts,"Crystal_Steak"),tB=null!==(te=null==tG?void 0:null===(eI=tG.additionalData)||void 0===eI?void 0:null===(eo=eI[null==e?void 0:e.playerId])||void 0===eo?void 0:eo.bonus)&&void 0!==te?te:0,tM=null!==(ti=null===(ew=(0,eh.YS)(null==l?void 0:null===(eE=l.sailing)||void 0===eE?void 0:eE.artifacts,"Ruble_Cuble"))||void 0===ew?void 0:ew.bonus)&&void 0!==ti?ti:0,tO=null!==(tl=null===(eF=(0,eh.YS)(null==l?void 0:null===(eP=l.sailing)||void 0===eP?void 0:eP.artifacts,"Fun_Hippoete"))||void 0===eF?void 0:eF.bonus)&&void 0!==tl?tl:0,tk=null!==(to=null===(eD=(0,eh.YS)(null==l?void 0:null===(eA=l.sailing)||void 0===eA?void 0:eA.artifacts,"Opera_Mask"))||void 0===eD?void 0:eD.bonus)&&void 0!==to?to:0,tW=null!==(t_=null===(eL=(0,eh.YS)(null==l?void 0:null===(ex=l.sailing)||void 0===ex?void 0:ex.artifacts,"The_True_Lantern"))||void 0===eL?void 0:eL.bonus)&&void 0!==t_?t_:0,tH=null!==(tm=(0,eT._m)(l,"Carbon_-_Wizard_Maximizer"))&&void 0!==tm?tm:0,tK=(0,ef.du)(null==l?void 0:null===(eU=l.breeding)||void 0===eU?void 0:eU.pets,"Total_Damage"),tY=null!==(td=null===(eQ=(0,ev.Ob)(l,"MSA_Skill_EXP"))||void 0===eQ?void 0:eQ.bonus)&&void 0!==td?td:0,tZ=(0,V.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,0),tV=(0,g.om)(null==l?void 0:null===(eG=l.alchemy)||void 0===eG?void 0:eG.bubbles,"power","BRITTLEY_SPEARS",!1,"strength"===tp),tz=(0,g.om)(null==l?void 0:null===(eB=l.alchemy)||void 0===eB?void 0:eB.bubbles,"quicc","BOW_JACK",!1,"agility"===tp),tX=(0,g.om)(null==l?void 0:null===(eM=l.alchemy)||void 0===eM?void 0:eM.bubbles,"high-iq","MATTY_STAFFORD",!1,"wisdom"===tp),tj="strength"===tp||"luck"===tp?(0,g.om)(null==l?void 0:null===(eO=l.alchemy)||void 0===eO?void 0:eO.bubbles,"power","POWER_TRIONE",!1,"strength"===tp):0,tJ="agility"===tp?(0,g.om)(null==l?void 0:null===(ek=l.alchemy)||void 0===ek?void 0:ek.bubbles,"quicc","POWER_TRITWO",!1,"agility"===tp):0,t$="wisdom"===tp?(0,g.om)(null==l?void 0:null===(eW=l.alchemy)||void 0===eW?void 0:eW.bubbles,"high-iq","POWER_TRITHREE",!1,"wisdom"===tp):0,t0=(null==l?void 0:null===(eH=l.towers)||void 0===eH?void 0:eH.totalLevels)>=(null===eg.q5||void 0===eg.q5?void 0:eg.q5[2])?2*Math.floor(((null==l?void 0:null===(eK=l.towers)||void 0===eK?void 0:eK.totalLevels)-(null===eg.q5||void 0===eg.q5?void 0:eg.q5[2]))/10):0,t1=(0,m._X)(null==e?void 0:e.talents,0,"GILDED_SWORD"),t2=(0,eS.W)(null==l?void 0:l.saltLick,9),t5=(0,E.zi)(e,45,l),t3=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(eY=k.bonuses.etcBonuses)||void 0===eY?void 0:eY[45]),t4=null===(eZ=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===eZ?void 0:eZ.bonus,t6=null===(eV=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Precision",l))||void 0===eV?void 0:eV.curse,t7=null===(ez=(0,em.Y0)(null==e?void 0:e.activePrayers,"Fibers_of_Absence",l))||void 0===ez?void 0:ez.curse,t9=(0,ed.c9)(null==l?void 0:null===(eX=l.lab)||void 0===eX?void 0:eX.labBonuses,0),t8=(0,ed.c9)(null==l?void 0:null===(ej=l.lab)||void 0===ej?void 0:ej.labBonuses,11),ai=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ao=(null==l?void 0:null===(e$=l.lab.jewels)||void 0===e$?void 0:null===(eJ=e$.slice(7,10))||void 0===eJ?void 0:eJ.every(e=>{let{active:t}=e;return t}))?2:1,as=(0,ed.pc)(null==l?void 0:l.lab.jewels,10,ai)*ao,a_=(null==e?void 0:null===(e1=e.cards)||void 0===e1?void 0:null===(e0=e1.cardSet)||void 0===e0?void 0:e0.rawName)==="CardSet26"?null==e?void 0:null===(e5=e.cards)||void 0===e5?void 0:null===(e2=e5.cardSet)||void 0===e2?void 0:e2.bonus:0,am=(0,y.OK)(null==e?void 0:null===(e3=e.cards)||void 0===e3?void 0:e3.equippedCards,"Total_Damage"),au=null==l?void 0:null===(e4=l.accountOptions)||void 0===e4?void 0:e4[89],ap=null===k.randomList||void 0===k.randomList?void 0:k.randomList[53],ay=+(0,V.bV)(au,ap,2),aT=+(0,V.bV)(au,ap,15),av=(0,ed.gw)(e,l,12),ag=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,ai),aS=(0,ep.F4)(l,null,"TotDmg",ag),aN=(0,m._X)(null==e?void 0:e.talents,1,"CURSE_OF_MR_LOOTY_BOOTY"),aC=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),aR=(0,eC.HQ)(null==l?void 0:null===(e6=l.divinity)||void 0===e6?void 0:e6.deities,"Flutterbis"),aI=(0,eC.HQ)(null==l?void 0:null===(e7=l.divinity)||void 0===e7?void 0:e7.deities,"Kattlecruk"),aw=tS*(1+tN/100)*(1+tC/100)*(1+(tR+(tI+(Math.max(0,tw-10)*tE+Math.floor(Math.max(0,(null==e?void 0:e.level)-200)/50)*tF)))/100)*(1+(tq+(tP+(tD+tA)+tQ)+(tB+(tH+(tK+tY))))/100)*(1+(tZ+tV+(tz+(tX+(tM+(tO+(tj*Math.floor(Math.max(ty,tv)/250)+tJ*Math.floor(tT/250)+(t$*Math.floor(tf/250)+t0)))))))/100)*(1+(t1+(t2+(t5+t3+t4))+(t9+(t8+as)+(tk+tW)))/100)*(1+(am+a_)/100)*(1+(20*ay+40*aT+(av+aS)+2*(0,eN.k6)(null==l?void 0:l.achievements,58)+3*(0,eN.k6)(null==l?void 0:l.achievements,59)+(5*(0,eN.k6)(null==l?void 0:l.achievements,60)+5*(0,eN.k6)(null==l?void 0:l.achievements,62))+2*(0,eN.k6)(null==l?void 0:l.achievements,119)+3*(0,eN.k6)(null==l?void 0:l.achievements,120)+(5*(0,eN.k6)(null==l?void 0:l.achievements,121)+2*(0,eN.k6)(null==l?void 0:l.achievements,185)+3*(0,eN.k6)(null==l?void 0:l.achievements,186)+(5*(0,eN.k6)(null==l?void 0:l.achievements,187)+((0,eN.k6)(null==l?void 0:l.achievements,240)+(0,eN.k6)(null==l?void 0:l.achievements,280))+3*(0,eN.k6)(null==l?void 0:l.achievements,297)+2*(0,eN.k6)(null==l?void 0:l.achievements,303)+(aR+aI))))/100)*Math.max((1-aN/100)*(1-aC/100)*Math.max(.01,1-(t6+t7)/100),.05);return 100{var y,h,g,E,b,L,j,ee,ea,el,ec,em;let ed=(0,m._X)(null==e?void 0:e.talents,1,"VEINS_OF_THE_INFERNAL"),ep=(0,V.Wk)(l,"chopping"),ey=(0,m._X)(null==e?void 0:e.talents,1,"CHOPPIN_IT_UP_EZ",!0),eh=(0,m._X)(null==e?void 0:e.talents,2,"SKILLAGE_DAMAGE"),eT=null!==(em=Math.min(...(null===(h=Object.entries((null==e?void 0:e.skillsInfo)||{}))||void 0===h?void 0:null===(y=h.filter(e=>{let[t,{index:l}]=e;return l<9}))||void 0===y?void 0:y.map(e=>{let[t,{level:l}]=e;return l}))||[]))&&void 0!==em?em:0,ef=(0,m._X)(null==e?void 0:e.talents,2,"APOCALYPSE_ZOW"),ev=(null==e?void 0:null===(E=e.zow)||void 0===E?void 0:null===(g=E.finished)||void 0===g?void 0:g[0])+1||0,eg=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],eS=(0,m._X)(null==e?void 0:e.talents,2,"PRECISION_POWER"),eN=u.accuracy>=(null==eg?void 0:eg.Defence)*2.25?(null==l?void 0:null===(b=l.refinery)||void 0===b?void 0:b.totalLevels)*eS:0,eR=null==l?void 0:null===(j=l.alchemy)||void 0===j?void 0:null===(L=j.vials)||void 0===L?void 0:L.reduce((e,t)=>{let{level:l}=t;return e+(l>3?1:0)},0),eI=(0,m._X)(null==e?void 0:e.talents,2,"VIRILE_VIALS"),ew=null==l?void 0:null===(ee=l.looty)||void 0===ee?void 0:ee.lootedItems,eE=(0,m._X)(null==e?void 0:e.talents,2,"LOOTY_MC_SHOOTY"),eF=(0,eo.MH)(null==l?void 0:l.stamps),eP=(0,m._X)(null==e?void 0:e.talents,2,"PAPERWORK,_GREAT..."),eD=(0,m._X)(null==e?void 0:e.talents,2,"SPEEDNA"),eA=eD*Math.floor((u.movementSpeed/100-1)/.15),eL=(0,m._X)(null==e?void 0:e.starTalents,null,"DUNGEONIC_DAMAGE"),ex=eL*(0,e_.lavaLog)(null==l?void 0:null===(ea=l.accountOptions)||void 0===ea?void 0:ea[71]),eU=(0,V.fe)(l,0),eQ=eU?(0,eC.kI)(e,l,2):(null==e?void 0:e.linkedDeity)===2?null==e?void 0:e.deityMinorBonus:(null==e?void 0:e.secondLinkedDeityIndex)===2?null==e?void 0:e.secondDeityMinorBonus:0,eG=(0,V.tE)("Golden_Kebabs",e,l)||1,eB=d*(1+ed*((null==e?void 0:null===(ec=e.skillsInfo)||void 0===ec?void 0:null===(el=ec.smithing)||void 0===el?void 0:el.level)/12)/100)*(1+(ey*Math.floor(ep/25)+(eh*Math.floor(eT/5)+ef*ev+eN+eI*eR+(eE*ew/50+eP*eF/10)+eA+ex+eQ))/100)*(1===eG?eG:1+eG/100);return 100{var y,h,g,E;let b=(0,el.U6)(null==l?void 0:l.statues,"StatueG23",null==e?void 0:e.talents),L=(0,m._X)(null==e?void 0:e.talents,0,"MEAT_SHANK"),k=(0,m._X)(null==e?void 0:e.talents,0,"OVERCLOCKED_ENERGY"),V=(null==l?void 0:null===(h=l.bribes)||void 0===h?void 0:null===(y=h[20])||void 0===y?void 0:y.done)?null==l?void 0:null===(E=l.bribes)||void 0===E?void 0:null===(g=E[20])||void 0===g?void 0:g.value:0,j=(0,eo.mV)(l,"Total_Damage");return 1+(Math.pow(d,.7)+(V+(j+b+0)+((0,e_.lavaLog)(u.maxHp)*L+(0,e_.lavaLog)(u.maxMp)*k)))/100},getBaseDamage=(e,t,l,d,h)=>{var L,j,ea,ec,em,ed,ep,ey,eh,eT;let ef=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ev=(0,m._X)(null==e?void 0:e.talents,1,"CARRY_A_BIG_STICK"),eg=(0,m._X)(null==e?void 0:e.talents,1,"HIGH_POLYMER_LIMBS"),eS=(0,m._X)(null==e?void 0:e.talents,1,"POWER_OVERWHELMING"),eN=(0,m._X)(null==e?void 0:e.talents,0,"SHARPENED_AXE"),eC=getWeaponPower(e,t,l),eR=null!==(eT=null===(L=(0,ee.d)(null==l?void 0:null===(j=l.arcade)||void 0===j?void 0:j.shop,"Base_Damage"))||void 0===L?void 0:L.bonus)&&void 0!==eT?eT:0,eI=(0,V.tE)("Golden_Nomwich",e,l),ew=(0,eo.mV)(l,"Base_Damage"),eE=(0,u.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",0),eF=(0,E.zi)(e,16,l),eP=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ea=k.bonuses.etcBonuses)||void 0===ea?void 0:ea[16]),eD=(0,el.U6)(null==l?void 0:l.statues,"StatueG1",null==e?void 0:e.talents),eA=(0,g.om)(null==l?void 0:null===(ec=l.alchemy)||void 0===ec?void 0:ec.bubbles,"power","BIG_MEATY_CLAWS",!1,"strength"===ef),eL=(0,g.om)(null==l?void 0:null===(em=l.alchemy)||void 0===em?void 0:em.bubbles,"quicc","QUICK_SLAP",!1,"agility"===ef),ex=(0,g.om)(null==l?void 0:null===(ed=l.alchemy)||void 0===ed?void 0:ed.bubbles,"high-iq","NAME_I_GUESS",!1,"wisdom"===ef),eU=(0,y.OK)(null==e?void 0:null===(ep=e.cards)||void 0===ep?void 0:ep.equippedCards,"Base_Damage"),eQ=(0,g.Vq)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:null===(ey=eh.p2w)||void 0===ey?void 0:ey.sigils,"PLUNGING_SWORD"),eG=Math.pow((eC*(1+(ev+(eg+eS))/100)+eN)/3,2)+(h+eI)+eR+(ew+(eF+eP)+eD+(eE+(eA*(0,e_.lavaLog)(Math.max(d.maxHp-250,1))+eL*(Math.max(d.movementSpeed/100-1.1,0)/.25)+(ex*(0,e_.lavaLog)(Math.max(d.maxMp-150,1))+(eU+eQ)))));eG>4e3&&(eG=4e3+Math.max(Math.pow(eG-4e3,.91),0)),eG>15e3&&(eG=15e3+Math.max(Math.pow(eG-15e3,.84)));let eB=(0,V.sU)(e,l,"BaseDmgBoosts");return{baseDamage:eG+=eB}},getAccuracy=(e,t,l,h)=>{var b,L,k,ea,e_,ec,ey,eh,eT,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF;let eP={strength:"wisdom",agility:"strength",wisdom:"agility",luck:"luck"},eD=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eA=null==eP?void 0:eP[eD],eL=(0,g.iu)(null==l?void 0:null===(b=l.alchemy)||void 0===b?void 0:b.vials,"baseACC"),ex=(0,u.xV)(null==e?void 0:e.postOffice,"Box_of_Unwanted_Stats",0),eU=(0,y.OK)(null==e?void 0:null===(L=e.cards)||void 0===L?void 0:L.equippedCards,"Base_accuracy"),eQ=(0,E.zi)(e,28,l),eG=(0,V.tE)("Butter_Bar",e,l)||0,eB=(0,eo.mV)(l,"Base_Accuracy"),eM=(0,g.om)(null==l?void 0:null===(k=l.alchemy)||void 0===k?void 0:k.bubbles,"quicc","SHAQURACY",!1,"agility"===eD),eO=(0,y.OK)(null==e?void 0:null===(ea=e.cards)||void 0===ea?void 0:ea.equippedCards,"Total_Accuracy"),ek=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(e_=ec.cardSet)||void 0===e_?void 0:e_.rawName)==="CardSet4"?null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:null===(ey=eh.cardSet)||void 0===ey?void 0:ey.bonus:0,eW=(0,m.eZ)(null==e?void 0:e.activeBuffs,"EXTENDO_RANGEO"),eH=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),eK=(0,j.o9)(e,l,"Accuracy"),eY=(0,el.U6)(null==l?void 0:l.statues,"StatueG15",null==e?void 0:e.talents),eZ=null===(eT=(0,ee.d)(null==l?void 0:null===(ef=l.arcade)||void 0===ef?void 0:ef.shop,"Total_Accuracy"))||void 0===eT?void 0:eT.bonus,eV=(0,d.Qo)(null==l?void 0:null===(ev=l.dungeons)||void 0===ev?void 0:ev.upgrades,"Accuracy"),ez=(null==l?void 0:null===(eS=l.bribes)||void 0===eS?void 0:null===(eg=eS[21])||void 0===eg?void 0:eg.done)?null==l?void 0:null===(eR=l.bribes)||void 0===eR?void 0:null===(eN=eR[21])||void 0===eN?void 0:eN.value:0,eX=(0,m._X)(null==e?void 0:e.starTalents,null,"TIPTOE_QUICKNESS",!0),ej=null===(eI=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Precision",l))||void 0===eI?void 0:eI.bonus,eJ=null===(ew=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===ew?void 0:ew.curse,e$=null===(eE=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===eE?void 0:eE.curse,e0=(0,ed.gw)(e,l,2),e1=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),e2=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,e1),e5=(0,ep.F4)(l,null,"TotAcc",e2),e3=(0,V.fe)(l,0),e4=e3?(0,eC.kI)(e,l,0):(null==e?void 0:e.linkedDeity)===0?null==e?void 0:e.deityMinorBonus:0,e6=(null==e?void 0:null===(eF=e.stats)||void 0===eF?void 0:eF[eA])*(1+eM/100)*(1+(eW+(eO+(eK+(eH+(eY+(eZ+(eV+ez)))))))/100);return h/100>1.99&&(e6*=1+eX/100),e6=(Math.pow(e6/4,1.4)+(e6+(2+eL+(ex+(eU+eQ+eG)+eB))))*(1+(e6+2*ek)/200)*Math.max(.1,1+(ej-eJ-e$)/100)*(1+(e0+e5)/100)*(1+e4/100)},getMaxMp=(e,t,l)=>{var d,h,g;let E=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Base_MP"),b=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Total_MP"),L=(0,eo.mV)(l,"Base_MP"),k=(0,m._X)(null==e?void 0:e.talents,0,"MANA_BOOSTER"),V=(0,u.xV)(null==e?void 0:e.postOffice,"Magician_Starterpack",0),j=(0,u.xV)(null==e?void 0:e.postOffice,"Magician_Starterpack",1),ee=(0,m._X)(null==e?void 0:e.talents,1,"MANA_OVERDRIVE"),ea=(0,m._X)(null==e?void 0:e.talents,1,"HEMA_OVERDRIVE"),el=10+E+0+L+(k+((null==e?void 0:null===(g=e.stats)||void 0===g?void 0:g.wisdom)+V));return el*((1+(ee+ea)/100)*(1+(j+b)/100))},getMaxHp=(e,t,l)=>{var d,h,g,ee,ea;let e_=(0,V.sU)(e,l,"HpBaseBoosts"),em=(0,el.U6)(null==l?void 0:l.statues,"StatueG5",null==e?void 0:e.talents),ed=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Base_HP"),ep=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Total_HP"),ey=(0,eo.mV)(l,"Base_HP"),eh=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",0),eT=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",1),ef=(0,m._X)(null==e?void 0:e.talents,0,"HEALTH_BOOSTER"),ev=(0,m._X)(null==e?void 0:e.starTalents,null,"UBERCHARGED_HEALTH"),eg=(0,m._X)(null==e?void 0:e.talents,1,"STRENGTH_IN_NUMBERS"),eS=(0,m._X)(null==e?void 0:e.talents,1,"HEALTH_OVERDRIVE"),eN=(0,m._X)(null==e?void 0:e.talents,1,"HEMA_OVERDRIVE"),eC=(0,m.eZ)(null==e?void 0:e.activeBuffs,"NO_PAIN_NO_GAIN"),eR=(0,j.o9)(e,l,"Total_HP"),eI=(0,V.jU)(t,"Squire"),ew=(0,m._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),eE=(0,L.D)(k.classFamilyBonuses,"TOTAL_HP",eI),eF=eE*((0,m.gW)(null==e?void 0:e.class,"Squire")&&(null==e?void 0:e.level)===eI&&ew>0?1+ew/100:1),eP=(0,E.zi)(e,15,l),eD=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(g=k.bonuses.etcBonuses)||void 0===g?void 0:g[15]),eA=(0,ec.wt)(null==l?void 0:l.shrines,1,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(ee=l.sailing)||void 0===ee?void 0:ee.artifacts),eL=(0,V.tE)("Golden_Jam",e,l)||1,ex=15+ed+0+(ey+(e_+em))+(eh+(ef+ev)+Math.pow((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.strength)*(1+eg/100),1.05));return ex*((1+(eS+(eN+eP+eD))/100)*(1+eA/100)*(1===eL?eL:1+eL/100)*(1+eT/100)*(1-eC/100)*(1+(eF+ep)/100)*(1+eR/100))},getWeaponPower=(e,t,l)=>{var ea,el,eo,ec,em,ep,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex;let eU=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eQ=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",0),eG=(0,d.Qo)(null==l?void 0:null===(ea=l.dungeons)||void 0===ea?void 0:ea.upgrades,"Weapon_Power"),eB=(0,y.OK)(null==e?void 0:null===(el=e.cards)||void 0===el?void 0:el.equippedCards,"Weapon_Power"),eM=(0,y.OK)(null==l?void 0:l.cards,"Weapon_Power_(Passive)"),eO=(0,h._r)(null==l?void 0:null===(eo=l.guild)||void 0===eo?void 0:eo.guildBonuses,3),ek=(0,g.Vq)(null==l?void 0:null===(em=l.alchemy)||void 0===em?void 0:null===(ec=em.p2w)||void 0===ec?void 0:ec.sigils,"DUSTER_STUDS"),eW=(0,E.zi)(e,"Weapon_Power",l),eH=(0,b.gY)(null==e?void 0:e.obols,"Weapon_Power"),eK=(0,ed.gw)(e,l,19),eY="strength"===eU?(0,g.om)(null==l?void 0:null===(ep=l.alchemy)||void 0===ep?void 0:ep.bubbles,"power","SPEAR_POWAH",!1,"strength"===eU):0,eZ="agility"===eU?(0,g.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","BOW_POWER",!1,"agility"===eU):0,eV="wisdom"===eU||"luck"===eU?(0,g.om)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:eh.bubbles,"high-iq","WAND_PAWUR",!1,"wisdom"===eU):0,ez=(0,g.iu)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.vials,"WeaponPOW"),eX=(0,V.jU)(t,"Barbarian"),ej=(0,L.D)(k.classFamilyBonuses,"WEAPON_POWER",eX),eJ=(0,j.o9)(e,l,"Weapon_Power"),e$=null===(ef=(0,ee.d)(null==l?void 0:null===(ev=l.arcade)||void 0===ev?void 0:ev.shop,"Weapon_Power"))||void 0===ef?void 0:ef.bonus,e0=(0,m._X)(null==e?void 0:e.talents,3,"TOUGH_STEAKS"),e1=(0,m._X)(null==e?void 0:e.talents,3,"GAMER_STRENGTH"),e2=Math.round(10*(0,m._X)(null==e?void 0:e.talents,3,"CREW_ROWING_STRENGTH"))/10,e5=(0,m._X)(null==e?void 0:e.talents,3,"BELIEVER_STRENGTH"),e3=(0,m._X)(null==e?void 0:e.talents,3,"ANIMALISTIC_FEROCITY"),e4=(0,m._X)(null==e?void 0:e.talents,3,"WIRED_IN_POWER"),e6=null!==(ex=null==l?void 0:null===(eN=l.breeding)||void 0===eN?void 0:null===(eS=eN.storedPets)||void 0===eS?void 0:null===(eg=eS[0])||void 0===eg?void 0:eg.power)&&void 0!==ex?ex:0,e7=(0,V.jU)(t,"Beginner"),e9=(0,m._X)(null==e?void 0:e.starTalents,null,"BEGINNER_BEST_CLASS"),e8=(0,V.sU)(e,l,"WeaponPowerBoosts");return 5+eQ+eG+e8+(eB+eM+(eO+ek))+((eW+eH)*(1+(eK+(eY+(eZ+eV)))/100)+Math.min(e9,Math.floor(e7/10))+(ez+(ej+(eJ+(e$+(e0*Math.floor((null==e?void 0:null===(eR=e.skillsInfo)||void 0===eR?void 0:null===(eC=eR.cooking)||void 0===eC?void 0:eC.level)/10)+(e1*Math.floor((null==e?void 0:null===(ew=e.skillsInfo)||void 0===ew?void 0:null===(eI=ew.gaming)||void 0===eI?void 0:eI.level)/10)+(e2*Math.floor((null==e?void 0:null===(eF=e.skillsInfo)||void 0===eF?void 0:null===(eE=eF.sailing)||void 0===eE?void 0:eE.level)/10)+e5*Math.floor((null==e?void 0:null===(eD=e.skillsInfo)||void 0===eD?void 0:null===(eP=eD.divinity)||void 0===eP?void 0:eP.level)/10)))+(e3*(0,e_.lavaLog)(e6)+e4*Math.floor((null==e?void 0:null===(eL=e.skillsInfo)||void 0===eL?void 0:null===(eA=eL.laboratory)||void 0===eA?void 0:eA.level)/10))))))))},getCritDamage=(e,t,l)=>{var u,d,h,L,V,j,ee,ea;let e_=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ec=(0,m._X)(null==e?void 0:e.talents,0,"FARSIGHT"),ed=(0,m._X)(null==e?void 0:e.talents,0,"CRITIKILL"),ep=(0,m._X)(null==e?void 0:e.talents,0,"KNUCKLEBUSTER"),ey=(0,m.eZ)(null==e?void 0:e.activeBuffs,"DIVINE_INTERVENTION"),eh=(0,g.om)(null==l?void 0:null===(u=l.alchemy)||void 0===u?void 0:u.bubbles,"power","BAPPITY_BOOPITY",!1,"strength"===e_),eT=(0,eo.mV)(l,"Critical_Damage"),ef=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Critical_Damage"),ev=null===(h=(0,em.Y0)(null==e?void 0:e.activePrayers,"Circular_Criticals",l))||void 0===h?void 0:h.curse,eg=(0,E.zi)(e,22,l),eS=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(L=k.bonuses.etcBonuses)||void 0===L?void 0:L[22]),eN=(0,el.U6)(null==l?void 0:l.statues,"StatueG6",null==e?void 0:e.talents);return 1.2+(ed+eN+(ec+(eT+(100*(1e3>(null==e?void 0:null===(V=e.stats)||void 0===V?void 0:V.strength)?(Math.pow((null==e?void 0:null===(j=e.stats)||void 0===j?void 0:j.strength)+1,.37)-1)/40:((null==e?void 0:null===(ee=e.stats)||void 0===ee?void 0:ee.strength)-1e3)/((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.strength)+2500)*.5+.255)/1.8+(eh+(ef-ev+(ep+(eg+eS+ey))))))))/100},getCritChance=(e,t,l,d)=>{var h,L,V,ee,ea,eo,ec,ey,eh,eT,ef,ev;let eg=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eS=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Critical_Chance"),eC=(0,y.OK)(null==l?void 0:l.cards,"Critical_Chance_(Passive)"),eR=(null==e?void 0:null===(V=e.cards)||void 0===V?void 0:null===(L=V.cardSet)||void 0===L?void 0:L.rawName)==="CardSet6"?null==e?void 0:null===(ea=e.cards)||void 0===ea?void 0:null===(ee=ea.cardSet)||void 0===ee?void 0:ee.bonus:0,eI=null===(eo=(0,em.Y0)(null==e?void 0:e.activePrayers,"Circular_Criticals",l))||void 0===eo?void 0:eo.bonus,ew=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),eE=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,ew),eF=(0,ep.F4)(l,null,"Crit",eE),eP=(0,el.U6)(null==l?void 0:l.statues,"StatueG14",null==e?void 0:e.talents),eD=(0,m._X)(null==e?void 0:e.starTalents,null,"MEGA_CRIT"),eA=(0,m._X)(null==e?void 0:e.starTalents,null,"OVERACCURATE_CRIT"),eL=(0,j.o9)(e,l,"Crit_Chance"),ex=(0,E.zi)(e,23,l),eU=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ec=k.bonuses.etcBonuses)||void 0===ec?void 0:ec[23]),eQ=(0,m._X)(null==e?void 0:e.talents,0,"I_SEE_YOU"),eG=(0,m._X)(null==e?void 0:e.talents,0,"FARSIGHT",!0),eB=(0,eN.k6)(null==l?void 0:l.achievements,184),eM=(0,u.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",2),eO=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ek=Math.floor(null==d?void 0:d.accuracy),eW=(0,e_.lavaLog)(ek-1.5*(null==eO?void 0:eO.Defence)),eH=(0,g.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","CHEAP_SHOT",!1,"agility"===eg);return 5+eR+(eS+Math.min(eC,50)+(eD+(ex+eU)+(eI+eF+eP+eL)))+(eQ+(eG+5*eB+(eM+eA*eW)+((1e3>(null==e?void 0:null===(eh=e.stats)||void 0===eh?void 0:eh.agility)?(Math.pow((null==e?void 0:null===(eT=e.stats)||void 0===eT?void 0:eT.agility)+1,.37)-1)/40:((null==e?void 0:null===(ef=e.stats)||void 0===ef?void 0:ef.agility)-1e3)/((null==e?void 0:null===(ev=e.stats)||void 0===ev?void 0:ev.agility)+2500)*.5+.255)/2.3*100+eH)))},getHitChance=(e,t,l,m)=>{let u=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],d=(null==m?void 0:m.accuracy)/(null==u?void 0:u.Defence);return .5<=d?Math.floor(Math.min(100*(.95*d-.425),100)):0},getKillsPerHour=(e,t,l,d)=>{var y,h,L,V,j,ee,ea,el;let eo=getTalentEffectOnKills(e,l,"D"),e_=getTalentEffectOnKills(e,l,"K"),ec=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],em=(null==e?void 0:null===(h=e.equipment)||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y.Speed)||0,ey=(0,E.zi)(e,56,l),eh=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(L=k.bonuses.etcBonuses)||void 0===L?void 0:L[56]),eT=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ef=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,eT),ev=(0,ep.F4)(l,null,"AtkSpd",ef),eg=(0,ed.gw)(e,l,4),eS=(0,g.om)(null==l?void 0:null===(V=l.alchemy)||void 0===V?void 0:V.bubbles,"high-iq","HYPERSWIFT",!1,"wisdom"===ec),eN=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",1),eC=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],eR=getMonsterHpTotal(null==eC?void 0:eC.MonsterHPTotal,e,l),eI=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(ee=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===ee?void 0:null===(j=ee[1])||void 0===j?void 0:j[0],ew=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(el=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===el?void 0:null===(ea=el[1])||void 0===ea?void 0:ea[1],eE=Math.min(Math.max(e_,1),2.2),eF=Math.max(.1,(1+(10-em)/5)/(1+(ey+eh+(ev+(eg+(eS+eN))))/100)),eP=(null==d?void 0:d.maxDamage)*(d.mastery+(1-d.mastery)/2)*(1+(d.critDamage-1)*(d.critChance/100))*(d.hitChance/100)*Math.max(eo,1),eD=0{var u,d;let y=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],h=null==e?void 0:null===(u=e.talentsLoadout)||void 0===u?void 0:u.reduce((e,t)=>(null==t?void 0:t.AFKactivity)!==0||(null==t?void 0:t[l])===1?e:e*((null==t?void 0:t[l])||1)*(1+Math.min(1,(null==t?void 0:t.baseLevel)/((null==t?void 0:t.baseLevel)+100))),1),E=(0,m._X)(null==e?void 0:e.starTalents,null,"ATTACKS_ON_SIMMER"),b=(0,m._X)(null==e?void 0:e.talents,1,"TWO_PUNCH_MAN"),L=(0,m._X)(null==e?void 0:e.talents,2,"TRIPLE_JAB"),k=(0,m._X)(null==e?void 0:e.talents,1,"DOUBLE_STRIKE"),V=(0,m._X)(null==e?void 0:e.talents,1,"HAVE_ANOTHER!"),j=(0,m._X)(null==e?void 0:e.talents,2,"HAVE_ANOTHER..._AGAIN!"),ee=(0,g.om)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.bubbles,"high-iq","ALL_FOR_KILL",!1,"wisdom"===y);return"D"===l?h*(1+(Math.min(E,25)+Math.min(ee,25))/100)*(1+(b+(L+(k+(V+j))))/100):h},getMonsterHpTotal=(e,t,l)=>{var m,u,d;let y=null===(m=(0,em.Y0)(null==t?void 0:t.activePrayers,"Big_Brain_Time",l))||void 0===m?void 0:m.curse,h=null===(u=(0,em.Y0)(null==t?void 0:t.activePrayers,"Midas_Minded",l))||void 0===u?void 0:u.curse,g=null===(d=(0,em.Y0)(null==t?void 0:t.activePrayers,"Jawbreaker",l))||void 0===d?void 0:d.curse;return e*(1+(y+(h+g))/100)},getSurvivability=(e,t,l,d)=>{var y,h;let g=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],E=getMonsterDamage(g,e,l,d),b=(0,m._X)(null==e?void 0:e.talents,1,"MANA_IS_LIFE");b&&(E/=1+b/100);let L=(0,V.Zf)(e,l,"Health"),j=(0,m._X)(null==e?void 0:e.starTalents,null,"GOBLET_OF_HEMOGLOBIN"),ee=L+(null==d?void 0:d.survivabilityMath)*(j/100)*(null==d?void 0:d.maxHp),ea=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(h=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y[2],el=E*ea-ee;if(!(el>0))return 100;{el=(null==d?void 0:d.maxHp)/el;let t=(0,m._X)(null==e?void 0:e.starTalents,null,"BORED_TO_DEATH"),l=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",2);return Math.min(Math.round(100*(el/(el+(0===t?600/(1+Math.min(50,Math.max(0,l)/100)):Math.max(t/(1+Math.min(50,Math.max(0,l))/100),100))/3600))),100)}},getMonsterDamage=(e,t,l,u)=>{var d,y,h;let{Damages:g}=e||{},E=(null==g?void 0:g[0])-2.5*Math.pow(null==u?void 0:null===(d=u.defence)||void 0===d?void 0:d.value,.8),b=Math.pow(null==u?void 0:null===(y=u.defence)||void 0===y?void 0:y.value,1.5)/100,L=E/Math.max(1+(null==u?void 0:null===(h=u.defence)||void 0===h?void 0:h.value)/Math.max(null==g?void 0:g[0],1)*b,1),k=(0,m.eZ)(null==t?void 0:t.activeBuffs,"NO_PAIN_NO_GAIN"),V=(0,m._X)(null==t?void 0:t.talents,1,"BRICKY_SKIN");return k&&(L*=2),V&&(L*=Math.max(.05,1-V/100)),L<.5?0:Math.max(Math.ceil(L),0)},getPlayerDefence=(e,t,l)=>{var h,L,ea,e_,ey,eh,eT,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA;let eL=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ex=(0,u.xV)(null==e?void 0:e.postOffice,"Box_of_Unwanted_Stats",1),eU=(null==e?void 0:null===(L=e.cards)||void 0===L?void 0:null===(h=L.cardSet)||void 0===h?void 0:h.rawName)==="CardSet4"?null==e?void 0:null===(e_=e.cards)||void 0===e_?void 0:null===(ea=e_.cardSet)||void 0===ea?void 0:ea.bonus:0,eQ=(0,y.OK)(null==e?void 0:null===(ey=e.cards)||void 0===ey?void 0:ey.equippedCards,"Base_Defence"),eG=(0,y.OK)(null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:eh.equippedCards,"Defence_from_Equipment"),eB=(0,g.om)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.bubbles,"power","FMJ",!1,"strength"===eL),eM=(0,eo.mV)(l,"Base_Defence"),eO=(0,E.zi)(e,"Defence",l,!0),ek=(0,E.zi)(e,"Defence",l),eW=(0,b.gY)(null==e?void 0:e.obols,"Defence"),eH=(0,E.zi)(e,50,l),eK=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ef=k.bonuses.etcBonuses)||void 0===ef?void 0:ef[50]),eY=(0,E.zi)(e,7,l),eZ=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ev=k.bonuses.etcBonuses)||void 0===ev?void 0:ev[7]),eV=null!==(eA=null===(eg=(0,ee.d)(null==l?void 0:null===(eS=l.arcade)||void 0===eS?void 0:eS.shop,"Base_Defence"))||void 0===eg?void 0:eg.bonus)&&void 0!==eA?eA:0,ez=(0,el.U6)(null==l?void 0:l.statues,"StatueG8",null==e?void 0:e.talents),eX=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ej=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,eX),eJ=(0,ep.F4)(l,null,"Def",ej),e$=(0,m._X)(null==e?void 0:e.talents,2,"BRICKY_SKIN",!0),e0=(0,m._X)(null==e?void 0:e.talents,0,"BUCKLERED_UP"),e1=(0,ec.wt)(null==l?void 0:l.shrines,1,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(eN=l.sailing)||void 0===eN?void 0:eN.artifacts),e2=(null==l?void 0:null===(eI=l.bribes)||void 0===eI?void 0:null===(eR=eI[22])||void 0===eR?void 0:eR.done)?null==l?void 0:null===(eE=l.bribes)||void 0===eE?void 0:null===(ew=eE[22])||void 0===ew?void 0:ew.value:0,e5=null===(eF=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===eF?void 0:eF.curse,e3=null===(eP=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===eP?void 0:eP.curse,e4=(0,V.tE)("Golden_Meat_Pie",e,l),e6=(0,j.o9)(e,l,"Defence"),e7=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),e9=(0,d.Qo)(null==l?void 0:null===(eD=l.dungeons)||void 0===eD?void 0:eD.upgrades,"Defence"),e8=(0,ed.gw)(e,l,0),te=(0,V.fe)(l,0),ti=te?(0,eC.kI)(e,l,0):(null==e?void 0:e.linkedDeity)===0?null==e?void 0:e.deityMinorBonus:0,tl=Math.floor(ex+eQ+Math.min(null==e?void 0:e.level,eB)+(eM+(eH+eK)+eV+ez)+((ek+eW+eO)*(1+(eB+eG)/100)+(eJ+e$)))*(1+(e1+e2)/100)*Math.max(.05,1-(e5+e3)/100)*(1+(e4+e0+(eY+eZ+(e6+(e7+(eU+(e9+e8))))))/100)*(1+ti/100);return{value:tl,breakdown:[{name:"Post Office",value:ex},{name:"Card Bonus",value:eQ+eG},{name:"Cardset Bonus",value:eU},{name:"Flurbo Bonus",value:e9},{name:"Minor Divinity Bonus",value:ti},{name:"Chip Bonus",value:e8},{name:"Bubble Bonus",value:eB},{name:"Stamp Bonus",value:eM},{name:"Equip Base Defence ",value:eH+eK},{name:"Equip Defence",value:ek+eW+eO},{name:"Equip % Defence",value:eY+eZ},{name:"Arcade Bonus",value:eV},{name:"Statue Bonus",value:ez},{name:"Meal Bonus",value:eJ},{name:"Shrine Bonus",value:e1},{name:"Bribe Bonus",value:e2},{name:"Prayers",value:e5+e3},{name:"Golden Food",value:e4},{name:"Talents Bonus",value:e$+e0},{name:"Active Talents Bonus",value:e7}]}},getKillPerKill=(e,t,l,u)=>{var d,y,h,b,L,j,ee,ea,el;let eo=(0,E.zi)(e,68,l),e_=(0,E.zi)(e,69,l),ec=(0,E.zi)(e,70,l),ep=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ey=getMonsterHpTotal(null==ep?void 0:ep.MonsterHPTotal,e,l),eh=(null==u?void 0:u.maxDamage)>=2*ey&&.5<(null==l?void 0:null===(d=l.towers)||void 0===d?void 0:d.towersTwo)?(null==u?void 0:u.accuracy)>1.5*(null==ep?void 0:ep.Defence):0,eT=(0,ed.c9)(null==l?void 0:null===(y=l.lab)||void 0===y?void 0:y.labBonuses,4),ef=0;100<=(null==e?void 0:e.mapIndex)&&150>(null==e?void 0:e.mapIndex)?ef=eo:150<=(null==e?void 0:e.mapIndex)&&200>(null==e?void 0:e.mapIndex)?ef=e_:50<=(null==e?void 0:e.mapIndex)&&100>(null==e?void 0:e.mapIndex)&&(ef=ec);let ev=(0,V.fe)(l,0)||(null==e?void 0:e.linkedDeity)===2||(null==e?void 0:e.secondLinkedDeityIndex)===2?1:0,eg=(0,m._X)(null==e?void 0:e.talents,3,"CHARRED_SKULLS"),eS=(0,m._X)(null==e?void 0:e.talents,3,"STACKED_SKULLS"),eN=(0,m._X)(null==e?void 0:e.talents,3,"MEMORIAL_SKULLS"),eC=(0,m._X)(null==e?void 0:e.talents,2,"MONSTER_DECIMATOR"),eR=getMultiKillTotal(e,t,l,u),eI=(0,g.y7)(null==e?void 0:e.equippedBubbles,"quicc","KILL_PER_KILL",l),ew=null===(h=(0,em.Y0)(null==e?void 0:e.activePrayers,"Fibers_of_Absence",l))||void 0===h?void 0:h.bonus;return eh?Math.max(1,eT)*(1+ef/100)*Math.max(1,1+ev)*(1+(eg*((null==e?void 0:null===(b=e.stats)||void 0===b?void 0:b.strength)/1e3)+(eS*((null==e?void 0:null===(L=e.stats)||void 0===L?void 0:L.agility)/1e3)+(eN*((null==e?void 0:null===(j=e.stats)||void 0===j?void 0:j.wisdom)/1e3)+eC))+(eR+(eI+ew)))/100):Math.max(1,eT)*(1+ef/100)*Math.max(1,1+ev)*(1+(eg*((null==e?void 0:null===(ee=e.stats)||void 0===ee?void 0:ee.strength)/1e3)+(eS*((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.agility)/1e3)+(eN*((null==e?void 0:null===(el=e.stats)||void 0===el?void 0:el.wisdom)/1e3)+eC))+(eI+ew))/100)},getMultiKillTotal=(e,t,l,d)=>{var h,L,V,ea,el,e_,ec,ep,ey,eT,ev,eg,eC,eR,eI,ew;let eE=(0,j.o9)(e,l,"Total_Multikill"),eF=(0,eS.W)(null==l?void 0:l.saltLick,8),eP=(0,eo.mV)(l,"Base_Overkill"),eD=(0,E.zi)(e,29,l),eA=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(h=k.bonuses.etcBonuses)||void 0===h?void 0:h[29]),eL=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ex=getMonsterHpTotal(null==eL?void 0:eL.MonsterHPTotal,e,l),eU=1;for(let e=0;e<50;e++)(null==d?void 0:d.maxDamage)>=2*ex*Math.pow(2,e+1)&&(eU=e+2);let eQ=(null==l?void 0:null===(V=l.deathNote)||void 0===V?void 0:null===(L=V[Math.floor((null==e?void 0:e.mapIndex)/50)])||void 0===L?void 0:L.rank)||0,eG=(0,g.iu)(null==l?void 0:null===(ea=l.alchemy)||void 0===ea?void 0:ea.vials,"Overkill"),eB=(0,m.eZ)(null==e?void 0:e.activeBuffs,"VOID_RADIUS"),eM=(0,m.A5)(t,3,"Voidwalker","MASTER_OF_THE_SYSTEM"),eO=null!==(eI=null===(el=(0,ee.d)(null==l?void 0:null===(e_=l.arcade)||void 0===e_?void 0:e_.shop,"Multikill_per_Tier"))||void 0===el?void 0:el.bonus)&&void 0!==eI?eI:0,ek=null!==(ew=null===(ec=(0,eh.YS)(null==l?void 0:null===(ep=l.sailing)||void 0===ep?void 0:ep.artifacts,"Trilobite_Rock"))||void 0===ec?void 0:ec.bonus)&&void 0!==ew?ew:0,eW=(0,m.eZ)(null==e?void 0:e.activeBuffs,"MANA_IS_LIFE","y"),eH=(0,ed.gw)(e,l,14),eK=(0,E.zi)(e,71,l),eY=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ey=k.bonuses.etcBonuses)||void 0===ey?void 0:ey[71]),eZ=(0,y.OK)(null==e?void 0:null===(eT=e.cards)||void 0===eT?void 0:eT.equippedCards,"Multikill_per_tier"),eV=null===(ev=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===ev?void 0:ev.bonus,ez=(0,ef.du)(null==l?void 0:null===(eg=l.breeding)||void 0===eg?void 0:eg.pets,"Multikill_Per_Tier"),eX=(0,u.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",1),ej=(0,g.y7)(null==e?void 0:e.equippedBubbles,"kazam","MR_MASSACRE",l),eJ=(0,eN.k6)(null==l?void 0:l.achievements,148),e$=(0,eN.k6)(null==l?void 0:l.achievements,122),e0=(0,eN.k6)(null==l?void 0:l.achievements,123);return Math.floor(eE+eF+(eP+2*(null==l?void 0:null===(eC=l.towers)||void 0===eC?void 0:eC.towersTwo))+(eD+eA+(Math.min(5,eJ)+(6*e$+2*e0)))+eU*(eQ+(eG+(eB+eM*Math.floor((null==l?void 0:null===(eR=l.accountOptions)||void 0===eR?void 0:eR[158])/5))+(eO+(ek+eW)+(eH+(eK+eY+eZ+(eV+ez)))+(eX+ej)))))}},74629:function(e,t,l){"use strict";l.d(t,{MH:function(){return getEclipseSkullsBonus},WA:function(){return getDeathNote},jS:function(){return getDeathNoteRank},sr:function(){return calcTotalKillsDigits}});var m=l(70473),u=l(67896),d=l(30925);let getDeathNote=(e,t,l)=>{var u;let y=(0,d.tryToParse)(null==e?void 0:e.Ninja),h=null===m.ninjaExtraInfo||void 0===m.ninjaExtraInfo?void 0:null===(u=m.ninjaExtraInfo[30])||void 0===u?void 0:u.split(" "),g=null==y?void 0:y[105],E=null==t?void 0:t.reduce((e,t)=>{let{kills:l}=t;return l&&l.length&&l.forEach((t,l)=>{e[l]=(e[l]||0)+t}),e},[]),b=h.map((e,t)=>({rawName:e,kills:null==g?void 0:g[t]})).reduce((e,t)=>{var u;let{rawName:d,kills:y}=t,h=getDeathNoteRank(l,y,!0);return{rank:((null==e?void 0:e.rank)||0)+h,mobs:[...(null==e?void 0:e.mobs)||[],{rawName:d,displayName:null===m.monsters||void 0===m.monsters?void 0:null===(u=m.monsters[d])||void 0===u?void 0:u.Name,kills:y}]}},{});return m.deathNote.reduce((e,t)=>{var u,d,y;let{rawName:h,world:g}=t,b=null===m.mapEnemies||void 0===m.mapEnemies?void 0:m.mapEnemies[h],L=null==E?void 0:E[b],k=getDeathNoteRank(l,L);return{...e,[g]:{...(null==e?void 0:e[g])||{},rank:((null==e?void 0:null===(u=e[g])||void 0===u?void 0:u.rank)||0)+k,mobs:[...(null==e?void 0:null===(d=e[g])||void 0===d?void 0:d.mobs)||[],{rawName:h,displayName:null===m.monsters||void 0===m.monsters?void 0:null===(y=m.monsters[h])||void 0===y?void 0:y.Name,kills:L}]}}},{miniBosses:b})},getDeathNoteRank=(e,t,l)=>l?100>t?0:250>t?1:1e3>t?2:5e3>t?3:25e3>t?4:1e5>t?5:1e6>t?7:10:25e3>t?0:1e5>t?1:25e4>t?2:5e5>t?3:1e6>t?4:5e6>t?5:1e8>t?7:1e9{var t;let l=(0,u.RB)(null==e?void 0:e.rift,"Eclipse_Skulls");return l?null===(t=Object.entries((null==e?void 0:e.deathNote)||{}))||void 0===t?void 0:t.reduce((e,t)=>{let[l,{mobs:m}]=t,u=null==m?void 0:m.reduce((e,t)=>{let{kills:l}=t;return e+(l>=1e9?1:0)},0);return e+u},0):0},calcTotalKillsDigits=e=>{let t=JSON.parse(JSON.stringify(e));return Object.values(t).reduce((e,t)=>{let{mobs:l}=t,m=l.reduce((e,t)=>{let{kills:l}=t;return e+Math.ceil((0,d.lavaLog)(l))},0);return e+m},0)}},19834:function(e,t,l){"use strict";l.d(t,{HQ:function(){return getGodBlessingBonus},kI:function(){return getMinorDivinityBonus},s8:function(){return getDeityLinkedIndex},wl:function(){return applyGodCost},y0:function(){return getDivinity},zJ:function(){return getGodByIndex}});var m=l(15893),u=l(10924),d=l(88054),y=l(8616);let{tryToParse:h}=l(30925),{gods:g}=l(70473),getDivinity=(e,t,l)=>{let m=h(null==e?void 0:e.Divinity)||(null==e?void 0:e.Divinity);return m?parseDivinity(m,t,l):null},parseDivinity=(e,t,l)=>{let m=null==t?void 0:t.length,u=null==e?void 0:e.slice(12,12+m),d=null==e?void 0:e.slice(28,28+(null==g?void 0:g.length)+1),h=null==e?void 0:e.slice(0,(null==t?void 0:t.length)+1),E=null==e?void 0:e[25],b=E-10,L=null==g?void 0:g.map((e,t)=>{let m=null==d?void 0:d[t],u=1;(0,y.x5)(l,"True_Godly_Blessings")&&(u=1+.05*Math.max(0,b));let h=m*(null==e?void 0:e.blessingMultiplier)*u;return 2===t&&(h=Math.min(h,500)),{...e,rawName:"DivGod".concat(t),level:m,blessingBonus:h}});return{linkedDeities:u,linkedStyles:h,deities:L,blessingLevels:d,unlockedDeities:E,godRank:b<0?0:b}},applyGodCost=e=>{var t,l;return null==e?void 0:null===(l=e.divinity)||void 0===l?void 0:null===(t=l.deities)||void 0===t?void 0:t.map((t,l)=>({...t,cost:getGodCost(t,l,e)}))},getCostToMax=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,u=0;for(let d=e;d0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,d=arguments.length>2?arguments[2]:void 0;if(t<100){var y,h,g,E,b;let e=l*Math.pow(m,t),L=l*Math.pow(m,t+1),k=getCostToMax(t,l,m);if(0===u||8===u||4===u||2===u){let t=null==d?void 0:null===(y=d.gaming)||void 0===y?void 0:y.bits;return{type:"bits",cost:e,nextLevelCost:L,costToMax:k,currency:t}}if(1===u){let t=null==d?void 0:null===(g=d.sailing)||void 0===g?void 0:null===(h=g.lootPile)||void 0===h?void 0:h[0];return{type:"sailingGold",cost:e,nextLevelCost:L,costToMax:k,currency:t}}if(3===u||6===u){let t=null==d?void 0:null===(E=d.currencies)||void 0===E?void 0:E.rawMoney;return{type:"coins",cost:e,nextLevelCost:L,costToMax:k,currency:t}}{let t=null==d?void 0:null===(b=d.atomCollider)||void 0===b?void 0:b.particles;return{type:"particles",cost:e,nextLevelCost:L,costToMax:k,currency:t}}}return{cost:"MAX"}},getGodBlessingBonus=(e,t)=>{var l,m;return null!==(m=null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.blessingBonus)&&void 0!==m?m:0},getGodByIndex=(e,t,l)=>{let m=null==t?void 0:t.find((t,m)=>(null==e?void 0:e[m])===l);return null==m?void 0:m.deityMinorBonus},getDeityLinkedIndex=(e,t,l)=>{var d,y;let h=null==e?void 0:null===(y=e.divinity)||void 0===y?void 0:null===(d=y.linkedDeities)||void 0===d?void 0:d.map((t,m)=>{var d;return l===t||(0,u.fe)(e,0)&&(null==e?void 0:null===(d=e.finishedWorlds)||void 0===d?void 0:d.World4)?m:-1}),g=t.map((t,d)=>{var y;return(0,m.Rp)(t,l)||(0,u.fe)(e,0)&&(null==e?void 0:null===(y=e.finishedWorlds)||void 0===y?void 0:y.World4)?d:-1});return(null==h?void 0:h.map((e,t)=>-1===e&&(null==g?void 0:g[t])!==-1?null==g?void 0:g[t]:e))||[]},getMinorDivinityBonus=(e,t,l,m)=>{var u,y,h,E,b,L,k,V;let j=null==m?void 0:m.find(e=>{var t;return null===(t=e.equippedBubbles)||void 0===t?void 0:t.find(e=>{let{bubbleName:t}=e;return"BIG_P"===t})}),ee=(0,d.y7)(null===(u=j||e||(null==m?void 0:m[0]))||void 0===u?void 0:u.equippedBubbles,"kazam","BIG_P",t),ea=null===(E=e||j||(null==m?void 0:m[0]))||void 0===E?void 0:null===(h=E.skillsInfo)||void 0===h?void 0:null===(y=h.divinity)||void 0===y?void 0:y.level,el=null!=l?l:null==t?void 0:null===(L=t.divinity)||void 0===L?void 0:null===(b=L.linkedDeities)||void 0===b?void 0:b[e.playerId],eo=null==g?void 0:null===(k=g[el])||void 0===k?void 0:k.godIndex,e_=null==g?void 0:null===(V=g[eo])||void 0===V?void 0:V.minorBonusMultiplier;return Math.max(1,ee)*(ea/(60+ea))*e_}},11028:function(e,t,l){"use strict";l.d(t,{IS:function(){return calcHappyHours},Qo:function(){return getDungeonFlurboStatBonus},U4:function(){return getDungeonStatBonus},MR:function(){return getDungeons},he:function(){return getMaxClaimTime},gq:function(){return getSecPerBall}});var m=l(30925),u=l(70473),d=l(1972),y=l(29129),h=l(88054),g=l(9339),E=l(33913),b=l(19013),L=l(13882);function isThursday(e){return(0,L.Z)(1,arguments),4===(0,b.Z)(e).getDay()}var k=l(77349);function getDay(e){return(0,L.Z)(1,arguments),(0,b.Z)(e).getDay()}function nextDay(e,t){(0,L.Z)(2,arguments);var l=t-getDay(e);return l<=0&&(l+=7),(0,k.Z)(e,l)}function nextThursday(e){return(0,L.Z)(1,arguments),nextDay(e,4)}var V=l(7069);function previousDay(e,t){(0,L.Z)(2,arguments);var l=getDay(e)-t;return l<=0&&(l+=7),(0,V.Z)(e,l)}function previousThursday(e){return(0,L.Z)(1,arguments),previousDay(e,4)}var j=l(69119);function startOfToday(){return(0,j.Z)(Date.now())}let getDungeons=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.DungUpg)||(null==e?void 0:e.DungUpg);return parseDungeons(l,t)},parseDungeons=(e,t)=>{let l=null===u.dungeonCreditShop||void 0===u.dungeonCreditShop?void 0:u.dungeonCreditShop.map((t,l)=>{var m;return{...t,level:null==e?void 0:null===(m=e[0])||void 0===m?void 0:m[l]}}),m=null==e?void 0:e[1],d=null==e?void 0:e[2],y=0,h=null===u.dungeonTraits||void 0===u.dungeonTraits?void 0:u.dungeonTraits.map(e=>{var t;return{...e,bonuses:null==e?void 0:null===(t=e.bonuses)||void 0===t?void 0:t.map(e=>{let t=null==d?void 0:d.includes(y),l=y;return y++,{bonus:e,isActive:t,bonusIndex:l}})}}),g=null==e?void 0:e[5],E=null==m?void 0:m.map((e,t)=>({...u.dungeonStats[t],level:e})),b=null==g?void 0:g.map((e,t)=>({...u.dungeonFlurboStats[t],level:e})),L=(null==t?void 0:t[72])||0,k=(null==t?void 0:t[73])||0,V=(null==t?void 0:t[76])||0,j=null===u.randomList||void 0===u.randomList?void 0:u.randomList[29].split(" "),ee=t[71],ea=Number(j.reduce((e,l,m,u)=>(t[71]>Number(l)&&(e=m.toString()),e),"0"))+1,el=null==j?void 0:j[ea];return{upgrades:b,insideUpgrades:E,credits:L,flurbos:k,boostedRuns:V,progress:ee,rankReq:el,rank:ea,rngItems:l,statBoosts:h}},getDungeonStatBonus=(e,t)=>{var l;let u=null==e?void 0:e.find(e=>{let{effect:l}=e;return l===t});return u&&null!==(l=(0,m.growth)(null==u?void 0:u.func,null==u?void 0:u.level,null==u?void 0:u.x1,null==u?void 0:u.x2,!1))&&void 0!==l?l:0},getDungeonFlurboStatBonus=(e,t)=>{var l;let u=null==e?void 0:e.find(e=>{let{effect:l}=e;return l===t});return u&&null!==(l=(0,m.growth)(null==u?void 0:u.func,null==u?void 0:u.level,null==u?void 0:u.x1,null==u?void 0:u.x2,!1))&&void 0!==l?l:0},getMaxClaimTime=e=>Math.ceil(3600*(48+Math.min(10,(0,d.mV)(e,"hr_Arcade_Ball_claim_max_time")))),getSecPerBall=e=>4e3/(1+(getBallBonus(e)+(0,y.k)(null==e?void 0:e.bribes,"Weighted_Marbles"))/100),getBallBonus=e=>{var t,l,m,y;let E=0;for(let t=0;tnull==e?void 0:e.map(e=>e+Math.round(t/1e3)-3600),calcHappyHours=e=>{let t;t=isThursday(startOfToday())?startOfToday():(t=previousThursday(startOfToday())).getTime()-6e4*t.getTimezoneOffset();let l=getHappyHourDates(e,t),m=null==l?void 0:l.filter(e=>!(0,E.Z)(1e3*e)).map(e=>1e3*e);if((null==m?void 0:m.length)!==0)return m;{let t=nextThursday(startOfToday());return getHappyHourDates(e,t=t.getTime()-6e4*t.getTimezoneOffset())}}},99958:function(e,t,l){"use strict";l.d(t,{x4:function(){return getMiningEff}});var m=l(88054),u=l(96707),d=l(89260),y=l(4056),h=l(30796),g=l(10924),E=l(79603),b=l(70473),L=l(88344),k=l(15893),V=l(54685),j=l(15815),ee=l(64605),ea=l(32805),el=l(74861),eo=l(1972),e_=l(5432),ec=l(74805),em=l(16727),ed=l(95331),ep=l(30925);let getNobisectBonus=(e,t,l,u)=>{var d,y,g,E,b,L;let k=null===h.nl||void 0===h.nl?void 0:h.nl[null==e?void 0:e.class],{strength:V,wisdom:j,agility:ee}=(null==e?void 0:e.stats)||{},ea=(0,m.om)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.bubbles,"power","HEARTY_DIGGY",!1,k),el=(0,m.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"high-iq","HOCUS_CHOPPUS",!1,k),eo=Math.max(1,getAllEff(e,l,t)+Math.pow((ea*(0,ep.lavaLog)(null==u?void 0:u.maxHp)+el*(0,ep.lavaLog)(null==u?void 0:u.maxMp))/100,2)+Math.pow((V+(j+ee))/3,.5)/7),e_=null==t?void 0:null===(E=t.divinity)||void 0===E?void 0:null===(g=E.deities)||void 0===g?void 0:g[2];return(null!==(b=null==e_?void 0:e_.level)&&void 0!==b?b:0)*(null!==(L=null==e_?void 0:e_.blessingMultiplier)&&void 0!==L?L:0)*Math.min(1.8,Math.max(.1,4*Math.pow((eo+1e4)/Math.max(10*eo+10,1)*.01,2)))},getAllBaseSkillEff=(e,t,l,m)=>{var u,d,g,E,b,L,V,j;let ee=(0,e_.du)(null==t?void 0:null===(u=t.breeding)||void 0===u?void 0:u.pets,"Base_Efficiency_for_All_Skills"),ea=(0,eo.mV)(t,"All_Skill_Efficiency",e),el=getNobisectBonus(e,t,l,m),ec=(0,y.xV)(null==e?void 0:e.postOffice,"Myriad_Crate",1),em=null!==(j=null==t?void 0:null===(E=t.lab)||void 0===E?void 0:null===(g=E.playersChips)||void 0===g?void 0:null===(d=g[null==e?void 0:e.playerId].find(e=>11===e.index))||void 0===d?void 0:d.baseVal)&&void 0!==j?j:0,ed=(0,h._X)(null==e?void 0:e.starTalents,null,"SUPERSOURCE"),ep=(0,k.c9)(null==t?void 0:null===(b=t.lab)||void 0===b?void 0:b.labBonuses,8),ey=(0,k.pc)(null==t?void 0:t.lab.jewels,12,ep),eh=(null===(V=t.lab.jewels)||void 0===V?void 0:null===(L=V.slice(11,16))||void 0===L?void 0:L.every(e=>{let{active:t}=e;return t}))?2:1;return ee+ea+el+ec+em+(ed+ey*eh)},getAllEff=(e,t,l)=>{var m,u,y,ea,el,eo,e_,ed,ep,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD;let eA=(0,g.Hx)(null==l?void 0:l.charactersLevels,"Hunter"),eL=(0,E.D)(b.classFamilyBonuses,"EFFICIENCY_FOR_ALL_SKILLS",eA),ex=(0,L.zi)(e,48,l),eU=(0,ec.gY)(null==e?void 0:e.obols,null===b.bonuses||void 0===b.bonuses?void 0:null===(m=b.bonuses.etcBonuses)||void 0===m?void 0:m[48]),eQ=null!==(eE=null===(u=(0,em.YS)(null==l?void 0:null===(y=l.sailing)||void 0===y?void 0:y.artifacts,"Frost_Relic"))||void 0===u?void 0:u.bonus)&&void 0!==eE?eE:0,eG=(0,h._X)(null==e?void 0:e.starTalents,null,"STUDIOUS_QUESTER"),eB=(0,k.c9)(null==l?void 0:null===(ea=l.lab)||void 0===ea?void 0:ea.labBonuses,8),eM=(0,k.pc)(null==l?void 0:l.lab.jewels,16,eB),eO=(0,d.F4)(l,null,"Seff",eM),ek=null!==(eF=null==l?void 0:null===(ed=l.lab)||void 0===ed?void 0:null===(e_=ed.playersChips)||void 0===e_?void 0:null===(eo=e_[null==e?void 0:e.playerId])||void 0===eo?void 0:null===(el=eo.find(e=>11===e.index))||void 0===el?void 0:el.baseVal)&&void 0!==eF?eF:0,eW=(null==l?void 0:null===(ey=l.cards)||void 0===ey?void 0:null===(ep=ey.Crystal_Capybara)||void 0===ep?void 0:ep.stars)?(null==l?void 0:null===(eT=l.cards)||void 0===eT?void 0:null===(eh=eT.Crystal_Capybara)||void 0===eh?void 0:eh.stars)+1:0,eH=(0,g.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,2),eK=(0,V.Xt)(null==e?void 0:e.cards,"Boss4B"),eY=(0,g.fe)(l,5)?5:0,eZ=(null==e?void 0:null===(ev=e.cards)||void 0===ev?void 0:null===(ef=ev.cardSet)||void 0===ef?void 0:ef.rawName)==="CardSet2"?null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:null===(eg=eS.cardSet)||void 0===eg?void 0:eg.bonus:0,eV=null===(eN=(0,j.Y0)(null==e?void 0:e.activePrayers,"Skilled_Dimwit",l))||void 0===eN?void 0:eN.bonus,ez=null===(eC=(0,j.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Proficiency",l))||void 0===eC?void 0:eC.curse,eX=(0,h.eZ)(null==e?void 0:e.activeBuffs,"MAESTRO_TRANSFUSION"),ej=0;return(null==l?void 0:null===(eI=l.guild)||void 0===eI?void 0:null===(eR=eI.guildBonuses)||void 0===eR?void 0:eR.length)>0&&(ej=(0,ee._r)(null==l?void 0:null===(eP=l.guild)||void 0===eP?void 0:eP.guildBonuses,6)),(1+(eL+(ex+eU+(eQ+Math.min(.1*(null==e?void 0:e.questCompleted),eG))))/100)*(1+(eO+(ek+3*eW)+(eH+(null!==(eD=null==l?void 0:null===(ew=l.accountOptions)||void 0===ew?void 0:ew[180])&&void 0!==eD?eD:0)))/100)*(1+(eK+eY)/100)*(1+(ej+(eZ+eV))/100)*Math.max(1-(eX+ez)/100,.01)},getMiningEff=(e,t,l,d)=>{var E,k,j,ee,e_,em,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI;let ew=null===h.nl||void 0===h.nl?void 0:h.nl[null==e?void 0:e.class],eE=(null==e?void 0:null===(k=e.tools)||void 0===k?void 0:null===(E=k[ea.T.PICKAXE])||void 0===E?void 0:E.Weapon_Power)||0,eF=eE,eP=(0,h._X)(null==e?void 0:e.talents,1,"TOOL_PROFICIENCY"),eD=(0,m.om)(null==l?void 0:null===(j=l.alchemy)||void 0===j?void 0:j.bubbles,"power","STRONK_TOOLS",!1,ew),eA=null==e?void 0:null===(e_=e.skillsInfo)||void 0===e_?void 0:null===(ee=e_.mining)||void 0===ee?void 0:ee.level;eF=eF*(1+eP*((null==e?void 0:null===(ey=e.skillsInfo)||void 0===ey?void 0:null===(em=ey.mining)||void 0===em?void 0:em.level)/10)/100)*(1+eD/100)+4;let eL=(0,el.U6)(null==l?void 0:l.statues,"StatueG3",null==e?void 0:e.talents),ex=(0,m.om)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:eh.bubbles,"power","SLABI_OREFISH",!1,ew),eU=null==l?void 0:null===(eT=l.looty)||void 0===eT?void 0:eT.rawLootedItems;eF+=eE+eL+ex*Math.floor(eU/100);let eQ=(0,h._X)(null==e?void 0:e.talents,3,"SKILL_STRENGTHEN"),eG=(0,eo.mV)(l,"Base_Mining",e),eB=getAllBaseSkillEff(e,l,t,d),eM=(0,y.xV)(null==e?void 0:e.postOffice,"Dwarven_Supplies",0),eO=getMaestroRightHandBonus(e,"mining",t),ek=(0,g.tE)("Golden_Peanut",e,l)||1,eW=(0,h._X)(null==e?void 0:e.talents,0,"BRUTE_EFFICIENCY"),eH=(0,L.zi)(e,10,l,!0),eK=(0,ec.gY)(null==e?void 0:e.obols,null===b.bonuses||void 0===b.bonuses?void 0:null===(ef=b.bonuses.etcBonuses)||void 0===ef?void 0:ef[10]),eY=(0,g.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eg=l.totalSkillsLevels)||void 0===eg?void 0:null===(ev=eg.mining)||void 0===ev?void 0:ev.rank,1),eZ=(0,V.OK)(null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:eS.equippedCards,"Total_Mining_Efficiency"),eV=(0,u.o9)(e,l,"Mining_Efficency"),ez=(0,m.iu)(null==l?void 0:null===(eN=l.alchemy)||void 0===eN?void 0:eN.vials,"MinEff"),eX=(0,m.om)(null==l?void 0:null===(eC=l.alchemy)||void 0===eC?void 0:eC.bubbles,"power","HEARTY_DIGGY",!1,ew),ej=(0,h._X)(null==e?void 0:e.talents,1,"COPPER_COLLECTOR"),eJ=(0,ed._m)(l,"Helium_-_Talent_Power_Stacker"),e$=(0,L.ju)(null==l?void 0:l.storage,"Copper_Ore",!0),e0=getAllEff(e,t,l);return 12+(Math.pow(eF,1.3)+(Math.pow((null==e?void 0:null===(eR=e.stats)||void 0===eR?void 0:eR.strength)+1,.6)*(1+eQ/100)+(eG+eB)))*(1+eA/200)*(1+(eM+eO)/100)*(1+Math.pow((null==e?void 0:null===(eI=e.stats)||void 0===eI?void 0:eI.strength)/100,.35)*(1+eQ/100))*ek*(1+(eW+(eH+eK+10*eY))/100)*(1+(eZ+(eV+ez))/100)*(1+eF/100)*1*(1+eX*(0,ep.lavaLog)(null==d?void 0:d.maxHp)/100)*(1+ej*(eJ+(0,ep.lavaLog)(e$))/100)*e0},getMaestroRightHandBonus=(e,t,l)=>{var m,u,d,y;let g=(0,h.A5)(l,2,"Maestro","RIGHT_HAND_OF_ACTION",null,!0),E=(0,h.L1)(l,2,"Maestro","RIGHT_HAND_OF_ACTION",null,!0);return(null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(m=u[t])||void 0===m?void 0:m.level)<(null==E?void 0:null===(y=E.skillsInfo)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d.level)?g:0}},72973:function(e,t,l){"use strict";l.d(t,{B:function(){return getEquinox},z:function(){return getEquinoxBonus}});var m=l(70473),u=l(30925),d=l(88054),y=l(10924),h=l(48832);let getEquinox=(e,t)=>{let l=(0,u.tryToParse)(null==e?void 0:e.WeeklyBoss)||(null==e?void 0:e.WeeklyBoss),m=(0,u.tryToParse)(null==e?void 0:e.Dream)||(null==e?void 0:e.Dream);return l&&m?parseEquinox(l,m,t):null},parseEquinox=(e,t,l)=>{var u;let g=t.slice(2,16).reduce((e,t)=>e+t,0),E=Object.keys(e).filter(e=>e.startsWith("d_")).reduce((t,l)=>(t[l.substring(2)]=e[l],t),{}),b=Object.values(E).reduce((e,t)=>e+(-1===t?1:0),0),L=t[2],k=m.equinoxChallenges.map((e,t)=>{let{label:l,goal:m,reward:u}=e;return{label:l,goal:m,reward:u,current:E[t]||0,active:-1!==E[t]&&0{let u=e.filter(e=>-1===e.current&&e.reward.includes("Max_LV")).map(e=>e.reward),d=e.filter(e=>-1===e.current&&"Unlock_next_Equinox_upgrade"===e.reward).length;return m.equinoxUpgrades.map((e,m)=>{let{name:y,description:h,maxLevel:g,bonus:E}=e,b="Hmm..."===y?0:"Food_Lust"===y?Math.min(parseInt(t[m]),null==l?void 0:l[193]):E*t[m]||0;return{name:y,bonus:b,desc:null==h?void 0:h.replace("{}",E*t[m]||0).replace("{","").replace("}",t[m]||0).split("_@_"),lvl:t[m]||0,maxLvl:g+u.filter(e=>e.includes(y)).reduce((e,t)=>e+parseInt(t.match(/\d+/)[0],10),0),unlocked:m<=d}})},getEquinoxBonus=(e,t)=>{var l,m;return(null==e?void 0:null===(m=e.filter(e=>e.name===t))||void 0===m?void 0:null===(l=m[0])||void 0===l?void 0:l.bonus)||0}},79603:function(e,t,l){"use strict";l.d(t,{D:function(){return getFamilyBonusBonus},q:function(){return getFamilyBonus}});var m=l(30925);let getFamilyBonusBonus=(e,t,l)=>{let u=null==e?void 0:e.find(e=>{let{name:l}=e;return null==l?void 0:l.includes(t)});return u?(0,m.growth)(null==u?void 0:u.func,Math.max(0,Math.round(l-(null==u?void 0:u.x3))),null==u?void 0:u.x1,null==u?void 0:u.x2,!1):0},getFamilyBonus=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return null==l?void 0:l.includes(t)})},20385:function(e,t,l){"use strict";l.d(t,{Ob:function(){return isSuperbitUnlocked},gm:function(){return getGaming},h$:function(){return calculateSnailEncouragementForSuccessChance}});var m=l(70473),u=l(30925),d=l(19834),y=l(10924),h=l(72973),g=l(48832);let{tryToParse:E}=l(30925),getGaming=(e,t,l,m)=>{let u=E(null==e?void 0:e.Gaming)||(null==e?void 0:e.Gaming),d=E(null==e?void 0:e.GamingSprout)||(null==e?void 0:e.GamingSprout);return u&&d?parseGaming(u,d,t,l,m):null},parseGaming=(e,t,l,d,y)=>{var E,b,L,k,V,j,ee,ea,el,eo,e_,ec;let em=[];for(let t=0;t<9;t++){let l=0;for(let m=u.number2letter.indexOf("hhhhhhhhh".charAt(t));l(null==t?void 0:t[1])>0?e+1:e,0),eT=null==e?void 0:e[0],ef=null==e?void 0:e[10],ev=null==e?void 0:e[8],eg=null==t?void 0:null===(E=t[28])||void 0===E?void 0:E[1],eS=null==t?void 0:null===(b=t[26])||void 0===b?void 0:b[1],eN=calcGoldNuggets(eS),eC=null==t?void 0:null===(L=t[27])||void 0===L?void 0:L[1],eR=null==t?void 0:null===(k=t[27])||void 0===k?void 0:k[0],eI=calcAcorns(eC,eR),ew=calcResourcePerTime("nugget"),eE=calcResourcePerTime("acorn",eR),eF=calcAcornShop(t),eP=null==t?void 0:t.slice(25,25+(null===m.gamingImports||void 0===m.gamingImports?void 0:m.gamingImports.length)+1),eD=null!==(e_=null==d?void 0:null===(V=d.gemShopPurchases)||void 0===V?void 0:V.find((e,t)=>131===t))&&void 0!==e_?e_:0,eA=calcSprinklerSave(null!==(ec=null==d?void 0:null===(j=d.gemShopPurchases)||void 0===j?void 0:j.find((e,t)=>131===t))&&void 0!==ec?ec:0),eL=null===m.gamingImports||void 0===m.gamingImports?void 0:m.gamingImports.map((e,t)=>{var l,m,u,y;let g=calcImportBonus(t,null==e?void 0:e.minorBonus,eP);return{...e,level:null==eP?void 0:null===(l=eP[t])||void 0===l?void 0:l[0],rawName:3===t?"GamingItem".concat(t,"_0"):0===t&&eD>0?"GamingItem".concat(t,"b"):"GamingItem".concat(t),minorBonus:null==g?void 0:g.description,cost:calcImportCost(t,eP),acquired:(null==eP?void 0:null===(m=eP[t])||void 0===m?void 0:m[0])>0,...0===t?{saveSprinklerChance:100*eA}:{},...1===t?{maxNuggetValue:maxNuggetValue(null==g?void 0:g.result,(0,h.z)(null==d?void 0:null===(u=d.equinox)||void 0===u?void 0:u.upgrades,"Metal_Detector"),null==d?void 0:null===(y=d.accountOptions)||void 0===y?void 0:y[192])}:{},...2===t?{acornShop:eF}:{}}}).filter((e,t)=>t<8),ex=null==e?void 0:null===(ee=e.slice(1,(null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:m.gamingUpgrades.length)+1))||void 0===ee?void 0:ee.map((u,h)=>{var g;let E=calcFertilizerBonus(h,e,t,l,d,eF,eL);return{...null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:m.gamingUpgrades[h],level:u,bonus:E,description:null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:null===(g=m.gamingUpgrades[h])||void 0===g?void 0:g.description.replace(/{/,E),cost:calcFertilizerCost(h,e,y)}}),eU=getDropsAmount(null==t?void 0:null===(ea=t[25])||void 0===ea?void 0:ea[1],eL),eQ=(null==e?void 0:e[12])||[],eG=null===m.superbitsUpgrades||void 0===m.superbitsUpgrades?void 0:m.superbitsUpgrades.map((e,t)=>({...e,unlocked:(null==eQ?void 0:eQ.indexOf(null===u.number2letter||void 0===u.number2letter?void 0:u.number2letter[t]))!==-1,cost:(null==e?void 0:e.x1)*Math.pow(10,null==e?void 0:e.x2),...calcSuperbitBonus(l,d,t)})),eB=null==e?void 0:e[5],eM=null==e?void 0:e[4],eO=null==e?void 0:e[7],ek=getMutations(),eW=1+(0,g.F)(d,21)/100,eH=getNewMutationChance(eM,eB,eW),eK=[100,200,300,400,500].map(e=>({value:e,chance:getNewMutationChance(eM,e)}));return{bestNugget:ev,bits:eT,envelopes:ey,snailLevel:ed,snailEncouragement:ep,fertilizerUpgrades:ex,availableSprouts:eh,availableDrops:eU,sproutsCapacity:null==ex?void 0:null===(el=ex[2])||void 0===el?void 0:el.bonus,imports:eL,lastShovelClicked:eS,goldNuggets:eN,lastAcornClicked:eC,acorns:eI,nuggetsBreakpoints:ew,acornsBreakpoints:eE,superbitsUpgrades:eG,mutations:ek,unlockedMutations:eM,mutationCost:(25+(10*(eO+1)+Math.pow(eO+1,2)))*Math.pow(1.3,eO),dna:eB,newMutationChance:eH,mutationChanceBreakpoints:eK,logBook:em,poingHighscore:ef,poingMulti:Math.max(1+Math.pow(ef,.5)/100,1),totalPlantsPicked:eg}},getNewMutationChance=(e,t,l)=>Math.floor(1e3*(0===e?Math.min(.8,7*t/(100+t)*l):Math.min(.99,42*t/(100+t)*Math.pow(.31,e)*l)))/10,getMutations=()=>{var e;let t=null===m.randomList2||void 0===m.randomList2?void 0:null===(e=m.randomList2[0])||void 0===e?void 0:e.split(" ");return["FunGi","Bonsai","Cactus","Blossom","Voraci","Berri Bush","EverGreen","Chemical"].map((e,l)=>{var m;return{name:e,index:l,description:null==t?void 0:null===(m=t[l])||void 0===m?void 0:m.replace(/â‚£/g,"bits")}})},calcSuperbitBonus=(e,t,l)=>{var m,u,d,h,g,E,b,L,k,V,j;let ee,ea,el;if(0===l)ea=Math.pow(1.03,ee=null!==(d=null==t?void 0:null===(u=t.achievements)||void 0===u?void 0:null===(m=u.filter(e=>{let{completed:t}=e;return t}))||void 0===m?void 0:m.length)&&void 0!==d?d:0);else if(3===l||11===l||16===l)ee=Math.floor((null==t?void 0:null===(h=t.towers)||void 0===h?void 0:h.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(g=t.towers)||void 0===g?void 0:g.totalWaves," waves)");else if(13===l)ee=10*Math.floor((null==t?void 0:null===(E=t.towers)||void 0===E?void 0:E.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(b=t.towers)||void 0===b?void 0:b.totalWaves," waves)");else if(7===l)ee=Math.floor((null==t?void 0:null===(L=t.towers)||void 0===L?void 0:L.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(k=t.towers)||void 0===k?void 0:k.totalWaves," waves)");else if(20===l)ee=50*Math.floor((null==t?void 0:null===(V=t.towers)||void 0===V?void 0:V.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(j=t.towers)||void 0===j?void 0:j.totalWaves," waves)");else if(12===l){let t=(0,y.fx)(e,"gaming");ea=Math.floor(t)}return{bonus:ee,totalBonus:ea,additionalInfo:el}},getDropsAmount=(e,t)=>{var l;let m=null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.level;return Math.floor(Math.pow(e*(1+m/100)/3600,.75))},maxNuggetValue=(e,t,l)=>1584.8931924611136*e*(1+t*l/100),calcResourcePerTime=(e,t)=>{let l=[1,2,3,4,5,6].reduce((l,m,u)=>{var d,y;let{breakpoints:h,lastClicked:g}=l,E=3600*Math.floor(g)+g%1*6e3,b="nugget"===e?calcGoldNuggets(E):calcAcorns(E,t);if(0===h.length)return{breakpoints:[...h,{time:E,amount:b}],lastClicked:g+.1};for(;b<=(null==h?void 0:null===(d=h[u-1])||void 0===d?void 0:d.amount)&&g%1!=0;)(b="nugget"===e?calcGoldNuggets(E):calcAcorns(E,t))<=(null==h?void 0:null===(y=h[u-1])||void 0===y?void 0:y.amount)&&(g+=.1,E=3600*Math.floor(g)+g%1*6e3);return{breakpoints:[...h,{time:E,amount:b}],lastClicked:g}},{breakpoints:[],lastClicked:1});return null==l?void 0:l.breakpoints},calcGoldNuggets=e=>Math.floor(Math.pow(e/3600,.44)),calcAcorns=(e,t)=>Math.floor(Math.pow(e*(1+t/100)/3600,.85)),calcSprinklerSave=e=>1===e?.3:2===e?.43:3===e?.53:4===e?.6:0,calcImportBonus=(e,t,l)=>{var m;let u=null==l?void 0:null===(m=l[e])||void 0===m?void 0:m[0];if(1===e){let e=Math.floor(10*(1+Math.pow(60*u/(250+u),1.7)))/10;return{description:t.replace(/{/,e),result:e}}if(2===e){let e=Math.round(5*u);return{description:t.replace(/{/,e),result:e}}if(5===e){let e=Math.floor(60*u/(100+u)*10)/10;return{description:t.replace(/{/,e),result:e}}return{description:t.replace(/{/,Math.round(u)),value:Math.round(u)}},calcImportCost=(e,t)=>{var l,u,d;return(null===m.gamingImports||void 0===m.gamingImports?void 0:null===(l=m.gamingImports[e])||void 0===l?void 0:l.x1)*Math.pow(10,null===m.gamingImports||void 0===m.gamingImports?void 0:null===(u=m.gamingImports[e])||void 0===u?void 0:u.x2)/4*Math.pow(1.4,null==t?void 0:null===(d=t[e])||void 0===d?void 0:d[0])},calcFertilizerBonus=(e,t,l,m,y,h,g)=>{var E,b,L,k,V,j;if(0===e){let e=null==t?void 0:t[1];return(0,u.notateNumber)((1+4*e)*Math.pow(1.065,e),"bits")}if(1===e){let e=null==t?void 0:t[2],u=null==m?void 0:m.find(e=>{let{linkedDeity:t}=e;return 6===t}),V=null!==(k=(0,d.kI)(u,y,6,m))&&void 0!==k?k:0,j=1+((null==h?void 0:null===(E=h[1])||void 0===E?void 0:E.bonus)+V)/100,ee=3+(null==g?void 0:null===(b=g[4])||void 0===b?void 0:b.level)/100,ea=null==l?void 0:null===(L=l[29])||void 0===L?void 0:L[1],el=1/calcSproutGrowChance(t),eo=Math.floor(100*(5e3/((1+2*e/100)*j*(1+ee*ea))*el/60))/100;return eo>60?"".concat(Math.floor(100*eo/60)/100," Hr"):"".concat(Math.floor(10*eo)/10," Min")}if(2===e){let e=null==t?void 0:t[3],l=null!==(j=null==y?void 0:null===(V=y.gemShopPurchases)||void 0===V?void 0:V.find((e,t)=>133===t))&&void 0!==j?j:0;return(0,u.notateNumber)(Math.round(Math.min(24,3+e+l)))}},calcSproutGrowChance=e=>{let t=null==e?void 0:e[7];return .13+.11*t/(150+t)},calcFertilizerCost=(e,t,l)=>{if(0===e){let e=null==t?void 0:t[1],m=Math.min(1.25,Math.max(1.13,1+(null==l?void 0:l.GamingFertCostExpA)/1e3));return(1+(3*e+Math.pow(e,2)))*Math.pow(m+Math.max(0,Math.min(.15,.18*(e-50)/(e+100))),e)}if(1===e){let e=null==t?void 0:t[2];return(2+(5*e+Math.pow(e,2)))*Math.pow(1.22,e)}if(2===e){let e=null==t?void 0:t[3];return 11>e?(25*(e+1)+Math.pow(e+1,3))*Math.pow(5+3.7*e,e):9999*1e63}},calcAcornShop=e=>{let t=["All plants give x{ bits","All plants grow {% faster"],[,,l,m]=null==e?void 0:e[27];return[l,m].map((e,l)=>{let m=0===l?1+8*e/(250+e):Math.pow(3*e,.8);return{cost:1+e+2*Math.max(0,e-5),description:null==t?void 0:t[l].replace(/{/,"".concat(m.toFixed(2))),bonus:m}})},isSuperbitUnlocked=(e,t)=>{var l,m;return null==e?void 0:null===(m=e.gaming)||void 0===m?void 0:null===(l=m.superbitsUpgrades)||void 0===l?void 0:l.find(e=>{let{name:l,unlocked:m}=e;return l===t&&m})},calculateSnailEncouragementForSuccessChance=(e,t)=>{let l=0,m=1e3;for(;m-l>1;){let u=Math.floor((l+m)/2),d=(1-.1*Math.pow(e,.72))*(1+100*u/(25+u)/100);d{if(!t)return null;let l=(0,m.tryToParse)(null==e?void 0:e.Guild)||(null==e?void 0:e.GuildTasks),d=parseGuildTasks(l),y=null===u.guildBonuses||void 0===u.guildBonuses?void 0:u.guildBonuses.map((e,l)=>{var m,u,d;return{...e,level:null!==(d=null==t?void 0:null===(u=t.stats)||void 0===u?void 0:null===(m=u[0])||void 0===m?void 0:m[l])&&void 0!==d?d:0}});if(t){let e=getGuildTotalPoints(l,y,null==t?void 0:t.points),m=getGuildLevel(e),h=getGuildLevelReq(l,e),g=parseGuildMembers(t,y),E=null==y?void 0:y.reduce((e,t,l)=>{var m,d;let{level:y}=t;return e+calculateGuildBonusCost(y,null===u.guildBonuses||void 0===u.guildBonuses?void 0:null===(m=u.guildBonuses[l])||void 0===m?void 0:m.gpBaseCost,null===u.guildBonuses||void 0===u.guildBonuses?void 0:null===(d=u.guildBonuses[l])||void 0===d?void 0:d.gpIncrease)},0),b=(null==t?void 0:t.points)+E;return{guildBonuses:y,guildTasks:d,members:g,maxMembers:30+4*m,level:m,levelReq:h,totalGp:b}}},getGuildTotalPoints=(e,t,l)=>{let m=l;for(let l=0;18>l;){var u,d,y,h,g,E,b;let L=l++;0!==e[0][L]&&(m+=Math.round((((null==t?void 0:null===(u=t[L])||void 0===u?void 0:u.gpBaseCost)+(null==t?void 0:null===(d=t[L])||void 0===d?void 0:d.gpIncrease))/(null==t?void 0:null===(y=t[L])||void 0===y?void 0:y.gpIncrease)+.5*(e[0][L]-1))/((null==t?void 0:null===(h=t[L])||void 0===h?void 0:h.gpBaseCost)/(null==t?void 0:null===(g=t[L])||void 0===g?void 0:g.gpIncrease))*e[0][L]*(null==t?void 0:null===(E=t[L])||void 0===E?void 0:E.gpBaseCost)-(null==t?void 0:null===(b=t[L])||void 0===b?void 0:b.gpIncrease)*e[0][L]))}return m},getGuildLevelReq=(e,t)=>{for(let e=0;100>e;){let l=e++;if(!(t>=100*(l+1)*Math.pow(1.21,l)))return 100*(l+1)*Math.pow(1.21,l)}return 0},getGuildLevel=e=>{for(let t=0;100>t;){let l=t++;if(!(e>=100*(l+1)*Math.pow(1.21,l)))return Math.min(l+1,45)}return 1},getGuildBonusBonus=(e,t)=>{var l;let u=null==e?void 0:e[t];return u&&null!==(l=(0,m.growth)(u.func,u.level,u.x1,u.x2,!1))&&void 0!==l?l:0},parseGuildMembers=(e,t)=>{var l;return null==e?void 0:null===(l=e.members)||void 0===l?void 0:l.map(e=>{let{a:l,b:m,c:u,d,e:y,f:h,g}=e;return{name:l,level:d,gpEarned:y,wantedBonus:(null==t?void 0:t[h])||-1,rank:g}})},parseGuildTasks=e=>{var t;let l=null==e?void 0:null===(t=e.slice(1))||void 0===t?void 0:t.map(e=>{let[t,,l]=e;return{...null===u.guildTasks||void 0===u.guildTasks?void 0:u.guildTasks[t],progress:l}});return{daily:null==l?void 0:l.slice(0,5),weekly:null==l?void 0:l.slice(5)}},calculateGuildBonusCost=(e,t,l)=>{if(0===e)return 0;let m=t;for(let u=1;u{var l;return e&&t?null===(l=Object.keys(t))||void 0===l?void 0:l.reduce((l,m)=>{if("UQ1txt"===m||"UQ2txt"===m)return{...l,[m]:(null==e?void 0:e[m])||(null==t?void 0:t[m])};let u=null==e?void 0:e[m],d=null==t?void 0:t[m],y=u;return isNaN(d)?{...l,[m]:d}:(y=(u||0)+((null==t?void 0:t.UQ1txt)&&(null==e?void 0:e.Type)!=="KEYCHAIN"&&(null==e?void 0:e.UQ1txt)!==(null==t?void 0:t.UQ1txt)?0:d),{...l,[m]:parseFloat(y)})},{}):{}},calculateItemTotalAmount=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null==e?void 0:e.reduce((e,u)=>{if(l)t===(m?null==u?void 0:u.rawName:null==u?void 0:u.name)&&(e+=null==u?void 0:u.amount);else{var d,y;(m?null==u?void 0:null===(d=u.rawName)||void 0===d?void 0:d.includes(t):null==u?void 0:null===(y=u.name)||void 0===y?void 0:y.includes(t))&&(e+=null==u?void 0:u.amount)}return e},0)},getStatsFromGear=function(e,t,l){var u,d,y,h,g,E,b,L,k,V,j,ee;let ea=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{equipment:el,tools:eo}=e||{},e_=null!==(V=null==l?void 0:null===(y=l.lab)||void 0===y?void 0:null===(d=y.playersChips)||void 0===d?void 0:null===(u=d[null==e?void 0:e.playerId])||void 0===u?void 0:u.find(e=>16===e.index))&&void 0!==V?V:0,ec=null!==(j=null==l?void 0:null===(E=l.lab)||void 0===E?void 0:null===(g=E.playersChips)||void 0===g?void 0:null===(h=g[null==e?void 0:e.playerId])||void 0===h?void 0:h.find(e=>17===e.index))&&void 0!==j?j:0,em=null!==(ee=null==l?void 0:null===(k=l.lab)||void 0===k?void 0:null===(L=k.playersChips)||void 0===L?void 0:null===(b=L[null==e?void 0:e.playerId])||void 0===b?void 0:b.find(e=>18===e.index))&&void 0!==ee?ee:0,ed=ea?eo:el;return isNaN(t)?null==ed?void 0:ed.reduce((e,l)=>e+getStatFromEquipment(l,t),0):null==ed?void 0:ed.reduce((e,l,u)=>{var d;return e+getStatFromEquipment(l,null===m.bonuses||void 0===m.bonuses?void 0:null===(d=m.bonuses.etcBonuses)||void 0===d?void 0:d[t])*(!ea&&(3===u&&em||10===u&&e_||9===u&&ec)?2:1)},0)},getStatFromEquipment=(e,t)=>{let l=(null==e?void 0:e.UQ1txt)===t?null==e?void 0:e.UQ1val:0,m=(null==e?void 0:e.UQ2txt)===t?null==e?void 0:e.UQ2val:0;return(null==e?void 0:e[t])?null==e?void 0:e[t]:l+m},createItemsWithUpgrades=(e,t,l)=>Array.from(Object.values(e)).reduce((e,u,d)=>{var y;let h=addStoneDataToEquip(null===m.items||void 0===m.items?void 0:m.items[u],null==t?void 0:t[d]),g="",E={...null===m.items||void 0===m.items?void 0:m.items[u],...h};(null==E?void 0:E.UQ1txt)&&(g+=null==E?void 0:E.UQ1txt),(null==E?void 0:E.UQ2txt)&&(g+=" ".concat(null==E?void 0:E.UQ2txt));let b={name:null===m.items||void 0===m.items?void 0:null===(y=m.items[u])||void 0===y?void 0:y.displayName,rawName:u,owner:l,..."Blank"===u?{}:{...null===m.items||void 0===m.items?void 0:m.items[u],...h},misc:g};return(null==b?void 0:b.Premiumified)&&(b.UQ1txt||delete b.UQ1val,b.UQ2txt||delete b.UQ2val,delete b.Defence,delete b.Weapon_Power,delete b.Reach),u?[...e,b]:e},[]),findItemInInventory=(e,t)=>t?e.reduce((e,l)=>{let{name:m,owner:u,amount:d}=l;if(m===t){var y;return null!=e&&e[u]?{...e,[u]:{amount:(null==e?void 0:null===(y=e[u])||void 0===y?void 0:y.amount)+1}}:{...e,[u]:{amount:d}}}return e},{}):{},findItemByDescriptionInInventory=(e,t)=>{if(!t)return{};let l=e.filter(e=>{var l,m;let{misc:u,description:d}=e;return(null==d?void 0:null===(l=d.toLowerCase())||void 0===l?void 0:l.includes(null==t?void 0:t.toLowerCase()))||(null==u?void 0:null===(m=u.toLowerCase())||void 0===m?void 0:m.includes(null==t?void 0:t.toLowerCase()))},[]);return null==l?void 0:l.reduce((e,t)=>{let l=null==e?void 0:e.findIndex(e=>(null==e?void 0:e.rawName)===(null==t?void 0:t.rawName)),m=null==e?void 0:e[l];if(m){var u;let d=null==m?void 0:null===(u=m.owners)||void 0===u?void 0:u.includes(null==t?void 0:t.owner),y=d?null==m?void 0:m.owners:[...null==m?void 0:m.owners,null==t?void 0:t.owner];(null==m?void 0:m.misc)===(null==t?void 0:t.misc)&&(null==e||e.splice(l,1)),e=[...e,{...t,owners:y}]}else e=[...e,{...t,owners:[null==t?void 0:t.owner]}];return e},[])},flattenCraftObject=e=>{if(!e)return[];let t={},l=JSON.parse(JSON.stringify(e)),flatten=(e,l)=>null==e?void 0:e.reduce((e,m)=>(e.push(m),m.materials&&(e=e.concat(flatten(null==m?void 0:m.materials,l)),m.materials=[]),t[null==m?void 0:m.itemName]?t[null==m?void 0:m.itemName].itemQuantity+=null==m?void 0:m.itemQuantity:t[null==m?void 0:m.itemName]=m,e),[]);return flatten(null==l?void 0:l.materials,t),Object.values(t)},findQuantityOwned=(e,t)=>{var l;let m=findItemInInventory(e,t);return null===(l=Object.entries(m))||void 0===l?void 0:l.reduce((e,t)=>{let[l,{amount:m}]=t;return{amount:(null==e?void 0:e.amount)+m,owner:[...null==e?void 0:e.owner,l]}},{amount:0,owner:[]})},addEquippedItems=(e,t)=>t?null==e?void 0:e.reduce((e,t)=>{let{tools:l,equipment:m,food:u}=t;return[...e,...l,...m,...u]},[]).filter(e=>{let{rawName:t}=e;return"Blank"!==t}).map(e=>(null==e?void 0:e.amount)?e:{...e,amount:1}):[],getAllItems=(e,t)=>{var l,m;let u=null==e?void 0:e.reduce((e,t)=>{let{inventory:l=[]}=t;return[...e,...l]},[]),d=null==t?void 0:null===(m=t.forge)||void 0===m?void 0:null===(l=m.list)||void 0===l?void 0:l.reduce((e,t)=>{let{bar:l,barrel:m,ore:u}=t;return[...e,l,m,u]},[]);return[...u||[],...(null==t?void 0:t.storage)||[],...d||[]]},mergeItemsByOwner=e=>{let t={};return e.forEach(e=>{if(!e.displayName)return;let l=e.owner+e.displayName;t[l]?t[l].amount+=e.amount:t[l]={...e}}),Object.values(t)},getAllTools=()=>{var e,t,l,u,d;let y=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(e=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/EquipmentTools[0-9]+/)}))||void 0===e?void 0:e.filter(e=>{let{rawName:t}=e;return"EquipmentTools13"!==t&&"EquipmentTools10"!==t}),h=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(t=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/EquipmentToolsHatchet[0-9]+/)}))||void 0===t?void 0:t.filter(e=>{let{rawName:t}=e;return"EquipmentToolsHatchet0"!==t&&"EquipmentToolsHatchet3"!==t&&"EquipmentToolsHatchet11"!==t}),g=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(l=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/FishingRod[0-9]+/)}))||void 0===l?void 0:l.filter(e=>{let{rawName:t}=e;return"FishingRod1"!==t}),E=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(u=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/CatchingNet[0-9]+/)}))||void 0===u?void 0:u.filter(e=>{let{rawName:t}=e;return"CatchingNet1"!==t}),b=null===m.itemsArray||void 0===m.itemsArray?void 0:m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/TrapBoxSet[0-9]+/)}),L=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(d=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/WorshipSkull[0-9]+/)}))||void 0===d?void 0:d.filter(e=>{let{rawName:t}=e;return"WorshipSkull8"!==t});return[y,h,g,E,b,L]},calcTrophiesFound=e=>{var t;return null==e?void 0:null===(t=e.lootyRaw)||void 0===t?void 0:t.reduce((e,t)=>e+(t.includes("Trophy")?1:0),0)},calcObolsFound=e=>{var t;return null==e?void 0:null===(t=e.lootyRaw)||void 0===t?void 0:t.reduce((e,t)=>e+(t.includes("Obol")?1:0),0)}},15893:function(e,t,l){"use strict";l.d(t,{Cs:function(){return getLab},Rp:function(){return isGodEnabledBySorcerer},Z$:function(){return getRequirementAmount},c9:function(){return getLabBonus},gw:function(){return getPlayerLabChipBonus},p8:function(){return isLabEnabledBySorcererRaw},pc:function(){return getJewelBonus},ww:function(){return applyBonusDesc}});var m=l(30925),u=l(70473),d=l(89260),y=l(54685),h=l(10924),g=l(5432),E=l(30796),b=l(72973),L=l(13339),k=l(88344);let getLab=(e,t,l,u)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Lab)||(null==e?void 0:e.Lab);return parseLab(d,t,l,u)},parseLab=(e,t,l,m)=>{var d,y,g,E,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;if(!e)return{};let eT=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[89],ef=null===u.randomList||void 0===u.randomList?void 0:u.randomList[53],[ev]=e,eg=e[15],eS=e[14],eN=e[13],eC=null==e?void 0:e.slice(1,(null==t?void 0:t.length)+1),eR=[];for(let e=0;enull==e?void 0:e.playerName);let eI=(null==l?void 0:null===(y=l.lab)||void 0===y?void 0:y.jewels)||(null==eS?void 0:eS.map((e,t)=>({...(null===u.jewels||void 0===u.jewels?void 0:u.jewels[t])||{},acquired:1===e,rawName:"ConsoleJwl".concat(t)})).filter(e=>{let{name:t}=e;return t})),ew=null==eC?void 0:eC.map(e=>e.map(e=>(null===u.chips||void 0===u.chips?void 0:u.chips[e])?{...null===u.chips||void 0===u.chips?void 0:u.chips[e],chipIndex:e}:e)),eE=(null!==(ed=null==l?void 0:null===(g=l.gemShopPurchases)||void 0===g?void 0:g.find((e,t)=>123===t))&&void 0!==ed?ed:0)*2,eF=[...t].filter((e,t)=>{var m,u;return(0,h.fe)(l,0)||(null==e?void 0:e.AFKtarget)==="Laboratory"||isLabEnabledBySorcererRaw(e,1)||(null==l?void 0:null===(u=l.divinity)||void 0===u?void 0:null===(m=u.linkedDeities)||void 0===m?void 0:m[t])===1}).map((e,t)=>{var l,m;return{...e,x:null==eR?void 0:null===(l=eR[null==e?void 0:e.playerId])||void 0===l?void 0:l.x,y:null==eR?void 0:null===(m=eR[null==e?void 0:e.playerId])||void 0===m?void 0:m.y}}),eP=JSON.parse(JSON.stringify(u.chips));null==eg||eg.map((e,t)=>{if(te).reduce((e,l)=>e+(l.index===eP[t].index?1:0),0);eP[t].repoAmount=e-l,eP[t].amount=l}});let eD=(null!==(ep=null==l?void 0:null===(V=l.tasks)||void 0===V?void 0:null===(k=V[2])||void 0===k?void 0:null===(E=k[3])||void 0===E?void 0:E[4])&&void 0!==ep?ep:0)*(null===u.merits||void 0===u.merits?void 0:null===(ee=u.merits[3])||void 0===ee?void 0:null===(j=ee[4])||void 0===j?void 0:j.bonusPerLevel),eA=t.filter(e=>{let{CharacterClass:t}=e;return 36===t}),eL=null==eA?void 0:eA.reduce((e,t)=>(null==e?void 0:e.SkillLevels[536])>(null==t?void 0:t.SkillLevels[536])?e:t,null==eA?void 0:eA[0]);eL&&(eL={...eL,...null==eR?void 0:eR[null==eL?void 0:eL.playerId]});let ex=(0,b.z)(null==l?void 0:null===(ea=l.equinox)||void 0===ea?void 0:ea.upgrades,"Laboratory_Fuse"),eU=(0,L.R)(l,"+{ Lab Con Range"),eQ=!0,eG=JSON.parse(JSON.stringify(u.labBonuses)),eB=[];for(;eQ;){if(eQ=!1,(eF=calcPlayerLineWidth(eF,eG,eI,ew,l,null==l?void 0:l.cards,null==l?void 0:l.gemShopPurchases,eT,ef,eL,t,m)).length>0&&0===eB.length){let e=getPrismPlayerConnection(eF);e&&eB.push(e)}for(let e=0;ee.playerId===u.playerId)&&(d=!0,eB=[...eB,u]);let y=getLabBonus(eG,8),h=getJewelBonus(eI,9,y),g=getLabBonus(eG,13),E=checkConnection(eG,h,g,eD,ex,eU,null==eB?void 0:eB[e],!1);eG=E.resArr;let b=checkConnection(eI,h,g,eD,ex,eU,null==eB?void 0:eB[e],!0);(null==(eI=b.resArr)?void 0:null===(ey=eI[16])||void 0===ey?void 0:ey.acquired)&&!(null==eI?void 0:null===(eh=eI[16])||void 0===eh?void 0:eh.active)&&(eI[16].active=!0,eF=calcPlayerLineWidth(eF,eG,eI,ew,l,null==l?void 0:l.cards,null==l?void 0:l.gemShopPurchases,eT,ef,eL,t,m),eI[16].active=!1),eG=(E=checkConnection(eG,h,g,eD,ex,eU,null==eB?void 0:eB[e],!1)).resArr,eI=(b=checkConnection(eI,h,g,eD,ex,eU,null==eB?void 0:eB[e],!0)).resArr,eQ=eQ||d||(null==b?void 0:b.newConnection)||(null==E?void 0:E.newConnection)}}}let eM=getJewelBonus(eI,19),eO=getLabBonus(eG,8);eI=eI.map((e,t)=>{var l;return{...e,multiplier:19===t?1:eO+((null==eI?void 0:null===(l=eI[19])||void 0===l?void 0:l.active)?eM:0)/100}});let ek=null==l?void 0:l.breeding.speciesUnlocks.reduce((e,t)=>e+t,0),eW=null==eI?void 0:null===(el=eI[1])||void 0===el?void 0:el.active;eG=applyBonusDesc(eG,ek*(eW?1.75:1),0,eW?1.75:1);let eH=null==l?void 0:null===(eo=l.storage)||void 0===eo?void 0:eo.filter(e=>e.amount>=1e7).length,eK=(null==eI?void 0:null===(e_=eI[17])||void 0===e_?void 0:e_.active)?1.5:0;return eG=applyBonusDesc(eG,eH*(2+eK),11,2+eK),{playersCords:eR=null==eR?void 0:eR.map((e,t)=>{let l=null==eF?void 0:eF.find(e=>{let{playerId:l}=e;return l===t});return{...e,lineWidth:(null==l?void 0:l.lineWidth)||(null==e?void 0:e.lineWidth)||0,soupedUp:te+t,0),currentRotation:eN}},isLabEnabledBySorcererRaw=(e,t)=>{if((null===u.classes||void 0===u.classes?void 0:u.classes[null==e?void 0:e.CharacterClass])==="Elemental_Sorcerer"){var l;let m=null==e?void 0:null===(l=e.SkillLevels)||void 0===l?void 0:l[505];return m%10===t}},isGodEnabledBySorcerer=(e,t)=>{if((null==e?void 0:e.class)==="Elemental_Sorcerer"){var l;let m=null===(l=e.flatTalents)||void 0===l?void 0:l.find(e=>{let{talentId:t}=e;return 505===t});return(null==m?void 0:m.level)%10===t}},applyBonusDesc=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return null==e?void 0:e.map((e,u)=>u===l?{...e,bonusOn:t,extraData:m,bonusDesc:t}:e)},getJewelBonus=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,m=(null==e?void 0:e.find(e=>e.index===t))||{};return(null==m?void 0:m.active)?(null==m?void 0:m.bonus)*((null==m?void 0:m.multiplier)||l):0},getLabBonus=(e,t)=>{var l;let m=(null==e?void 0:e.find(e=>e.index===t))||{};return null!==(l=(null==m?void 0:m.active)?null==m?void 0:m.bonusOn:null==m?void 0:m.bonusOff)&&void 0!==l?l:0},getDistance=(e,t,l,m)=>.9604339*Math.max(Math.abs(e-l),Math.abs(t-m))+.397824735*Math.min(Math.abs(e-l),Math.abs(t-m)),getRange=(e,t,l,m,u,d,y)=>!y&&(13===d||8===d)||9===d&&y||19===d&&y?80:80*(1+(e+t)/100)+l+m+u,calcPlayerLineWidth=(e,t,l,m,u,d,y,g,E,b,L,k)=>null==e?void 0:e.map(e=>{var V,j,ee;let ea=(null!==(ee=null==y?void 0:y.find((e,t)=>123===t))&&void 0!==ee?ee:0)*2,el=(0,h.bV)(g,E,13)?20:0,eo=null==L?void 0:null===(V=L.find(t=>{let{name:l}=t;return l===(null==e?void 0:e.name)}))||void 0===V?void 0:V.playerId,e_=getPlayerLineWidth(e,null==e?void 0:null===(j=e.Lv0)||void 0===j?void 0:j[12],ea>0&&eo<=ea,t,l,null==m?void 0:m[null==e?void 0:e.playerId],u,d,el,b,k);return{...e,lineWidth:e_}}),getPlayerLineWidth=(e,t,l,h,b,L,k,V,j,ee,ea)=>{var el,eo,e_;let ec=getLabBonus(h,8),em=50+2*(null!=t?t:0),{acquired:ed,x:ep,y:ey}=b[5];ed&&150>getDistance(ep,ey,e.x,e.y)&&(em*=1.25);let eh=null==L?void 0:L.reduce((e,t)=>6===t.index?e+t.baseVal:e,0),eT=getJewelBonus(b,16,ec),ef=(0,d.F4)(k,null,"PxLine",eT),ev=(0,d.F4)(k,null,"LinePct",eT),eg=(0,y.OK)(V,"Line_Width_(Passive)"),eS=(0,g.du)(null==k?void 0:null===(el=k.breeding)||void 0===el?void 0:el.pets,"Line_Width_in_Lab"),eN=0;if((null==e?void 0:e.x)>=(null==ee?void 0:ee.x)){let e=ee.SkillLevels[536]||0,t=(null===u.talents||void 0===u.talents?void 0:null===(eo=u.talents.Bubonic_Conjuror)||void 0===eo?void 0:eo.PURPLE_TUBE)||{};eN=ea?(0,E.A5)(ea,3,"Bubonic_Conjuror","PURPLE_TUBE",!1,!0):null!==(e_=(0,m.growth)(null==t?void 0:t.funcX,e,null==t?void 0:t.x1,null==t?void 0:t.x2,!1))&&void 0!==e_?e_:0}return Math.floor((em+ef+Math.min(eg,50))*(1+(eN+ev+(eh+20*j+eS+(l?30:0)))/100))},getPrismPlayerConnection=e=>{for(let t=0;t{for(let m=0;mt.playerId===e[m].playerId)&&h)return e[m]}return null},checkConnection=(e,t,l,m,u,d,y,h)=>null==e?void 0:e.reduce((e,g,E)=>{let b=!1,L=getRange(t,l,m,u,d,E,h),k=getDistance(y.x,y.y,g.x,g.y);return k{var m,u,d,y;return null!==(y=null==t?void 0:null===(d=t.lab)||void 0===d?void 0:null===(u=d.playersChips)||void 0===u?void 0:null===(m=u[null==e?void 0:e.playerId])||void 0===m?void 0:m.reduce((e,t)=>(null==t?void 0:t.index)===l?e+(null==t?void 0:t.baseVal):e,0))&&void 0!==y?y:0},getRequirementAmount=(e,t,l)=>{var m,u,d,y,h;let g;if(t.includes("Spice")){let e=null==l?void 0:null===(d=l.cooking)||void 0===d?void 0:null===(u=d.spices)||void 0===u?void 0:null===(m=u.available)||void 0===m?void 0:m.find(e=>{let{rawName:l}=e;return l===t});g=(null==e?void 0:e.amount)||0}else if(t.includes("CookingM")){let t=null==l?void 0:null===(h=l.cooking)||void 0===h?void 0:null===(y=h.meals)||void 0===y?void 0:y.find(t=>{let{name:l}=t;return l===e});g=(null==t?void 0:t.amount)||0}else g=(0,k.ju)(null==l?void 0:l.storage,t,!0,!0);return g}},10924:function(e,t,l){"use strict";l.d(t,{B4:function(){return calculateTotalSkillsLevel},DE:function(){return getCurrencies},HA:function(){return getTypeGen},Hx:function(){return getHighestLevelOfClass},Ix:function(){return enhanceKeysObject},KB:function(){return getRandomEvents},NG:function(){return getKillroySchedule},NQ:function(){return getLooty},Nh:function(){return getCharacterByHighestSkillLevel},O4:function(){return getExpReq},QV:function(){return getHighestLevelCharacter},Rf:function(){return getCompanions},U7:function(){return isBundlePurchased},UR:function(){return getMaterialCapacity},VS:function(){return getKillRoy},W9:function(){return getLibraryBookTimes},Wk:function(){return getMinigameScore},XQ:function(){return calculateAfkTime},Yu:function(){return getSpeedBonusFromAgility},Zf:function(){return getHealthFoodBonus},_3:function(){return getGoldenFoodMulti},ai:function(){return getGiantMobChance},bV:function(){return isArenaBonusActive},cg:function(){return enhanceColoTickets},f6:function(){return getRandomEventItems},fe:function(){return isCompanionBonusActive},fi:function(){return getSkillMasteryBonusByIndex},fx:function(){return getHighestCharacterSkill},jU:function(){return getHighestLevelOf},kU:function(){return getBundles},pA:function(){return isMasteryBonusUnlocked},qO:function(){return getEventShopBonus},qP:function(){return getSkillRankColor},rb:function(){return getMiniBossesData},sU:function(){return getFoodBonus},tE:function(){return getGoldenFoodBonus},tS:function(){return calculateLeaderboard},tc:function(){return getHighestCapacityCharacter},vZ:function(){return calcTotalQuestCompleted},z3:function(){return getItemCapacity}});var m=l(30925),u=l(34664),d=l(70473),y=l(30796),h=l(89260),g=l(88054),E=l(1972),b=l(9339),L=l(15893),k=l(95331),V=l(15815),j=l(64569),ee=l(20385),ea=l(79603),el=l(88344),eo=l(74044),e_=l(33913),ec=l(64605),em=l(96707),ed=l(56552),ep=l(8616),ey=l(29129),eh=l(48832);let getLibraryBookTimes=(e,t,l)=>{var m;let{bookCount:u,libTime:d,breakdown:y}=calcBookCount(l,t,e),h=null==l?void 0:l.timeAway,g=[16,18,20].map(m=>({breakpoint:m,time:calcTimeToXBooks(u,m,l,t,e)-(null==h?void 0:h.BookLib)}));return g=[...g,{breakpoint:0,time:calcTimeToXBooks(0,20,l,t,e)}],{bookCount:u,next:(null===(m=getTimeToNextBooks(u,l,t,e))||void 0===m?void 0:m.value)-d,breakdown:y,breakpoints:g}},calcBookCount=(e,t,l)=>{var m,u,d;let y=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[55],h=null==e?void 0:e.timeAway,g=null==h?void 0:h.BookLib,E=(new Date).getTime()/1e3-h.GlobalTime,b=y;E>300&&(g+=E);let{breakdown:L}=getTimeToNextBooks(b,e,t,l);for(;g>(null===(u=getTimeToNextBooks(b,e,t,l))||void 0===u?void 0:u.value);)g-=null===(d=getTimeToNextBooks(b,e,t,l))||void 0===d?void 0:d.value,b+=1;return{bookCount:b,libTime:g,breakdown:L}},calcTimeToXBooks=(e,t,l,m,u)=>{let d=0;for(let h=e;h{var d,y,V;let j=(0,m.tryToParse)(null==u?void 0:u.Tower)||(null==u?void 0:u.Tower),ea=(0,L.c9)(null==t?void 0:t.lab.labBonuses,8),el=(0,L.pc)(null==t?void 0:null===(d=t.lab)||void 0===d?void 0:d.jewels,16,ea),eo=(0,h.F4)(t,"Library_checkout_Speed",null,el),e_=(0,g.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"kazam","IGNORE_OVERDUES",!1),ec=(0,g.YG)(null==t?void 0:null===(V=t.alchemy)||void 0===V?void 0:V.vials,"Talent_Book_Library"),em=(0,E.mV)(t,"Talent_Book_Library_Refresh_Speed"),ed=null==j?void 0:j[1],ep=(0,k._m)(t,"Oxygen_-_Library_Booker"),ey=(0,ee.Ob)(t,"Library_Checkouts"),eh=0;ey&&(eh=null==ey?void 0:ey.totalBonus);let eT=Math.round(4*(3600/((1+eo/100)*(1+ep/100)*(1+(5*ed+e_+(ec+(em+Math.min(30,Math.max(0,30*(0,b.k6)(null==t?void 0:t.achievements,145)))+eh)))/100)))*(1+10*Math.pow(e,1.4)/100)),ef=[{name:"Meal Bonus",value:eo},{name:"Atom Bonus",value:ep},{name:"Tower Bonus",value:5*ed},{name:"Bubble Bonus",value:e_},{name:"Vial Bonus",value:ec},{name:"Stamp Bonus",value:em},{name:"Superbit Bonus",value:eh},{name:"Achievement Bonus",value:Math.min(30,Math.max(0,30*(0,b.k6)(null==t?void 0:t.achievements,145)))}];return{value:eT,breakdown:ef}},getLooty=e=>{var t,l;let y=(null==e?void 0:null===(t=e.Cards)||void 0===t?void 0:t[1])||(0,m.tryToParse)(null==e?void 0:e.Cards1),h=JSON.parse(JSON.stringify(d.items)),g=null===d.slab||void 0===d.slab?void 0:d.slab.map(e=>{var t;return{name:null==h?void 0:null===(t=h[e])||void 0===t?void 0:t.displayName,rawName:e,obtained:null==y?void 0:y.includes(e),onRotation:null===u.Ns||void 0===u.Ns?void 0:u.Ns[e],unobtainable:null===u.oA||void 0===u.oA?void 0:u.oA[e]}}),E=null==g?void 0:null===(l=g.filter(e=>{let{obtained:t,rawName:l,unobtainable:m}=e;return!t&&!m}))||void 0===l?void 0:l.length;return{slabItems:g,lootyRaw:y,lootedItems:null==y?void 0:y.length,missingItems:E,totalItems:null===d.slab||void 0===d.slab?void 0:d.slab.length,rawLootedItems:null==y?void 0:y.length}},getCurrencies=(e,t)=>{var l,m,u;let d=(null==t?void 0:null===(l=t.CurrenciesOwned)||void 0===l?void 0:l.KeysAll)||(null==t?void 0:t.CYKeysAll);return(null==t?void 0:t.CurrenciesOwned)?{...null==t?void 0:t.CurrenciesOwned,KeysAll:getKeysObject(d)}:{WorldTeleports:null==t?void 0:t.CYWorldTeleports,KeysAll:getKeysObject(d),ColosseumTickets:null==t?void 0:t.CYColosseumTickets,ObolFragments:null==t?void 0:t.CYObolFragments,SilverPens:null==t?void 0:t.CYSilverPens,GoldPens:null==t?void 0:t.CYGoldPens,DeliveryBoxComplete:null==t?void 0:t.CYDeliveryBoxComplete,DeliveryBoxStreak:null==t?void 0:t.CYDeliveryBoxStreak,DeliveryBoxMisc:null==t?void 0:t.CYDeliveryBoxMisc,minigamePlays:null!==(u=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[33])&&void 0!==u?u:0}},enhanceColoTickets=(e,t,l)=>{let m=Object.entries({0:{name:"Typhoon",dialogThreshold:3,daysSinceIndex:15},1:{name:"Centurion",dialogThreshold:4,daysSinceIndex:35},2:{name:"Lonely_Hunter",dialogThreshold:6,daysSinceIndex:56}}).reduce((t,m,u)=>{var d;let[,y]=m,h=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[null==y?void 0:y.daysSinceIndex];return[...t,{rawName:"TixEZ".concat(u),amountPerDay:1,daysSincePickup:h,amount:e,totalAmount:Math.min(h,3)}]},[]);return{allTickets:m,totalAmount:e}},getKeysObject=e=>e.reduce((e,t,l)=>l<5?[...e,{amount:t,...u.Aw[l]}]:e,[]),enhanceKeysObject=(e,t,l)=>{let m={0:{name:"Dog_Bone",dialogThreshold:5,daysSinceIndex:16},1:{name:"Djonnut",dialogThreshold:6,daysSinceIndex:31},2:{name:"Bellows",dialogThreshold:8.5,daysSinceIndex:80},3:{}};return e.map((e,u)=>{var d,y;let h=getAmountPerDay(null==m?void 0:m[u],t),g=null==l?void 0:null===(y=l.accountOptions)||void 0===y?void 0:y[null==m?void 0:null===(d=m[u])||void 0===d?void 0:d.daysSinceIndex];return{...e,amountPerDay:h,daysSincePickup:g,totalAmount:Math.min(g,3)*h}})},getAmountPerDay=function(){let{name:e,dialogThreshold:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return l.reduce((l,m)=>{let{npcDialog:u}=m;return void 0===t?l:(null==u?void 0:u[e])>t?l+1:l},0)},getBundles=e=>{var t;let l=(0,m.tryToParse)(null==e?void 0:e.BundlesReceived)||(null==e?void 0:e.BundlesReceived);return l?null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t;return m?[...e,{name:l,owned:!!m}]:e},[]).sort((e,t)=>{var l,m,u,d;return null==e?void 0:null===(d=e.name)||void 0===d?void 0:null===(u=d.match(/_[a-z]/i))||void 0===u?void 0:u[0].localeCompare(null==t?void 0:null===(m=t.name)||void 0===m?void 0:null===(l=m.match(/_[a-z]/i))||void 0===l?void 0:l[0])}):[]},isBundlePurchased=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}),isArenaBonusActive=(e,t,l)=>{let m=t.split(" ");return!(l>m.length)&&e>=m[l]},calculateAfkTime=e=>1e3*parseFloat(e),getMaterialCapacity=(e,t)=>{let{allCapacity:l,mattyBagStampBonus:m,gemShopCarryBonus:u,masonJarStampBonus:d,extraBagsTalentBonus:y,starSignExtraCap:h}=t,g=null==e?void 0:e.capacity;return Math.floor(g*(1+m/100)*(1+25*u/100)*(1+(d+h)/100)*(1+y/100)*l)},getSpeedBonusFromAgility=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(Math.pow(e+1,.37)-1)/40;return e>1e3&&(t=(e-1e3)/(e+2500)*.5+.297),2*t+1},getHighestLevelOf=(e,t)=>{let l=null==e?void 0:e.filter(e=>(0,y.gW)(null==e?void 0:e.class,t));return null==l?void 0:l.reduce((e,t)=>{let{level:l}=t;return l>e?l:e},0)},getHighestLevelOfClass=(e,t,l)=>{let m=null==e?void 0:e.reduce((e,t)=>{let{level:l,class:m}=t;return(null==e?void 0:e[m])?e[m]=Math.max(null==e?void 0:e[m],l):e[m]=l,e},{}),u=null===y.pV||void 0===y.pV?void 0:y.pV[t];l&&(u=u.filter(e=>e===t));let d=null==u?void 0:u.find(e=>null==m?void 0:m[e]);return(null==m?void 0:m[d])||0},getCharacterByHighestSkillLevel=(e,t,l)=>{let m;if(t){let l=null===y.pV||void 0===y.pV?void 0:y.pV[t];m=e.filter(e=>l.includes(e.class))}else m=e;return m.reduce((e,t)=>{var m,u,d,y;return(null==t?void 0:null===(u=t.skillsInfo)||void 0===u?void 0:null===(m=u[l])||void 0===m?void 0:m.level)>(null==e?void 0:null===(y=e.skillsInfo)||void 0===y?void 0:null===(d=y[l])||void 0===d?void 0:d.level)?t:e},m[0])},getHighestLevelCharacter=e=>{let t=null==e?void 0:e.map(e=>{let{level:t}=e;return t});return Math.max(...t)},getHighestCharacterSkill=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,l=null==e?void 0:e.map(e=>{var l,m;let{skillsInfo:u}=e;return null!==(m=null==u?void 0:null===(l=u[t])||void 0===l?void 0:l.level)&&void 0!==m?m:0});return Math.max(...l)},calculateLeaderboard=e=>{var t;let l=e.reduce((e,t)=>{let{name:l,skillsInfo:m}=t;if(!m)return e;for(let[t,u]of Object.entries(m))if(e[t]){let m={...e[t],[l]:u},d=Object.keys(m).length;e[t]=Object.entries(m).sort((e,t)=>{let[l,{level:m}]=e,[u,{level:d}]=t;return d-m}).reduceRight((e,t)=>{let[l,m]=t;return{...e,[l]:{...m,rank:d--}}},{})}else e[t]={...e[t],[l]:u};return e},{});return null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t,u=Object.entries(m).reduce((e,t)=>{let[m,u]=t;return{...e,[m]:{[l]:u}}},{});return Object.entries(u).reduce((t,l)=>{let[m,u]=l;return{...t,[m]:{...e[m]||{},...u}}},{})},{})},calculateTotalSkillsLevel=e=>{var t;let l=null==e?void 0:e.reduce((e,t)=>{let{skillsInfo:l}=t;if(!l)return e;for(let[t,u]of Object.entries(l))if(null==e?void 0:e[t]){var m;e[t]={...e[t],level:null!==(m=e[t].level+(null==u?void 0:u.level))&&void 0!==m?m:0}}else e[t]={level:null==u?void 0:u.level,index:(null==u?void 0:u.index)-1,icon:null==u?void 0:u.icon};return e},{});return null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,{level:m}]=t,u=getSkillRank(m);return{...e,[l]:{...null==e?void 0:e[l],rank:u,color:getSkillRankColor(m)}}},l)},getSkillRankColor=e=>e<300?"white":e>=300&&e<400?"#ffc277":e>=400&&e<600?"#cadadb":e>=600&&e<1e3?"gold":"#56ccff",getSkillRank=e=>150>e?0:200>e?1:300>e?2:400>e?3:500>e?4:750>e?5:1e3>e?6:7,isMasteryBonusUnlocked=(e,t,l)=>(null==e?void 0:e.currentRift)<15?0:t>l?1:0,getSkillRankByIndex=(e,t)=>{for(let[,l]of Object.entries(e))if((null==l?void 0:l.level)>0&&(null==l?void 0:l.index)===t)return null==l?void 0:l.rank;return null},getSkillMasteryBonusByIndex=(e,t,l)=>{let m=Array(15).fill(1);return null==m?void 0:m.reduce((m,u,d)=>{let y=getSkillRankByIndex(e,d);return 1===l?m+=10*isMasteryBonusUnlocked(t,y,Math.round(l)):3===l?m+=isMasteryBonusUnlocked(t,y,Math.round(l)):4===l?m+=25*isMasteryBonusUnlocked(t,y,Math.round(l)):0!==d&&2!==d&&3!==d&&5!==d&&6!==d&&8!==d&&8!==d&&(m+=5*isMasteryBonusUnlocked(t,y,Math.round(l))),m},7)},getExpReq=(e,t)=>0===e?(15+Math.pow(t,1.9)+11*t)*Math.pow(1.208-Math.min(.164,.215*t/(t+100)),t)-15:2===e?(15+Math.pow(t,2)+13*t)*Math.pow(1.225-Math.min(.114,.135*t/(t+50)),t)-26:8===e?71>t?((10+Math.pow(t,2.81)+4*t)*Math.pow(1.117-.135*t/(t+5),t)-6)*(1+Math.pow(t,1.72)/300):((10+Math.pow(t,2.81)+4*t)*Math.pow(1.003,t)-6)/2.35*(1+Math.pow(t,1.72)/300):9===e?(15+Math.pow(t,1.3)+6*t)*Math.pow(1.17-Math.min(.07,.135*t/(t+50)),t)-26:(15+Math.pow(t,2)+15*t)*Math.pow(1.225-Math.min(.18,.135*t/(t+50)),t)-30,getGiantMobChance=(e,t)=>{var l,m,u,d;let y=null==t?void 0:null===(l=t.accountOptions)||void 0===l?void 0:l[57],h=null===(m=(0,V.Y0)(null==e?void 0:e.activePrayers,"Glitterbug",t))||void 0===m?void 0:m.curse,E=(0,j.wt)(null==t?void 0:t.shrines,6,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(u=t.sailing)||void 0===u?void 0:u.artifacts),b=(0,g.iu)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.vials,"GiantMob");return{chance:y<5?1/((100+50*Math.pow(y+1,2))*(1+h/100))*(1+(E+b)/100):1/(2*Math.pow(y+1,1.95)*(1+h/100)*Math.pow(y+1,1.5+y/15))*(1+(E+b)/100),crescentShrineBonus:E,giantMobVial:b,glitterbugPrayer:h}},getGoldenFoodMulti=(e,t)=>{var l,m,u,k,V,j,ee,eo;let e_=null!==(eo=null!==(ee=getHighestLevelOfClass(null==t?void 0:t.charactersLevels,"Bubonic_Conjuror"))&&void 0!==ee?ee:getHighestLevelOfClass(null==t?void 0:t.charactersLevels,"Shaman"))&&void 0!==eo?eo:0,ec=(0,y._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),ed=(0,ea.D)(d.classFamilyBonuses,"GOLDEN_FOODS",e_),eT=null===(l=y.pV[null==e?void 0:e.class])||void 0===l?void 0:l.includes("Shaman"),ef=(0,el.zi)(e,8,t),ev=(0,y._X)(null==e?void 0:e.talents,1,"HAUNGRY_FOR_GOLD"),eg=(0,E.mV)(t,"Effect_from_Golden_Food._Sparkle_sparkle!"),eS=(0,b.k6)(null==t?void 0:t.achievements,37),eN=(0,g.om)(null==t?void 0:null===(m=t.alchemy)||void 0===m?void 0:m.bubbles,"power","SHIMMERON",!1,(null===y.nl||void 0===y.nl?void 0:y.nl[null==e?void 0:e.class])==="strength"),eC=(0,g.Vq)(null==t?void 0:null===(k=t.alchemy)||void 0===k?void 0:null===(u=k.p2w)||void 0===u?void 0:u.sigils,"EMOJI_VEGGIE"),eR=(0,ep.vq)(t,"Gumm_Stick"),eI=(0,L.c9)(null==t?void 0:null===(V=t.lab)||void 0===V?void 0:V.labBonuses,8),ew=(0,L.pc)(null==t?void 0:null===(j=t.lab)||void 0===j?void 0:j.jewels,16,eI),eE=(0,h.F4)(t,null,"zGoldFood",ew),eF=(0,em.o9)(e,t,"Golden_Food"),eP=(0,ey.k)(null==t?void 0:t.bribes,"Gold_from_Lead"),eD=(0,b.k6)(null==t?void 0:t.achievements,380),eA=(0,b.k6)(null==t?void 0:t.achievements,383),eL=(0,eh.F)(t,26);return Math.max(eT?ed*(ec>0?1+ec/100:1)||0:ed,1)+(ef+(ev+(eg+(eS+(eN+eC)+eE+eF+eP+eR+(2*eD+3*eA+eL)))))/100},getGoldenFoodBonus=(e,t,l)=>{var u,y;if(!t)return 0;let h=null==t?void 0:null===(u=t.food)||void 0===u?void 0:u.find(t=>{let{name:l}=t;return l===e}),g=getGoldenFoodMulti(t,l),E=(null==h?void 0:h.Amount)&&(null==h?void 0:h.amount)?(null==h?void 0:h.Amount)*g*.05*(0,m.lavaLog)(1+(null==h?void 0:h.amount))*(1+(0,m.lavaLog)(1+(null==h?void 0:h.amount))/2.14):0;if((0,ep.x5)(l,"Gold_Food_Beanstalk")){let t=null==l?void 0:null===(y=l.sneaking)||void 0===y?void 0:y.beanstalkData,u=d.ninjaExtraInfo[29].split(" ").filter(e=>isNaN(e)).map((e,l)=>({...(null===d.items||void 0===d.items?void 0:d.items[e])||{},active:(null==t?void 0:t[l])>0,index:l})),h=null==u?void 0:u.find(t=>{let{displayName:l,active:m}=t;return l===e&m});return h?E+(null==h?void 0:h.Amount)*g*.05*(0,m.lavaLog)(1+1e3*Math.pow(10,null==t?void 0:t[null==h?void 0:h.index]))*(1+(0,m.lavaLog)(1+1e3*Math.pow(10,null==t?void 0:t[null==h?void 0:h.index]))/2.14):E}return E},getRandomEvents=e=>{if(!e)return[];let{serverVars:t,timeAway:l}=e||{},m=[],u=Math.round(Math.floor((null==l?void 0:l.GlobalTime)/3600));for(let e=0;e<100;e++){let l=u+e+(null==t?void 0:t.RandEvntHr),y=new eo.Z(l),h=y.rand(),g=getEventType(h),E=new eo.Z(l+1),b=E.rand(),L=getEventMaps(g);if(0===L.length)continue;let k=Math.min(Math.floor(b*L.length),L.length-1),V=null===d.rawMapNames||void 0===d.rawMapNames?void 0:d.rawMapNames.indexOf(null==L?void 0:L[k]);if(-1===V)continue;let j=null===d.mapNames||void 0===d.mapNames?void 0:d.mapNames[V],ee=getEventName(g),ea=(u+e+1)*36e5;if((0,e_.Z)(ea))continue;let el=new Date(ea);el.isDstObserved()&&(ea-=36e5),m.push({mapName:j,eventName:ee,date:ea})}return m},getEventMaps=e=>{let[t,l,m]=d.randomList.slice(68,71),u=[];return(0===e||1===e||3===e||4===e)&&(u=u.concat(t.split(" "))),(0===e||1===e||3===e)&&(u=u.concat(l.split(" "))),(0===e||2===e)&&(u=u.concat(m.split(" "))),u},getEventName=e=>{var t;let l={0:"Meteorite",1:"Mega_Grumblo",2:"Glacial_Guild",3:"Snake_Swarm",4:"Angry_Frogs"};return null!==(t=null==l?void 0:l[e])&&void 0!==t?t:""},getEventType=e=>.045>e?0:.087>e?1:.129>e?2:.171>e?3:.213>e?4:-1,getHighestCapacityCharacter=(e,t,l)=>null==t?void 0:t.reduce((t,m)=>{var u;let d=(null==e?void 0:e.itemType)==="Equip"?1:null===(u=getItemCapacity(null==e?void 0:e.typeGen,m,l))||void 0===u?void 0:u.value,y=(null==m?void 0:m.inventorySlots)*d;return y>(null==t?void 0:t.maxCapacity)&&(t={capacityPerSlot:d,maxCapacity:y,character:null==m?void 0:m.name}),t},{capacityPerSlot:0,maxCapacity:0,character:""}),getAllCap=(e,t)=>{var l,m,u,d,h,g,E,b;let L=(0,ec._r)(null==t?void 0:null===(l=t.guild)||void 0===l?void 0:l.guildBonuses,2),k=(0,y._X)(null==e?void 0:e.starTalents,null,"TELEKINETIC_STORAGE"),ee=(0,j.wt)(null==t?void 0:t.shrines,3,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(m=t.sailing)||void 0===m?void 0:m.artifacts),ea=null===(u=(0,V.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",t))||void 0===u?void 0:u.curse,el=null===(d=(0,V.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",t))||void 0===d?void 0:d.bonus,eo=(null==t?void 0:null===(g=t.bribes)||void 0===g?void 0:null===(h=g[23])||void 0===h?void 0:h.done)?null==t?void 0:null===(b=t.bribes)||void 0===b?void 0:null===(E=b[23])||void 0===E?void 0:E.value:0;return{value:(1+(L+k)/100)*(1+ee/100)*Math.max(1-ea/100,.4)*(1+(el+eo)/100),breakdown:[{value:L,name:"Guild"},{value:k,name:"Talent"},{value:ee,name:"Shrine"},{value:el+-ea,name:"Prayer"},{value:eo,name:"Bribe"}]}},getItemCapacity=function(){var e,t,l,m,u,d,h,g,b,L,k,V,j,ee,ea,el,eo,e_;let ec=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ed=arguments.length>1?arguments[1]:void 0,ep=arguments.length>2?arguments[2]:void 0,ey=null==ep?void 0:null===(e=ep.gemShopPurchases)||void 0===e?void 0:e.find((e,t)=>58===t),eh=(0,em.o9)(ed,ep,"Carry_Cap"),eT=(0,E.mV)(ep,"Carrying_Capacity_for_Mining_Items",ed),ef=(0,E.mV)(ep,"Carrying_Capacity_for_Choppin'_Items",ed),ev=(0,E.mV)(ep,"Carry_Capacity_for_Fishing_Items",ed),eg=(0,E.mV)(ep,"Carry_Capacity_for_Catching_Items",ed),eS=(0,E.mV)(ep,"Carrying_Capacity_for_Material_Items",ed),eN=(0,E.mV)(ep,"Carry_Capacity_for_ALL_item_types!"),eC=(0,y._X)(null==ed?void 0:ed.talents,0,"EXTRA_BAGS"),eR=getAllCap(ed,ep),eI,ew=[{title:"Base"},{name:""},...null==eR?void 0:eR.breakdown,{name:""}];return"bOre"===ec||"bBar"===ec||"cOil"===ec?(eI=Math.floor((null==ed?void 0:null===(t=ed.maxCarryCap)||void 0===t?void 0:t.Mining)*(1+eT/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Mining"},{name:""},{value:null==ed?void 0:null===(l=ed.maxCarryCap)||void 0===l?void 0:l.Mining,name:"Base Bag"},{value:eT,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dFish"===ec?(eI=Math.floor((null==ed?void 0:null===(m=ed.maxCarryCap)||void 0===m?void 0:m.Fishing)*(1+25*ey/100)*(1+ev/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Fishing"},{name:""},{value:null==ed?void 0:null===(u=ed.maxCarryCap)||void 0===u?void 0:u.Fishing,name:"Base Bag"},{value:ev,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dBugs"===ec?(eI=Math.floor((null==ed?void 0:null===(d=ed.maxCarryCap)||void 0===d?void 0:d.Bugs)*(1+25*ey/100)*(1+eg/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Catching"},{name:""},{value:null==ed?void 0:null===(h=ed.maxCarryCap)||void 0===h?void 0:h.Bugs,name:"Base Bag"},{value:eg,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"bLog"===ec||"bLeaf"===ec?(eI=Math.floor((null==ed?void 0:null===(g=ed.maxCarryCap)||void 0===g?void 0:g.Chopping)*(1+ef/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Chopping"},{name:""},{value:null==ed?void 0:null===(b=ed.maxCarryCap)||void 0===b?void 0:b.Chopping,name:"Base Bag"},{value:ef,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"cFood"===ec?(eI=Math.floor((null==ed?void 0:null===(L=ed.maxCarryCap)||void 0===L?void 0:L.Foods)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Food"},{name:""},{value:null==ed?void 0:null===(k=ed.maxCarryCap)||void 0===k?void 0:k.Foods,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dCritters"===ec?(eI=Math.floor((null==ed?void 0:null===(V=ed.maxCarryCap)||void 0===V?void 0:V.Critters)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Critters"},{name:""},{value:null==ed?void 0:null===(j=ed.maxCarryCap)||void 0===j?void 0:j.Critters,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dSouls"===ec?(eI=Math.floor((null==ed?void 0:null===(ee=ed.maxCarryCap)||void 0===ee?void 0:ee.Souls)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Souls"},{name:""},{value:null==ed?void 0:null===(ea=ed.maxCarryCap)||void 0===ea?void 0:ea.Souls,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dCurrency"===ec||"dQuest"===ec||"dStatueStone"===ec?eI=999999:"bCraft"===ec?(eI=Math.floor((null==ed?void 0:null===(el=ed.maxCarryCap)||void 0===el?void 0:el.bCraft)*(1+eS/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(1+eC/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Materials"},{name:""},{value:null==ed?void 0:null===(eo=ed.maxCarryCap)||void 0===eo?void 0:eo.bCraft,name:"Base Bag"},{value:eS,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eC,name:"Talent"},{value:eh,name:"Star Sign"}]):eI="dExpOrb"===ec||"dStone"===ec||"dFishToolkit"===ec?999999:"fillerz"===ec?null==ed?void 0:null===(e_=ed.maxCarryCap)||void 0===e_?void 0:e_.fillerz:"d"===ec.charAt(0)?999999:2,{value:eI,breakdown:ew}},getTypeGen=e=>{let t={bCraft:"bCraft",Foods:"cFood",Mining:"bOre",Quests:"dQuest",Statues:"dStatueStone",Chopping:"bLog",Fishing:"dFish",Bugs:"dBugs",Critters:"dCritters",Souls:"dSouls"};return null==t?void 0:t[e]},getFoodBonus=(e,t,l)=>{var m;let u=(0,ed.wJ)(e,t);return null==e?void 0:null===(m=e.food)||void 0===m?void 0:m.reduce((e,t)=>{let{Amount:m,Effect:d}=t;return e+(d===l?m*u:0)},0)},getHealthFoodBonus=(e,t,l)=>{var m;let u=(0,ed.wJ)(e,t,!0);return null==e?void 0:null===(m=e.food)||void 0===m?void 0:m.reduce((e,t)=>{let{Trigger:m,Amount:d,Cooldown:y,Effect:h}=t;return e+(m>0&&h===l?d*u/Math.max(y,1)*3600:0)},0)},getMinigameScore=(e,t)=>{var l,m,u;return(null==e?void 0:null===(u=e.highscores)||void 0===u?void 0:null===(m=u.minigameHighscores)||void 0===m?void 0:null===(l=m.find(e=>{let{minigame:l}=e;return l===t}))||void 0===l?void 0:l.score)||0},getCompanions=function(){var e,t;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[m]=(null==l?void 0:null===(e=l.e)||void 0===e?void 0:e.split(","))||[],u=null===d.companions||void 0===d.companions?void 0:d.companions[m],y=null==l?void 0:null===(t=l.l)||void 0===t?void 0:t.reduce((e,t)=>{let[l]=null==t?void 0:t.split(",");return{...e,[l]:!0}},{}),h=null===d.companions||void 0===d.companions?void 0:d.companions.map((e,t)=>({...e,acquired:!!(null==y?void 0:y[t])}));return{totalBoxesOpened:null==l?void 0:l.x,currentCompanion:u,list:h,lastFreeClaim:null==l?void 0:l.t,petCrystals:null==l?void 0:l.s,maxStorage:40}},isCompanionBonusActive=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.companions)||void 0===u?void 0:null===(m=u.list)||void 0===m?void 0:null===(l=m.at(t))||void 0===l?void 0:l.acquired},getRandomEventItems=e=>{var t;let l=d.randomList.slice(82,87).flat(),m=new Set(null==e?void 0:null===(t=e.looty)||void 0===t?void 0:t.lootyRaw);return l.reduce((e,t)=>m.has(t)?e+1:e,0)},getDays=(e,t)=>({mini3b:Math.min(10,Math.floor(Math.pow((t<3?3:t)-3,.55))),mini4b:Math.min(8,Math.floor(Math.pow((t<3?3:t)-3,.5))),mini5a:Math.min(6,Math.floor(Math.pow((t<3?3:t)-3,.5))),mini6a:Math.min(6,Math.floor(Math.pow((t<3?3:t)-3,.5)))})[e],getDaysTillNext=(e,t,l)=>(0,m.createRange)(1,100).find(m=>{let u=getDays(e,t+m);if(u>l)return m}),getMiniBossesData=e=>{var t,l,m,u,d,y,h,g,E,b,L,k;let V=null!==(E=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[96])&&void 0!==E?E:0,j=null!==(b=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[98])&&void 0!==b?b:0,ee=null!==(L=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[225])&&void 0!==L?L:0,ea=null!==(k=null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[226])&&void 0!==k?k:0,el=[getDays("mini3b",V),getDays("mini4b",j),getDays("mini5a",ee),getDays("mini6a",ea)];return[{current:el[0],maxed:el[0]>=10,rawName:"mini3b",name:"Dilapidated_Slush",unlocked:null==e?void 0:null===(d=e.finishedWorlds)||void 0===d?void 0:d.World3,daysTillNext:getDaysTillNext("mini3b",V,el[0])},{current:el[1],maxed:el[1]>=8,rawName:"mini4b",name:"Mutated_Mush",unlocked:null==e?void 0:null===(y=e.finishedWorlds)||void 0===y?void 0:y.World2,daysTillNext:getDaysTillNext("mini4b",j,el[1])},{current:el[2],maxed:el[2]>=6,rawName:"mini5a",name:"Domeo_Magmus",unlocked:null==e?void 0:null===(h=e.finishedWorlds)||void 0===h?void 0:h.World4,daysTillNext:getDaysTillNext("mini5a",ee,el[2])},{current:el[3],maxed:el[3]>=6,rawName:"mini6a",name:"Demented_Spiritlord",unlocked:null==e?void 0:null===(g=e.finishedWorlds)||void 0===g?void 0:g.World5,daysTillNext:getDaysTillNext("mini6a",ea,el[3])}].filter(e=>{let{unlocked:t}=e;return t})},getKillRoy=(e,t,l,u)=>{var y;let h=(0,m.tryToParse)(null==e?void 0:e.KRbest),g=Object.values(h||{}).reduce((e,t)=>e+t,0),E=(null==l?void 0:null===(y=l.accountOptions)||void 0===y?void 0:y[227])===1,b=E?3:2,L=getKillRoyClasses(b,l,u);return{list:d.deathNote.map(e=>{var t;let l={...e,icon:"Mface".concat(null===d.monsters||void 0===d.monsters?void 0:d.monsters[e.rawName].MonsterFace)};return(null==h?void 0:h[e.rawName])?{...l,killRoyKills:null!==(t=null==h?void 0:h[e.rawName])&&void 0!==t?t:0}:l}),totalKills:g,totalDamageMulti:1+Math.floor(Math.pow(g,.4))/100,rooms:b,killRoyClasses:L}},calcTotalQuestCompleted=e=>{let t=e.reduce((e,t)=>{var l;let{questComplete:m}=t;return null===(l=Object.entries(m||{}))||void 0===l||l.forEach(t=>{let[l,m]=t;e[l]||1!==m||(e[l]=1)},0),e},{});return Object.values(t).reduce((e,t)=>e+t,0)},getKillroySchedule=(e,t,l)=>{var m;let u=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[227])===1,d=u?3:2,y=[];for(let m=0;m<20;m++)y.push(getKillRoyClasses(d,e,l,!0,m,t));return y},getKillRoyClasses=function(e,t,l){var m,u,y,h,g,E;let b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],L=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,k=arguments.length>5?arguments[5]:void 0,V=[],j=[],ee=null==t?void 0:null===(m=t.accountOptions)||void 0===m?void 0:m[113],ea={1:[0],21:[0,1],321:[0,1,2]},el=null==k?void 0:k.some(e=>{let{kills:t}=e;return(null==t?void 0:t[200])>=0}),e_=Math.floor(((null==t?void 0:null===(u=t.timeAway)||void 0===u?void 0:u.GlobalTime)+Math.round((null==t?void 0:null===(y=t.timeAway)||void 0===y?void 0:y.ShopRestock)+86400*(null==t?void 0:null===(h=t.accountOptions)||void 0===h?void 0:h[39])))/604800);for(let t=0;t=4){let e=d.randomList[99].split(" "),t=Math.floor(y/e.length),l=Math.round(y-t*e.length);j.push(e[l])}else{let e=d.randomList[Math.round(69+m)].split(" "),t=Math.floor(y/e.length),l=Math.round(y-t*e.length);j.push(e[l])}}return b?{monsters:j.map(e=>{var t;return null===(t=d.monsters[d.mapEnemiesArray[d.rawMapNames.indexOf(e)]])||void 0===t?void 0:t.MonsterFace}),classes:V.map(e=>({className:0===e?"Beginner":1===e?"Warrior":2===e?"Archer":"Mage",classIndex:0===e?1:1===e?6:2===e?18:30})),date:Math.floor((e_+L-1)*6048e5)}:V.map(e=>0===e?"Beginner":1===e?"Warrior":2===e?"Archer":"Mage")},getEventShopBonus=(e,t)=>{var l,u;return null!=e&&null!==(l=e.accountOptions)&&void 0!==l&&!!l[311]&&-1!==(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[311]).indexOf(m.number2letter[t])}},74805:function(e,t,l){"use strict";l.d(t,{dR:function(){return getObols},eX:function(){return mergeCharacterAndAccountObols},gY:function(){return getObolsBonus}});var m=l(30925),u=l(70473),d=l(88344);let y=["STR","AGI","WIS","LUK","Weapon_Power","Defence","UQ1txt","UQ2txt"],getObols=function(e){var t,l;let u=!(arguments.length>1)||void 0===arguments[1]||arguments[1],d=(0,m.tryToParse)(null==e?void 0:e.ObolEqO1)||(u?null==e?void 0:null===(t=e.ObolEquippedOrder)||void 0===t?void 0:t[1]:null==e?void 0:e.ObolEquippedOrder),y=(0,m.tryToParse)(null==e?void 0:e.ObolEqMAPz1)||(u?null==e?void 0:null===(l=e.ObolEquippedMap)||void 0===l?void 0:l[1]:null==e?void 0:e.ObolEquippedMap);return parseObols(d,y,u)},parseObols=(e,t,l)=>{let m=l?u.obols.family:u.obols.character,d=null==e?void 0:e.map((e,t)=>{var d;return{displayName:null===u.items||void 0===u.items?void 0:null===(d=u.items[e])||void 0===d?void 0:d.displayName,rawName:e,...l?{}:{index:calculateWeirdObolIndex(t)},...(null==m?void 0:m[t])?m[t]:{}}}),y=createObolsWithUpgrades(d,t);y.sort((e,t)=>e.index-t.index);let h=getStatsFromObols(y,l);return{list:y,stats:h}},createObolsWithUpgrades=(e,t)=>e.reduce((e,l,m)=>{let{rawName:y}=l;if("Blank"===y)return[...e,l];let h=(0,d.t8)(null===u.items||void 0===u.items?void 0:u.items[y],null==t?void 0:t[m]);return y?[...e,{..."Blank"===y?{}:{...l,...null===u.items||void 0===u.items?void 0:u.items[y],...h}}]:e},[]),getStatsFromObols=(e,t)=>{let l=t?"familyBonus":"personalBonus";return null==e?void 0:e.reduce((e,t)=>(Object.entries(t).forEach(m=>{var u,d,h,g,E,b,L,k,V,j;let[ee,ea]=m,el=y.includes(ee);if(el){if((null===(u=e[ee])||void 0===u?void 0:u[l])||(null===(d=e[ea])||void 0===d?void 0:d[l])){if("UQ1txt"===ee||"UQ2txt"===ee){if(0===ea)return;let m=null===(h=ee.match(/\d/g))||void 0===h?void 0:h[0];e[ea]={[l]:(null!==(E=null==e?void 0:null===(g=e[ea])||void 0===g?void 0:g[l])&&void 0!==E?E:0)+(null==t?void 0:t["UQ".concat(m,"val")])||0}}else e[ee]={[l]:(null!==(L=null==e?void 0:null===(b=e[ee])||void 0===b?void 0:b[l])&&void 0!==L?L:0)+ea}}else if("UQ1txt"===ee||"UQ2txt"===ee){if(0===ea)return;let m=null===(k=ee.match(/\d/g))||void 0===k?void 0:k[0];e[ea]={[l]:(null!==(j=null==e?void 0:null===(V=e[ea])||void 0===V?void 0:V[l])&&void 0!==j?j:0)+(null==t?void 0:t["UQ".concat(m,"val")])||0}}else e[ee]={[l]:ea}}}),e),{})},mergeCharacterAndAccountObols=(e,t)=>{let l=new Set([...Object.keys(e.stats),...Object.keys(t.stats)]);return Array.from(l).reduce((l,m)=>{var u,d,y,h;let{personalBonus:g}=null!==(y=null===(u=e.stats)||void 0===u?void 0:u[m])&&void 0!==y?y:0,{familyBonus:E}=null!==(h=null===(d=t.stats)||void 0===d?void 0:d[m])&&void 0!==h?h:0;return l[m]={personalBonus:g,familyBonus:E},l},{})},calculateWeirdObolIndex=e=>{switch(e){case 12:return 13;case 13:return 14;case 14:return 12;case 17:return 15;case 15:return 17;case 16:return 19;case 18:return 16;case 19:return 18;default:return e}},getObolsBonus=(e,t)=>{var l;let{personalBonus:m=0,familyBonus:u=0}=(null==e?void 0:null===(l=e.stats)||void 0===l?void 0:l[t])||{};return m||u?(null!=m?m:0)+(null!=u?u:0):0}},34664:function(e,t,l){"use strict";l.d(t,{Aw:function(){return d},Ns:function(){return y},Pe:function(){return u},SS:function(){return m},du:function(){return g},oA:function(){return h}});let m={The_Book_Worm:"1",The_Buff_Guy:"1a",The_Fuzzy_Dice:"1b",Flexo_Bendo:"2",Dwarfo_Beardus:"3",Hipster_Logger:"4",Pie_Seas:"4a",Miniature_Game:"4b",Shoe_Fly:"4c",Pack_Mule:"5",Pirate_Booty:"6",All_Rounder:"7",Muscle_Man:"7a",Fast_Frog:"7b",Smart_Stooge:"7c",Lucky_Larry:"7d",Fatty_Doodoo:"8",Robinhood:"9",Blue_Hedgehog:"9a",Ned_Kelly:"10",The_Fallen_Titan:"10a",Chronus_Cosmos:"CR",Activelius:"11",Gum_Drop:"11a",Mount_Eaterest:"12",Bob_Build_Guy:"13",The_Big_Comatose:"14",Sir_Savvy:"14a",Silly_Snoozer:"15",The_Big_Brain:"15a",Grim_Reaper:"16",The_Forsaken:"16a",The_OG_Skiller:"17",Mr_No_Sleep:"18",All_Rounderi:"1",Centaurii:"2",Murmollio:"3",Strandissi:"4",Agitagi:"4B",Wispommo:"5",Lukiris:"5B",Pokaminni:"6",Gor_Bowzor:"7",Hydron_Cosmos:"8",Trapezoidburg:"8B",Sawsaw_Salala:"9",Preys_Bea:"9B",Cullingo:"10",Gum_Drop_Major:"10B",Grim_Reaper_Major:"11",Sir_Savvy_Major:"12",The_Bulwark:"13",Big_Brain_Major:"14",The_Fiesty:"15",The_Overachiever:"15B",Comatose_Major:"16","S._Snoozer_Major":"17",Breedabilli:"18",Gordonius_Major:"19",Power_Bowower:"19b",Scienscion:"20",Artifosho:"21",Divividov:"22","C._Shanti_Minor":"23",Muscle_Magnus:"S",Cropiovo_Minor:"A1",Fabarmi:"A2","O.G._Signalais":"A3",Lightspeed_Frog:"A4",Beanbie_Major:"A5",Damarian_Major:"A6",Lotto_Larrinald:"A7",Intellostooge:"A8","S._Tealio":"B1","Sneekee_E._X.":"B2",Jadaciussi:"B3",Druipi_Major:"B4",Sumo_Magno:"B5",Killian_Maximus:"B6",Seraph_Cosmos:"SC",Glimmer_of_Beyond:"C1"},u={0:{name:"character",icon:""},1:{name:"mining",icon:"ClassIcons42"},2:{name:"smithing",icon:"ClassIcons43"},3:{name:"chopping",icon:"ClassIcons44"},4:{name:"fishing",icon:"ClassIcons45"},5:{name:"alchemy",icon:"ClassIcons46"},6:{name:"catching",icon:"ClassIcons47"},7:{name:"trapping",icon:"ClassIcons48"},8:{name:"construction",icon:"ClassIcons49"},9:{name:"worship",icon:"ClassIcons50"},10:{name:"cooking",icon:"ClassIcons51"},11:{name:"breeding",icon:"ClassIcons52"},12:{name:"laboratory",icon:"ClassIcons53"},13:{name:"sailing",icon:"ClassIcons54"},14:{name:"divinity",icon:"ClassIcons55"},15:{name:"gaming",icon:"ClassIcons56"},16:{name:"farming",icon:"ClassIcons57"},17:{name:"sneaking",icon:"ClassIcons58"},18:{name:"summoning",icon:"ClassIcons59"}},d={0:{name:"Forest_Villa_Key",rawName:"Key1"},1:{name:"Efaunt's_Tomb_Key",rawName:"Key2"},2:{name:"Chizoar's_Cavern_Key",rawName:"Key3"},3:{name:"Troll's_Enclave_Key",rawName:"Key4"},4:{name:"Kruk's_Volcano_Key",rawName:"Key5"}},y=["EquipmentCape0","EquipmentCape2","EquipmentPendant28","EquipmentRings31","EquipmentRings32","EquipmentRings33","EquipmentHats80","EquipmentHats34"].toSimpleObject(),h=["Quest30","Quest42","Quest49","Quest50","Quest64","EquipmentShoes2","EquipmentPendant18","TestObj4","TestObj5","TestObj8","TestObj14","TestObj15","TestObj16","EquipmentPants11","EquipmentSmithingTabs7","EquipmentSmithingTabs8","Quest8","Quest28","StampB28","StampB29","StampB33","StampB35","CardsC13","CardsC14","CardsC15","CardsD12","CardsD13","Trophy4","Trophy7","StampsA22","StampsA25","DoubleAFKtix","ObolFrag","DeliveryBox","StampC17","FishingRod1","CatchingNet1","FoodHealth8","EquipmentCape1","EquipmentHats72","EquipmentHats55","MaxCapBagFi0","MaxCapBagB0","MaxCapBagTr0","MaxCapBagTr2","MaxCapBagS0","MaxCapBagS2","Spice0","Spice6","Spice9","StampC13","TalentPoint5","DungWeaponSwordE5","DungWeaponBowE5","DungWeaponWandE5","DungWeaponPunchE5","DungWeaponPunchF1","DungWeaponPunchF2","DungWeaponPunchF3","DungWeaponPunchF4","DungWeaponPunchF5","DungWeaponWandF1","DungWeaponWandF2","DungWeaponWandF3","DungWeaponWandF4","DungWeaponWandF5","DungWeaponBowF1","DungWeaponBowF2","DungWeaponBowF3","DungWeaponBowF4","DungWeaponBowF5","DungWeaponSwordF1","DungWeaponSwordF2","DungWeaponSwordF3","DungWeaponSwordF4","DungWeaponSwordF5","DungEquipmentHats4","DungEquipmentShoes4","DungEquipmentShirt4","DungEquipmentRings4","DungEquipmentPendant4","DungEquipmentPants4"].toSimpleObject(),g={mining:[6,7,9,10,11].toSimpleObject(),fishing:[54,55,61].toSimpleObject()}},4056:function(e,t,l){"use strict";l.d(t,{NU:function(){return getPostOfficeShipments},dQ:function(){return getPlayerPostOffice},wO:function(){return getPostOfficeBoxLevel},xV:function(){return getPostOfficeBonus}});var m=l(30925),u=l(70473);let getPlayerPostOffice=(e,t)=>{var l,m,d;let y=0,h=null===u.postOffice||void 0===u.postOffice?void 0:u.postOffice.map((t,l)=>{var m,u;let d=null!==(u=null==e?void 0:null===(m=e[l])||void 0===m?void 0:m[0])&&void 0!==u?u:null==e?void 0:e[l];return y+=d,{...t,level:d||0}}),g=(null==t?void 0:null===(l=t.currencies)||void 0===l?void 0:l.DeliveryBoxComplete)+(null==t?void 0:null===(m=t.currencies)||void 0===m?void 0:m.DeliveryBoxStreak)+(null==t?void 0:null===(d=t.currencies)||void 0===d?void 0:d.DeliveryBoxMisc);return{boxes:h,totalOrders:g,totalPointsSpent:y,unspentPoints:g-y||0}},getPostOfficeBonus=(e,t,l)=>{var u,d,y,h,g;let E=null==e?void 0:null===(u=e.boxes)||void 0===u?void 0:u.find(e=>{let{name:l}=e;return l===t});if(!E)return 0;let b=Math.round(0===l?null==E?void 0:E.level:1===l?(null==E?void 0:E.level)-(null==E?void 0:null===(d=E.upgradeLevels)||void 0===d?void 0:d[0]):(null==E?void 0:E.level)-(null==E?void 0:null===(y=E.upgradeLevels)||void 0===y?void 0:y[1])),L=null==E?void 0:null===(h=E.upgrades)||void 0===h?void 0:h[l];return null!==(g=(0,m.growth)(null==L?void 0:L.func,b>0?b:0,null==L?void 0:L.x1,null==L?void 0:L.x2,!1))&&void 0!==g?g:0},getPostOfficeBoxLevel=(e,t)=>{var l;let m=null==e?void 0:null===(l=e.boxes)||void 0===l?void 0:l.find(e=>{let{name:l}=e;return l===t});return m?null==m?void 0:m.level:0},getPostOfficeShipments=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.PostOfficeInfo0)||(null==e?void 0:e.PostOfficeInfo0),l=(0,m.createArrayOfArrays)(t),u=(0,m.tryToParse)(null==e?void 0:e.PostOfficeInfo1)||(null==e?void 0:e.PostOfficeInfo1),d=(0,m.createArrayOfArrays)(u);return null==d?void 0:d.map((e,t)=>{var m;let[u,d,y]=e;return{index:t,totalShipments:u,streak:d,completedAnOrder:null==l?void 0:null===(m=l[t])||void 0===m?void 0:m[2],shield:y}})}},15815:function(e,t,l){"use strict";l.d(t,{Y0:function(){return getPrayerBonusAndCurse},hn:function(){return getPrayers},il:function(){return calcPrayerCost},vR:function(){return calcTotalPrayersLevel}});var m=l(30925),u=l(88344),d=l(70473),y=l(20385);let getPrayers=(e,t)=>{let l=(null==e?void 0:e.PrayersUnlocked)||(0,m.tryToParse)(null==e?void 0:e.PrayOwned);return parsePrayers(l,t)},parsePrayers=(e,t)=>null==e?void 0:e.reduce((e,l,m)=>{var y,h;let g=null===d.prayers||void 0===d.prayers?void 0:null===(y=d.prayers[m])||void 0===y?void 0:y.soul,E=(0,u.ju)(t,null===d.items||void 0===d.items?void 0:null===(h=d.items[g])||void 0===h?void 0:h.displayName,!0);return m<19?[...e,{...null===d.prayers||void 0===d.prayers?void 0:d.prayers[m],prayerIndex:m,totalAmount:E,level:l}]:e},[]),getPrayerBonusAndCurse=(e,t,l)=>{let m;let u=(0,y.Ob)(l,"No_more_Praying"),d=u&&(!e||(null==e?void 0:e.length)===0);if(d){var h;m=null==l?void 0:null===(h=l.prayers)||void 0===h?void 0:h.find(e=>{let{name:l}=e;return l===t})}else m=null==e?void 0:e.find(e=>{let{name:l}=e;return l===t});if(!m)return{bonus:0,curse:0};let g=m.x1+m.x1*(m.level-1)/10,E=m.x2+m.x2*(m.level-1)/10;return{bonus:Math.round(d?g/5:g),curse:Math.round(d?0:E)}},calcPrayerCost=e=>{let{level:t,costMulti:l,prayerIndex:m}=e;return t<6?Math.round(l*(1+(4+m/25)*t)):Math.round(Math.min(2e9,l*(1+(1+m/20)*t)*Math.pow(9===m?1.3:1.12,t-5)))},calcTotalPrayersLevel=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},73592:function(e,t,l){"use strict";l.d(t,{J:function(){return calcTotals},h:function(){return getPrinter}});var m=l(30925),u=l(19834),d=l(16727),y=l(30796),h=l(10924),g=l(95331),E=l(8616),b=l(48832);let getPrinter=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Print)||(null==e?void 0:e.Printer),d=(0,m.tryToParse)(null==e?void 0:e.PrinterXtra)||(null==e?void 0:e.PrinterXtra);return parsePrinter(u,d,t,l)},parsePrinter=(e,t,l,g)=>{var L,k,V,j,ee,ea,el,eo;let e_=(0,u.s8)(g,l,3),ec=(0,d.YS)(null==g?void 0:null===(L=g.sailing)||void 0===L?void 0:L.artifacts,"Gold_Relic"),em=(null==ec?void 0:ec.acquired)===4?null==ec?void 0:ec.sovereignMultiplier:(null==ec?void 0:ec.acquired)===3?null==ec?void 0:ec.eldritchMultiplier:(null==ec?void 0:ec.acquired)===2?null==ec?void 0:ec.ancientMultiplier:0,ed=null==g?void 0:null===(j=g.lab)||void 0===j?void 0:null===(V=j.labBonuses)||void 0===V?void 0:null===(k=V.find(e=>"Wired_In"===e.name))||void 0===k?void 0:k.active,ep=null==g?void 0:null===(ee=g.lab)||void 0===ee?void 0:ee.connectedPlayers,ey=null==g?void 0:null===(ea=g.accountOptions)||void 0===ea?void 0:ea[125],eh=null==g?void 0:null===(el=g.accountOptions)||void 0===el?void 0:el[138],eT=null==l?void 0:l.filter(e=>(null==e?void 0:e.class)==="Divine_Knight"),ef=null==eT?void 0:eT.reduce((e,t)=>{let{talents:l,addedLevels:m}=t,u=(0,y._X)(l,3,"KING_OF_THE_REMEMBERED",!1,!1,m,!1);return u>e?u:e},0),ev=(null==g?void 0:null===(eo=g.rift)||void 0===eo?void 0:eo.currentRift)>15,eg=ev?(0,h.fi)(null==g?void 0:g.totalSkillsLevels,null==g?void 0:g.rift,3):0,eS=null==e?void 0:e.slice(5,null==e?void 0:e.length);return l.map((e,l)=>{let u=null==eS?void 0:eS.slice(14*l,14*l+14);if(t){let e=null==t?void 0:t.slice(10*l,10*l+10);u.splice(-4,0,e),u=u.flat()}return null==u?void 0:u.reduce((e,t,d,y)=>{if(d%2==0){let t=y.slice(d,d+2).map((e,t)=>e),h=t[1],L=null==ep?void 0:ep.find(e=>{let{playerId:t}=e;return t===l}),k=(0,E.vq)(g,"Lolly_Flower"),V=1+(0,b.F)(g,11)/100,j=(1+ey*(2+em)/100)*(1+ef*(0,m.lavaLog)(eh)/100)*(1+eg/100)*(1+k/100)*V,ee=ed&&L?e_.includes(l)?6*j:2*j:e_.includes(l)?3*j:j;h*=ee;let ea=[{name:"Lab",value:L&&ed?2:0},{name:"Harriep God",value:e_.includes(l)?3:0},{name:"Skill Mastery",value:1+eg/100},{name:"Divine Knight",value:(0,m.notateNumber)(1+ef*(0,m.lavaLog)(eh)/100,"MultiplierInfo")},{name:"Gold Relic",value:1+ey*(2+em)/100},{name:"Charm",value:1+k/100},{name:"Vote",value:V}];return[...e,{item:t[0],value:t[1],active:d>=u.length-4,boostedValue:h,breakdown:ea}]}return e},[])})},calcTotals=(e,t)=>{var l,m;let{printer:u,storage:d}=e||{},y=(0,g.Xp)(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[133]),h=null==u?void 0:u.reduce((e,t)=>(t.forEach(t=>{let{boostedValue:l,item:m,active:u}=t;if("Blank"!==m&&u){var h,g;if(null==e?void 0:e[m])e[m]={...e[m],boostedValue:l+(null===(h=e[m])||void 0===h?void 0:h.boostedValue)};else{let t=null===(g=d.find(e=>{let{rawName:t}=e;return t===m}))||void 0===g?void 0:g.amount;e[m]={boostedValue:l,atomable:t>=y-.01*y,storageItem:t}}}}),e),{});h=calcAtoms(h,y,t);let E=null===(m=Object.entries(h))||void 0===m?void 0:m.reduce((e,t)=>{var l;let[,m]=t;return e+(null!==(l=null==m?void 0:m.atoms)&&void 0!==l?l:0)},0);return{...h,atom:{boostedValue:E,atoms:E}}},calcAtoms=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,m=arguments.length>2?arguments[2]:void 0;return null===(e=Object.entries(t))||void 0===e?void 0:e.reduce((e,t)=>{let[u,d]=t,{boostedValue:y,atomable:h,storageItem:g}=d,E=y,b;if(null==m?void 0:m.checked)b=h;else{let e=y>=l&&!h,t=y>l-g&&!h;E=e?y-l:t?y-(l-g):y,b=e||t||h}return e[u]={...d,...b?{atoms:E/1e7}:{}},e},{})}},19225:function(e,t,l){"use strict";l.d(t,{GU:function(){return getPlayerQuests},jZ:function(){return isWorldFinished},zz:function(){return getQuests}});var m=l(70473),u=l(30925);let isWorldFinished=(e,t)=>{let l={1:"Builder_Bird",2:"Constructor_Crow",3:"Carpenter_Cardinal",4:"Muhmuguh",5:"Lafu_Shi"};return null==e?void 0:e.some(e=>{let{npcDialog:m}=e;return null==m?void 0:m[null==l?void 0:l[t]]})},getQuests=e=>{let t=Object.keys(m.quests),l=null==t?void 0:t.reduce((t,l)=>{var y,h,g,E,b,L,k,V,j;let ee=(0,u.cloneObject)(m.quests[l]),ea=null==d?void 0:null===(y=d[l])||void 0===y?void 0:y.world,el=null==d?void 0:null===(h=d[l])||void 0===h?void 0:h.index;if(!ea)return t;for(let t=0;t<(null==e?void 0:e.length);t++){let m=(0,u.cloneObject)(null==e?void 0:null===(E=e[t])||void 0===E?void 0:null===(g=E.quests)||void 0===g?void 0:g[l])||{},d=Object.keys(m),y=!1;for(let e=0;e<(null==d?void 0:d.length);e++){let l=d[e],u=m[l];ee[l]&&((null==ee?void 0:ee[l-1])&&(!y&&(0===u||-1===u)||1===u)&&(ee[l-1].progress=null===(L=ee[l-1])||void 0===L?void 0:null===(b=L.progress)||void 0===b?void 0:b.filter(e=>{let{charIndex:l}=e;return l!==t})),1===u?(ee[l].completed=[...(null===(k=ee[l])||void 0===k?void 0:k.completed)||[],{charIndex:t,status:u}],ee[l].progress=[...(null===(V=ee[l])||void 0===V?void 0:V.progress)||[],{charIndex:t,status:u}]):y||0!==u&&-1!==u||(ee[l].progress=[...(null===(j=ee[l])||void 0===j?void 0:j.progress)||[],{charIndex:t,status:u}],y=!0))}}return{...t,[ea]:[...(null==t?void 0:t[ea])||[],{name:l,index:el,npcQuests:Object.values(ee)}]}},{});for(let e in l){let t=l[e];null==t||t.sort((e,t)=>(null==e?void 0:e.index)-(null==t?void 0:t.index))}return l},getPlayerQuests=e=>Object.keys(e).reduce((t,l)=>{let[m,u]=l.split(/([0-9]+)/);return l.includes("Fishpaste")&&(m="Fishpaste97"),{...t,[m]:{...(null==t?void 0:t[m])||{},[u]:e[l]}}},{}),d={Scripticus:{world:"Blunder_Hills",index:0},Glumlee:{world:"Blunder_Hills",index:1},Krunk:{world:"Blunder_Hills",index:2},Mutton:{world:"Blunder_Hills",index:3},Woodsman:{world:"Blunder_Hills",index:4},Hamish:{world:"Blunder_Hills",index:5},Toadstall:{world:"Blunder_Hills",index:5},Picnic_Stowaway:{world:"Blunder_Hills",index:6},Promotheus:{world:"Blunder_Hills",index:6},Typhoon:{world:"Blunder_Hills",index:7},Sprout:{world:"Blunder_Hills",index:8},Dazey:{world:"Blunder_Hills",index:9},Telescope:{world:"Blunder_Hills",index:10},Stiltzcho:{world:"Blunder_Hills",index:11},Funguy:{world:"Blunder_Hills",index:12},Tiki_Chief:{world:"Blunder_Hills",index:13},Dog_Bone:{world:"Blunder_Hills",index:14},Papua_Piggea:{world:"Blunder_Hills",index:15},TP_Pete:{world:"Blunder_Hills",index:16},Meel:{world:"Blunder_Hills",index:17},Town_Marble:{world:""},Mr_Pigibank:{world:""},Secretkeeper:{world:""},Bushlyte:{world:""},Rocklyte:{world:""},Cowbo_Jones:{world:"Yum-Yum_Desert",index:0},Fishpaste97:{world:"Yum-Yum_Desert",index:1},Scubidew:{world:"Yum-Yum_Desert",index:2},Whattso:{world:"Yum-Yum_Desert",index:3},Bandit_Bob:{world:"Yum-Yum_Desert",index:4},Carpetiem:{world:"Yum-Yum_Desert",index:5},Centurion:{world:"Yum-Yum_Desert",index:6},Goldric:{world:"Yum-Yum_Desert",index:7},Snake_Jar:{world:"Yum-Yum_Desert",index:8},Speccius:{world:"Yum-Yum_Desert",index:9},XxX_Cattleprod_XxX:{world:"Yum-Yum_Desert",index:10},Loominadi:{world:"Yum-Yum_Desert",index:11},Wellington:{world:"Yum-Yum_Desert",index:12},Djonnut:{world:"Yum-Yum_Desert",index:13},Walupiggy:{world:"Yum-Yum_Desert",index:14},Gangster_Gus:{world:"Yum-Yum_Desert",index:15},Omar_Da_Ogar:{world:"Yum-Yum_Desert",index:16},Builder_Bird:{world:""},Postboy_Pablob:{world:""},Desert_Davey:{world:""},Giftmas_Blobulyte:{world:""},Loveulyte:{world:""},Constructor_Crow:{world:""},Iceland_Irwin:{world:""},Egggulyte:{world:""},Hoggindaz:{world:"Frostbite_Tundra",index:0},Worldo:{world:"Frostbite_Tundra",index:0},Lord_of_the_Hunt:{world:"Frostbite_Tundra",index:1},Lonely_Hunter:{world:"Frostbite_Tundra",index:2},Snouts:{world:"Frostbite_Tundra",index:3},Shuvelle:{world:"Frostbite_Tundra",index:4},Yondergreen:{world:"Frostbite_Tundra",index:5},Crystalswine:{world:"Frostbite_Tundra",index:6},Bill_Brr:{world:"Frostbite_Tundra",index:7},Bellows:{world:"Frostbite_Tundra",index:8},Cactolyte:{world:""},Coastiolyte:{world:""},Gobo:{world:"Hyperion_Nebula",index:0},Oinkin:{world:"Hyperion_Nebula",index:1},Eliteus:{world:"Hyperion_Nebula",index:2},Capital_P:{world:"Hyperion_Nebula",index:3},Blobbo:{world:"Hyperion_Nebula",index:4},Royal_Worm:{world:"Hyperion_Nebula",index:5},Monolith:{world:"Hyperion_Nebula",index:6},Rift_Ripper:{world:"Hyperion_Nebula",index:7},Muhmuguh:{world:"Smolderin'_Plateau",index:1},Slargon:{world:"Smolderin'_Plateau",index:2},Pirate_Porkchop:{world:"Smolderin'_Plateau",index:3},Poigu:{world:"Smolderin'_Plateau",index:4},Tired_Mole:{world:"Smolderin'_Plateau",index:5},Lafu_Shi:{world:"Spirited_Valley",index:1},Hoov:{world:"Spirited_Valley",index:2},Woodlin_Elder:{world:"Spirited_Valley",index:3},Sussy_Gene:{world:"Spirited_Valley",index:4}}},72664:function(e,t,l){"use strict";l.d(t,{B4:function(){return hasMissingMats},Ew:function(){return calcResourceToRankUp},Xf:function(){return calcCost},_G:function(){return calcTimeToRankUp},vX:function(){return getRefineryCycles},wt:function(){return getRefinery}});var m=l(30925),u=l(70473),d=l(88344),y=l(4056),h=l(88054),g=l(1972),E=l(5432),b=l(67896),L=l(47212),k=l(71345),V=l(10924),j=l(30796),ee=l(79603),ea=l(48832);let getRefinery=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Refinery)||(null==e?void 0:e.Refinery);return parseRefinery(u,t,l)},parseRefinery=(e,t,l)=>{var m,y,h,g,E;let b=null==e?void 0:e[1],L=null==e?void 0:e[2],k=null==b?void 0:b.reduce((e,t,l)=>{var m;return"Blank"!==t?[...e,{rawName:t,name:null===(m=u.items[t])||void 0===m?void 0:m.displayName,amount:null==L?void 0:L[l],owner:"refinery"}]:e},[]),V=[...t,...k||[]],j=null==l?void 0:null===(y=l[2])||void 0===y?void 0:null===(m=y[2])||void 0===m?void 0:m[6],ee=null==e?void 0:e.slice(3,3+(null==e?void 0:null===(h=e[0])||void 0===h?void 0:h[0])),ea=null==ee?void 0:ee.reduce((e,t,l)=>{let m="Refinery".concat(l+1),[y,h,,g,E]=t,{saltName:b,cost:L}=(null===u.refinery||void 0===u.refinery?void 0:u.refinery[m])||{},k=null==L?void 0:L.map(e=>{let t=(0,d.ju)(V,null==e?void 0:e.name,!0);return{...e,totalAmount:t}});return[...e,{saltName:b,cost:k,rawName:m,powerCap:getPowerCap(h),refined:y,rank:h,active:g,autoRefinePercentage:E}]},[]);return{salts:ea,refinerySaltTaskLevel:j,timePastCombustion:null==e?void 0:null===(g=e[0])||void 0===g?void 0:g[1],timePastSynthesis:null==e?void 0:null===(E=e[0])||void 0===E?void 0:E[2],totalLevels:null==ea?void 0:ea.reduce((e,t)=>{let{rank:l}=t;return e+l},0),refineryStorage:k}},getPowerCap=e=>{var t;let l=null===(t=u.randomList[18])||void 0===t?void 0:t.split(" ");return parseFloat(Math.max(null==l?void 0:l[Math.min(e,(null==l?void 0:l.length)-2)],25))},hasMissingMats=(e,t,l,m)=>null==l?void 0:l.filter(l=>{var u;let{rawName:d,quantity:y,totalAmount:h}=l;return h{var l,m,d,y,el,eo,e_,ec;let{alchemy:em,saltLick:ed,charactersLevels:ep,breeding:ey,rift:eh,towers:eT}=e,ef=null==em?void 0:em.vials,ev=(0,h.YG)(ef,"Refinery_Cycle_Speed"),eg=(null==ed?void 0:ed[2])?(null==ed?void 0:null===(l=ed[2])||void 0===l?void 0:l.baseBonus)*(null==ed?void 0:null===(m=ed[2])||void 0===m?void 0:m.level):0,eS=(null==em?void 0:null===(el=em.p2w)||void 0===el?void 0:null===(y=el.sigils)||void 0===y?void 0:null===(d=y.find(e=>(null==e?void 0:e.name)==="PIPE_GAUGE"))||void 0===d?void 0:d.bonus)||0,eN=(0,g.mV)(e,"Faster_refinery_cycles"),eC=(0,E.du)(null==ey?void 0:ey.pets,"Faster_Refinery_Speed"),eR=0,eI=(0,b.RB)(eh,"Construct_Mastery");eI&&(eR=(null==eT?void 0:eT.totalLevels)>=(null===L.q5||void 0===L.q5?void 0:L.q5[0])?Math.floor((null==eT?void 0:eT.totalLevels)/10):0);let ew=null!==(ec=null===(eo=(0,k.d)(null==e?void 0:null===(e_=e.arcade)||void 0===e_?void 0:e_.shop,"Refinery_Speed"))||void 0===eo?void 0:eo.bonus)&&void 0!==ec?ec:0,eE=(0,V.Hx)(ep,"Divine_Knight"),eF=(0,j.A5)(t,3,"Divine_Knight","THE_FAMILY_GUY"),eP=(0,ee.D)(u.classFamilyBonuses,"Refinery_Speed",eE),eD=eP*(eF>0?1+eF/100:1)||0,eA=(0,ea.F)(e,33),eL=[{name:"Vials",value:ev/100},{name:"Salt lick",value:eg/100},{name:"Family",value:eD/100},{name:"Sigils",value:eS/100},{name:"Stamps",value:eN/100},{name:"Shinies",value:eC/100},{name:"Const mastery",value:eR/100},{name:"Arcade",value:ew/100},{name:"Vote",value:eA/100}];return{bonusBreakdown:eL,bonus:ev+eg+eD+eS+eN+eC+eR+ew+eA}},getRefineryCycles=(e,t,l)=>{var u,d,h,g,E,b,L;let{bonusBreakdown:k,bonus:V}=getRefineryCycleBonuses(e,t,l),j=(null==e?void 0:null===(h=e.lab)||void 0===h?void 0:null===(d=h.labBonuses)||void 0===d?void 0:null===(u=d.find(e=>"Gilded_Cyclical_Tubing"===e.name))||void 0===u?void 0:u.active)?3:1,ee=null==t?void 0:t.filter(e=>(null==e?void 0:e.class)==="Squire"||(null==e?void 0:e.class)==="Divine_Knight"),ea=ee.reduce((e,t)=>{var l;let{name:u,talents:d,cooldowns:h,postOffice:g,afkTime:E}=t,b=(0,y.xV)(g,"Magician_Starterpack",2),L=null==d?void 0:null===(l=d[2])||void 0===l?void 0:l.orderedTalents.find(e=>(null==e?void 0:e.name)==="REFINERY_THROTTLE"),k=0;(null==L?void 0:L.maxLevel)>0&&(k=(0,m.growth)(null==L?void 0:L.funcX,null==L?void 0:L.maxLevel,null==L?void 0:L.x1,null==L?void 0:L.x2)||0);let V=(new Date().getTime()-E)/1e3,j=(1-Math.max(0,b)/100)*(null==h?void 0:h[130]),ee=j-V;return{squiresCycles:(null==e?void 0:e.squiresCycles)+k,squiresCooldowns:[...null==e?void 0:e.squiresCooldowns,{name:u,cooldown:ee<0?ee:new Date().getTime()+1e3*ee}]}},{squiresCycles:0,squiresCooldowns:[]}),el=(new Date().getTime()-(null!=l?l:0))/1e3,eo=[...k,{name:"Lab",value:j}],e_={name:"Combustion",time:Math.ceil(900/((1+V/100)*j))-(null==e?void 0:null===(g=e.refinery)||void 0===g?void 0:g.timePastCombustion)%1,timePast:(null==e?void 0:null===(E=e.refinery)||void 0===E?void 0:E.timePastCombustion)+el,breakdown:[{name:"Base",value:900},...eo]},ec={name:"Synthesis",time:Math.ceil(3600/((1+V/100)*j))-(null==e?void 0:null===(b=e.refinery)||void 0===b?void 0:b.timePastSynthesis)%1,timePast:(null==e?void 0:null===(L=e.refinery)||void 0===L?void 0:L.timePastSynthesis)+el,breakdown:[{name:"Base",value:3600},...eo]};return{...ea,cycles:[e_,ec]}},calcTimeToRankUp=(e,t,l,m,u,d,y,h,g)=>{var E,b,L,k;let{bonus:V}=getRefineryCycleBonuses(e,t,l),j=(null==e?void 0:null===(L=e.lab)||void 0===L?void 0:null===(b=L.labBonuses)||void 0===b?void 0:null===(E=b.find(e=>"Gilded_Cyclical_Tubing"===e.name))||void 0===E?void 0:E.active)?3:1,ee=Math.floor(Math.pow(d,1.3)),ea=86400/((g<=2?900:3600)/(1+V/100))+(u&&null!==(k=null==m?void 0:m.squiresCycles)&&void 0!==k?k:0);return{timeLeft:new Date().getTime()+36e5*((y-h)/ee/ea*24/j),totalTime:new Date().getTime()+36e5*((y-0)/ee/ea*24/j)}},calcCost=(e,t,l,m,u)=>{let d=null==m?void 0:m.includes("Refinery");return Math.floor(Math.pow(t,d&&u<=(null==e?void 0:e.refinerySaltTaskLevel)?1.3:1.5))*l},calcResourceToRankUp=(e,t,l,m)=>(l-t)/Math.floor(Math.pow(e,1.3))*m},16727:function(e,t,l){"use strict";l.d(t,{JR:function(){return calcArtifactsAcquired},NW:function(){return calcTotalBoatLevels},YS:function(){return isArtifactAcquired},x0:function(){return getSailing},yN:function(){return getArtifacts}});var m=l(30925),u=l(70473),d=l(10924),y=l(30796),h=l(88054),g=l(54685),E=l(1972),b=l(89260),L=l(19834),k=l(74861),V=l(20385),j=l(15893),ee=l(5432),ea=l(79603),el=l(74044),eo=l(9339);let getSailing=(e,t,l,u,d,y)=>{let h=(0,m.tryToParse)(null==e?void 0:e.Sailing)||(null==e?void 0:e.Sailing),g=(0,m.tryToParse)(null==e?void 0:e.Captains)||(null==e?void 0:e.Captains),E=(0,m.tryToParse)(null==e?void 0:e.Boats)||(null==e?void 0:e.Boats),b=(0,m.tryToParse)(null==e?void 0:e.SailChests)||(null==e?void 0:e.SailChests);return h&&g&&E&&b?parseSailing(t,h,g,E,b,l,u,d,y):null},parseSailing=(e,t,l,m,u,d,y,h,g)=>{var E,b,L,k,V,j,ee;let ea=null==t?void 0:t[1],el=null!==(ee=null===(E=isArtifactAcquired(e,"Dreamcatcher"))||void 0===E?void 0:E.bonus)&&void 0!==ee?ee:0,e_=null==y?void 0:null===(b=y.gemShopPurchases)||void 0===b?void 0:b.find((e,t)=>129===t),ec=(0,eo.k6)(null==y?void 0:y.achievements,287)+(0,eo.k6)(null==y?void 0:y.achievements,290),em=Math.min(Math.round(5+e_+(Math.min(4,el)+(null==y?void 0:null===(V=y.tasks)||void 0===V?void 0:null===(k=V[2])||void 0===k?void 0:null===(L=k[4])||void 0===L?void 0:L[2])+ec)),30),ed=getChests(u,e,h),ep=getRareTreasureChance(),ey=getLootPile(ea),eh=getCaptainsAndBoats(t,l,m,y,d,g,e,ey),eT=null==eh?void 0:null===(j=eh.boats)||void 0===j?void 0:j.map(e=>{let{maxTime:t}=e;return t}),ef=calculateMaxCapacityTime(eT,em-((null==ed?void 0:ed.length)||0)),ev=getFutureTrades(eh,null==t?void 0:t[0],ey,e,y);return{maxChests:em,artifacts:e,lootPile:ey,chests:ed,rareTreasureChance:ep,trades:ev,timeToFullChests:ef,...eh}},calculateMaxCapacityTime=(e,t)=>{let l=t/Math.min(...e),m=0,u=0;for(let d of e)if(m+=d,(u+=l*(m-d))>=t)break;return m},getFutureTrades=function(){var e,t,l,m;let{boats:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0,y=arguments.length>2?arguments[2]:void 0,h=arguments.length>3?arguments[3]:void 0,g=arguments.length>4?arguments[4]:void 0,E=null!==(m=null==u?void 0:null===(t=u[0])||void 0===t?void 0:null===(e=t.loot)||void 0===e?void 0:e.value)&&void 0!==m?m:0,b=isArtifactAcquired(h,"Emerald_Relic"),L=null==d?void 0:d.reduce((e,t)=>-1===t?e+1:e,0),k=Math.floor((null==g?void 0:null===(l=g.timeAway)||void 0===l?void 0:l.GlobalTime)/21600),V=[];for(let e=0;e<40;e++){let t=new el.Z(k+e),l=t.rand(),m=Math.min(30,Math.ceil(2*l*L)),u=getLootItemCost(null==y?void 0:y[m],E),d=new Date(Math.floor((k+e)*216e5));V.push({...null==y?void 0:y[m],date:d,moneyValue:getMoneyValue(u,m,b),lootItemCost:u})}return V},getLootItemCost=(e,t)=>Math.max(.2*(null==e?void 0:e.amount),t),getMoneyValue=(e,t,l)=>{var m;let u=null!==(m=null==l?void 0:l.acquired)&&void 0!==m?m:0;return e*(1.5*Math.pow(1.6,Math.floor(t/2))*(1+((t+1)%2*150+(30*Math.floor(u/2)+30*Math.floor(u/3)))/100))},getArtifacts=(e,t,l)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Sailing)||(null==e?void 0:e.Sailing),y=null==d?void 0:d[3],h=null==d?void 0:d[1];return null===u.artifacts||void 0===u.artifacts?void 0:u.artifacts.map((e,m)=>getArtifact(e,null==y?void 0:y[m],h,m,t,l))},getChests=(e,t,l)=>null==e?void 0:e.map(e=>({...getArtifactChance(e,t,l),rawName:"SailChest".concat(null==e?void 0:e[3])})),getArtifactChance=(e,t,l)=>{let[m,d,y]=e,h=null===u.islands||void 0===u.islands?void 0:u.islands[d],g=0;for(let e=0;e{let{acquired:t}=e;return t<3});return{artifactChance:L>.01?Math.round(100*L)/100:.01,ancientChance:(y/getAncientChances(d,l)).toFixed(5),eldritchChance:(y/getEldritchChances(d,l)).toFixed(5),sovereignChance:(y/getSovereignChances(d,l)).toFixed(5),island:h,islandIndex:d,treasure:m,possibleArtifacts:k}},getAncientChances=(e,t)=>3>e?850:(1e3+(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100),getEldritchChances=(e,t)=>3>e?900+250*e:(1e3+(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100)*4,getSovereignChances=(e,t)=>5>e?9e3+2e3*e:(1e3+1.25*(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100)*180,isArtifactAcquired=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return null==e?void 0:e.find(e=>{let{name:l,acquired:m}=e;return l===t&&m})},getRareTreasureChance=()=>.05,getCaptainsAndBoats=(e,t,l,m,h,g,E,b)=>{var L,k,V,j,el;let eo=(null==e?void 0:null===(L=e[2])||void 0===L?void 0:L[0])||0,e_=(null==e?void 0:null===(k=e[2])||void 0===k?void 0:k[1])||0,ec=null!==(j=(0,d.Hx)(g,"Siege_Breaker"))&&void 0!==j?j:0,em=null!==(el=(0,y.A5)(h,3,"Siege_Breaker","THE_FAMILY_GUY"))&&void 0!==el?el:0,ed=(0,ea.D)(u.classFamilyBonuses,"FASTER_MINIMUM_BOAT_TRAVEL_TIME",ec),ep=(0,ee.du)(null==m?void 0:null===(V=m.breeding)||void 0===V?void 0:V.pets,"Lower_Minimum_Travel_Time_for_Sailing"),ey=Math.round(120/(1+(ed*(1+em/100)+ep)/100)),eh=getBaseSpeed(m,h,E),eT=null==t?void 0:t.slice(30,34);eT=eT.map((e,t)=>getCaptain(e,t,!0));let ef=null==t?void 0:t.slice(0,eo+1),ev=null==ef?void 0:ef.map((e,t)=>getCaptain(e,t)),eg=null==l?void 0:l.slice(0,e_+1),eS=null==eg?void 0:eg.map((e,t)=>getBoat(e,t,b,ev,E,h,m,eh,ey)),eN=null==eS?void 0:eS.reduce((e,t,l)=>{let{captainMappedIndex:m}=t;return{...e,[m]:l}},{});return{captains:ev,boats:eS,shopCaptains:eT,captainsOnBoats:eN,minimumTravelTime:ey,minimumTravelTimeBreakdown:[{name:"Base",value:120},{name:"Family Bonus",value:ed},{name:"The Family Guy",value:em},{name:"Shiny Bonus",value:ep}]}},getBoat=function(e,t,l,m,d,y,h,g){var E,b;let L=arguments.length>8&&void 0!==arguments[8]?arguments[8]:120,[k,V,,j,ee,ea]=e,el=null==m?void 0:m[k],eo=null===u.islands||void 0===u.islands?void 0:u.islands[V],e_={rawName:"Boat_Frame_".concat(getBoatFrame(j+ea)),level:j+ea,artifactChance:getBoatArtifactChance(d,m[k],h),captainIndex:k,captainMappedIndex:null==el?void 0:el.captainIndex,lootLevel:j,speedLevel:ea,boatIndex:t,island:eo,islandIndex:V,distanceTraveled:ee};return e_.resources=getBoatResources(e_,l),e_.breakpointResources=getBoatBreakdownResources(e_,l),e_.loot=getBoatLootValue(y,h,d,e_,el),e_.speed=getBoatSpeedValue(el,eo,ea,g,L),e_.maxTime=(null==eo?void 0:eo.distance)/(null===(E=e_.speed)||void 0===E?void 0:E.value)*36e5,e_.timeLeft=((null==eo?void 0:eo.distance)-ee)/(null===(b=e_.speed)||void 0===b?void 0:b.value)*36e5,e_},getBaseSpeed=(e,t,l)=>{var m,u,y,ee,ea,el,eo,e_,ec,em,ed,ep;let ey=null==t?void 0:t.find(e=>{let{linkedDeity:t}=e;return 6===t}),eh=(0,L.kI)(ey,e,6,t),eT=(0,g.OK)(null==e?void 0:e.cards,"Sailing_Speed_(Passive)"),ef=(0,E.mV)(e,"Sailing_Speed"),ev=(0,j.c9)(null==e?void 0:e.lab.labBonuses,8),eg=(0,j.pc)(null==e?void 0:null===(m=e.lab)||void 0===m?void 0:m.jewels,16,ev),eS=(0,b.F4)(e,null,"Sailing",eg),eN=(0,h.om)(null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:u.bubbles,"kazam","BOATY_BUBBLE",!1),eC=(0,L.HQ)(null==e?void 0:null===(y=e.divinity)||void 0===y?void 0:y.deities,"Goharut"),eR=(0,L.HQ)(null==e?void 0:null===(ee=e.divinity)||void 0===ee?void 0:ee.deities,"Bagur"),eI=(0,L.HQ)(null==e?void 0:null===(ea=e.divinity)||void 0===ea?void 0:ea.deities,"Purrmep"),ew=null!==(ed=null===(el=isArtifactAcquired(l,"10_AD_Tablet"))||void 0===el?void 0:el.bonus)&&void 0!==ed?ed:0,eE=(0,h.iu)(null==e?void 0:null===(eo=e.alchemy)||void 0===eo?void 0:eo.vials,"SailSpd"),eF=null!==(ep=null===(e_=(0,V.Ob)(e,"MSA_Sailing"))||void 0===e_?void 0:e_.bonus)&&void 0!==ep?ep:0,eP=(0,d.pA)(null==e?void 0:e.rift,null==e?void 0:null===(em=e.totalSkillsLevels)||void 0===em?void 0:null===(ec=em.sailing)||void 0===ec?void 0:ec.rank,1),eD=(0,k.U6)(null==e?void 0:e.statues,"StatueG25");return(1+(eh+eT+eN)/125)*(1+eC/100)*(1+eI/100)*(1+(eR+ew+ef+eD+eS+eE+(17*eP+eF))/125)},getCaptain=(e,t,l)=>{var d,y,h,g;let E=String.fromCharCode(65+t),[b,L,k,V,j,ee,ea]=e,el={captainIndex:E,captainType:b,level:V,firstBonusIndex:L,secondBonusIndex:k,firstBonusDescription:null===u.captainsBonuses||void 0===u.captainsBonuses?void 0:null===(d=u.captainsBonuses[L])||void 0===d?void 0:d.bonus,secondBonusDescription:null===u.captainsBonuses||void 0===u.captainsBonuses?void 0:null===(y=u.captainsBonuses[k])||void 0===y?void 0:y.bonus,firstBonusValue:ee,secondBonusValue:ea,exp:(0,m.notateNumber)(Math.floor(j),"Big")},eo=getCaptainDisplayBonus(el,ee),e_=getCaptainDisplayBonus(el,ea);if(el.firstBonus=eo,el.secondBonus=e_,el.firstBonusDescription=null==el?void 0:null===(h=el.firstBonusDescription)||void 0===h?void 0:h.replace("{",eo),el.secondBonusDescription=null==el?void 0:null===(g=el.secondBonusDescription)||void 0===g?void 0:g.replace("{",e_),el.expReq=(0,m.notateNumber)(getCaptainExpReq(el),"Big"),l){let e=2*L+2*k+ee+ea;el.cost=Math.pow(8,1+b)*(1+Math.pow(e,2)/100)}return el},getBoatBreakdownResources=(e,t)=>{let l=[{required:0},{required:0}],m=(null==e?void 0:e.lootLevel)+(8-(null==e?void 0:e.lootLevel)%8),u=(null==e?void 0:e.speedLevel)+(7-(null==e?void 0:e.speedLevel)%7);for(let u=null==e?void 0:e.lootLevel;u[0,1].map(l=>{let m=getBoatUpgradeCostType(null==e?void 0:e.boatIndex,l);return{required:getBoatUpgradeCost(e,l),...(null==t?void 0:t[m])||{}}}),getBoatUpgradeCostType=(e,t)=>0===t?4>e?0:Math.min(30,1+2*(e-4)):2>e?e:5>e?1+2*(e-2):Math.min(30,2*(e-4)),getBoatUpgradeCost=(e,t)=>{let l=getBoatUpgradeCostType(null==e?void 0:e.boatIndex,t),m=0===t?null==e?void 0:e.lootLevel:null==e?void 0:e.speedLevel;return 0===l?Math.round((5+4*m)*Math.pow(1.17-.12*m/(m+200),m)):l%2==1?Math.round((5+2*m)*Math.pow(1.15-.1*m/(m+200),m)):Math.round((2+m)*Math.pow(1.12-.07*m/(m+200),m))},getFinalBoatSpeed=e=>{let{speedLevel:t,captainSpeedBonus:l,baseSpeed:m}=e;return(10+(5+Math.pow(Math.floor(t/7),2))*t)*(1+l/100)*m},getBoatSpeedValue=(e,t,l,m,u)=>{var d,y;let h;let g=0;(null==e?void 0:null===(d=e.firstBonusDescription)||void 0===d?void 0:d.includes("Boat_Speed"))&&(g+=null==e?void 0:e.firstBonus),(null==e?void 0:null===(y=e.secondBonusDescription)||void 0===y?void 0:y.includes("Boat_Speed"))&&(g+=null==e?void 0:e.secondBonus);let E=l+(7-l%7),b=getFinalBoatSpeed({speedLevel:l,captainSpeedBonus:g,baseSpeed:m}),L=getFinalBoatSpeed({speedLevel:l+1,captainSpeedBonus:g,baseSpeed:m});return E!==l+1&&(h=getFinalBoatSpeed({speedLevel:E,captainSpeedBonus:g,baseSpeed:m})),{raw:b,value:t?Math.min(b,(null==t?void 0:t.distance)*60/u):b,nextLevelValue:L,nextBreakpointValue:h}},getFinalBoatLoot=e=>{let{lootLevelMath:t,lootLevel:l,lootPileSigil:m,artifactBonus:u,firstCaptainBonus:d,secondCaptainBonus:y,talentBonus:h}=e;return(5+t*l)*(1+(m+(d+y+u))/100)*h},getBoatLootValue=(e,t,l,m,u)=>{var d,g,E,b;let L;let k=(0,y.A5)(e,3,"Siege_Breaker","UNENDING_LOOT_SEARCH"),V=1+k/100,j=(null==m?void 0:m.lootLevel)+(8-(null==m?void 0:m.lootLevel)%8),ee=2+Math.pow(Math.floor(((null==m?void 0:m.lootLevel)+1)/8),2),ea=2+Math.pow(Math.floor((null==m?void 0:m.lootLevel)/8),2),el=(0,h.Vq)(null==t?void 0:null===(g=t.alchemy)||void 0===g?void 0:null===(d=g.p2w)||void 0===d?void 0:d.sigils,"LOOT_PILE"),eo=getCaptainBonus(1,u,null==u?void 0:u.firstBonusIndex),e_=getCaptainBonus(1,u,null==u?void 0:u.secondBonusIndex),ec=null!==(b=null===(E=isArtifactAcquired(l,"Genie_Lamp"))||void 0===E?void 0:E.bonus)&&void 0!==b?b:0,em=getFinalBoatLoot({lootLevelMath:ea,lootLevel:null==m?void 0:m.lootLevel,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V}),ed=getFinalBoatLoot({lootLevelMath:ee,lootLevel:(null==m?void 0:m.lootLevel)+1,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V});return j!==(null==m?void 0:m.lootLevel)+1&&(L=getFinalBoatLoot({lootLevelMath:2+Math.pow(Math.floor(j/8),2),lootLevel:j,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V})),{value:em,nextLevelValue:ed,nextBreakpointValue:L}},getCaptainExpReq=e=>{let t=9+Math.pow(null==e?void 0:e.level,3),l=Math.pow(1.5,null==e?void 0:e.level);return t*l*Math.pow(1.5,Math.max((null==e?void 0:e.level)-10,0))},getCaptainDisplayBonus=(e,t)=>Math.round((null==e?void 0:e.level)*t*10)/10,getBoatArtifactChance=(e,t,l)=>{var u,d,y;let h=null!==(y=null===(u=isArtifactAcquired(e,"Fauxory_Tusk"))||void 0===u?void 0:u.bonus)&&void 0!==y?y:0,g=(0,ee.du)(null==l?void 0:null===(d=l.breeding)||void 0===d?void 0:d.pets,"Higher_Artifact_Find_Chance"),E=getCaptainBonus(3,t,null==t?void 0:t.firstBonusIndex),b=getCaptainBonus(3,t,null==t?void 0:t.secondBonusIndex);return(0,m.notateNumber)(Math.max(1,1+(h+(E+b)+g)/100),"MultiplierInfo")},getCaptainBonus=(e,t,l)=>l>0?0:l===e?(null==t?void 0:t.level)*(null==t?void 0:t.firstBonusValue):l===e?(null==t?void 0:t.level)*(null==t?void 0:t.secondBonusValue):0,getBoatFrame=e=>e<25?0:e<50?1:e<100?2:e<200?3:e<300?4:5,getLootPile=e=>null==e?void 0:e.map((e,t)=>({amount:e>0?e:0,rawName:"SailT".concat(t)})),getArtifact=(e,t,l,u,h,g)=>{var E,b,L,k,V,j,ee,ea;let el,eo=null==e?void 0:e.baseBonus,e_=null==e?void 0:e.baseBonus,ec=2===t||3===t||4===t,em=2===t?"ancientMultiplier":3===t?"eldritchMultiplier":4===t?"sovereignMultiplier":"baseBonus",ed=null==e?void 0:e.description;if((null==e?void 0:e.name)==="Maneki_Kat"||(null==e?void 0:e.name)==="Ashen_Urn"){let l=(0,d.QV)(h);el="Highest level: ".concat(l),eo=l*(null==e?void 0:e.baseBonus),(null==e?void 0:e.name)==="Ashen_Urn"&&(eo=l>(null==e?void 0:e[em])?(null==e?void 0:e[em])*(null==e?void 0:e.baseBonus):l*(null==e?void 0:e.baseBonus),ed="".concat(ed," Total Bonus: ").concat(ec?eo*t:eo))}else if((null==e?void 0:e.name)==="Ruble_Cuble"||(null==e?void 0:e.name)==="10_AD_Tablet"||(null==e?void 0:e.name)==="Jade_Rock"||(null==e?void 0:e.name)==="Gummy_Orb"){let t=null==g?void 0:null===(E=g.looty)||void 0===E?void 0:E.rawLootedItems,l=(null==e?void 0:e.name)==="10_AD_Tablet"||(null==e?void 0:e.name)==="Gummy_Orb";el="Looted items: ".concat(t);let m=(null==e?void 0:e[em])*Math.floor(Math.max(0,t-500)/10);eo=l&&"baseBonus"!==em?(null==e?void 0:e.baseBonus)*m:m}else if((null==e?void 0:e.name)==="Fauxory_Tusk"||(null==e?void 0:e.name)==="Genie_Lamp"){let t=(null==e?void 0:e.name)==="Genie_Lamp",l=(0,d.fx)(h,"sailing");eo=t?l*(null==e?void 0:e.baseBonus):l,el="Sailing level: ".concat(l)}else if((null==e?void 0:e.name)==="Weatherbook"){let t=(0,d.fx)(h,"gaming");el="Gaming level: ".concat(t),eo=t*(null==e?void 0:e.baseBonus)}else if((null==e?void 0:e.name)==="Triagulon"){let t=null==g?void 0:null===(k=g.cooking)||void 0===k?void 0:null===(L=k.meals)||void 0===L?void 0:null===(b=L[0])||void 0===b?void 0:b.amount;eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(t)}else if((null==e?void 0:e.name)==="Opera_Mask"){let t=null==l?void 0:l[0];eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(t)}else if((null==e?void 0:e.name)==="Fun_Hippoete")eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(null==g?void 0:null===(V=g.construction)||void 0===V?void 0:V.playersBuildRate);else if((null==e?void 0:e.name)==="The_True_Lantern")eo=(null==e?void 0:e.baseBonus)*(null!==(ee=(0,m.lavaLog)(null==g?void 0:null===(j=g.atoms)||void 0===j?void 0:j.particles))&&void 0!==ee?ee:0);else if((null==e?void 0:e.name)==="Gold_Relic"){let t=null==g?void 0:null===(ea=g.accountOptions)||void 0===ea?void 0:ea[125],l=ec?null==e?void 0:e[em]:0;el="Days passed: ".concat(t,". Bonus: ").concat((0,m.notateNumber)(1+t*(2+l)/100,"MultiplierInfo").replace("#",""),"x")}else if((null==e?void 0:e.name)==="Crystal_Steak"){let e=null==h?void 0:h.map(e=>{let{name:t,class:l,stats:m}=e,u=null===y.nl||void 0===y.nl?void 0:y.nl[l];return{name:t,stat:null==m?void 0:m[u]}});ed=ed.replace("_Total_Bonus:_+}%_dmg",""),el=e.map(e=>{let{name:l,stat:m}=e;return{name:l,bonus:(ec?eo*t:eo)*Math.floor(m/100)}})}else if((null==e?void 0:e.name)==="Socrates"){let l=null==h?void 0:h.map(e=>{var t,l,m,u;let{name:d,stats:y}=e;return{name:d,strength:null!==(t=null==y?void 0:y.strength)&&void 0!==t?t:0,agility:null!==(l=null==y?void 0:y.agility)&&void 0!==l?l:0,wisdom:null!==(m=null==y?void 0:y.wisdom)&&void 0!==m?m:0,luck:null!==(u=null==y?void 0:y.luck)&&void 0!==u?u:0}});el=l.map(l=>{let{name:m,strength:u,agility:d,wisdom:y,luck:h}=l,g=1+(ec?(null==e?void 0:e.baseBonus)*t:null==e?void 0:e.baseBonus)/100;return{name:m,strength:Math.floor(g*u),agility:Math.floor(g*d),wisdom:Math.floor(g*y),luck:Math.floor(g*h)}})}return 2===t&&(null==e?void 0:e.ancientFormDescription)==="The_artifact's_main_bonus_is_doubled!"?eo*=2:3===t&&(null==e?void 0:e.eldritchFormDescription)==="The_artifact's_main_bonus_is_tripled!"?eo*=3:4===t&&(null==e?void 0:e.sovereignFormDescription)==="The_artifact's_main_bonus_is_quadrupled!"&&(eo*=4),ed=ed.replace(/{/,e_).replace(/}/,(0,m.kFormatter)(eo,2)).replace(/@/,""),{...e,description:ed,additionalData:el,bonus:eo,acquired:t,rawName:"Arti".concat(u)}},calcTotalBoatLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0),calcArtifactsAcquired=e=>null==e?void 0:e.reduce((e,t)=>{let{acquired:l}=t;return e+l},0)},32387:function(e,t,l){"use strict";l.d(t,{U:function(){return getSaltLick},W:function(){return getSaltLickBonus}});var m=l(88344),u=l(70473),d=l(30925);let getSaltLick=(e,t)=>{let l=(0,d.tryToParse)(null==e?void 0:e.SaltLick)||(null==e?void 0:e.SaltLick);return null===u.saltLicks||void 0===u.saltLicks?void 0:u.saltLicks.map((e,u)=>{let d=null==l?void 0:l[u],y=(0,m.ju)(t,null==e?void 0:e.name,!0);return{...e,totalAmount:y,level:d}})},getSaltLickBonus=function(e,t){var l,m,u;let y=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=null==e?void 0:e[t];if(!h||0===h)return 0;let g=h.baseBonus*(null!==(l=h.level)&&void 0!==l?l:0);return y?null!==(u=(0,d.round)(g))&&void 0!==u?u:0:g}},64569:function(e,t,l){"use strict";l.d(t,{Xz:function(){return getShrines},mv:function(){return calcShrineLevels},n:function(){return getShrineExpBonus},wt:function(){return getShrineBonus}});var m=l(30925),u=l(70473),d=l(54685),y=l(16727),h=l(20385),g=l(10924),E=l(4056),b=l(30796),L=l(88054),k=l(48832);let getShrines=(e,t)=>{let l=(null==e?void 0:e.ShrineInfo)||(0,m.tryToParse)(null==e?void 0:e.Shrine),u=(null==e?void 0:e.TowerInfo)||(0,m.tryToParse)(null==e?void 0:e.Tower);return parseShrines(l,u,t)},parseShrines=(e,t,l)=>{var m,y,h;let g=null==l?void 0:null===(h=l.lab)||void 0===h?void 0:null===(y=h.labBonuses)||void 0===y?void 0:null===(m=y.find(e=>"Shrine_World_Tour"===e.name))||void 0===m?void 0:m.active,E=null==e?void 0:e.map((e,t)=>{let[,,,m]=e,{baseBonus:y,bonusPerLevel:h}=u.shrines[18+t],g=(0,d.OK)(null==l?void 0:l.cards,"Shrine_Effects_(Passive)");return(1+g/100)*((m-1)*h+y)});return null==e?void 0:e.reduce((e,l,m)=>{let d=18+m,[y,,,h,b]=l,{shrineName:L,desc:k,baseBonus:V,bonusPerLevel:j}=u.shrines[d];return"Unknown"!==L?[...e,{mapId:y,shrineLevel:h,name:L,rawName:"ConTowerB".concat(d),bonus:V+(h-1)*j,progress:b,desc:k,worldTour:g,shrineFactor:null==E?void 0:E[2],shrineTowerValue:null==t?void 0:t[18+m]}]:e},[])},getShrineExpBonus=(e,t)=>{let l=Array(9).fill(0),m={};return null==e||e.forEach(e=>{var u,d,V,j,ee;null==e||e.mapIndex;let ea=(0,h.Ob)(t,"Shrine_Speed")?1:0,el=(0,y.YS)(null==t?void 0:null===(u=t.sailing)||void 0===u?void 0:u.artifacts,"Moai_Head"),eo=0;el&&(eo+=(null==el?void 0:el.acquired)===3?null==el?void 0:el.eldritchMultiplier:(null==el?void 0:el.acquired)===2?(null==el?void 0:el.ancientMultiplier)*2:null==el?void 0:el.baseBonus);let e_=(0,g.pA)(null==t?void 0:t.rift,null==t?void 0:null===(V=t.totalSkillsLevels)||void 0===V?void 0:null===(d=V.construction)||void 0===d?void 0:d.rank,1)||0,ec=(0,E.xV)(null==e?void 0:e.postOffice,"Construction_Container",1),em=(0,g.tE)("Golden_Cheese",e,t),ed=(0,b._X)(null==e?void 0:e.starTalents,null,"SHRINE_ARCHITECT"),ep=(0,L.YG)(null==t?void 0:null===(j=t.alchemy)||void 0===j?void 0:j.vials,null,"ShrineSpd"),ey=(0,k.F)(t,19);null==t||null===(ee=t.shrines)||void 0===ee||ee.forEach((u,d)=>{let{shrineTowerValue:y,shrineFactor:h}=u,g={name:null==e?void 0:e.name,value:0};if(!isGlobalApplicable(t,u,null==e?void 0:e.mapIndex))return g;let E=(1+50*ea/100)*(1+(eo+15*e_)/100)*(1+ey/100)*(1+10*y/100)*(1+(h+(ec+(em+(ed+ep))))/100);l[d]+=E,m={...m,[d]:[...(null==m?void 0:m[d])||[],{name:null==e?void 0:e.name,value:E}]}})}),{total:l,breakdown:m}},isGlobalApplicable=(e,t,l)=>{var m,u,d;let h=(null==e?void 0:null===(m=e.sailing)||void 0===m?void 0:m.artifacts)===!0||Array.isArray(null==e?void 0:null===(u=e.sailing)||void 0===u?void 0:u.artifacts)&&(0,y.YS)(null==e?void 0:null===(d=e.sailing)||void 0===d?void 0:d.artifacts,"Moai_Head"),g=Math.floor((null==t?void 0:t.mapId)/50),E=(null==t?void 0:t.mapId)%50==0;return(null==t?void 0:t.worldTour)&&E&&Math.floor(l/50)===g||!!h},getShrineBonus=(e,t,l,m,u)=>{var h;let g=null==e?void 0:e[t];if(!g)return 0;let E=!0===u||Array.isArray(u)&&(0,y.YS)(u,"Moai_Head"),b=Math.floor((null==g?void 0:g.mapId)/50),L=(null==g?void 0:g.mapId)%50==0,k=l!==(null==g?void 0:g.mapId),V=(null==g?void 0:g.worldTour)&&L&&Math.floor(l/50)===b||!!E;if((null==g?void 0:g.level)===0||k&&!V)return 0;let j=null==m?void 0:m.Chaotic_Chizoar,ee=null!==(h=(0,d.BZ)(j))&&void 0!==h?h:0;return(null==g?void 0:g.bonus)*(1+ee/100)},calcShrineLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{shrineLevel:l}=t;return e+l},0):0}},1972:function(e,t,l){"use strict";l.d(t,{MH:function(){return calcStampCollected},Md:function(){return applyStampsMulti},bL:function(){return calcStampLevels},bW:function(){return updateStamps},fE:function(){return getStampBonus},mV:function(){return getStampsBonusByEffect},t2:function(){return getStamps},tO:function(){return L}});var m=l(30925),u=l(70473),d=l(30796),y=l(88344),h=l(10924),g=l(88054);l(67896);var E=l(8616);let b={0:"combat",1:"skills",2:"misc"},getStamps=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.StampLv)||(null==e?void 0:e.StampLevel),u=(0,m.tryToParse)(null==e?void 0:e.StampLvM)||(null==e?void 0:e.StampLevelMAX);return parseStamps(l,u,t)},parseStamps=(e,t,l)=>{var m;let d=null==e?void 0:e.reduce((e,l,m)=>({...e,[null==b?void 0:b[m]]:Object.keys(l).reduce((e,u,d)=>{var y;return"length"!==u?[...e,{level:parseFloat(l[u]),maxLevel:null==t?void 0:null===(y=t[m])||void 0===y?void 0:y[d]}]:e},[])}),{});return null===(m=Object.entries(d))||void 0===m?void 0:m.reduce((e,t)=>{let[m,d]=t,h=null==d?void 0:d.map((e,t)=>{var d,h;let g=u.stamps[m][t],E=null==g?void 0:null===(d=g.itemReq)||void 0===d?void 0:d[0],b=(0,y.F6)(u.crafts[null==E?void 0:E.name]),L=null==l?void 0:null===(h=l.storage)||void 0===h?void 0:h.reduce((e,t)=>{let{rawName:l,amount:m}=t;return l!==(null==E?void 0:E.rawName)?e:e+(m||0)},0);return{...g,...e,materials:b,ownedMats:L,greenStackOwnedMats:Math.max(0,L-1e7),itemReq:E,category:m}});return{...e,[m]:h}},{})},updateStamps=function(e,t){var l;let d=!(arguments.length>2)||void 0===arguments[2]||arguments[2],y=null==e?void 0:null===(l=e.atoms)||void 0===l?void 0:l.stampReducer,g=Object.values((null==e?void 0:e.stamps)||{}).flat().map(l=>{var m,g,E;let b,L;let k=(0,h.tc)(null===u.items||void 0===u.items?void 0:u.items[null==l?void 0:null===(m=l.itemReq)||void 0===m?void 0:m.rawName],t,e),V=getGoldCost(null==l?void 0:l.level,l,e),j=(null==e?void 0:null===(g=e.currencies)||void 0===g?void 0:g.rawMoney)>=V,ee=getMaterialCost(null==l?void 0:l.level,l,e,y,d);(null==l?void 0:null===(E=l.materials)||void 0===E?void 0:E.length)>0?(b=checkHasMaterials(null==l?void 0:l.materials,ee,e),L=checkHasMaterials(null==l?void 0:l.materials,ee,e,!0)):(b=(null==l?void 0:l.ownedMats)>=ee,L=Math.max(0,(null==l?void 0:l.ownedMats)-1e7)>=ee);let ea=(null==k?void 0:k.maxCapacity)>=ee,el={...l,bestCharacter:k,goldCost:V,materialCost:ee,enoughPlayerStorage:ea,greenStackHasMaterials:L,hasMaterials:b,hasMoney:j},eo=getFutureCosts(el,e,y,d);return{...el,futureCosts:eo}});return(0,m.groupByKey)(g,e=>{let{category:t}=e;return t})},checkHasMaterials=(e,t,l,m)=>null==e?void 0:e.every(e=>{let{itemName:u,type:d,itemQuantity:h}=e;if("Equip"===d)return!0;let g=(0,y.ju)(null==l?void 0:l.storage,u,!0);return m?Math.max(0,g-1e7):g>=h*t}),getFutureCosts=(e,t,l,m)=>{var u,d,y,h,g,E,b,L,k;let V=null==e?void 0:e.maxLevel;for(;getMaterialCost(V,e,t,l,m)<(null==e?void 0:null===(u=e.bestCharacter)||void 0===u?void 0:u.maxCapacity);)V+=null==e?void 0:e.reqItemMultiplicationLevel;let j=(null==t?void 0:null===(h=t.atoms)||void 0===h?void 0:null===(y=h.atoms)||void 0===y?void 0:null===(d=y[0])||void 0===d?void 0:d.baseBonus)*(null==t?void 0:null===(b=t.atoms)||void 0===b?void 0:null===(E=b.atoms)||void 0===E?void 0:null===(g=E[0])||void 0===g?void 0:g.level),ee=(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel)*3,ea=[];for(let u=(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel);u<=ee;u+=null==e?void 0:e.reqItemMultiplicationLevel)for(let d=u===(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel)?l:0;d<=90;d=Math.min(90,d+j)){let l,y;let h=getMaterialCost(u-(null==e?void 0:e.reqItemMultiplicationLevel),e,t,d,m);if(90===d){h<(null==e?void 0:null===(k=e.bestCharacter)||void 0===k?void 0:k.maxCapacity)&&(l=u-(null==e?void 0:e.reqItemMultiplicationLevel)===(null==e?void 0:e.level)?h:getMaterialCostToLevel(null==e?void 0:e.level,u,e,t,d,m),y=getGoldCostToLevel(null==e?void 0:e.level,u,e,t),ea.push({...null==e?void 0:e.itemReq,level:u,goldCost:y,materialCost:l,reduction:d}));break}if(h<(null==e?void 0:null===(L=e.bestCharacter)||void 0===L?void 0:L.maxCapacity)){l=u-(null==e?void 0:e.reqItemMultiplicationLevel)===(null==e?void 0:e.level)?h:getMaterialCostToLevel(null==e?void 0:e.level,u,e,t,d,m),y=getGoldCostToLevel(null==e?void 0:e.level,u,e,t),ea.push({...null==e?void 0:e.itemReq,level:u,goldCost:y,materialCost:l,reduction:d});break}if(0===j)break}if(0===ea.length){let u=getMaterialCost(V,e,t,l,m),d=getGoldCost(V,e,t);ea.push({...null==e?void 0:e.itemReq,level:V,goldCost:d,materialCost:u,reduction:l})}return ea},getGoldCostToLevel=(e,t,l,m)=>{let u=getGoldCost(e,l,m);for(let d=e;d{var m,u;let d=(0,g.YG)(null==l?void 0:null===(m=l.alchemy)||void 0===m?void 0:m.vials,"material_cost_for_stamps"),y=null==l?void 0:null===(u=l.bribes)||void 0===u?void 0:u[0],h=(null==y?void 0:y.done)?(null==t?void 0:t.baseCoinCost)*(1-(null==y?void 0:y.value)/100):null==t?void 0:t.baseCoinCost,E=h*Math.pow((null==t?void 0:t.powCoinBase)-e/(e+5*(null==t?void 0:t.reqItemMultiplicationLevel))*.25,e*(10/(null==t?void 0:t.reqItemMultiplicationLevel)))*Math.max(.1,1-d/100);return Math.floor(E)},getMaterialCostToLevel=function(e,t,l,m){let u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,d=arguments.length>5?arguments[5]:void 0,y=0;for(let h=e;h3&&void 0!==arguments[3]?arguments[3]:0,h=arguments.length>4?arguments[4]:void 0,E=(0,g.YG)(null==l?void 0:null===(m=l.alchemy)||void 0===m?void 0:m.vials,"material_cost_for_stamps"),b=(0,g.Vq)(null==l?void 0:null===(d=l.alchemy)||void 0===d?void 0:null===(u=d.p2w)||void 0===u?void 0:u.sigils,"ENVELOPE_PILE");return Math.max(1,(null==t?void 0:t.baseMatCost)*(h?.05:1)*Math.max(.1,1-y/100)*(1/(1+b/100))*Math.pow(null==t?void 0:t.powMatBase,Math.pow(Math.round(e/(null==t?void 0:t.reqItemMultiplicationLevel))-1,.8))*Math.max(.1,1-E/100))},getStampsBonusByEffect=(e,t,l)=>{var m;return(null==e?void 0:e.stamps)&&(null===(m=Object.entries(null==e?void 0:e.stamps))||void 0===m?void 0:m.reduce((m,u)=>{let[d,y]=u,h=null==y?void 0:y.filter(e=>{let{effect:l}=e;return null==l?void 0:l.includes(t)}),g=null==h?void 0:h.reduce((t,m)=>{let{rawName:u}=m;return t+getStampBonus(e,d,u,l)},0);return m+g},0))},getStampBonus=(e,t,l,u)=>{var y,h,g,b,L,k,V;let j=null==e?void 0:null===(h=e.stamps)||void 0===h?void 0:null===(y=h[t])||void 0===y?void 0:y.find(e=>{let{rawName:t}=e;return t===l});if(!j)return 0;let ee=1,ea=0;(null==j?void 0:null===(g=j.stat)||void 0===g?void 0:g.includes("Eff"))&&(ee=(0,d._X)(null==u?void 0:u.starTalents,null,"TOILET_PAPER_POSTAGE")),"misc"!==t&&(ea=(0,E.vq)(e,"Liqorice_Rolle"));let el=(0,E.x5)(e,"Level_Exemption");if((null==j?void 0:j.skillIndex)>0&&!el&&(null==j?void 0:j.reqItemMultiplicationLevel)>1){let e=(null==j?void 0:j.level)*(200/(20*(null==j?void 0:j.reqItemMultiplicationLevel)));if(e>3){let t=null==u?void 0:null===(L=u.skillsInfoArray)||void 0===L?void 0:null===(b=L[null==j?void 0:j.skillIndex])||void 0===b?void 0:b.level,l=3+(e-3)*Math.pow(t/(e-3),.75);l*=20*(null==j?void 0:j.reqItemMultiplicationLevel)/200;let d=Math.floor(Math.min(l,e)),y=Math.min(d,null==j?void 0:j.level);return(null!==(k=(0,m.growth)(null==j?void 0:j.func,y,null==j?void 0:j.x1,null==j?void 0:j.x2,!1))&&void 0!==k?k:0)*((null==j?void 0:j.multiplier)||1)*(ee||1)*(1+ea/100)}}return(null!==(V=(0,m.growth)(null==j?void 0:j.func,null==j?void 0:j.level,null==j?void 0:j.x1,null==j?void 0:j.x2,!1))&&void 0!==V?V:0)*((null==j?void 0:j.multiplier)||1)*(ee||1)*(1+ea/100)},applyStampsMulti=(e,t)=>Object.entries(e).reduce((e,l)=>{let[m,u]=l,d=u;return"misc"!==m&&(d=null==u?void 0:u.map(e=>({...e,multiplier:t}))),{...e,[m]:d}},{}),calcStampLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0)),0):0},calcStampCollected=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+(l>0?1:0)},0)),0):0},L=["Stat_Wallstree_Stamp","SpoOoky_Stamp","Prayday_Stamp","Shiny_Crab_Stamp","Talent_I_Stamp","Talent_V_Stamp","Gear_Stamp"].toSimpleObject()},96707:function(e,t,l){"use strict";l.d(t,{Wv:function(){return getStarSignByEffect},kz:function(){return getStarSigns},o9:function(){return getStarSignBonus},tp:function(){return getConstellations}});var m=l(30925),u=l(70473),d=l(34664),y=l(67896),h=l(5432),g=l(15893);let getStarSigns=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.StarSg)||(null==e?void 0:e.StarSignsUnlocked);return parseStarSigns(t)},getConstellations=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.SSprog)||(null==e?void 0:e.StarSignProg),l=parseConstellations(t);return{constellations:l,rawConstellationsDone:t.reduce((e,t)=>{let[,l]=t;return e+l},0)}},parseStarSigns=e=>null===u.starSigns||void 0===u.starSigns?void 0:u.starSigns.map(t=>{let{starName:l}=t;return{...t,indexedStarName:"".concat(null===d.SS||void 0===d.SS?void 0:d.SS[l]," - ").concat(l),starName:l,unlocked:!!(null==e?void 0:e[l])}},[]),parseConstellations=e=>null==e?void 0:e.reduce((e,t,l)=>{let m=u.constellations[l],[d,y]=t,h=null==m?void 0:m.mapIndex;return null!==h?[...e,{...m,location:u.mapNames[h],completedChars:d,done:!!y}]:e},[]),getStarSignByEffect=(e,t)=>{if((null==e?void 0:e.length)===0)return 0;let l=null==e?void 0:e.flatMap(e=>{let{bonuses:t}=e;return t}).filter(e=>e);return null==l?void 0:l.reduce((e,l)=>{let{effect:m,bonus:u}=l;return m===t?e+u:e},0)},getStarSignBonus=function(e,t,l){var m,u,d,E;let b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],L=(0,y.RB)(null==t?void 0:t.rift,"Infinite_Stars"),k=L?5+(0,h.du)(null==t?void 0:null===(m=t.breeding)||void 0===m?void 0:m.pets,"Infinite_Star_Signs"):0,V=null==t?void 0:null===(u=t.starSigns)||void 0===u?void 0:u.map((l,m)=>{var u,d,y;let h=null==e?void 0:null===(u=e.starSigns)||void 0===u?void 0:u.find(e=>{let{starName:t}=e;return t===(null==l?void 0:l.starName)}),E=m({...e,bonus:(null==e?void 0:e.bonus)>0?(null==e?void 0:e.bonus)*m:null==e?void 0:e.bonus,active:!0,isInfiniteStar:E}))}}return k&&!h&&(null==l?void 0:l.unlocked)&&(l={...l,bonuses:null==l?void 0:null===(y=l.bonuses)||void 0===y?void 0:y.map(e=>({...e,isInfiniteStar:E,bonus:(null==l?void 0:l.starName)==="Gordonius_Major"&&b?(null==e?void 0:e.bonus)*2:null==e?void 0:e.bonus}))}),h||l}),j=null==e?void 0:null===(E=e.skillsInfo)||void 0===E?void 0:null===(d=E.summoning)||void 0===d?void 0:d.level,ee=V.find(e=>{let{starName:t,unlocked:l}=e;return"Seraph_Cosmos"===t&&l}),ea=getStarSignsBonuses(V);return null==ea?void 0:ea.reduce((e,t)=>{let{effect:m,bonus:u,active:d,isInfiniteStar:y}=t;return m.toLowerCase().includes(l.toLowerCase())&&(d||y)?e+(y&&u<0?0:ee?u*Math.min(3,Math.pow(1.1,Math.ceil((j+1)/20))):u):e},0)},getStarSignsBonuses=e=>null==e?void 0:e.map(e=>{let{bonuses:t}=e;return t}).flatMap(e=>e).filter(e=>e)},74861:function(e,t,l){"use strict";l.d(t,{$M:function(){return calcTotalOnyx},U6:function(){return getStatueBonus},Xl:function(){return getStatues},hE:function(){return applyStatuesMulti},ni:function(){return calcStatueLevels}});var m=l(30925),u=l(70473),d=l(30796),y=l(16727);let getStatues=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.StuG)||(null==e?void 0:e.StatueG);return parseStatues(l,t)},parseStatues=(e,t)=>null==e?void 0:e.reduce((e,l,m)=>{var d;let y=2===l,h=null===(d=getHighestLevelStatues(t,m))||void 0===d?void 0:d.StatueLevels,[g,E]=(null==h?void 0:h[m])||[];return(null==h?void 0:h[m])?[...e,{...(null===u.statues||void 0===u.statues?void 0:u.statues[m])||{},rawName:"Statue".concat(y?"O":1===l?"G":"").concat(parseInt(m)+1),level:g,progress:E,onyxStatue:y}]:e},[]).filter(function(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}),getHighestLevelStatues=(e,t)=>e.reduce((e,l)=>{var m,u,d,y;return(null==e?void 0:null===(u=e.StatueLevels)||void 0===u?void 0:null===(m=u[t])||void 0===m?void 0:m[0])>(null==l?void 0:null===(y=l.StatueLevels)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d[0])?e:l}),applyStatuesMulti=(e,t)=>{var l,m;let u=(0,d.A5)(t,3,"Voidwalker","VOODOO_STATUFICATION"),h=1+u/100,g=(0,y.YS)(null==e?void 0:null===(l=e.sailing)||void 0===l?void 0:l.artifacts,"The_Onyx_Lantern");return null==e?void 0:null===(m=e.statues)||void 0===m?void 0:m.map(e=>{var t;return{...e,bonus:null==e?void 0:e.bonus,talentMulti:h,onyxMulti:null!==(t=null==g?void 0:g.bonus)&&void 0!==t?t:0}})},getStatueBonus=(e,t,l)=>{let m=null==e?void 0:e.find(e=>{let{rawName:l}=e;return l===t||l===t.replace("G","O")});if(!m)return 0;let u=1;switch(null==m?void 0:m.name){case"POWER":case"MINING":u+=((0,d._X)(l,2,"SHIELDIEST_STATUES")||(0,d._X)(l,2,"STRONGEST_STATUES"))/100;break;case"OCEANMAN":u+=(0,d._X)(l,2,"STRONGEST_STATUES")/100;break;case"DEFENCE":case"THICC_SKIN":u+=(0,d._X)(l,2,"SHIELDIEST_STATUES")/100;break;case"SPEED":case"ANVIL":u+=((0,d._X)(l,2,"STRAIGHTSHOT_STATUES")||(0,d._X)(l,2,"SHWIFTY_STATUES"))/100;break;case"BULLSEYE":u+=(0,d._X)(l,2,"STRAIGHTSHOT_STATUES")/100;break;case"OL_RELIABLE":u+=(0,d._X)(l,2,"SHWIFTY_STATUES")/100;break;case"EXP":case"LUMBERBOB":u+=((0,d._X)(l,2,"STARING_STATUES")||(0,d._X)(l,2,"STUPENDOUS_STATUES"))/100;break;case"BEHOLDER":u+=(0,d._X)(l,2,"STARING_STATUES")/100;break;case"CAULDRON":u+=(0,d._X)(l,2,"STUPENDOUS_STATUES")/100;break;case"EHEXPEE":case"KACHOW":case"FEASTY":u+=(0,d._X)(l,2,"SKILLIEST_STATUE")/100;break;default:u=1}return(null==m?void 0:m.level)*(null==m?void 0:m.bonus)*u*(null==m?void 0:m.talentMulti)*((null==m?void 0:m.onyxStatue)?2+(null==m?void 0:m.onyxMulti)/100:1)},calcStatueLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0):0},calcTotalOnyx=e=>{var t,l;return(null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[69])<2?0:null==e?void 0:null===(l=e.statues)||void 0===l?void 0:l.reduce((e,t)=>{let{onyxStatue:l}=t;return e+(l?1:0)},0)}},23515:function(e,t,l){"use strict";l.d(t,{$v:function(){return getInventory},cF:function(){return getStorage},cR:function(){return calcTotalItemInStorage}});var m=l(30925),u=l(70473),d=l(88344);let getStorage=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"storage",l=(null==e?void 0:e.ChestOrder)||(0,m.tryToParse)(null==e?void 0:e.ChestOrder),u=(null==e?void 0:e.ChestQuantity)||(0,m.tryToParse)(null==e?void 0:e.ChestQuantity),d=(0,m.tryToParse)(null==e?void 0:e.CMm)||(null==e?void 0:e.CMm);return parseStorage(l,u,t,d)},parseStorage=(e,t,l,m)=>getInventory(e,t,l,m),getInventory=(e,t,l,y)=>e.reduce((e,h,g)=>{let E=(0,d.t8)(null===u.items||void 0===u.items?void 0:u.items[h],null==y?void 0:y[g]),b=[1,2,3,4,5,6,7,8].reduce((e,t)=>{var l,m;return(null===u.items||void 0===u.items?void 0:null===(l=u.items[h])||void 0===l?void 0:l["desc_line".concat(t)])?e+"".concat(null===u.items||void 0===u.items?void 0:null===(m=u.items[h])||void 0===m?void 0:m["desc_line".concat(t)]," "):e},""),L={...null===u.items||void 0===u.items?void 0:u.items[h],...E},k="";return(null==L?void 0:L.UQ1txt)&&(k+=null==L?void 0:L.UQ1txt),(null==L?void 0:L.UQ2txt)&&(k+=" ".concat(null==L?void 0:L.UQ2txt)),"LockedInvSpace"!==h&&"Blank"!==h?[...e,{...L,owner:l,name:null==L?void 0:L.displayName,type:null==L?void 0:L.itemType,subType:null==L?void 0:L.Type,rawName:h,amount:parseInt(null==t?void 0:t[g]),misc:(0,m.cleanUnderscore)(k.trim()),description:(0,m.cleanUnderscore)(b.trim())}]:e},[]),calcTotalItemInStorage=(e,t)=>null==e?void 0:e.reduce((e,l)=>{let{rawName:m,amount:u}=l;return m===t?e+u:e},0)},30796:function(e,t,l){"use strict";l.d(t,{A5:function(){return getHighestTalentByClass},Es:function(){return calcTotalStarTalent},J0:function(){return getTalentAddedLevels},L1:function(){return getCharacterByHighestTalent},Nb:function(){return applyTalentAddedLevels},RL:function(){return em},VG:function(){return getFamilyBonusValue},_X:function(){return getTalentBonus},c4:function(){return getBubonicGreenTube},cd:function(){return ec},eZ:function(){return getTalentBonusIfActive},gW:function(){return checkCharClass},gq:function(){return calcTalentMaxLevel},iR:function(){return getHighestMaxLevelTalentByClass},ju:function(){return getActiveBuffs},nl:function(){return e_},o1:function(){return createTalentPage},pV:function(){return eo},xI:function(){return getVoidWalkerTalentEnhancements}});var m=l(30925),u=l(70473),d=l(9339),y=l(10924),h=l(19834),g=l(72973),E=l(79603),b=l(1972),L=l(64605),k=l(11028),V=l(54685),j=l(88054),ee=l(5432),ea=l(29129),el=l(78713);let getTalentBonus=(e,t,l,u,d,y,h)=>{var g,E,b;let L=null!==t?null==e?void 0:null===(g=e[t])||void 0===g?void 0:g.orderedTalents:null==e?void 0:e.orderedTalents,k=null==L?void 0:L.find(e=>{let{name:t}=e;return t===l});if(!k)return 0;let V=null==k?void 0:k.level;return((null==k?void 0:k.level)>0&&(V=d?null==k?void 0:k.maxLevel:null==k?void 0:k.level,V=h&&(null==k?void 0:k.level)>(null==k?void 0:k.maxLevel)?(null==k?void 0:k.maxLevel)+y:y?V-y:V),u)?null!==(E=(0,m.growth)(null==k?void 0:k.funcY,V,null==k?void 0:k.y1,null==k?void 0:k.y2,!1))&&void 0!==E?E:0:null!==(b=(0,m.growth)(null==k?void 0:k.funcX,V,null==k?void 0:k.x1,null==k?void 0:k.x2,!1))&&void 0!==b?b:0},getTalentBonusIfActive=function(e,t){var l;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";return null!==(l=null==e?void 0:e.reduce(function(e){let{name:l,funcX:d,level:y,x1:h,x2:g,funcY:E,y1:b,y2:L}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l===t?"x"===u?(0,m.growth)(d,y,h,g,!1):(0,m.growth)(E,y,b,L,!1):e},0))&&void 0!==l?l:0},eo={Beginner:["Beginner"],Journeyman:["Beginner","Journeyman"],Maestro:["Beginner","Journeyman","Maestro"],Voidwalker:["Beginner","Journeyman","Maestro","Voidwalker"],Warrior:["Rage_Basics","Warrior"],Barbarian:["Rage_Basics","Warrior","Barbarian"],Blood_Berserker:["Rage_Basics","Warrior","Barbarian","Blood_Berserker"],Squire:["Rage_Basics","Warrior","Squire"],Divine_Knight:["Rage_Basics","Warrior","Squire","Divine_Knight"],Archer:["Calm_Basics","Archer"],Bowman:["Calm_Basics","Archer","Bowman"],Siege_Breaker:["Calm_Basics","Archer","Bowman","Siege_Breaker"],Hunter:["Calm_Basics","Archer","Hunter"],Beast_Master:["Calm_Basics","Archer","Hunter","Beast_Master"],Mage:["Savvy_Basics","Mage"],Shaman:["Savvy_Basics","Mage","Shaman"],Bubonic_Conjuror:["Savvy_Basics","Mage","Shaman","Bubonic_Conjuror"],Wizard:["Savvy_Basics","Mage","Wizard"],Elemental_Sorcerer:["Savvy_Basics","Mage","Wizard","Elemental_Sorcerer"]},e_={Beginner:"luck",Journeyman:"luck",Maestro:"luck",Voidwalker:"luck",Warrior:"strength",Barbarian:"strength",Blood_Berserker:"strength",Squire:"strength",Divine_Knight:"strength",Archer:"agility",Bowman:"agility",Siege_Breaker:"agility",Hunter:"agility",Beast_Master:"agility",Mage:"wisdom",Shaman:"wisdom",Bubonic_Conjuror:"wisdom",Wizard:"wisdom",Elemental_Sorcerer:"wisdom"},ec=["Special Talent 1","Special Talent 2","Special Talent 3","Special Talent 4","Special Talent 5"],createTalentPage=(e,t,l,m,d)=>t.reduce((e,t,y)=>{var h,g;let E=null===(h=Object.entries((null===u.talents||void 0===u.talents?void 0:u.talents[t])||{}))||void 0===h?void 0:h.map(e=>{let[,t]=e;return{talentId:t.skillIndex,...t,level:l[t.skillIndex]||0,maxLevel:m[t.skillIndex]||-1}});return d?{...e,talents:{...null==e?void 0:e.talents,orderedTalents:[...(null==e?void 0:null===(g=e.talents)||void 0===g?void 0:g.orderedTalents)||[],...E]},flat:[...(null==e?void 0:e.flat)||[],...E]}:{...e,flat:[...(null==e?void 0:e.flat)||[],...E],talents:{...null==e?void 0:e.talents,[y]:{name:t,id:null===u.classes||void 0===u.classes?void 0:u.classes.indexOf(t),orderedTalents:E}}}},{flat:[],talents:{}}),getActiveBuffs=(e,t)=>{var l;return null==e?void 0:null===(l=e.map(e=>{let[l]=e;return null==t?void 0:t.find(e=>{let{talentId:t}=e;return l===t})}))||void 0===l?void 0:l.filter(e=>e)},getHighestTalentByClass=function(e,t,l,m,u,d){let y=arguments.length>6&&void 0!==arguments[6]&&arguments[6],h=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==h?void 0:h.reduce((e,l)=>{let{talents:h,addedLevels:g}=l,E=getTalentBonus(h,t,m,u,d,!!y&&g+1);return E>e?E:e},0)},getCharacterByHighestTalent=(e,t,l,m,u,d)=>{let y=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==y?void 0:y.reduce((e,l)=>{let{talents:y}=l,h=getTalentBonus(y,t,m,u,d);return h>e?l:e},0)},getHighestMaxLevelTalentByClass=(e,t,l,m)=>{let u=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==u?void 0:u.reduce((e,l)=>{var u;let{talents:d}=l,y=null!==t?null==d?void 0:null===(u=d[t])||void 0===u?void 0:u.orderedTalents:null==d?void 0:d.orderedTalents,h=null==y?void 0:y.find(e=>{let{name:t}=e;return t===m});return(null==h?void 0:h.maxLevel)>(null==e?void 0:e.maxLevel)?h:e},{maxLevel:0})},getTalentAddedLevels=(e,t,l,u,E,b,L,k,V)=>{var j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let eT=0,ef;(0,y.fe)(k,0)?eT+=Math.ceil((0,h.kI)(V,k,1)):1===l?eT+=Math.ceil(E):1===u&&(eT+=Math.ceil(b)),ef=[{name:"God Bonus",value:Math.ceil(eT)}];let ev=null==e?void 0:null===(ee=e[3])||void 0===ee?void 0:null===(j=ee.orderedTalents)||void 0===j?void 0:j.find(e=>{let{name:t}=e;return t.includes("SYMBOLS_OF_BEYOND_")}),eg=0;return ev&&(null==ev?void 0:ev.level)>0&&(eT+=eg=null!==(ed=(0,m.growth)(null==ev?void 0:ev.funcX,null==ev?void 0:ev.level,null==ev?void 0:ev.x1,null==ev?void 0:ev.x2,!1))&&void 0!==ed?ed:0),L&&(eT+=Math.floor(L)),(0,d.k6)(null==k?void 0:k.achievements,291)&&(eT+=1),(0,y.fe)(k,1)&&(eT+=null==k?void 0:null===(eh=k.companions)||void 0===eh?void 0:null===(ey=eh.list)||void 0===ey?void 0:null===(ep=ey.at(1))||void 0===ep?void 0:ep.bonus),(null===(ea=k.accountOptions)||void 0===ea?void 0:ea[232])>=3&&(eT+=5),{value:eT+=(0,g.z)(null==k?void 0:null===(el=k.equinox)||void 0===el?void 0:el.upgrades,"Equinox_Symbols"),breakdown:ef=[...ef,{name:"Symbol of Beyond",value:eg},{name:"Family Bonus",value:Math.floor(L)},{name:"Achievement Bonus",value:(0,d.k6)(null==k?void 0:k.achievements,291)?1:0},{name:"Companion Bonus",value:(0,y.fe)(k,1)?null==k?void 0:null===(ec=k.companions)||void 0===ec?void 0:null===(e_=ec.list)||void 0===e_?void 0:null===(eo=e_.at(1))||void 0===eo?void 0:eo.bonus:0},{name:"Equinox Bonus",value:(0,g.z)(null==k?void 0:null===(em=k.equinox)||void 0===em?void 0:em.upgrades,"Equinox_Symbols")},{name:"Ninja mastery",value:5}]}},applyTalentAddedLevels=(e,t,l)=>t?t.map(e=>({...e,level:e.level>=1&&!isTalentExcluded(null==e?void 0:e.skillIndex)?Math.floor(e.level+l):e.level,baseLevel:e.level})):Object.entries(e).reduce((e,t)=>{let[m,u]=t,{orderedTalents:d}=u,y=null==d?void 0:d.map(e=>({...e,level:e.level>=1&&!isTalentExcluded(null==e?void 0:e.skillIndex)?Math.floor(e.level+l):e.level,baseLevel:e.level}));return{...e,[m]:{...u,orderedTalents:y}}},{}),isTalentExcluded=e=>49<=e&&59>=e||149===e||374===e||539===e||505===e||614e&&-1!==t.indexOf("decay")?Math.round(100*e)/100:1>e||"add"===t&&1>m&&100>e||25>e&&"decay"===t?Math.round(10*e)/10:Math.round(e)},getVoidWalkerTalentEnhancements=(e,t,l,m,u)=>{let d=[];if(l>=25&&d.push(42),l>=50&&d.push(318),l>=75&&d.push(497),l>=100&&d.push(79),l>=125&&d.push(146),l>=150&&d.push(362),l>=175&&d.push(43),l>=200&&d.push(536),l>=225&&d.push(165),l>=250&&d.push(35),-1!==d.indexOf(m)){if(42===m||79===m)return!0;if(146===m){var y;let t=null==e?void 0:e.filter(e=>(null==e?void 0:e.class)==="Blood_Berserker"),l=t.at(-1);if(!l)return 1;let m=null==l?void 0:null===(y=l.chow.finished)||void 0===y?void 0:y[1];return Math.pow(1.1,null!=m?m:0)}if(536===m)return 1;if(35===m){let e;let{stats:t}=u||{};e=(null==t?void 0:t.luck)<1e3?(Math.pow((null==t?void 0:t.luck)+1,.37)-1)/30:((null==t?void 0:t.luck)-1e3)/((null==t?void 0:t.luck)+2500)*.8+.3963;let l=getTalentBonus(null==u?void 0:u.talents,3,"LUCKY_CHARMS");return e*(1+l/100)/1.8}}return 0},checkCharClass=(e,t)=>{var l;return null===(l=eo[e])||void 0===l?void 0:l.includes(t)},getBubonicGreenTube=(e,t,l)=>{var m,u,d,y;let h=null==l?void 0:null===(u=l.lab)||void 0===u?void 0:null===(m=u.playersCords)||void 0===m?void 0:m[null==e?void 0:e.playerId],g=null==l?void 0:null===(y=l.lab)||void 0===y?void 0:null===(d=y.playersCords)||void 0===d?void 0:d.filter(e=>{let{class:t}=e;return checkCharClass(t,"Bubonic_Conjuror")});if(!h||(null==g?void 0:g.length)===0)return 0;let E=null==g?void 0:g.some(e=>{let{x:t}=e;return t>(null==h?void 0:h.x)});return E?getHighestTalentByClass(t,3,"Bubonic_Conjuror","GREEN_TUBE"):0},em={32:!0,130:!0,490:!0,25:!0,45:!0,370:!0,145:!0},calcTalentMaxLevel=e=>{let t=e.reduce((e,t)=>{let{flatTalents:l,flatStarTalents:m}=t;return[...l||[],...m||[]].forEach(t=>{let{skillIndex:l,maxLevel:m}=t;(null==e?void 0:e[l])&&!(m>(null==e?void 0:e[l]))||(e[l]=m)}),e},{});return Object.values(t).reduce((e,t)=>e+t,0)},calcTotalStarTalent=(e,t)=>{let l=e.reduce((e,l)=>{var m,h,g,eo,e_,ec,em,ed;let ep=null==l?void 0:null===(m=l.skillsInfoArray)||void 0===m?void 0:m.reduce((e,t,l)=>{let{level:m}=t;return l>0&&l<=9?e+m:e},-3),ey=getTalentBonus(null==l?void 0:l.talents,0,"STAR_PLAYER"),eh=getTalentBonus(null==l?void 0:l.starTalents,null,"STONKS!"),eT=getTalentBonus(null==l?void 0:l.talents,1,"SUPERNOVA_PLAYER"),ef=(0,y.Hx)(null==t?void 0:t.charactersLevels,"Elemental_Sorcerer",!0),ev=(0,E.D)(u.classFamilyBonuses,"_STAR_TAB_TALENT_POINTS",ef);if((null==l?void 0:l.class)==="Elemental_Sorcerer"){ev*=1+getTalentBonus(null==l?void 0:l.talents,3,"THE_FAMILY_GUY")/100;let e=(0,E.q)(u.classFamilyBonuses,"_STAR_TAB_TALENT_POINTS");ev=getFamilyBonusValue(ev,null==e?void 0:e.func,null==e?void 0:e.x1,null==e?void 0:e.x2)}let eg=(0,b.mV)(t,"Talent_Points_for_Star_Tab"),eS=(0,L._r)(null==t?void 0:null===(h=t.guild)||void 0===h?void 0:h.guildBonuses,11),eN=(0,k.Qo)(null==t?void 0:null===(g=t.dungeons)||void 0===g?void 0:g.upgrades,"Talent_Pts"),eC=(0,V.OK)(null==t?void 0:t.cards,"Star_Talent_Pts_(Passive)"),eR=(0,j.Vq)(null==t?void 0:null===(e_=t.alchemy)||void 0===e_?void 0:null===(eo=e_.p2w)||void 0===eo?void 0:eo.sigils,"TWO_STARZ"),eI=(0,d.k6)(null==t?void 0:t.achievements,212),ew=(0,d.k6)(null==t?void 0:t.achievements,289),eE=(0,d.k6)(null==t?void 0:t.achievements,305),eF=(0,ee.du)(null==t?void 0:null===(ec=t.breeding)||void 0===ec?void 0:ec.pets,"Star_Talent_Pts"),eP=(0,ea.k)(null==t?void 0:t.bribes,"Star_Scraper"),eD=(0,el.a)(t,"Fractal"),eA=null==eD?void 0:null===(em=eD.shop)||void 0===em?void 0:em.find(e=>{let{effect:t,unlocked:l}=e;return t.includes("Star_Talent_Pts")&&l}),eL=Math.floor((null==l?void 0:l.level)-1+(ep+ey+((null==t?void 0:null===(ed=t.talentPoints)||void 0===ed?void 0:ed[5])+ev+(eh+(eg+(eT+(Math.floor(eS)+(eN+(eC+(eR+(10*eI+(20*ew+(20*eE+(eF+(eP+100*(eA?1:0))))))))))))))));return{...e,[l.name]:eL}},{});return Math.max(...Object.values(l))}},79184:function(e,t,l){"use strict";l.d(t,{I:function(){return getOwlBonus},Y:function(){return getOwl}});var m=l(70473);let getOwl=(e,t)=>parseOwl(t),u=["Multiplies_all_Feather_generation_by_10x._Multiplicative,_so_extra_powerful!","Boosts_all_of_Orion's_Bonuses_by_double_their_base_amount.","All_upgrades_cost_1%_less_feathers_per_LV_of_Feather_Generation.","Instead_of_double,_all_of_Orion's_Bonuses_are_now_triple.","The_Feather_Cheapener_upgrades_now_give_+2_and_+4_Feathers/sec_each_LV,_respectively.","Forget_triple,_Orion's_Bonuses_are_now_quadruple!","The_upgrade_Feather_Restart_now_gives_a_5x_feather_bonus_instead_of_the_previous_3x.","Quadruple?_Pfft_more_like_Noobruple,_Orion's_Bonuses_are_now_Quintuple_at_big,_that's_5x!","The_cost_of_Feather_Generation_upgrade_now_goes_up_25%_slower.","Orion's_bonuses_are_now_{x_higher_than_they_were_at_first."],parseOwl=e=>{var t,l,d,y,h,g,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed;let ep=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[253],ey=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[263],eh=m.owlData.map((t,l)=>{var u,d,y,h,g,E,b,L;let k=1/(1+10*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[257])/100)*(1/(1+20*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[261])/100))*(1/(1+getMegaFeather(e,2)*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[254])/100))*(null==t?void 0:t.x1),V=0===l?k*(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[254+l])*Math.pow(Math.max(1.05,(null==t?void 0:t.x2)-.025*getMegaFeather(e,8)),null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[254+l]):k*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[254+l]),j=null==e?void 0:null===(b=e.accountOptions)||void 0===b?void 0:b[254+l],ee=null===m.owlData||void 0===m.owlData?void 0:null===(L=m.owlData[l+1])||void 0===L?void 0:L.x3;return{...t,cost:V,level:j,nextLvReq:ee,unlocked:ey>(null==t?void 0:t.x3)}}),eT=null==eh?void 0:eh.findIndex(e=>{let{level:t,x3:l}=e;return ey{var m,u;return{description:t,unlocked:l+1<=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[262]),...9===l?{amount:(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[262])-10,totalBonus:1+eg/100}:{}}});return{upgrades:eh,bonuses:eS,feathers:ep,progress:ey,nextLvReq:ef,megaFeathers:eN,featherRate:ev,restartMulti:Math.pow(3+2*getMegaFeather(e,6),(null==e?void 0:null===(ed=e.accountOptions)||void 0===ed?void 0:ed[258])+1)}},getMegaFeather=(e,t)=>{var l,m;return(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[262])>t?9===t?(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[262])-9:1:0},getOwlBonus=(e,t)=>{var l;return null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.bonus}},78713:function(e,t,l){"use strict";l.d(t,{P:function(){return getIslands},a:function(){return getIsland}});var m=l(30925),u=l(29129),d=l(10924);let y=["Get_as_much_total_stats_as_possible,_STR_AGI_WIS_and_LUK_combined.","Get_as_much_STR_stat_as_you_can.","Get_as_much_AGI_stat_as_you_can.","Get_as_much_WIS_stat_as_you_can.","Get_as_much_LUK_stat_as_you_can.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_beginner","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_warrior.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_archer.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_mage.","Get_the_highest_Accuracy_stat_you_can.","Get_the_highest_Defence_stat._Tank_mains;_it's_your_moment!","Get_the_highest_Movement_Speed_you_can.","Get_the_highest_Critical_Chance_%_you_can.","Spawn_as_many_Giant_Mobs_this_week_as_you_can.","Get_the_highest_Max_HP_as_possible.","Get_the_highest_Max_MP_as_possible.","Get_as_many_individual_hits_on_the_DPS_Dummy_as_you_can_within_the_timer.","Get_as_much_Mining_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Choppin_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Fishing_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Catching_Efficiency_(number_of_digits)_as_you_can.","Claim_as_much_Guild_GP_this_week_as_you_can."],h=[{effect:"+{,Base_STR",divider:12},{effect:"+{,Base_AGI",divider:12},{effect:"+{,Base_WIS",divider:12},{effect:"+{,Base_LUK",divider:10},{effect:"+{%,Total_DMG",divider:3},{effect:"+{%,Class_EXP",divider:4},{effect:"+{%,Skill_Eff",divider:5}],g=[{effect:"1_in_100000_chance_for_Trophy_per_hr_of_Nothing_AFK",cost:24},{effect:"1.25x_Dungeon_Credits_and_Flurbos_gained",cost:200},{effect:"-30%_Kitchen_Upgrade_Costs",cost:750},{effect:"1.20x_Chance_to_find_Sailing_Artifacts",cost:2500},{effect:"Dirty_Shovel_digs_up_+25%_more_Gold_Nuggets",cost:1e4},{effect:"+100_Star_Talent_Pts",cost:2e4},{effect:"World_6_Bonus..._I_wonder_what_it_will_be...",cost:4e4},{effect:"World_7_Bonus..._I_wonder_what_it_will_be...",cost:6e4}],getIslands=e=>{var t,l,y,h,g,E,b,L,k,V,j,ee;let ea;let el=null===(t=(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[169])||"")||void 0===t?void 0:t.split(""),eo=null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:null===(y=h[169])||void 0===y?void 0:y.length,e_={0:0,1:8,2:32,3:80,4:200,5:500},ec={0:0,1:15,2:45,3:100,4:200,5:500},em=[{name:"Trash",description:"Trade_garbage_that_washs_up_each_day_for_items",preUnlockCost:4,baseCost:10},{name:"Rando",description:"Guaranteed_Random_Event_once_a_week",preUnlockCost:12,baseCost:12},{name:"Crystal",description:"Fight_daily_giant_crystal_mobs_that_drop_candy",preUnlockCost:20,baseCost:15},{name:"Seasalt",description:"Catch_legendary_fish_for_crafting_World_6_equips",preUnlockCost:28,baseCost:50},{name:"Shimmer",description:"Do_Weekly_Challenges_for_Shimmer_Upgrades",preUnlockCost:40,baseCost:25},{name:"Fractal",description:"Dump_your_time_candy_here_for..._nothing...?",preUnlockCost:52,baseCost:70}].map((t,l)=>({...t,unlocked:(null==el?void 0:el.indexOf(null===m.number2letter||void 0===m.number2letter?void 0:m.number2letter[l]))!==-1,cost:0===eo?t.preUnlockCost+(null==e_?void 0:e_[eo]):t.baseCost+(null==ec?void 0:ec[eo]),...extraIslandDetails(e,l)})),ed=null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[162],ep=(0,u.k)(null==e?void 0:e.bribes,"Bottle_Service"),ey=(0,d.U7)(null==e?void 0:e.bundles,"bun_p")?30:0,eh=null==e?void 0:null===(k=e.quests)||void 0===k?void 0:null===(L=k["Yum-Yum_Desert"])||void 0===L?void 0:null===(b=L.find(e=>{let{name:t}=e;return"Omar_Da_Ogar"===t}))||void 0===b?void 0:null===(E=b.npcQuests)||void 0===E?void 0:E.reduce((e,t)=>{let{completed:l}=t;return e+((null==l?void 0:l.length)>0?1:0)},0),eT=null==e?void 0:null===(V=e.accountOptions)||void 0===V?void 0:V[164],ef=null===(j=e.accountOptions)||void 0===j?void 0:j[160],ev=null===(ee=e.accountOptions)||void 0===ee?void 0:ee[163];ea=14>ef?.25+ef:Math.pow(8*ef,.5);let eg=0===ef?0:Math.round(3*ea*Math.floor(1.01+(.5+(Math.min(ef,70)/100+ev/5))));return{islandsUnlocked:eo,bottles:ed,bottlesPerDay:Math.floor(4*(1+(ep+(10*eT+10*eh+ey))/100)),trashPerDay:Math.round(3.75*Math.floor(1.01+(.5+(.01+ev/5)))),trashPerDaysAfk:eg,numberOfDaysAfk:ef,list:em}},extraIslandDetails=(e,t)=>{var l,u,d,E,b,L,k,V,j,ee,ea;let el={};if(0===t){let t=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[161],m=["data/StampB47","data/StampB32","data/StampA38","data/StampA39","etc/Trash_Currency","etc/Bribe","data/Island1","data/TalentBook1","data/EquipmentNametag6b"],y=["Skelefish Stamp","Amplestample Stamp","Golden Sixes Stamp","Stat Wallstreet Stamp","+20% Garbage Gain","Unlock New Bribe Set","10% Message Bottle Gain","Filthy Damage Special Talent Book","Trash Tuna Nametag"],h=[20,40,80,300,7*Math.pow(1.4,null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[163]),135,25*Math.pow(1.5,null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[164]),450,1500].map((t,l)=>{var u,d;let h=4===l?null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[163]:6===l?null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[164]:null;return{cost:Math.round(t),effect:null==m?void 0:m[l],upgrades:h,name:null==y?void 0:y[l]}});el={trash:t,learnMore:!0,shop:h}}else if(1===t)el={learnMore:!0,shop:[{effect:"5% Loot (".concat(null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[166],")"),cost:Math.round(10*Math.pow(1.5,null==e?void 0:null===(b=e.accountOptions)||void 0===b?void 0:b[166]))},{effect:"3% Double boss (".concat(null==e?void 0:null===(L=e.accountOptions)||void 0===L?void 0:L[167],")"),cost:Math.round(6*Math.pow(1.4,null==e?void 0:null===(k=e.accountOptions)||void 0===k?void 0:k[167]))},{effect:"Star book",cost:200}]};else if(4===t){let t=null==e?void 0:null===(V=e.accountOptions)||void 0===V?void 0:V[183],l=(0,m.notateNumber)(null==e?void 0:null===(j=e.accountOptions)||void 0===j?void 0:j[172]),u=null==e?void 0:null===(ee=e.accountOptions)||void 0===ee?void 0:ee[173],d=null==h?void 0:h.map((t,l)=>{var m,u;let{effect:d,divider:y}=t,h=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[174+l];return{effect:null==d?void 0:null===(u=d.replace("{",h))||void 0===u?void 0:u.replace(","," "),bonus:h,cost:1+Math.floor(h/y)}});el={shop:d,currentTrial:y[t],bestDpsEver:l,shimmerCurrency:u,learnMore:!0}}else if(5===t){let t=null==e?void 0:null===(ea=e.accountOptions)||void 0===ea?void 0:ea[184];el={hoursAfk:t,shop:null==g?void 0:g.map(e=>({...e,unlocked:t>(null==e?void 0:e.cost)})),learnMore:!0}}return el},getIsland=(e,t)=>{var l,m;return null==e?void 0:null===(m=e.islands)||void 0===m?void 0:null===(l=m.list)||void 0===l?void 0:l.find(e=>{let{name:l}=e;return l===t})}},30183:function(e,t,l){"use strict";l.d(t,{E:function(){return getKangaroo},u:function(){return getKangarooBonus}});var m=l(70473),u=l(30925);let getKangaroo=(e,t)=>parseKangaroo(t),d=["Unlocks_the_first_3_upgrades_in_the_Tar_Pit,_visit_through_top_left_corner","Boosts_all_of_Poppy's_Bonuses_by_1.5x_their_base_amount","Adds_two_more_Reset_Spirals_to_upgrade,_and_gives_+5_Pts_when_Fisheroo_Resetting","Boosts_all_of_Poppy's_Bonuses_by_2x_their_base_amount.","Unlocks_another_3_upgrades_in_the_Tar_Pit,_and_boosts_Tartar_Fish_gain_by_3x","The_Fishing_Buddy_upgrade_now_gives_+50%_Bluefin_caught_and_+50%_Shiny_Speed_per_Lv_past_Lv.5!","Boosts_all_of_Poppy's_Bonuses_by_2.5x_their_base_amount","Unlocks_the_final_2_upgrades_in_the_Tar_Pit,_and_boosts_Tartar_Fish_gain_by_another_3x","Boosts_all_of_Poppy's_Bonuses_by_3x_their_base_amount","Shiny_fishing_is_1%_faster_per_upgrade_LV_of_the_Tasty_Fishbait_upgrade","All_upgrades,_including_Tar_Pit_upgrades,_are_5%_cheaper_per_LV_of_King_Worm_upgrade","Poppy's_bonuses_are_now_{x_higher_than_they_were_at_first"],y=["{x_bluefin_fish_caught","{x_shiny_fishing_speed_and_luck","All_upgrades_are_{x_cheaper","Other_Reset_bonuses_are_{x_higher","{x_Tartar_fish_caught"],parseKangaroo=e=>{var t,l,h,g,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh,eT,ef,ev,eg,eS;let eN=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[267],eC=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[280],eR=m.poppyBonuses.map((t,l)=>{var u,d,y,h,g,E,b;let L=0===l?1+(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[268]):1,k=L*(1/(1+10*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[272])/100))*(1/(1+15*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[300])/100))*(1/(1+5*getMegaFish(e,10)*(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[304])/100)),V=k*(1/Math.max(1,getResetBonuses(e,2)))*(null==t?void 0:t.x1)*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[268+l]),j=null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[268+l],ee=null===m.poppyBonuses||void 0===m.poppyBonuses?void 0:null===(b=m.poppyBonuses[l+1])||void 0===b?void 0:b.x3,ea=formatDescription(e,j,null==t?void 0:t.desc,0,l,m.poppyBonuses);return{...t,cost:V,level:j,nextLvReq:ee,desc:ea,unlocked:eC>(null==t?void 0:t.x3)||0===l}}),eI=null==eR?void 0:eR.findIndex(e=>{let{level:t,x3:l}=e;return eC{var u,d,y,h;let g=1/(1+5*getMegaFish(e,10)*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[304])/100),E=(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[297+l])+g*(null==t?void 0:t.x1)*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[297+l]),b=null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[297+l],L=formatDescription(e,b,null==t?void 0:t.desc,1,l,m.poppyTarBonuses);return{...t,cost:E,level:b,desc:L,unlocked:l{var m,u;return{description:t,unlocked:l+1<=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[279]),...11===l?{amount:(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[279])-12,totalBonus:1+eM/100}:{}}}),eW=y.map((t,l)=>{var m;return{desc:t.replace("{",Math.round(100*getResetBonuses(e,l))/100),level:null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[291+l]}}),eH=getShinyMulti(e,-1);eH=1e3>getShinyMulti(e,-1)?(0,u.notateNumber)(eH,"MultiplierInfo"):1e7>getShinyMulti(e,-1)?(0,u.commaNotation)(eH):(0,u.notateNumber)(eH,"MultiplierInfo");let eK=[0,1,2,3,4,5].map(t=>{var l;let m=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[281+t],d=getShinyMulti(e,t),y=(10>d?(0,u.notateNumber)(d,"MultiplierInfo"):100>d?""+Math.floor(10*d)/10:""+Math.floor(d)).replace(".00","");return{multi:y,amount:1e4>m?""+Math.round(m):""+(0,u.notateNumber)(m,"Big")}});return{resetBonuses:eW,upgrades:eR,bonuses:eO,fish:eN,progress:eC,nextLvReq:ew,megaFish:ek,fishRate:eP,tarFishRate:eL,tarFishOwned:eA,totalMulti:eH,allMultipliers:eK,tarUpgrades:ex,shinyProgress:eB,shinyRate:eQ,shinyRatePercent:100*Math.max(0,eQ/eG)}},formatDescription=(e,t,l,m,d,y)=>{var h,g,E,b,L;let k=l;return(k=(k=(k=k.replace("{",""+(0,u.commaNotation)((null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[Math.round(268+29*m+d)])*(null===(g=y[d])||void 0===g?void 0:g.x6)))).replace("]",""+Math.round(100+t*(null===(E=y[d])||void 0===E?void 0:E.x6))/100)).replace("~",""+(0,u.notateNumber)(100*(1-1/(1+t*(null===(b=y[d])||void 0===b?void 0:b.x6)/100)),"Small"))).replace("?",""+(0,u.notateNumber)((null===(L=y[d])||void 0===L?void 0:L.x6)*(t/(40+t)),"Small"))},getMegaFish=(e,t)=>{var l,m;return(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[279])>t?11===t?(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[279])-11:1:0},getShinyMulti=(e,t)=>{var l;let m=1;return t<0?m*=getShinyMulti(e,0)*getShinyMulti(e,1)*getShinyMulti(e,2)*getShinyMulti(e,3)*getShinyMulti(e,4)*getShinyMulti(e,5):(0===t&&(m=30),1===t&&(m=50),2===t&&(m=100),3===t&&(m=150),4===t&&(m=250),5===t&&(m=500),1+m*Math.log(Math.max(1,null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[Math.round(281+t)]))/100)},getResetBonuses=(e,t)=>{var l,m,u,d,y,h,g;let E=0===t?1+.4*(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[291]):1===t?1+.3*(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[292]):2===t?1+.15*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[293]):3===t?1+.04*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[294]):1+.2*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[295]),b=3!==t&&0<(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[291+t])?1+.04*(null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[294]):1;return E*b},getKangarooBonus=(e,t)=>{var l;return null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.bonus}},48832:function(e,t,l){"use strict";l.d(t,{F:function(){return getVoteBonus},X:function(){return getVoteBallot}});var m=l(72973),u=l(70473);let getVoteBallot=(e,t)=>parseVoteBallot(e,t),parseVoteBallot=(e,t)=>{var l;let{votePercent:d,voteCategories:y}=(null==t?void 0:t.serverVars)||{},[h,...g]=y||[],E=1+(0,m.z)(null==t?void 0:null===(l=t.equinox)||void 0===l?void 0:l.upgrades,"Voter_Rights")/100,b=u.ninjaExtraInfo[38].split(" ").toChunks(3).map((e,t)=>{let l=g.findIndex(e=>e===t);return{...e,icon:"VoteBon".concat(t,".png"),active:l>-1,selected:h===t,percent:(null==d?void 0:d[l])||0,bonus:parseFloat(null==e?void 0:e[1])*E}});return{bonuses:b,voteMulti:E,selectedBonus:null==b?void 0:b[h]}},getVoteBonus=(e,t)=>{var l,m,u,d,y,h;let g=null==e?void 0:null===(u=e.voteBallot)||void 0===u?void 0:null===(m=u.bonuses)||void 0===m?void 0:null===(l=m[t])||void 0===l?void 0:l.selected;return g?null==e?void 0:null===(h=e.voteBallot)||void 0===h?void 0:null===(y=h.bonuses)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d.bonus:0}},67896:function(e,t,l){"use strict";l.d(t,{RB:function(){return isRiftBonusUnlocked},lC:function(){return getConstructMastery},wE:function(){return getRift}});var m=l(30925),u=l(70473),d=l(47212);let getRift=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.Rift)||(null==e?void 0:e.Rift);return parseRift(t)},parseRift=e=>{let[t,l,m]=e||[];return{list:u.riftInfo,currentRift:parseInt(t),currentProgress:l,chars:m}},isRiftBonusUnlocked=(e,t)=>{var l;return null==e?void 0:null===(l=e.list)||void 0===l?void 0:l.find((l,m)=>{let{riftBonus:u}=l;return u===t&&m<=(null==e?void 0:e.currentRift)})},getConstructMastery=(e,t)=>"Ref Spd"===t?e>=(null===d.q5||void 0===d.q5?void 0:d.q5[0])?Math.floor(e/10):0:"Dmg"===t?e>=(null===d.q5||void 0===d.q5?void 0:d.q5[2])?2*Math.floor((e-(null===d.q5||void 0===d.q5?void 0:d.q5[2]))/10):0:"Build Spd"===t&&e>=(null===d.q5||void 0===d.q5?void 0:d.q5[4])?5*Math.floor((e-(null===d.q5||void 0===d.q5?void 0:d.q5[4]))/10):0},77115:function(e,t,l){"use strict";l.d(t,{Ss:function(){return getRanksTotalBonus},UA:function(){return getFarming},YA:function(){return getTotalCrop},af:function(){return getProductDoubler},iz:function(){return getLandRank},nT:function(){return updateFarming}});var m=l(30925),u=l(70473),d=l(8616),y=l(96707),h=l(88054),g=l(15893),E=l(13339),b=l(9339);let getFarming=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.FarmUpg),u=(0,m.tryToParse)(null==e?void 0:e.FarmPlot),d=(0,m.tryToParse)(null==e?void 0:e.FarmCrop),y=(0,m.tryToParse)(null==e?void 0:e.FarmRank);return parseFarming(l,u,d,y,t)},parseFarming=(e,t,l,m,y)=>{var h,g,E,L,k,V,j,ee;let ea=null==y?void 0:null===(h=y.gemShopPurchases)||void 0===h?void 0:h.find((e,t)=>139===t),el=null==e?void 0:e.slice(2,u.marketInfo.length+2),eo=null==e?void 0:e[1],e_=null==e?void 0:e[19],ec=null===u.marketInfo||void 0===u.marketInfo?void 0:u.marketInfo.map((e,t)=>{var l;let{cropId:m,cropIdIncrement:u,cost:d,costExponent:y,bonusPerLvl:h,maxLvl:g,bonus:E}=e,b=null!==(l=null==el?void 0:el[t])&&void 0!==l?l:0;return{...e,level:b,type:getCropType({index:t,cropId:m,cropIdIncrement:u,level:b}),cost:d*Math.pow(y,b),nextUpgrades:getNextUpgradesReq({index:t,cropId:m,cropIdIncrement:u,level:b,maxLvl:g,cost:d,costExponent:y}),costToMax:calcCostToMax({level:b,maxLvl:g,cost:d,costExponent:y}),baseValue:E.includes("}")?1+b*h/100:b*h}}),[em,ed,ep]=m||[],ey=null==em?void 0:em.reduce((e,t)=>e+t,0),eh=null==ep?void 0:ep.reduce((e,t)=>e+t,0),eT=null===(g=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[37])||void 0===g?void 0:g.split(" "),ef=null===(E=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[34])||void 0===E?void 0:E.split(" "),ev=null===(k=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[36])||void 0===k?void 0:null===(L=k.split(" "))||void 0===L?void 0:L.map(e=>parseFloat(e)),eg=null===(j=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[35])||void 0===j?void 0:null===(V=j.split(" "))||void 0===V?void 0:V.map((e,t)=>{let l=null==ef?void 0:ef[t],m=null==ev?void 0:ev[t],u=null==ep?void 0:ep[t],d=null==eT?void 0:eT[t];return{name:l,description:e,bonus:4===t||9===t||14===t||19===t?Math.min(m,m*u):1.7*m*u/(u+80),upgradeLevel:u,unlockAt:d}}),eS=null==t?void 0:t.map((e,t)=>{var l;let[m,d,y,h,g,E,b]=e,L=Math.round((null===u.seedInfo||void 0===u.seedInfo?void 0:null===(l=u.seedInfo[m])||void 0===l?void 0:l.cropIdMin)+y),k=null==em?void 0:em[t],V=null==ed?void 0:ed[t];return{rank:k,rankProgress:V,rankRequirement:(7*k+25*Math.floor(k/5)+10)*Math.pow(1.11,k),seedType:m,cropType:L,cropQuantity:g,cropProgress:b,progress:d,growthReq:14400*Math.pow(1.5,m),isLocked:h,currentOG:E,cropRawName:"FarmCrop".concat(L,".png"),seedRawName:"Seed_".concat(m,".png")}}),eN=getMarketBonus(ec,"LAND_PLOTS"),eC=Object.entries(l||{}).reduce((e,t)=>{var l,m;let[d,y]=t,h=u.seedInfo.find(e=>parseFloat(d)>=e.cropIdMin&&parseFloat(d)<=e.cropIdMax);return e+parseFloat(y)*Math.pow(2.5,null!==(l=null==h?void 0:h.seedId)&&void 0!==l?l:0)*Math.pow(1.08,d-(null!==(m=null==h?void 0:h.cropIdMin)&&void 0!==m?m:0))},0),eR=null!==(ee=(0,d.x5)(y,"Deal_Sweetening"))&&void 0!==ee?ee:0,eI=getMarketBonus(ec,"MORE_BEENZ"),ew=(0,b.k6)(null==y?void 0:y.achievements,363);return{plot:eS,crop:{...l,beans:eo},market:ec,cropsFound:Object.keys(l||{}).length,cropsOnVine:Math.floor(1+(eN+20*ea)/100),instaGrow:e_,beanTrade:Math.pow(eC,.5)*(1+eI/100)*(1+(25*eR+5*ew)/100),ranks:eg,totalPoints:ey,usedPoints:eh,totalRanks:null==em?void 0:em.reduce((e,t)=>e+t,0)}},getRanksTotalBonus=(e,t)=>{var l,m,u,d,y,h,g,E,b,L,k,V,j;return 0===t?(1+(null==e?void 0:null===(l=e[3])||void 0===l?void 0:l.bonus)/100)*(1+(null==e?void 0:null===(m=e[10])||void 0===m?void 0:m.bonus)/100)*(1+(null==e?void 0:null===(u=e[15])||void 0===u?void 0:u.bonus)/100):1===t?(null==e?void 0:null===(d=e[8])||void 0===d?void 0:d.bonus)+(null==e?void 0:null===(y=e[17])||void 0===y?void 0:y.bonus):2===t?(null==e?void 0:null===(h=e[6])||void 0===h?void 0:h.bonus)+(null==e?void 0:null===(g=e[13])||void 0===g?void 0:g.bonus):3===t?(null==e?void 0:null===(E=e[7])||void 0===E?void 0:E.bonus)+((null==e?void 0:null===(b=e[11])||void 0===b?void 0:b.bonus)+(null==e?void 0:null===(L=e[18])||void 0===L?void 0:L.bonus)):4===t?(null==e?void 0:null===(k=e[5])||void 0===k?void 0:k.bonus)+((null==e?void 0:null===(V=e[12])||void 0===V?void 0:V.bonus)+(null==e?void 0:null===(j=e[16])||void 0===j?void 0:j.bonus)):1},getCropsWithStockEqualOrGreaterThan=(e,t)=>{var l;return null===(l=Object.values(e))||void 0===l?void 0:l.filter(e=>e>=t).length},getMarketUpgradeBonusValue=(e,t,l)=>{let m=e.find((e,t)=>t===l);if(!m)return 0;switch(l){case 7:return m.level*m.bonusPerLvl;case 9:return getMarketUpgradeBonusValue(e,t,15)*Math.pow(1+m.level*m.bonusPerLvl/100,getCropsWithStockEqualOrGreaterThan(t,200));case 11:return 1+m.level*m.bonusPerLvl/100;case 10:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e3)/100);case 12:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,2500)/100);case 13:return 0;case 14:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e4)/100);case 15:return 1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e5)/100;default:return m.bonus.includes("}")?1+m.level*m.bonusPerLvl/100:m.level*m.bonusPerLvl}},updateFarming=(e,t)=>{var l,m,u,g,L;let k=null==t?void 0:null===(m=t.farming)||void 0===m?void 0:null===(l=m.market)||void 0===l?void 0:l.map((e,l)=>{var m,u;return{...e,value:getMarketUpgradeBonusValue(null==t?void 0:null===(m=t.farming)||void 0===m?void 0:m.market,null==t?void 0:null===(u=t.farming)||void 0===u?void 0:u.crop,l)}}),V=getMarketBonus(k,"NUTRITIOUS_SOIL"),j=getMarketBonus(k,"SPEED_GMO","value"),ee=(0,h.iu)(null==t?void 0:null===(u=t.alchemy)||void 0===u?void 0:u.vials,"6FarmSpd"),ea=(0,E.R)(t,"14400*Math.pow(1.5,e)/el),e_=null==t?void 0:null===(L=t.farming)||void 0===L?void 0:null===(g=L.plot)||void 0===g?void 0:g.map(l=>{var m,u,h,g;let E=getMarketBonus(null==t?void 0:null===(m=t.farming)||void 0===m?void 0:m.market,"OG_FERTILIZER"),L=(0,d.vq)(t,"Taffy_Disc"),k=(0,y.o9)(null==e?void 0:e[0],t,"OG_Chance"),V=(0,b.k6)(null==t?void 0:t.achievements,365),j=Math.pow(.4,(null==l?void 0:l.currentOG)+1)*Math.max(1,E)*(1+L/100)*(1+k/100)*(1+2*(null==t?void 0:null===(g=t.tasks)||void 0===g?void 0:null===(h=g[2])||void 0===h?void 0:null===(u=h[5])||void 0===u?void 0:u[2])/100)*(1+15*V/100),ee=((null==l?void 0:l.growthReq)-(null==l?void 0:l.cropProgress))/el,ea=(null==l?void 0:l.growthReq)/el,eo=Math.min(1e9,Math.max(1,Math.pow(2,null==l?void 0:l.currentOG)));return{...l,nextOGChance:j,growthRate:el,ogMulti:eo,timeLeft:ee,maxTimeLeft:ea}});return{...(null==t?void 0:t.farming)||{},plot:e_,cropDepot:getCropDepotBonuses(t),market:k,maxTimes:eo}},getNextUpgradesReq=e=>{let{index:t,cropId:l,cropIdIncrement:m,level:u,maxLvl:d,cost:y,costExponent:h,isUnique:g=!0}=e,E=new Map,b=0;for(;E.size<4&&u+b{let[t,l]=e;return{type:t,cost:l}})},getCropType=e=>{let{index:t,cropId:l,cropIdIncrement:m,level:u}=e;return 0===t?Math.floor(l+m*(u+(2*Math.floor(u/3)+Math.floor(u/4)))):Math.floor(l+m*u)},getCropDepotBonuses=e=>{var t,l,m,u,y,h,E,b,L;let k=(0,g.c9)(null==e?void 0:null===(t=e.lab)||void 0===t?void 0:t.labBonuses,17),V=(0,g.c9)(null==e?void 0:e.lab.labBonuses,8),j=(0,g.pc)(null==e?void 0:null===(l=e.lab)||void 0===l?void 0:l.jewels,20,V),ee={damage:{name:"DMG",value:0},gamingEvo:{name:"Gaming Evo",value:0},jadeCoin:{name:"Jade Coin",value:0},cookingSpeed:{name:"Meal Spd",value:0},cash:{name:"Cash",value:0},shiny:{name:"Pet Rate",value:0},critters:{name:"Critters",value:0}};return(0,d.x5)(e,"Reinforced_Science_Pencil")&&(ee.damage.value=20*Math.round(null==e?void 0:null===(m=e.farming)||void 0===m?void 0:m.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Pen")&&(ee.gamingEvo.value=Math.pow(1.02,Math.round(null==e?void 0:null===(u=e.farming)||void 0===u?void 0:u.cropsFound))*(1+(k+j)/100)),(0,d.x5)(e,"Science_Marker")&&(ee.jadeCoin.value=8*Math.round(null==e?void 0:null===(y=e.farming)||void 0===y?void 0:y.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Featherpen")&&(ee.cookingSpeed.value=Math.pow(1.1,Math.round(null==e?void 0:null===(h=e.farming)||void 0===h?void 0:h.cropsFound))*(1+(k+j)/100)),(0,d.x5)(e,"Science_Environmentally_Sourced_Pencil")&&(ee.cash.value=15*Math.round(null==e?void 0:null===(E=e.farming)||void 0===E?void 0:E.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Crayon")&&(ee.shiny.value=7*Math.round(null==e?void 0:null===(b=e.farming)||void 0===b?void 0:b.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Paintbrush")&&(ee.critters.value=.1*Math.round(null==e?void 0:null===(L=e.farming)||void 0===L?void 0:L.cropsFound)*(1+(k+j)/100)),ee},getMarketBonus=function(e,t){var l,m;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"baseValue";return null!==(m=null===(l=null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l[u])&&void 0!==m?m:0},getLandRank=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}),calcCostToMax=e=>{let{level:t,maxLvl:l,cost:m,costExponent:u}=e,d=0;for(let e=t;enull==e?void 0:e.reduce((e,m)=>{let{seedType:u,cropQuantity:d,cropRawName:y,ogMulti:h,rank:g}=m;if(-1===u)return e;let{productDoubler:E}=getProductDoubler(t),b=getLandRank(l,"Production_Boost"),L=Math.min(100,Math.round(Math.max(1,Math.floor(1+E/100))*(1+getRanksTotalBonus(l,1)/100)*(1+(null==b?void 0:b.bonus)*(null!=g?g:0)/100)));return{...e,[y]:((null==e?void 0:e[y])||0)+d*h*L}},{}),getProductDoubler=e=>{var t;let l=(null==e?void 0:null===(t=e[5])||void 0===t?void 0:t.value)||0;return{productDoubler:l,percent:l%100,multi:Math.max(2,Math.floor(l/100)+1)}}},8616:function(e,t,l){"use strict";l.d(t,{$8:function(){return calcTotalBeanstalkLevel},JL:function(){return getSneaking},vq:function(){return getCharmBonus},x5:function(){return isJadeBonusUnlocked}});var m=l(30925),u=l(70473);let getSneaking=(e,t,l,u)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Ninja);return parseSneaking(d,t,l,u)},d=(null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[3]).split(" "),parseSneaking=(e,t,l,y)=>{var h,g,E,b,L,k,V;let j=null==e?void 0:null===(h=e[106])||void 0===h?void 0:h.filter(e=>e.includes("NjGem")),ee=Object.entries(u.ninjaEquipment).reduce((e,t)=>{let[l,m]=t;return l.includes("NjGem")?[...e,m]:[]},[]).map((e,t)=>{var l,m;let u=null==j?void 0:j[t],d=null!==(m=null==y?void 0:null===(l=y.accountOptions)||void 0===l?void 0:l[233+t])&&void 0!==m?m:0,h=d<.5?0:getGemstoneBonus({...e,baseValue:d},t,0);return{...e,unlocked:u,baseValue:d,bonus:h}});ee=ee.map((e,t)=>{var l;let m=(null==e?void 0:e.baseValue)<.5?0:getGemstoneBonus(e,t,null==ee?void 0:null===(l=ee[5])||void 0===l?void 0:l.bonus);return{...e,bonus:m}});let ea=null==e?void 0:null===(g=e[102])||void 0===g?void 0:g[9],el=null==e?void 0:null===(E=e[102])||void 0===E?void 0:E[1],eo=null==e?void 0:null===(b=e[102])||void 0===b?void 0:b[2],e_=null==e?void 0:e[103],ec=null==e?void 0:e[104],em=null==e?void 0:e[100],ed=d.reduce((e,t,l)=>{var m,u;let d=(null==y?void 0:null===(m=y.accountOptions)||void 0===m?void 0:m[231])<(null==y?void 0:null===(u=y.accountOptions)||void 0===u?void 0:u[232])?0:parseFloat(t);return e+(d-(null==em?void 0:em[l])<=0?1:0)},1),ep=null===(L=y.accountOptions)||void 0===L?void 0:L[231],ey=null==e?void 0:null===(k=e.slice(0,null==l?void 0:l.length))||void 0===k?void 0:k.map(e=>{let[t,l]=e;return{floor:t,activityInfo:l}}),eh=null===(V=u.ninjaExtraInfo.slice(13,21).map(e=>e.split(" ").toChunks(2)))||void 0===V?void 0:V.map(e=>null==e?void 0:e.map(e=>{let[t,l]=e;return{...u.ninjaEquipment[t],dropChance:l}})),eT=null===u.ninjaUpgrades||void 0===u.ninjaUpgrades?void 0:u.ninjaUpgrades.map((e,t)=>{var l;return{...e,level:null==e_?void 0:e_[t+1],value:(null==e_?void 0:e_[t+1])*(null!==(l=e.modifier)&&void 0!==l?l:1)}}),ef=u.ninjaExtraInfo[24].split(" "),ev=parseNinjaItems(null==e?void 0:e.slice(60,99),!1),eg=getInventoryNinjaItem({sneaking:{inventory:ev}},"Gold_Scroll"),eS=parseNinjaItems(null==e?void 0:e.slice(12,12+(null==l?void 0:l.length)*4),!0),eN=l.map((e,t)=>{var l;return{equipment:null==eS?void 0:null===(l=eS[t])||void 0===l?void 0:l.map(e=>({...e,value:(null==e?void 0:e.value)*(1+eg/100)})),...(null==ey?void 0:ey[t])||[]}}),eC=0,eR=u.jadeUpgrades.map((e,t)=>{let l=!!ea&&(null==ea?void 0:ea.indexOf(null===m.number2letter||void 0===m.number2letter?void 0:m.number2letter[t]))!==-1;return l&&(eC+=1),{...e,originalIndex:t,index:null==ef?void 0:ef.indexOf(t+""),unlocked:l}});eR.sort((e,t)=>e.index-t.index);let eI=eR.map((e,l)=>{let m;if(8===l){var u;let e=null==y?void 0:null===(u=y.looty)||void 0===u?void 0:u.rawLootedItems;m=5*Math.floor(Math.max(0,e-1e3)/10)}return{...e,cost:(300+500*l+Math.pow(l,3))*Math.pow(Math.max(1,t.A_empoExpon),l)*Math.pow(3.07,Math.max(0,l-28)),bonus:m}}),ew=u.pristineCharms.map((t,l)=>{var m;return{...t,unlocked:null==e?void 0:null===(m=e[107])||void 0===m?void 0:m[l],value:(null==t?void 0:t.bonus.includes("}"))?1+(null==t?void 0:t.x3)/100:null==t?void 0:t.x3,baseValue:null==t?void 0:t.x3}});return{jadeEmporium:eI,jadeCoins:el,upgrades:eT,characterEquipments:eS,inventory:ev,players:eN,pristineCharms:ew,dropList:eh,doorsCurrentHp:em,beanstalkData:ec,totalJadeEmporiumUnlocked:eC,unlockedFloors:0===ep?Math.min(12,ed):12,gemStones:ee,lastLooted:eo}},getGemstoneBonus=(e,t,l)=>5==t?(null==e?void 0:e.x3)+(null==e?void 0:e.x5)*((null==e?void 0:e.baseValue)/(1e3+(null==e?void 0:e.baseValue))):((null==e?void 0:e.x3)+(null==e?void 0:e.x5)*((null==e?void 0:e.baseValue)/(1e3+(null==e?void 0:e.baseValue))))*(1+l/100),parseNinjaItems=(e,t)=>{let l=null==e?void 0:e.map(e=>{let[t,l]=e;return{...u.ninjaEquipment[t],level:l}});if(t){var m;return null==l?void 0:null===(m=l.toChunks(4))||void 0===m?void 0:m.map(e=>e.map(e=>({...e,value:getItemValue(e)})))}return null==l?void 0:l.map(e=>({...e,value:getItemValue(e)}))},getItemValue=e=>{let{type:t,level:l,x3:m,x4:u}=e;return 1==t?m*Math.pow(1.23,l):2==t?Math.min(m+u*(l/(l+50)),u):0},getInventoryNinjaItem=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.inventory)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.value},isJadeBonusUnlocked=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.jadeEmporium)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.unlocked},getCharmBonus=(e,t)=>{var l,m,u,d;return null!==(d=null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.pristineCharms)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l,unlocked:m}=e;return l===t&&m}))||void 0===l?void 0:l.baseValue)&&void 0!==d?d:0},calcTotalBeanstalkLevel=e=>null==e?void 0:e.reduce((e,t)=>e+t,0)},13339:function(e,t,l){"use strict";l.d(t,{R:function(){return getWinnerBonus},a:function(){return getSummoning}});var m=l(30925),u=l(70473),d=l(8616),y=l(16727),h=l(9339);let getSummoning=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Summon);return parseSummoning(u,t,l)},parseSummoning=(e,t,l)=>{var g;let E=null==e?void 0:e[0],b=null==E?void 0:E.reduce((e,t)=>e+t,0),L=null==e?void 0:e[3],k=null==e?void 0:e[1],V=null==e?void 0:e[2],j=["piggo","Wild_Boar","Mallay","Squirrel","Whale","Bunny","Chippy","Cool_Bird","Hedgehog"],ee=["Pet1","Pet2","Pet3","Pet0","Pet4","Pet6","Pet5","Pet10","Pet11"],ea=[[],[],[],[],[],[],[],[]],{familiarsOwned:el}=(null!==(g=null==e?void 0:e[4])&&void 0!==g?g:[]).reduce((e,t,l)=>(e.familiarsOwned+=e.multiplier*t,e.multiplier*=l+3,e),{familiarsOwned:0,multiplier:1}),eo={0:0,1:0,2:0,3:0,4:0,5:0,6:0};ee.forEach((e,t)=>{let l=u.summoningEnemies.find(t=>t.enemyId===e);if(l){let m=getBattleData(e,l,k);ea[0].push({...l,...m,icon:"afk_targets/".concat(null==j?void 0:j[t])})}}),u.deathNote.forEach(e=>{let{rawName:t,world:l}=e,m=u.summoningEnemies.find(e=>e.enemyId===t);if(m){let e=getBattleData(t,m,k);ea[l+1].push({...m,...e})}});let e_=null==k?void 0:k.reduce((e,t)=>{let l=u.summoningEnemies.find(e=>e.enemyId===t);if(l){let t=u.summoningBonuses.find(e=>e.bonusId===l.bonusId);if(t){e[l.bonusId]?e[l.bonusId]+=parseFloat(l.bonusQty):e[l.bonusId]=parseFloat(l.bonusQty);let t=ee.findIndex(e=>l.enemyId===e);if(-1!==t)eo[0]+=1;else{let e=u.deathNote.find(e=>{let{rawName:t}=e;return l.enemyId===t});e&&(eo[e.world+1]+=1)}}}return e},{}),ec=u.summoningBonuses.map(e=>{var l,m,u,g,E;let{bonusId:b,bonus:L}=e,k=null==e_?void 0:e_[b],V=(0,d.vq)(t,"Crystal_Comb"),j=null!==(E=null===(l=(0,y.YS)(null==t?void 0:null===(m=t.sailing)||void 0===m?void 0:m.artifacts,"The_Winz_Lantern"))||void 0===l?void 0:l.bonus)&&void 0!==E?E:0,ee=(0,h.k6)(null==t?void 0:t.achievements,373),ea=(0,h.k6)(null==t?void 0:t.achievements,379),{bonusPerLevel:el,level:eo}=null==t?void 0:null===(g=t.meritsDescriptions)||void 0===g?void 0:null===(u=g[5])||void 0===u?void 0:u[4];return{bonusId:b,bonus:L,value:k?3.5*(null==e_?void 0:e_[b])*(1+V/100)*(1+(j+(Math.min(10,eo*el)+(ee+ea)))/100):0,baseValue:k}}),em=u.summoningUpgrades.map((e,t)=>({...e,originalIndex:t,level:null==E?void 0:E[t],value:(null==E?void 0:E[t])*e.bonusQty}));em=updateTotalBonuses(em=em.map((e,t)=>{let l=em.find(e=>{let{originalIndex:t}=e;return 49===t}),m=em.find(e=>{let{originalIndex:t}=e;return 57===t}),u=1/(1+(null==l?void 0:l.value)/100)*(1/(1+(null==m?void 0:m.value)/100))*(null==e?void 0:e.cost)*Math.pow(null==e?void 0:e.costExponent,null==E?void 0:E[t]);return{...e,totalCost:u}}),eo,l);let ed=getArmyHealth(em,b),ep=getArmyDamage(em,b);return{upgrades:em=(0,m.groupByKey)(em,e=>{let{colour:t}=e;return t}),winnerBonuses:ec,essences:V,totalUpgradesLevels:b,familiarsOwned:el,allBattles:ea,armyHealth:ed,armyDamage:ep,killroyStat:L}},getArmyHealth=(e,t)=>{let l=[1,10,35,37].reduce((t,l)=>{let m=e.find(e=>{let{originalIndex:t}=e;return t===l})||{};return t+(null==m?void 0:m.value)},0),m=e.find(e=>{let{originalIndex:t}=e;return 20===t}),u=e.find(e=>{let{originalIndex:t}=e;return 50===t}),d=e.find(e=>{let{originalIndex:t}=e;return 59===t}),y=e.find(e=>{let{originalIndex:t}=e;return 61===t});return 1*(1+l)*(1+(null==m?void 0:m.value)/100)*(1+((null==u?void 0:u.value)+(null==d?void 0:d.value))/100)*(1+(null==y?void 0:y.value)*Math.max(0,Math.floor(t/100))/100)},getArmyDamage=(e,t)=>{let l=[3,12,21,31].reduce((t,l)=>{let m=e.find(e=>{let{originalIndex:t}=e;return t===l})||{};return t+(null==m?void 0:m.value)},0),m=e.find(e=>{let{originalIndex:t}=e;return 43===t}),u=e.find(e=>{let{originalIndex:t}=e;return 51===t}),d=e.find(e=>{let{originalIndex:t}=e;return 56===t}),y=e.find(e=>{let{originalIndex:t}=e;return 47===t}),h=e.find(e=>{let{originalIndex:t}=e;return 60===t});return 1*(1+l)*(1+(null==m?void 0:m.value)/100)*(1+((null==u?void 0:u.value)+(null==d?void 0:d.value))/100)*(1+(null==y?void 0:y.value)*0/100)*(1+(null==h?void 0:h.value)*Math.max(0,Math.floor(t/100))/100)},getBattleData=(e,t,l)=>{var d;let y="data/mface".concat(null===u.monsters||void 0===u.monsters?void 0:null===(d=u.monsters[e])||void 0===d?void 0:d.MonsterFace),h=null==l?void 0:l.includes(e),{bonus:g,bonusId:E}=u.summoningBonuses.find(e=>e.bonusId===t.bonusId),b=3.5*(null==t?void 0:t.bonusQty),L=g.includes("<")?(0,m.notateNumber)(1+b/100,"MultiplierInfo"):(0,m.notateNumber)(b,"Big"),k={bonusId:E,bonus:g.replace(/[<{]/,L)};return{bonus:k,won:h,icon:y}},getWinnerBonus=(e,t)=>{var l,m,u,d;return null!==(d=null==e?void 0:null===(u=e.summoning)||void 0===u?void 0:null===(m=u.winnerBonuses)||void 0===m?void 0:null===(l=m.find(e=>{let{bonus:l}=e;return l===t}))||void 0===l?void 0:l.value)&&void 0!==d?d:0},updateTotalBonuses=(e,t,l)=>{let m=Object.values(t).reduce((e,t)=>e+t,0),u=e.reduce((e,t)=>{let{level:l}=t;return e+l},0);return e.map(e=>{let d="";switch(e.originalIndex){case 0:d=e.value*m;break;case 11:case 18:d=e.value*t[1];break;case 27:d=e.value*t[2];break;case 38:d=e.value*t[3];break;case 54:d=e.value*t[6];break;case 49:case 57:d=e.value;break;case 30:case 40:case 65:case 66:case 67:case 46:case 52:case 58:var y,h,g;d=e.value*(null!==(g=null==l?void 0:null===(h=l[0])||void 0===h?void 0:null===(y=h.Lv0)||void 0===y?void 0:y[18])&&void 0!==g?g:1);break;case 60:case 61:d=e.value*(u/100);break;case 62:case 63:case 64:d=0}return{...e,totalBonus:d}})}},15265:function(e,t,l){"use strict";l.d(t,{CU:function(){return getTotalizerBonuses},Ew:function(){return getTotems},Qq:function(){return getChargeWithSyphon},T8:function(){return getPlayerWorship},kV:function(){return getClosestWorshiper},w:function(){return getSoulsReward}});var m=l(1972),u=l(30925),d=l(54685),y=l(30796),h=l(4056),g=l(88054),E=l(70473),b=l(8616),L=l(20385);let getTotems=e=>{var t;let l=(0,u.tryToParse)(null==e?void 0:e.TotemInfo)||(null==e?void 0:e.TotemInfo),m=null===E.randomList||void 0===E.randomList?void 0:null===(t=E.randomList[10])||void 0===t?void 0:t.split(" "),d=[26,63,30,107,155,208,259];return null==m?void 0:m.map((e,t)=>{var m,u;let y=null!==(u=null==l?void 0:null===(m=l[0])||void 0===m?void 0:m[t])&&void 0!==u?u:0,h=0===y?0:Math.pow((5+y)/10,2.6),g=null===E.mapNames||void 0===E.mapNames?void 0:E.mapNames[null==d?void 0:d[t]],b=null===E.totems||void 0===E.totems?void 0:E.totems[t];return{...b,name:e,maxWave:y,waveMulti:h,expReward:Math.floor(15*Math.pow(t+1,2)*Math.pow(h,.9))||0,map:g}})},getTotalizerBonuses=e=>{var t,l,m,u,d,y;let h=(0,L.Ob)(e,"MSA_Totalizer"),g=Math.floor((null==e?void 0:null===(t=e.towers)||void 0===t?void 0:t.totalWaves)/10);return{damage:{name:"DMG",value:h&&(null==h?void 0:h.bonus)||0},sailing:{name:"SPD",value:h&&(null===(l=(0,L.Ob)(e,"MSA_Sailing"))||void 0===l?void 0:l.bonus)||0},classExp:{name:"Class XP",value:h&&(null===(m=(0,L.Ob)(e,"MSA_Class_EXP"))||void 0===m?void 0:m.bonus)||0},cookingSpeed:{name:"Meal Spd",value:h&&(null===(u=(0,L.Ob)(e,"MSA_Mealing"))||void 0===u?void 0:u.bonus)||0},bit:{name:"Bit",value:h&&(null===(d=(0,L.Ob)(e,"MSA_Big_Bits"))||void 0===d?void 0:d.bonus)||0},skillExp:{name:"Skill XP",value:h&&(null===(y=(0,L.Ob)(e,"MSA_Skill_EXP"))||void 0===y?void 0:y.bonus)||0},farmingExp:{name:"Farming XP",value:h&&(0,b.x5)(e,"MSA_Expander_I")?g:0},jadeCoin:{name:"Jade Coin",value:h&&(0,b.x5)(e,"MSA_Expander_II")?g:0},essence:{name:"Essence",value:h&&(0,b.x5)(e,"MSA_Expander_III")?g:0}}},getSoulsReward=e=>{let{waveMulti:t,minEfficiency:l,efficiency:m,foodEffect:u}=e;return Math.floor(5*(1+(m>=l?Math.floor(100*Math.pow(m/(10*l),.25)):0)/100)*t*(1+u/100))},getMaxCharge=(e,t)=>{var l,u,E,b,L,k,V;let j=null===y.nl||void 0===y.nl?void 0:y.nl[null==e?void 0:e.class],ee=(0,d.OK)(null==t?void 0:t.cards,"Max_Charge"),ea=(0,h.xV)(null==e?void 0:e.postOffice,"Crate_of_the_Creator",1),el=(0,y.eZ)(null==e?void 0:e.activeBuffs,"CHARGE_SYPHON","y"),eo=(0,m.mV)(t,"Max_Charge",e),e_=(0,g.om)(null==t?void 0:null===(l=t.alchemy)||void 0===l?void 0:l.bubbles,"high-iq","GOSPEL_LEADER",!1,"wisdom"===j),ec=(0,g.y7)(null==e?void 0:e.equippedBubbles,"high-iq","CALL_ME_POPE",t),em=(null==e?void 0:null===(E=e.tools)||void 0===E?void 0:null===(u=E[5])||void 0===u?void 0:u.rawName)!=="Blank"?null==e?void 0:null===(L=e.tools)||void 0===L?void 0:null===(b=L[5])||void 0===b?void 0:b.lvReqToCraft:0;return Math.floor(Math.max(50,ee+ea+(el+(eo+e_*Math.floor((null==e?void 0:null===(V=e.skillsInfo)||void 0===V?void 0:null===(k=V.worship)||void 0===k?void 0:k.level)/10))+Math.round(em)*Math.max(ec,1))))},getChargeRate=(e,t)=>{var l,u,h,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let eT=(null==e?void 0:null===(u=e.tools)||void 0===u?void 0:null===(l=u[5])||void 0===l?void 0:l.rawName)!=="Blank"?null==e?void 0:null===(E=e.tools)||void 0===E?void 0:null===(h=E[5])||void 0===h?void 0:h.Speed:0,ef=(0,d.OK)(null==t?void 0:t.cards,"Charge_Rate"),ev=(0,m.mV)(t,"Charge_Rate_per_Hour",e),eg=(0,y._X)(null==e?void 0:e.talents,2,"NEARBY_OUTLET"),eS=(0,g.y7)(null==e?void 0:e.equippedBubbles,"high-iq","CALL_ME_POPE",t);return eT<3?6/Math.max(5.7+Math.pow(4-eT,2.2)-(.9*Math.pow(null==e?void 0:null===(L=e.skillsInfo)||void 0===L?void 0:null===(b=L.worship)||void 0===b?void 0:b.level,.5)/(Math.pow(null==e?void 0:null===(V=e.skillsInfo)||void 0===V?void 0:null===(k=V.worship)||void 0===k?void 0:k.level,.5)+250)+.6*(null==e?void 0:null===(ee=e.skillsInfo)||void 0===ee?void 0:null===(j=ee.worship)||void 0===j?void 0:j.level)/((null==e?void 0:null===(el=e.skillsInfo)||void 0===el?void 0:null===(ea=el.worship)||void 0===ea?void 0:ea.level)+40)),.57)*Math.max(eS,1)*(1+(ef+ev)/100)*Math.max(eg,1):6/Math.max(5.7-(.2*Math.pow(eT,1.3)+(.9*Math.pow(null==e?void 0:null===(e_=e.skillsInfo)||void 0===e_?void 0:null===(eo=e_.worship)||void 0===eo?void 0:eo.level,.5)/(Math.pow(null==e?void 0:null===(em=e.skillsInfo)||void 0===em?void 0:null===(ec=em.worship)||void 0===ec?void 0:ec.level,.5)+250)+.6*(null==e?void 0:null===(ep=e.skillsInfo)||void 0===ep?void 0:null===(ed=ep.worship)||void 0===ed?void 0:ed.level)/((null==e?void 0:null===(eh=e.skillsInfo)||void 0===eh?void 0:null===(ey=eh.worship)||void 0===ey?void 0:ey.level)+40))),.57)*Math.max(eS,1)*(1+(ef+ev)/100)*Math.max(eg,1)},getPlayerWorship=(e,t,l)=>{let m=getMaxCharge(e,t),d=getChargeRate(e,t),y=new Date().getTime()-e.afkTime,h=Math.min(parseInt(l)+d*(y/1e3/3600),m);return{maxCharge:(0,u.round)(m),chargeRate:(0,u.round)(d),currentCharge:(0,u.round)(h)}},getClosestWorshiper=e=>null==e?void 0:e.reduce((e,t)=>{var l,m,u;let d=((null==t?void 0:null===(l=t.worship)||void 0===l?void 0:l.maxCharge)-(null==t?void 0:null===(m=t.worship)||void 0===m?void 0:m.currentCharge))/(null==t?void 0:null===(u=t.worship)||void 0===u?void 0:u.chargeRate)*36e5;return 0!==d&&d<(null==e?void 0:e.timeLeft)?{character:null==t?void 0:t.name,timeLeft:d}:e},{character:null,timeLeft:1/0}),getChargeWithSyphon=e=>{var t;let l=null==e?void 0:e.reduce((e,t)=>{let{worship:l}=t;return e+((null==l?void 0:l.currentCharge)||0)},0),m=null==e?void 0:e.reduce((e,t)=>{let{worship:l}=t;return e+((null==l?void 0:l.chargeRate)||0)},0),u=(0,y.A5)(e,2,"Wizard","CHARGE_SYPHON","y")||0,d=(0,y.L1)(e,2,"Wizard","CHARGE_SYPHON","y");return{bestWizard:d,totalCharge:l,bestChargeSyphon:u,totalChargeRate:m,timeToOverCharge:new Date().getTime()+(((null==d?void 0:null===(t=d.worship)||void 0===t?void 0:t.maxCharge)||0)+u-l)/m*36e5}}},7650:function(){String.prototype.capitalize=function(){return this?this.charAt(0).toUpperCase()+this.slice(1):""},String.prototype.camelToTitleCase=function(){if(!this)return"";let e=this.replace(/([A-Z0-9"])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},String.prototype.capitalizeAllWords=function(){return this.replace(/\b\w/g,function(e){return e.toUpperCase()})},String.prototype.capitalizeAll=function(){return this?this.split("_").map(e=>e.capitalize()).join("_"):""},String.prototype.firstCharLowerCase=function(){return this.charAt(0).toLowerCase()+this.slice(1)},String.prototype.toCamelCase=function(){return this.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")},Array.prototype.toSimpleObject=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.reduce((t,l)=>({...t,[l]:e}),{})},Array.prototype.toObjectByIndex=function(){return Object.entries(this).reduce((e,t)=>{let[l,m]=t;return{...e,[l]:m}},{})},Array.prototype.toChunks=function(e){return this.reduce((t,l,m)=>{let u=Math.floor(m/e);return t[u]=[].concat(t[u]||[],l),t},[])},Date.prototype.stdTimezoneOffset=function(){let e=new Date(this.getFullYear(),0,1),t=new Date(this.getFullYear(),6,1);return Math.max(e.getTimezoneOffset(),t.getTimezoneOffset())},Date.prototype.isDstObserved=function(){return this.getTimezoneOffset(){let{profile:l,uid:m,leaderboardConsent:u}=e;try{let e=parseProfile(l),d=await fetch("".concat(g,"/profiles"),{method:"POST",body:JSON.stringify({profile:e,uid:m,leaderboardConsent:u}),headers:{"Content-Type":"application/json",Authorization:t}});if((null==d?void 0:d.status)!==200)throw d;return d}catch(e){if(console.error("Error has occurred: ",e),(null==e?void 0:e.status)===429)throw"You have uploaded your profile in the past 4 hours. Please wait until the cooldown is over.";throw(null==e?void 0:e.status)===500||null==e||e.status,"An error has occurred while uploading your profile. Please try again later."}},getProfile=async e=>{let{mainChar:t}=e;try{let e=await fetch("".concat(g,"/profiles/?profile=").concat(t),{method:"GET",headers:{"Content-Type":"application/json"}});if(!e)return null;return await (null==e?void 0:e.json())}catch(e){throw console.error("".concat(m," -> Error has occurred while getting profile for ").concat(t)),e}},fetchLeaderboards=async()=>{try{let e=await fetch("".concat(g,"/leaderboards"),{method:"GET",headers:{"Content-Type":"application/json"}});if(!e)return null;return await (null==e?void 0:e.json())}catch(e){throw console.error("".concat(m," -> Error has occurred while getting leaderboards")),e}},expandLeaderboardInfo=(e,t)=>{var l,m,u,g,E,b,L,k;let V=Math.max(...t.map(l=>{var m;return(null===(m=(0,d.VK)(l,e,t))||void 0===m?void 0:m.dropRate)||0})),j=t.map(l=>(0,y.m)(l,t,e)),ee=Math.max(...j.map(e=>{let{defence:t}=e;return null==t?void 0:t.value})),ea=Math.max(...j.map(e=>{let{accuracy:t}=e;return t})),el=Math.max(...j.map(e=>{let{maxHp:t}=e;return t})),eo=Math.max(...j.map(e=>{let{maxMp:t}=e;return t})),e_=(null==e?void 0:null===(g=e.deathNote)||void 0===g?void 0:null===(u=g[0])||void 0===u?void 0:null===(m=u.mobs)||void 0===m?void 0:null===(l=m[0])||void 0===l?void 0:l.kills)||0,ec=(0,h.NW)(null==e?void 0:null===(E=e.sailing)||void 0===E?void 0:E.boats),em=null==e?void 0:null===(L=e.gaming)||void 0===L?void 0:null===(b=L.logBook)||void 0===b?void 0:b.reduce((e,t)=>{let{unlocked:l}=t;return e+l},0);return{dropRate:withDefault(V),defence:withDefault(ee),accuracy:withDefault(ea),hp:withDefault(el),mp:withDefault(eo),logBook:em,totalShinyLevels:withDefault(null==e?void 0:null===(k=e.breeding)||void 0===k?void 0:k.totalShinyLevels),greenMushroomKills:e_,totalBoats:ec}},withDefault=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return isNaN(e)?t:e},parseProfile=e=>{let t=Object.entries(e.data).reduce((e,t)=>{let[l,m]=t;return e[l]=(0,u.tryToParse)(m),e},{});return{...e,data:t}}},49946:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var m=l(13274),u=l(87462),d=l(71387);function isUnitless(e){return String(parseFloat(e)).length===String(e).length}function getUnit(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(e){return parseFloat(e)}function convertLength(e){return(t,l)=>{let m=getUnit(t);if(m===l)return t;let u=toUnitless(t);"px"!==m&&("em"===m?u=toUnitless(t)*toUnitless(e):"rem"===m&&(u=toUnitless(t)*toUnitless(e)));let d=u;if("px"!==l){if("em"===l)d=u/toUnitless(e);else{if("rem"!==l)return t;d=u/toUnitless(e)}}return parseFloat(d.toFixed(5))+l}}function alignProperty({size:e,grid:t}){let l=e-e%t,m=l+t;return e-l{let u=t+h*l;null!==d&&(u=d(u)),y[`@media (min-width:${l}px)`]={[e]:`${Math.round(1e4*u)/1e4}${m}`}}),y}function responsiveFontSizes(e,t={}){let{breakpoints:l=["sm","md","lg"],disableAlign:m=!1,factor:y=2,variants:h=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,g=(0,u.Z)({},e);g.typography=(0,u.Z)({},g.typography);let E=g.typography,b=convertLength(E.htmlFontSize),L=l.map(e=>g.breakpoints.values[e]);return h.forEach(e=>{let t=E[e],l=parseFloat(b(t.fontSize,"rem"));if(l<=1)return;let{lineHeight:h}=t;if(!isUnitless(h)&&!m)throw Error((0,d.Z)(6));isUnitless(h)||(h=parseFloat(b(h,"rem"))/parseFloat(l));let g=null;m||(g=e=>alignProperty({size:e,grid:fontGrid({pixels:4,lineHeight:h,htmlFontSize:E.htmlFontSize})})),E[e]=(0,u.Z)({},t,responsiveProperty({cssProperty:"fontSize",min:1+(l-1)/y,max:l,unit:"rem",breakpoints:L,transform:g}))}),g}let y=(0,m.Z)({palette:{mode:"dark",multi:"#1073ce",multiLight:"#94baee",background:{default:"#222831",paper:"#222831"}},components:{MuiCardContent:{styleOverrides:{root:{"&:last-child":{padding:16}}}},MuiTooltip:{styleOverrides:{tooltip:{padding:8}}},MuiAppBar:{styleOverrides:{root:{background:"#222831"}}}}});var h=y=responsiveFontSizes(y,{factor:2.5})},32805:function(e,t,l){"use strict";l.d(t,{T:function(){return u},s:function(){return m}});let m="85%",u={PICKAXE:0,HATCHET:1,ROD:2,NET:3,TRAP:4,SKULL:5}},30925:function(e,t,l){"use strict";l.r(t),l.d(t,{cleanUnderscore:function(){return cleanUnderscore},cloneObject:function(){return cloneObject},commaNotation:function(){return commaNotation},constellationIndexes:function(){return constellationIndexes},createArrayOfArrays:function(){return createArrayOfArrays},createIndexedArray:function(){return createIndexedArray},createRange:function(){return createRange},downloadFile:function(){return downloadFile},eventsColors:function(){return L},fillArrayToLength:function(){return fillArrayToLength},fillMissingTalents:function(){return fillMissingTalents},findNameCombination:function(){return findNameCombination},flatten:function(){return flatten},getBitIndex:function(){return getBitIndex},getCoinsArray:function(){return getCoinsArray},getDuration:function(){return getDuration},getNumberWithOrdinal:function(){return getNumberWithOrdinal},getRandomNumbersArray:function(){return getRandomNumbersArray},getRealDateInMs:function(){return getRealDateInMs},getTimeAsDays:function(){return getTimeAsDays},groupByKey:function(){return groupByKey},growth:function(){return growth},handleCopyToClipboard:function(){return handleCopyToClipboard},handleDownload:function(){return handleDownload},isProd:function(){return ee},kFormatter:function(){return kFormatter},lavaLog:function(){return lavaLog},migrateConfig:function(){return migrateConfig},msToDate:function(){return msToDate},notateNumber:function(){return notateNumber},number2letter:function(){return k},numberWithCommas:function(){return numberWithCommas},pascalCase:function(){return pascalCase},prefix:function(){return el},randomFloatBetween:function(){return randomFloatBetween},removeDuplicatesByKey:function(){return removeDuplicatesByKey},round:function(){return round},sections:function(){return j},shouldDisplayDrawer:function(){return shouldDisplayDrawer},splitTime:function(){return splitTime},totalHoursBetweenDates:function(){return totalHoursBetweenDates},tryToParse:function(){return tryToParse},worlds:function(){return V},worldsArray:function(){return ea}});var m=l(40929),u=l(19013),d=l(13882);function getDaysInMonth(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e),l=t.getFullYear(),m=t.getMonth(),y=new Date(0);return y.setFullYear(l,m+1,0),y.setHours(0,0,0,0),y.getDate()}function isLeapYear(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}function getDaysInYear(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e);return"Invalid Date"===String(new Date(t))?NaN:isLeapYear(t)?366:365}var y=l(24228),h=l(61436),g=l(52196),E=l(72378),b=l.n(E);let downloadFile=(e,t)=>{let l=new Blob([e],{type:"text/json"}),m=document.createElement("a");m.download=t,m.href=window.URL.createObjectURL(l),m.dataset.downloadurl=["text/json",m.download,m.href].join(":");let u=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});m.dispatchEvent(u),m.remove()},getTimeAsDays=e=>Math.ceil(36e5*e/864e5),L={Meteorite:"#f8e8b7",Mega_Grumblo:"#e6b471",Glacial_Guild:"#65b8d6",Snake_Swarm:"#3f9c61",Angry_Frogs:"#f6b5f8"},k=["_","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],tryToParse=e=>{try{return JSON.parse(e)}catch(t){return e}},findNameCombination=(e,t)=>{if(!e)return[];let l=[];function find(t,m){if(""===t){l.push(m);return}for(let l=0;lnull==e?void 0:e.map(e=>(Array.isArray(e)||null!=e&&delete e.length,Object.values(e))),createIndexedArray=e=>{let t=Math.max(...Object.keys(e)),l=[];for(let m=0;m<=t;m++)(null==e?void 0:e[m])?l[m]=null==e?void 0:e[m]:l[m]={};return l},growth=function(e,t,l,m){let u,d=!(arguments.length>4)||void 0===arguments[4]||arguments[4];switch(e){case"add":u=0!==m?((l+m)/m+.5*(t-1))/(l/m)*t*l:t*l;break;case"decay":u=t*l/(t+m);break;case"intervalAdd":u=l+Math.floor(t/m);break;case"decayMulti":u=1+t*l/(t+m);break;case"bigBase":u=l+m*t;break;case"special1":u=100-t*l/(t+m);break;default:u=0}return d?round(u):u},lavaLog=e=>Math.log(Math.max(e,1))/2.303,round=e=>Math.round((e+Number.EPSILON)*100)/100,createRange=(e,t)=>{let l=[];for(let m=e;m<=t;m++)l.push(m);return l},cloneObject=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return e}},cleanUnderscore=e=>{try{var t;if(!e)return"";return null===(t=String(e))||void 0===t?void 0:t.replace(/_/g," ")}catch(t){console.log("Error in cleanUnderscore for ".concat(e),t)}},getNumberWithOrdinal=e=>{let t=["th","st","nd","rd"],l=e%100;return e+(t[(l-20)%10]||t[l]||"th")},kFormatter=function(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(void 0===e)return null;let m=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"},{value:1e15,symbol:"Q"},{value:1e18,symbol:"QQ"}];for(t=m.length-1;t>0&&!(e>=m[t].value);t--);return(e/m[t].value).toFixed(l).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+m[t].symbol};function splitDecimal(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l="-"===e[0];e=e.replace("-","");let m=e.split("."),u=m[0],d=m[1]||"";return{beforeDecimal:u,afterDecimal:d,hasNegation:l,addNegation:l&&t}}function applyThousandSeparator(e,t){let l=e.search(/[1-9]/);return l=-1===l?e.length:l,e.substring(0,l)+e.substring(l,e.length).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}let numberWithCommas=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e=String(e);let l=-1!==e.indexOf("."),{beforeDecimal:m,afterDecimal:u,addNegation:d}=splitDecimal(e);return e=(m=applyThousandSeparator(m,","))+(t&&l&&"."||"")+(t?u:"")},pascalCase=e=>null==e?void 0:e.split(/_/g).map(e=>e.toLowerCase().charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("_"),getCoinsArray=e=>{let t=BigInt(Math.floor(e)).toString(),l=new Map,m=1;for(;t.length>0&&m<15;){if(t.length<2){l.set(m,Number(t)),t="";break}let e=Number(t.slice(-2));l.set(m,e),t=t.slice(0,-2),m+=1}return t.length>0&&l.set(15,Number(t)),0===l.size&&l.set(1,0),Array.from(l=new Map([...l].sort((e,t)=>e[0]-t[0]).reverse()))},getBitIndex=e=>{let t=e,l=0;for(let e=0;e<4;e++)t>1e18&&(t/=1e18,l++);return l},notateNumber=(e,t)=>{if("bits"===t){let t=e;for(let e=0;e<4;e++)t>1e18&&(t/=1e18);return 1e4>t?Math.floor(t):1e5>t?Math.floor(t/100)/10+"K":1e6>t?Math.floor(t/1e3)+"K":1e7>t?Math.floor(t/1e4)/100+"M":1e8>t?Math.floor(t/1e5)/10+"M":1e9>t?Math.floor(t/1e6)+"M":1e10>t?Math.floor(t/1e7)/100+"B":1e11>t?Math.floor(t/1e8)/10+"B":1e12>t?Math.floor(t/1e9)+"B":1e13>t?Math.floor(t/1e10)/100+"T":1e14>t?Math.floor(t/1e11)/10+"T":1e15>t?Math.floor(t/1e12)+"T":1e16>t?Math.floor(t/1e13)/100+"Q":1e17>t?Math.floor(t/1e14)/10+"Q":1e18>t?Math.floor(t/1e15)+"Q":Math.floor(t/Math.pow(10,Math.floor(lavaLog(t)))*100)/100+"E"+Math.floor(lavaLog(t))}return"Whole"===t?1e4>e?""+Math.floor(e):1e6>e?Math.floor(e/1e3)+"K":1e7>e?Math.floor(e/1e5)/10+"M":1e9>e?Math.floor(e/1e6)+"M":1e10>e?Math.floor(e/1e8)/10+"B":Math.floor(e/1e9)+"B":"MultiplierInfo"===t?0==10*e%10?Math.round(e)+".00":0==100*e%10?Math.round(10*e)/10+"0":Math.round(100*e)/100+"":"Micro"===t?10e?"Small"===t?1>e?""+Math.round(100*e)/100:""+Math.round(10*e)/10:"Smallish"===t?10>e?""+Math.round(10*e)/10:""+Math.round(e):"Smaller"===t?10>e?""+Math.round(100*e)/100:""+Math.round(10*e)/10:""+Math.floor(e):1e3>e?""+Math.floor(e):1e4>e?"Bigish"===t?""+Math.floor(e):Math.ceil(e/10)/100+"K":1e5>e?Math.ceil(e/100)/10+"K":1e6>e?Math.ceil(e/1e3)+"K":1e7>e?Math.ceil(e/1e4)/100+"M":1e8>e?Math.ceil(e/1e5)/10+"M":1e10>e?Math.ceil(e/1e6)+"M":1e13>e?Math.ceil(e/1e9)+"B":1e16>e?Math.ceil(e/1e12)+"T":1e19>e?Math.ceil(e/1e15)+"Q":1e22>e?Math.ceil(e/1e18)+"QQ":1e24>e?Math.ceil(e/1e21)+"QQQ":Math.floor(e/Math.pow(10,Math.floor(lavaLog(e)))*100)/100+"E"+Math.floor(lavaLog(e))},commaNotation=e=>{let t="",l=""+Math.round(e),m=Math.floor((l.length-1)/3)+1,u=l.length-3*Math.floor((l.length-1)/3);for(let e=0;e{var t;let l={_:0,a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8,i:9};return null==e?void 0:null===(t=e.split(""))||void 0===t?void 0:t.map(e=>null==l?void 0:l[e]).sort((e,t)=>e-t).map(e=>e+1).join(",")},V={0:"Blunder Hills",1:"Yum Yum Desert",2:"Frostbite Tundra",3:"Hyperion Nebula",4:"Smolderin' Plateau",5:"Spirited Valley"},getDuration=(e,t)=>{if(e>9007199254740992||t>9007199254740992)return{};try{let l=new Date(e),m=new Date(t),u=(0,y.Z)({start:l,end:m});if(null==u?void 0:u.years){let e=getDaysInYear(new Date);u.days=u.days+e*(null==u?void 0:u.years),u.years=0}if(null==u?void 0:u.months){let e=getDaysInMonth(new Date);u.days=u.days+e*(null==u?void 0:u.months),u.months=0}return u}catch(l){return console.error("getDuration -> Error occurred when trying to format date",e,t),{}}},totalHoursBetweenDates=(e,t)=>{try{let l=(0,y.Z)({start:e,end:t}),m=8766*l.years,u=30.44*l.months*24,d=24*l.days;return m+u+d+l.hours}catch(l){return console.error("totalHoursBetweenDates -> Error occurred when trying to format date",e,t),{}}},fillArrayToLength=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[...Array(e)].map((e,m)=>t&&(null==t?void 0:t[m])||l)},splitTime=e=>{let t=e%24,l=Math.floor(t),m=Math.floor(60*(t-l));return"".concat(Math.floor(e/24),"d:").concat(l,"h:").concat(m,"m")},randomFloatBetween=function(e,t){return e<=t?e+Math.random()*(t-e):t+Math.random()*(e-t)},flatten=(e,t)=>(Object.keys(e).forEach(l=>{"object"==typeof e[l]?t=flatten(e[l],t):t[l]=e[l]}),t),j=[{name:"Activity"},{name:"Stats"},{name:"Bags"},{name:"Obols"},{name:"Obols Stats"},{name:"Cards"},{name:"Skills"},{name:"Prayers"},{name:"Talents"},{name:"Equipment"},{name:"Star Signs"},{name:"Post Office"},{name:"Anvil Details"},{name:"Inventory"},{name:"Chips"},{name:"Equipped Bubbles"},{name:"Active Skills CD"}],ee=!0,getRandomNumbersArray=(e,t)=>{let l=[];for(;l.length0&&void 0!==arguments[0]?arguments[0]:"";return g.jt.includes(null==e?void 0:e.split("/").at(1))},getRealDateInMs=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?(0,h.Z)(new Date(e))?(0,m.Z)(e,"dd/MM/yyyy HH:mm:ss"):"".concat(notateNumber(getTimeAsDays(e))," days"):e},msToDate=e=>{let t=String(Math.floor(e/36e5)).padStart(2,"0"),l=String(Math.floor(e%36e5/6e4)).padStart(2,"0"),m=String(Math.floor(e%6e4/1e3)).padStart(2,"0"),u=String(Math.floor(e%1e3)).padStart(3,"0");return e<6e4?"".concat(m,"s:").concat(u,"ms"):"".concat(t,"h:").concat(l,"m:").concat(m,"s")},fillMissingTalents=e=>{let t=e.map(e=>e.talentId),l=Math.min(...t),m=Array.from({length:Math.max(...t)-l+1},(e,t)=>t+l).filter(e=>!t.includes(e)).map(e=>({talentId:e}));return e.concat(m).sort((e,t)=>e.talentId-t.talentId)},removeDuplicatesByKey=(e,t)=>{let l=new Set;return e.filter(e=>{let m=e[t];return!l.has(m)&&(l.add(m),!0)})},groupByKey=(e,t)=>e.reduce(function(e,l){let m=t(l);return e[m]||(e[m]=[]),e[m].push(l),e},{}),migrateConfig=(e,t,l,m,u)=>m!==u&&"account"===e?b()(t,renameSettingInPostOffice(l)):b()(t,l);function renameSettingInPostOffice(e){var t,l,m;return(null==e?void 0:null===(t=e["World 2"])||void 0===t?void 0:t.postOffice)&&(null==e?void 0:null===(l=e["World 2"])||void 0===l?void 0:l.postOffice.options)&&(e["World 2"].postOffice.options=null==e?void 0:null===(m=e["World 2"])||void 0===m?void 0:m.postOffice.options.map(e=>"shields"===e.name?{...e,name:"dailyShipments",category:"dailyShipments"}:e).filter(e=>"postOffice"!==e.name)),e}let handleCopyToClipboard=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{let l=t?JSON.stringify(e,null,2):e;await navigator.clipboard.writeText(l)}catch(e){console.error(e)}},handleDownload=(e,t)=>{let l=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),m=URL.createObjectURL(l),u=document.createElement("a");u.href=m,u.download="".concat(t,".json"),document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(m)},ea=["World 1","World 2","World 3","World 4","World 5","World 6"],el="/"},74044:function(e,t){"use strict";let l={};l._mul=Math.imul;var fc=function(e){this.init(e)};fc.__name__="Rand",fc.hash=function(e,t){return null==t&&(t=5381),e=l._mul(e,-862048943),t^=e=l._mul(e<<15|e>>>17,461845907),t=l._mul(t<<13|t>>>19,5)+-430675100|0,t=l._mul(t^t>>16,-2048144789),(t=l._mul(t^t>>13,-1028477387))^t>>16},fc.inlineHash=function(e,t){return e=l._mul(e,-862048943),t^=e=l._mul(e<<15|e>>>17,461845907),t=l._mul(t<<13|t>>>19,5)+-430675100|0,t=l._mul(t^t>>16,-2048144789),(t=l._mul(t^t>>13,-1028477387))^t>>16},fc.prototype={seed:null,seed2:null,init:function(e){this.seed=e,this.seed2=fc.hash(e),0==this.seed&&(this.seed=1),0==this.seed2&&(this.seed2=1)},random:function(e){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(1073741823&((this.seed<<16)+this.seed2|0))%e},shuffle:function(e){for(var t=e.length,l=0;l>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16);var m=(1073741823&((this.seed<<16)+this.seed2|0))%t;this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16);var u=(1073741823&((this.seed<<16)+this.seed2|0))%t,d=e[m];e[m]=e[u],e[u]=d}},rand:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(1073741823&((this.seed<<16)+this.seed2|0))%10007/10007},srand:function(e){return null==e&&(e=1),this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),((this.seed<<16)+this.seed2|0)%10007/10007*e},int:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(this.seed<<16)+this.seed2|0},uint:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),1073741823&((this.seed<<16)+this.seed2|0)},__class__:fc},t.Z=fc},70415:function(){},9008:function(e,t,l){e.exports=l(79201)},41664:function(e,t,l){e.exports=l(65170)},11163:function(e,t,l){e.exports=l(59974)},4298:function(e,t,l){e.exports=l(85354)},34155:function(e){var t,l,m,u=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(l){try{return t.call(null,e,0)}catch(l){return t.call(this,e,0)}}}function runClearTimeout(e){if(l===clearTimeout)return clearTimeout(e);if((l===defaultClearTimeout||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{l="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){l=defaultClearTimeout}}();var d=[],y=!1,h=-1;function cleanUpNextTick(){y&&m&&(y=!1,m.length?d=m.concat(d):h=-1,d.length&&drainQueue())}function drainQueue(){if(!y){var e=runTimeout(cleanUpNextTick);y=!0;for(var t=d.length;t;){for(m=d,d=[];++h1)for(var l=1;l=0||(u[l]=e[l]);return u}l.d(t,{Z:function(){return _objectWithoutPropertiesLoose}})},82729:function(e,t,l){"use strict";function _tagged_template_literal(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}l.d(t,{_:function(){return _tagged_template_literal}})},97582:function(e,t,l){"use strict";function __rest(e,t){var l={};for(var m in e)Object.prototype.hasOwnProperty.call(e,m)&&0>t.indexOf(m)&&(l[m]=e[m]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var u=0,m=Object.getOwnPropertySymbols(e);ut.indexOf(m[u])&&Object.prototype.propertyIsEnumerable.call(e,m[u])&&(l[m[u]]=e[m[u]]);return l}l.d(t,{_T:function(){return __rest}})}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return __webpack_exec__(23837),__webpack_exec__(59974)}),_N_E=e.O()}]);
\ No newline at end of file
+ */registerVersion("firebase","9.22.0","app");var iB=(()=>{let e=getApps();return(null==e?void 0:e.length)>0?null==e?void 0:e[0]:initializeApp({apiKey:"AIzaSyAU62kOE6xhSrFqoXQPv6_WHxYilmoUxDk",authDomain:"idlemmo.firebaseapp.com",databaseURL:"idlemmo.firebaseio.com",storageBucket:"idlemmo.appspot.com",projectId:"idlemmo"})})(),iM=l(30925),iO=l(70473),ik=l(64605);let signInWithToken=async(e,t)=>{let l;let m=index_e3d5d3f4_getAuth(iB);if("apple"===t){let t=new index_e3d5d3f4_OAuthProvider("apple.com");l=t.credential({idToken:null==e?void 0:e.id_token,rawNonce:null==e?void 0:e.nonce})}else"google"===t&&(l=GoogleAuthProvider.credential(e,null));let u=await signInWithCredential(m,l).catch(function(e){let t=e.code;if("auth/account-exists-with-different-credential"===t)throw Error("Email already associated with another account.");throw console.error("Error while trying to sign in with credentials: ",e),Error(e)});return null==u?void 0:u.user},signInWithEmailPassword=async function(){let{email:e,password:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=index_e3d5d3f4_getAuth(iB),m=await signInWithEmailAndPassword(l,e,t).catch(function(e){let t=e.code;if("auth/account-exists-with-different-credential"===t)throw Error("Email already associated with another account.");if("auth/invalid-email"===t||"auth/user-not-found"===t||"auth/invalid-password"===t||"auth/wrong-password"===t)throw Error("Username or password is incorrect");throw console.error("Error while trying to sign in with credentials: ",e),Error(e)});return null==m?void 0:m.user},checkUserStatus=()=>{let e=index_e3d5d3f4_getAuth(iB);return new Promise((t,l)=>{try{e.onAuthStateChanged(e=>{e?t(e):t(null)})}catch(e){l(e)}})},subscribe=async(e,t,l)=>{let m;let u=index_esm2017_getApp(),d=getDatabase(u),y=Rh(u,{});goOnline(d);let h=ref(d),g=await getSnapshot(h,"_uid/".concat(e));if((null==y?void 0:y.type)==="firestore"){let e=await af(gh(y,"_vars","_vars"));e.exists()&&(m=e.data())}if((null==g?void 0:g.length)>0){let u;let d=await af(gh(y,"_data",e));return d.exists()&&(u=d._document.createTime.toTimestamp()),If(gh(y,"_data",e),{includeMetadataChanges:!0},async d=>{if(d.exists()){let y=await getSnapshot(h,"_comp/".concat(e)),E=await getSnapshot(h,"_usgu/".concat(e,"/g")),b=await getSnapshot(h,"_guild/".concat(E)),L=d.data();l(L,g,y,{stats:(0,iM.tryToParse)(null==L?void 0:L.Guild),members:Object.values((null==b?void 0:b.m)||{}),points:null==b?void 0:b.p},m,u,e,t)}},e=>{console.error("Error has occurred on subscribe",e)})}},getGuilds=async e=>{try{var t;let l=Date.now(),m=index_esm2017_getApp(),u=getDatabase(m),d=Rh(m,{}),y=_h(d,"_guildStat"),h=await df(Rl(y)),g=[];h.forEach(e=>{let{stats:t,n:l,i:m}=e.data()||{},u=null==t?void 0:t.reduce((e,t,l)=>{var m,u;return e+(0,ik.TS)(t,null===iO.guildBonuses||void 0===iO.guildBonuses?void 0:null===(m=iO.guildBonuses[l])||void 0===m?void 0:m.gpBaseCost,null===iO.guildBonuses||void 0===iO.guildBonuses?void 0:null===(u=iO.guildBonuses[l])||void 0===u?void 0:u.gpIncrease)},0);g.push({id:e.id,totalStatCost:u,guildName:l,guildIcon:m})});let E=Date.now();console.info("Guild firestore execution time: ".concat(E-l," ms"));let b=g.sort((e,t)=>(null==t?void 0:t.totalStatCost)-(null==e?void 0:e.totalStatCost)),L=null==b?void 0:b.slice(0,150),k=L.map(e=>{let{id:t}=e;return get(query(ref(u,"_guild/".concat(t))))}),V=await Promise.all(k),j=null==V?void 0:V.map((e,t)=>{let l=e.val(),m=null==L?void 0:L[t];return{...m,totalGp:((null==l?void 0:l.p)||0)+(null==m?void 0:m.totalStatCost),members:Object.values((null==l?void 0:l.m)||{})}}),ee=null===(t=j.sort((e,t)=>(null==t?void 0:t.totalGp)-(null==e?void 0:e.totalGp)))||void 0===t?void 0:t.filter(e=>{let{members:t}=e;return(null==t?void 0:t.length)>10}),ea=Date.now();console.info("Guild realtime db execution time: ".concat(ea-l," ms")),e({guilds:ee})}catch(t){console.error(t),e({guilds:[],error:!0})}},getSnapshot=async(e,t)=>{try{let l=await get(child(e,t));if(l&&l.exists())return l.val();return console.error("No data available for key ".concat(t)),null}catch(e){return console.error("Error while fetching data for key ".concat(t,": "),e),null}},userSignOut=async()=>{let e=index_e3d5d3f4_getAuth(iB);await signOut(e).then(()=>{console.info("Logged off successfully")}).catch(e=>{let t=e.code,l=e.message;console.error("Error while logging out: ".concat(t),l)})}},7337:function(e,t,l){"use strict";l.d(t,{IS:function(){return appleAuthorize},Yw:function(){return getAppleCode},r1:function(){return geAppleStatus}});let appleAuthorize=async e=>{let{device_code:t,h_nonce:l,statusToken:m}=e,u=new URLSearchParams({client_id:"com.lavaflame.idleon.service.signin",nonce:l,redirect_uri:"https://us-central1-idlemmo.cloudfunctions.net/xapsi",response_mode:"form_post",response_type:"code id_token",scope:"email",code:t,state:m});window.open("https://appleid.apple.com/auth/authorize?".concat(u.toString()),"_blank","popup")},getAppleCode=async()=>{let e=encodeURIComponent("https://us-central1-idlemmo.cloudfunctions.net/tspa"),t=await fetch("https://appleauth.idleontoolbox.workers.dev/?url=".concat(e),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});return await t.json()},geAppleStatus=async e=>{let{device_code:t,statusToken:l}=e,m=new URLSearchParams;m.append("device_code",t),m.append("statusToken",l);let u=encodeURIComponent("https://us-central1-idlemmo.cloudfunctions.net/capsc"),d=await fetch("https://appleauth.idleontoolbox.workers.dev/?url=".concat(u),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:m});return await d.json()}},67998:function(e,t,l){"use strict";l.d(t,{N:function(){return getUserToken},l:function(){return getUserAndDeviceCode}});let getUserAndDeviceCode=async()=>{let e=await fetch("https://oauth2.googleapis.com/device/code",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"client_id=267901585099-u6fjd75v6k9gefq7bcokcndv99riir5j&scope=email profile"});return await e.json()},getUserToken=async e=>{try{let t=await fetch("https://oauth2.googleapis.com/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"client_id=267901585099-u6fjd75v6k9gefq7bcokcndv99riir5j&client_secret=HzoZF-UKUNfFwBuz4vafwsaR&device_code=".concat(e,"&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code")});return await t.json()}catch(e){console.error("Error has occurred while trying to authenticate:",e)}}},97498:function(e,t){"use strict";var l,m;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{PrefetchKind:function(){return l},ACTION_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return d},ACTION_RESTORE:function(){return y},ACTION_SERVER_PATCH:function(){return h},ACTION_PREFETCH:function(){return g},ACTION_FAST_REFRESH:function(){return E},ACTION_SERVER_ACTION:function(){return b}});let u="refresh",d="navigate",y="restore",h="server-patch",g="prefetch",E="fast-refresh",b="server-action";(m=l||(l={})).AUTO="auto",m.FULL="full",m.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10030:function(e,t,l){"use strict";function getDomainLocale(e,t,l,m){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),l(22866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65170:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return eo}});let m=l(38754),u=m._(l(67294)),d=l(74450),y=l(92227),h=l(64364),g=l(10109),E=l(73607),b=l(11823),L=l(89031),k=l(40920),V=l(10030),j=l(77192),ee=l(97498),ea=new Set;function prefetch(e,t,l,m,u,d){if(!d&&!(0,y.isLocalURL)(t))return;if(!m.bypassPrefetchedCheck){let u=void 0!==m.locale?m.locale:"locale"in e?e.locale:void 0,d=t+"%"+l+"%"+u;if(ea.has(d))return;ea.add(d)}let h=d?e.prefetch(t,u):e.prefetch(t,l,m);Promise.resolve(h).catch(e=>{})}function isModifiedEvent(e){let t=e.currentTarget,l=t.getAttribute("target");return l&&"_self"!==l||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function linkClicked(e,t,l,m,d,h,g,E,b,L){let{nodeName:k}=e.currentTarget,V="A"===k.toUpperCase();if(V&&(isModifiedEvent(e)||!b&&!(0,y.isLocalURL)(l)))return;e.preventDefault();let navigate=()=>{let e=null==g||g;"beforePopState"in t?t[d?"replace":"push"](l,m,{shallow:h,locale:E,scroll:e}):t[d?"replace":"push"](m||l,{forceOptimisticNavigation:!L,scroll:e})};b?u.default.startTransition(navigate):navigate()}function formatStringOrUrl(e){return"string"==typeof e?e:(0,h.formatUrl)(e)}let el=u.default.forwardRef(function(e,t){let l,m;let{href:y,as:h,children:ea,prefetch:el=null,passHref:eo,replace:e_,shallow:ec,scroll:em,locale:ed,onClick:ep,onMouseEnter:ey,onTouchStart:eh,legacyBehavior:eT=!1,...ef}=e;l=ea,eT&&("string"==typeof l||"number"==typeof l)&&(l=u.default.createElement("a",null,l));let ev=u.default.useContext(b.RouterContext),eg=u.default.useContext(L.AppRouterContext),eS=null!=ev?ev:eg,eN=!ev,eC=!1!==el,eR=null===el?ee.PrefetchKind.AUTO:ee.PrefetchKind.FULL,{href:eI,as:ew}=u.default.useMemo(()=>{if(!ev){let e=formatStringOrUrl(y);return{href:e,as:h?formatStringOrUrl(h):e}}let[e,t]=(0,d.resolveHref)(ev,y,!0);return{href:e,as:h?(0,d.resolveHref)(ev,h):t||e}},[ev,y,h]),eE=u.default.useRef(eI),eF=u.default.useRef(ew);eT&&(m=u.default.Children.only(l));let eP=eT?m&&"object"==typeof m&&m.ref:t,[eD,eA,eL]=(0,k.useIntersection)({rootMargin:"200px"}),ex=u.default.useCallback(e=>{(eF.current!==ew||eE.current!==eI)&&(eL(),eF.current=ew,eE.current=eI),eD(e),eP&&("function"==typeof eP?eP(e):"object"==typeof eP&&(eP.current=e))},[ew,eP,eI,eL,eD]);u.default.useEffect(()=>{eS&&eA&&eC&&prefetch(eS,eI,ew,{locale:ed},{kind:eR},eN)},[ew,eI,eA,ed,eC,null==ev?void 0:ev.locale,eS,eN,eR]);let eU={ref:ex,onClick(e){eT||"function"!=typeof ep||ep(e),eT&&m.props&&"function"==typeof m.props.onClick&&m.props.onClick(e),eS&&!e.defaultPrevented&&linkClicked(e,eS,eI,ew,e_,ec,em,ed,eN,eC)},onMouseEnter(e){eT||"function"!=typeof ey||ey(e),eT&&m.props&&"function"==typeof m.props.onMouseEnter&&m.props.onMouseEnter(e),eS&&(eC||!eN)&&prefetch(eS,eI,ew,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eR},eN)},onTouchStart(e){eT||"function"!=typeof eh||eh(e),eT&&m.props&&"function"==typeof m.props.onTouchStart&&m.props.onTouchStart(e),eS&&(eC||!eN)&&prefetch(eS,eI,ew,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eR},eN)}};if((0,g.isAbsoluteUrl)(ew))eU.href=ew;else if(!eT||eo||"a"===m.type&&!("href"in m.props)){let e=void 0!==ed?ed:null==ev?void 0:ev.locale,t=(null==ev?void 0:ev.isLocaleDomain)&&(0,V.getDomainLocale)(ew,e,null==ev?void 0:ev.locales,null==ev?void 0:ev.domainLocales);eU.href=t||(0,j.addBasePath)((0,E.addLocale)(ew,e,null==ev?void 0:ev.defaultLocale))}return eT?u.default.cloneElement(m,eU):u.default.createElement("a",{...ef,...eU},l)}),eo=el;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40920:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let m=l(67294),u=l(63436),d="function"==typeof IntersectionObserver,y=new Map,h=[];function createObserver(e){let t;let l={root:e.root||null,margin:e.rootMargin||""},m=h.find(e=>e.root===l.root&&e.margin===l.margin);if(m&&(t=y.get(m)))return t;let u=new Map,d=new IntersectionObserver(e=>{e.forEach(e=>{let t=u.get(e.target),l=e.isIntersecting||e.intersectionRatio>0;t&&l&&t(l)})},e);return t={id:l,observer:d,elements:u},h.push(l),y.set(l,t),t}function observe(e,t,l){let{id:m,observer:u,elements:d}=createObserver(l);return d.set(e,t),u.observe(e),function(){if(d.delete(e),u.unobserve(e),0===d.size){u.disconnect(),y.delete(m);let e=h.findIndex(e=>e.root===m.root&&e.margin===m.margin);e>-1&&h.splice(e,1)}}}function useIntersection(e){let{rootRef:t,rootMargin:l,disabled:y}=e,h=y||!d,[g,E]=(0,m.useState)(!1),b=(0,m.useRef)(null),L=(0,m.useCallback)(e=>{b.current=e},[]);(0,m.useEffect)(()=>{if(d){if(h||g)return;let e=b.current;if(e&&e.tagName){let m=observe(e,e=>e&&E(e),{root:null==t?void 0:t.current,rootMargin:l});return m}}else if(!g){let e=(0,u.requestIdleCallback)(()=>E(!0));return()=>(0,u.cancelIdleCallback)(e)}},[h,l,t,g,b.current]);let k=(0,m.useCallback)(()=>{E(!1)},[]);return[L,g,k]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7898:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return _app}});var m=l(85893),u=l(67294),d=l(23663),y=l(87462),h=l(63366);let g=u.createContext(null);function useTheme(){let e=u.useContext(g);return e}let E="function"==typeof Symbol&&Symbol.for;var b=E?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(e,t){if("function"==typeof t){let l=t(e);return l}return{...e,...t}}var ThemeProvider_ThemeProvider=function(e){let{children:t,theme:l}=e,d=useTheme(),y=u.useMemo(()=>{let e=null===d?l:mergeOuterLocalTheme(d,l);return null!=e&&(e[b]=null!==d),e},[l,d]);return(0,m.jsx)(g.Provider,{value:y,children:t})},L=l(34168);let k={};function useThemeScoping(e,t,l,m=!1){return u.useMemo(()=>{let u=e&&t[e]||t;if("function"==typeof l){let d=l(u),h=e?(0,y.Z)({},t,{[e]:d}):d;return m?()=>h:h}return e?(0,y.Z)({},t,{[e]:l}):(0,y.Z)({},t,l)},[e,t,l,m])}var esm_ThemeProvider_ThemeProvider=function(e){let{children:t,theme:l,themeId:u}=e,y=(0,L.Z)(k),h=useTheme()||k,g=useThemeScoping(u,y,l),E=useThemeScoping(u,h,l,!0);return(0,m.jsx)(ThemeProvider_ThemeProvider,{theme:E,children:(0,m.jsx)(d.T.Provider,{value:g,children:t})})},V=l(10606);let j=["theme"];function styles_ThemeProvider_ThemeProvider(e){let{theme:t}=e,l=(0,h.Z)(e,j),u=t[V.Z];return(0,m.jsx)(esm_ThemeProvider_ThemeProvider,(0,y.Z)({},l,{themeId:u?V.Z:void 0,theme:u||t}))}var ee=l(71657),ea=l(17297);let html=(e,t)=>(0,y.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),body=e=>(0,y.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),styles=(e,t=!1)=>{var l,m;let u={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,l])=>{var m;u[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(m=l.palette)?void 0:m.mode}});let d=(0,y.Z)({html:html(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,y.Z)({margin:0},body(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},u),h=null==(l=e.components)?void 0:null==(m=l.MuiCssBaseline)?void 0:m.styleOverrides;return h&&(d=[d,h]),d};var CssBaseline_CssBaseline=function(e){let t=(0,ee.Z)({props:e,name:"MuiCssBaseline"}),{children:l,enableColorScheme:d=!1}=t;return(0,m.jsxs)(u.Fragment,{children:[(0,m.jsx)(ea.Z,{styles:e=>styles(e,d)}),l]})};l(7650);var el=l(90602),eo=l(49946);l(70415);var e_=l(9008),ec=l.n(e_),em=l(4298),ed=l.n(em),ep=l(21480),ey=l(11163);function WaitForRouter(e){let{children:t}=e,l=(0,ey.useRouter)(),[d,y]=(0,u.useState)(!1);return((0,u.useEffect)(()=>{y(!0)},[]),d&&l.isReady)?(0,m.jsx)(m.Fragment,{children:t}):(0,m.jsx)(m.Fragment,{})}var eh=l(2962),eT=l(90948),ef=l(86010),ev=l(94780),eg=l(98216),eS=l(90629),eN=l(1588),eC=l(34867);function getAppBarUtilityClass(e){return(0,eC.Z)("MuiAppBar",e)}(0,eN.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);let eR=["className","color","enableColorOnDark","position"],useUtilityClasses=e=>{let{color:t,position:l,classes:m}=e,u={root:["root",`color${(0,eg.Z)(t)}`,`position${(0,eg.Z)(l)}`]};return(0,ev.Z)(u,getAppBarUtilityClass,m)},joinVars=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,eI=(0,eT.ZP)(eS.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,t[`position${(0,eg.Z)(l.position)}`],t[`color${(0,eg.Z)(l.color)}`]]}})(({theme:e,ownerState:t})=>{let l="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,y.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,y.Z)({},"default"===t.color&&{backgroundColor:l,color:e.palette.getContrastText(l)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,y.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,y.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:joinVars(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:joinVars(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:joinVars(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:joinVars(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ew=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiAppBar"}),{className:u,color:d="primary",enableColorOnDark:g=!1,position:E="fixed"}=l,b=(0,h.Z)(l,eR),L=(0,y.Z)({},l,{color:d,position:E,enableColorOnDark:g}),k=useUtilityClasses(L);return(0,m.jsx)(eI,(0,y.Z)({square:!0,component:"header",ownerState:L,elevation:4,className:(0,ef.Z)(k.root,u,"fixed"===E&&"mui-fixed"),ref:t},b))});function getToolbarUtilityClass(e){return(0,eC.Z)("MuiToolbar",e)}(0,eN.Z)("MuiToolbar",["root","gutters","regular","dense"]);let eE=["className","component","disableGutters","variant"],Toolbar_useUtilityClasses=e=>{let{classes:t,disableGutters:l,variant:m}=e;return(0,ev.Z)({root:["root",!l&&"gutters",m]},getToolbarUtilityClass,t)},eF=(0,eT.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,!l.disableGutters&&t.gutters,t[l.variant]]}})(({theme:e,ownerState:t})=>(0,y.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48}),({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar),eP=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiToolbar"}),{className:u,component:d="div",disableGutters:g=!1,variant:E="regular"}=l,b=(0,h.Z)(l,eE),L=(0,y.Z)({},l,{component:d,disableGutters:g,variant:E}),k=Toolbar_useUtilityClasses(L);return(0,m.jsx)(eF,(0,y.Z)({as:d,className:(0,ef.Z)(k.root,u),ref:t,ownerState:L},b))});var eD=l(87357),eA=l(34587),eL=l(52196),ex=l(51233),eU=l(41796),eQ=l(47739),eG=l(58974),eB=l(51705),eM=l(59773),eO=l(68686);let ek=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ListItemButton_useUtilityClasses=e=>{let{alignItems:t,classes:l,dense:m,disabled:u,disableGutters:d,divider:h,selected:g}=e,E=(0,ev.Z)({root:["root",m&&"dense",!d&&"gutters",h&&"divider",u&&"disabled","flex-start"===t&&"alignItemsFlexStart",g&&"selected"]},eO.t,l);return(0,y.Z)({},l,E)},eW=(0,eT.ZP)(eQ.Z,{shouldForwardProp:e=>(0,eT.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.dense&&t.dense,"flex-start"===l.alignItems&&t.alignItemsFlexStart,l.divider&&t.divider,!l.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,y.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eO.Z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eO.Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eO.Z.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,eU.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eO.Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eO.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),eH=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiListItemButton"}),{alignItems:d="center",autoFocus:g=!1,component:E="div",children:b,dense:L=!1,disableGutters:k=!1,divider:V=!1,focusVisibleClassName:j,selected:ea=!1,className:el}=l,eo=(0,h.Z)(l,ek),e_=u.useContext(eM.Z),ec=u.useMemo(()=>({dense:L||e_.dense||!1,alignItems:d,disableGutters:k}),[d,e_.dense,L,k]),em=u.useRef(null);(0,eG.Z)(()=>{g&&em.current&&em.current.focus()},[g]);let ed=(0,y.Z)({},l,{alignItems:d,dense:ec.dense,disableGutters:k,divider:V,selected:ea}),ep=ListItemButton_useUtilityClasses(ed),ey=(0,eB.Z)(em,t);return(0,m.jsx)(eM.Z.Provider,{value:ec,children:(0,m.jsx)(eW,(0,y.Z)({ref:ey,href:eo.href||eo.to,component:(eo.href||eo.to)&&"div"===E?"button":E,focusVisibleClassName:(0,ef.Z)(ep.focusVisible,j),ownerState:ed,className:(0,ef.Z)(ep.root,el)},eo,{classes:ep,children:b}))})});var eK=l(59334),eY=l(78462);let ItemsWrapper=e=>{let{drawer:t,children:l}=e;return t?(0,m.jsx)(eY.Z,{component:"nav",children:l}):(0,m.jsx)(ex.Z,{component:"nav",direction:"row",gap:1,sx:{display:{xs:"none",lg:"flex"}},children:l})};var NavBar_NavItemsList=e=>{let{drawer:t}=e,{state:l}=(0,u.useContext)(ep.I),d=(0,ey.useRouter)();return(0,m.jsx)(ex.Z,{direction:t?"column":"row",justifyContent:t?"flex-start":"center",sx:{width:"100%",maxWidth:t?eL.RK:"inherit"},children:(0,m.jsx)(ItemsWrapper,{drawer:t,children:eL.te.map((e,u)=>{if(!(null==l?void 0:l.signedIn)&&!(null==l?void 0:l.profile)&&!(null==l?void 0:l.demo)&&!(null==l?void 0:l.manualImport)&&!eL.TE.includes(e)||(null==l?void 0:l.profile)&&"guilds"===e)return null;let y="account"===e?"account/misc/general":"tools"===e?"tools/card-search":e;return(0,m.jsx)(eH,{component:eA.Z,selected:null==d?void 0:d.pathname.includes(e),to:{pathname:"/".concat(y),query:null==d?void 0:d.query},sx:{borderRadius:t?"inherit":2,p:t?"8px 16px":"0 8px"},"data-cy":"nav-item-".concat(y),dense:!t,size:"medium",children:(0,m.jsx)(eK.Z,{component:"span",disableTypography:!0,sx:{fontWeight:"bold",fontSize:14},children:e.toUpperCase()})},"".concat(e,"-").concat(u))})})})},eZ=l(39485),eV=l(13540),ez=l(83321),eX=l(98396),ej=l(50657),eJ=l(37645),e$=l(23972),e0=l(23795),e1=l(6514),e2=l(11703),e5=l(40044),e3=l(88557),e4=l(79535),e6=l(34721),e7=l(93946),e9=l(50594),common_Switch=e=>{let{selected:t,children:l}=e,m=Array.isArray(l)?l:[l];return null==m?void 0:m.filter(e=>{let{props:l}=e;return(null==l?void 0:l["switch-id"])===t})},e8=l(50135),te=l(66242),ti=l(44267),tl=l(6875),to=l(31812),Logins_EmailLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(""),[g,E]=(0,u.useState)(""),[b,L]=(0,u.useState)(!1),[k,V]=(0,u.useState)(""),handleChange=e=>{L(!1),V("");let t="email"===e.target.name?h:E;t(e.target.value)},handleKeyDown=async e=>{"Enter"===e.code&&await handleSubmit()},handleAuthenticating=()=>{d(!0)},handleSubmit=async()=>{if(L(!0),y&&g){let e;handleAuthenticating();try{e=await (0,tl.tc)({email:y,password:g})}catch(e){d(!1),t({type:"loginError",data:null==e?void 0:e.message})}t({type:"login",data:{loginData:e,loginType:"email"}})}else V("Please enter valid email and password")};return(0,m.jsxs)(ex.Z,{gap:3,children:[(0,m.jsx)(e8.Z,{inputProps:{autoComplete:"off"},value:y,error:b&&!y,name:"email",onChange:handleChange,onKeyDown:handleKeyDown,label:"Email"}),(0,m.jsx)(e8.Z,{value:g,error:b&&!g,name:"password",onChange:handleChange,onKeyDown:handleKeyDown,label:"Password",inputProps:{type:"password",autoComplete:"off"}}),(0,m.jsx)(to.Z,{onClick:handleSubmit,loading:l,variant:"contained",children:"Login"}),(null==e?void 0:e.loginError)||k?(0,m.jsx)(te.Z,{raised:!0,sx:{bgcolor:"#c02222"},children:(0,m.jsx)(ti.Z,{children:(0,m.jsx)(e$.Z,{variant:"body1",children:(null==e?void 0:e.loginError)||k})})}):null]})},t_=l(98456),tm=l(67998);let td="https://www.google.com/device";var Logins_GoogleLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(""),[g,E]=(0,u.useState)(!1);(0,u.useEffect)(()=>{g&&!l&&E(!1)},[l]),(0,u.useEffect)(()=>{let getCode=async()=>{let e=await (0,tm.l)(),l=null==e?void 0:e.user_code,m=null==e?void 0:e.device_code;h(l),t({type:"login",data:{loginData:{userCode:l,deviceCode:m},loginType:"google"}})};getCode()},[]);let handleAuthenticating=()=>{d(!0)},handleCopyAndOpenUrl=async()=>{try{await navigator.clipboard.writeText(y),window.open(td,"_blank","noopener,noreferrer"),handleAuthenticating()}catch(e){console.error(e)}};return(0,m.jsxs)(ex.Z,{alignItems:"center",gap:2,sx:{px:5},children:[(0,m.jsx)(e$.Z,{textAlign:"center",children:"To sign in with Google, go to the following url and enter the code below to verify it is you"}),(0,m.jsx)(e0.Z,{mr:1,target:"_blank",href:td,rel:"noreferrer",onClick:handleAuthenticating,children:"https://www.google.com/device"}),(0,m.jsx)(e$.Z,{justifySelf:"center",textAlign:"center",sx:{p:1,border:"1px solid white",borderRadius:1,margin:"0 auto",minWidth:100},width:"fit-content",children:y||(0,m.jsx)(t_.Z,{sx:{textAlign:"center"},size:14})}),(0,m.jsx)(to.Z,{loading:g||!y,variant:"contained",onClick:handleCopyAndOpenUrl,children:(0,m.jsx)("span",{children:"Copy code and open Url"})}),(0,m.jsx)(e$.Z,{mt:2,color:"error",variant:"body1",children:null==e?void 0:e.loginError})]})},tp=l(7337),Logins_AppleLogin=()=>{let{state:e,dispatch:t,waitingForAuth:l,setWaitingForAuth:d}=(0,u.useContext)(ep.I),handleAppleLogin=async()=>{if(!l){handleAuthenticating();try{let e=await (0,tp.Yw)();await (0,tp.IS)(e),t({type:"login",data:{loginData:{...e||{}},loginType:"apple"}})}catch(e){t({type:"loginError",data:e})}}},handleAuthenticating=()=>{d(!0)};return(0,m.jsxs)(ex.Z,{sx:{px:5},children:[(0,m.jsx)(e$.Z,{textAlign:"center",children:"An Apple Sign-in page will open for you in a popup, Please complete the steps there, then return here"}),(0,m.jsx)(e$.Z,{textAlign:"center",variant:"caption",children:"* please make sure you enable pop-ups in your browser"}),(0,m.jsx)(to.Z,{loading:l,sx:{mt:3},onClick:handleAppleLogin,variant:"contained",children:"Login"}),(0,m.jsx)(e$.Z,{mt:2,color:"error",variant:"body1",children:null==e?void 0:e.loginError})]})};let ty=[{name:"email",icon:(0,m.jsx)(e3.Z,{})},{name:"gmail",icon:(0,m.jsx)(e4.Z,{})},{name:"apple",icon:(0,m.jsx)(e6.Z,{})}];var NavBar_LoginDialog=e=>{let{open:t,onClose:l}=e,{dispatch:d,setWaitingForAuth:y,waitingForAuth:h}=(0,u.useContext)(ep.I),[g,E]=(0,u.useState)(0),b=(0,eX.Z)(e=>e.breakpoints.down("sm"),{noSsr:!0}),handleClose=()=>{E(0),d({type:"loginError",data:""}),y(!1),l()};return(0,m.jsxs)(ej.Z,{fullWidth:!0,maxWidth:"sm",open:t,onClose:handleClose,children:[(0,m.jsxs)(eJ.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,m.jsxs)(ex.Z,{children:[(0,m.jsx)(e$.Z,{variant:"h6",children:"Login"}),(0,m.jsx)(e$.Z,{variant:"body2",children:"Use the same credentials as your idleon account"}),(0,m.jsx)(e0.Z,{sx:{fontSize:14,width:"fit-content"},href:"https://www.reddit.com/r/idleon/comments/12ccw2h/steam_email/",target:"_blank",children:"Can't remember your email?"})]}),(0,m.jsx)(e7.Z,{onClick:handleClose,children:(0,m.jsx)(e9.Z,{})})]}),(0,m.jsxs)(e1.Z,{children:[(0,m.jsx)(e2.Z,{centered:!0,sx:{marginBottom:3},variant:"fullWidth",value:g,onChange:(e,t)=>{E(t),d({type:"loginError",data:""}),y(!1)},children:ty.map((e,t)=>{let{name:l,icon:u}=e;return(0,m.jsx)(e5.Z,{disabled:h,iconPosition:b?"top":"start",label:l,icon:u},"".concat(l,"-").concat(t))})}),(0,m.jsxs)(common_Switch,{selected:g,children:[(0,m.jsx)(Logins_EmailLogin,{"switch-id":0}),(0,m.jsx)(Logins_GoogleLogin,{"switch-id":1}),(0,m.jsx)(Logins_AppleLogin,{"switch-id":2})]})]})]})},NavBar_LoginButton=()=>{let{state:e,logout:t}=(0,u.useContext)(ep.I),[l,d]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{d(!1)},[null==e?void 0:e.signedIn]),(0,m.jsxs)(eD.Z,{sx:{marginLeft:"auto"},children:[(null==e?void 0:e.signedIn)?(0,m.jsx)(ez.Z,{sx:{color:"white","&:hover":{borderColor:"white"}},onClick:()=>{t()},startIcon:(0,m.jsx)(eV.Z,{}),children:"Logout"}):(0,m.jsx)(ez.Z,{sx:{color:"white","&:hover":{borderColor:"white"}},onClick:()=>{d(!0)},startIcon:(0,m.jsx)(eZ.Z,{}),children:"Login"}),(0,m.jsx)(NavBar_LoginDialog,{open:l,onClose:()=>d(!1)})]})},tT=l(84995),tf=l(8662),tv=l(57144),tg=l(2734),tS=l(30577),tN=l(5340);let tC=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getTranslateValue(e,t,l){let m;let u=t.getBoundingClientRect(),d=l&&l.getBoundingClientRect(),y=(0,tN.Z)(t);if(t.fakeTransform)m=t.fakeTransform;else{let e=y.getComputedStyle(t);m=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let h=0,g=0;if(m&&"none"!==m&&"string"==typeof m){let e=m.split("(")[1].split(")")[0].split(",");h=parseInt(e[4],10),g=parseInt(e[5],10)}return"left"===e?d?`translateX(${d.right+h-u.left}px)`:`translateX(${y.innerWidth+h-u.left}px)`:"right"===e?d?`translateX(-${u.right-d.left-h}px)`:`translateX(-${u.left+u.width-h}px)`:"up"===e?d?`translateY(${d.bottom+g-u.top}px)`:`translateY(${y.innerHeight+g-u.top}px)`:d?`translateY(-${u.top-d.top+u.height-g}px)`:`translateY(-${u.top+u.height-g}px)`}function resolveContainer(e){return"function"==typeof e?e():e}function setTranslateValue(e,t,l){let m=resolveContainer(l),u=getTranslateValue(e,t,m);u&&(t.style.webkitTransform=u,t.style.transform=u)}let tR=u.forwardRef(function(e,t){let l=(0,tg.Z)(),d={enter:l.transitions.easing.easeOut,exit:l.transitions.easing.sharp},g={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{addEndListener:E,appear:b=!0,children:L,container:k,direction:V="down",easing:j=d,in:ee,onEnter:ea,onEntered:el,onEntering:eo,onExit:e_,onExited:ec,onExiting:em,style:ed,timeout:ep=g,TransitionComponent:ey=tf.ZP}=e,eh=(0,h.Z)(e,tC),eT=u.useRef(null),ef=(0,eB.Z)(L.ref,eT,t),normalizedTransitionCallback=e=>t=>{e&&(void 0===t?e(eT.current):e(eT.current,t))},ev=normalizedTransitionCallback((e,t)=>{setTranslateValue(V,e,k),(0,tS.n)(e),ea&&ea(e,t)}),eg=normalizedTransitionCallback((e,t)=>{let m=(0,tS.C)({timeout:ep,style:ed,easing:j},{mode:"enter"});e.style.webkitTransition=l.transitions.create("-webkit-transform",(0,y.Z)({},m)),e.style.transition=l.transitions.create("transform",(0,y.Z)({},m)),e.style.webkitTransform="none",e.style.transform="none",eo&&eo(e,t)}),eS=normalizedTransitionCallback(el),eN=normalizedTransitionCallback(em),eC=normalizedTransitionCallback(e=>{let t=(0,tS.C)({timeout:ep,style:ed,easing:j},{mode:"exit"});e.style.webkitTransition=l.transitions.create("-webkit-transform",t),e.style.transition=l.transitions.create("transform",t),setTranslateValue(V,e,k),e_&&e_(e)}),eR=normalizedTransitionCallback(e=>{e.style.webkitTransition="",e.style.transition="",ec&&ec(e)}),eI=u.useCallback(()=>{eT.current&&setTranslateValue(V,eT.current,k)},[V,k]);return u.useEffect(()=>{if(ee||"down"===V||"right"===V)return;let e=(0,tv.Z)(()=>{eT.current&&setTranslateValue(V,eT.current,k)}),t=(0,tN.Z)(eT.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[V,ee,k]),u.useEffect(()=>{ee||eI()},[ee,eI]),(0,m.jsx)(ey,(0,y.Z)({nodeRef:eT,onEnter:ev,onEntered:eS,onEntering:eg,onExit:eC,onExited:eR,onExiting:eN,addEndListener:e=>{E&&E(eT.current,e)},appear:b,in:ee,timeout:ep},eh,{children:(e,t)=>u.cloneElement(L,(0,y.Z)({ref:ef,style:(0,y.Z)({visibility:"exited"!==e||ee?void 0:"hidden"},ed,L.props.style)},t))}))});function getDrawerUtilityClass(e){return(0,eC.Z)("MuiDrawer",e)}(0,eN.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let tI=["BackdropProps"],tw=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Drawer_overridesResolver=(e,t)=>{let{ownerState:l}=e;return[t.root,("permanent"===l.variant||"persistent"===l.variant)&&t.docked,t.modal]},Drawer_useUtilityClasses=e=>{let{classes:t,anchor:l,variant:m}=e,u={root:["root"],docked:[("permanent"===m||"persistent"===m)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,eg.Z)(l)}`,"temporary"!==m&&`paperAnchorDocked${(0,eg.Z)(l)}`]};return(0,ev.Z)(u,getDrawerUtilityClass,t)},tE=(0,eT.ZP)(tT.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:Drawer_overridesResolver})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),tF=(0,eT.ZP)("div",{shouldForwardProp:eT.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Drawer_overridesResolver})({flex:"0 0 auto"}),tq=(0,eT.ZP)(eS.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.paper,t[`paperAnchor${(0,eg.Z)(l.anchor)}`],"temporary"!==l.variant&&t[`paperAnchorDocked${(0,eg.Z)(l.anchor)}`]]}})(({theme:e,ownerState:t})=>(0,y.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),tP={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(e){return -1!==["left","right"].indexOf(e)}function getAnchor(e,t){return"rtl"===e.direction&&isHorizontal(t)?tP[t]:t}let tD=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiDrawer"}),d=(0,tg.Z)(),g={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{anchor:E="left",BackdropProps:b,children:L,className:k,elevation:V=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:ea}={},onClose:el,open:eo=!1,PaperProps:e_={},SlideProps:ec,TransitionComponent:em=tR,transitionDuration:ed=g,variant:ep="temporary"}=l,ey=(0,h.Z)(l.ModalProps,tI),eh=(0,h.Z)(l,tw),eT=u.useRef(!1);u.useEffect(()=>{eT.current=!0},[]);let ev=getAnchor(d,E),eg=(0,y.Z)({},l,{anchor:E,elevation:V,open:eo,variant:ep},eh),eS=Drawer_useUtilityClasses(eg),eN=(0,m.jsx)(tq,(0,y.Z)({elevation:"temporary"===ep?V:0,square:!0},e_,{className:(0,ef.Z)(eS.paper,e_.className),ownerState:eg,children:L}));if("permanent"===ep)return(0,m.jsx)(tF,(0,y.Z)({className:(0,ef.Z)(eS.root,eS.docked,k),ownerState:eg,ref:t},eh,{children:eN}));let eC=(0,m.jsx)(em,(0,y.Z)({in:eo,direction:tP[ev],timeout:ed,appear:eT.current},ec,{children:eN}));return"persistent"===ep?(0,m.jsx)(tF,(0,y.Z)({className:(0,ef.Z)(eS.root,eS.docked,k),ownerState:eg,ref:t},eh,{children:eC})):(0,m.jsx)(tE,(0,y.Z)({BackdropProps:(0,y.Z)({},b,ea,{transitionDuration:ed}),className:(0,ef.Z)(eS.root,eS.modal,k),open:eo,ownerState:eg,onClose:el,hideBackdrop:j,ref:t},eh,ey,{children:eC}))});var tA=l(326),tL=l(61599),tx=l(67720),tU=l(60181),tQ=l(23508),tG=l(97212),tB=l(57922),tM=l(30925),tO=l(38273),tk=l(40929);let tW={misc:{icon:"data/CharSlot",categories:[{label:"general",icon:"data/ClassIcons1"},{label:"storage",icon:"data/InvStorage42"},{label:"quests",icon:"data/Quest62"},{label:"dungeons",icon:"data/DungeonA7"},{label:"apocalypses",icon:"data/UISkillIcon110"},{label:"constellations",icon:"data/StarTitle1"},{label:"randomEvents",icon:"etc/Mega_Grumblo"},{label:"guild",icon:"etc/Guild"}]},"premium-currency":{style:{filter:"hue-rotate(180deg)"},icon:"data/PremiumGem",categories:[{label:"gemShop",icon:"data/PremiumGem"},{label:"companions",icon:"data/PremiumGem",style:{filter:"hue-rotate(280deg)"}}]},"task board":{icon:"etc/TasksStar",categories:[{label:"achievements",icon:"data/TaskAchBorder1"},{label:"tasks",icon:"etc/TasksStar"},{label:"merits",icon:"etc/Merit_4"}]},"world 1":{icon:"data/BadgeG2",categories:[{label:"anvil",icon:"data/ClassIcons43"},{label:"forge",icon:"data/ForgeD"},{label:"bribes",icon:"data/BribeW"},{label:"stamps",icon:"data/StampA34"},{label:"owl",icon:"etc/Owl"}]},"world 2":{icon:"data/BadgeD2",categories:[{label:"bubbles",icon:"data/aBrewOptionA0"},{label:"Cauldrons",icon:"data/aStirringStick0"},{label:"vials",icon:"data/aVials1"},{label:"sigils",icon:"data/LabBonus12"},{label:"arcadeShop",icon:"data/PachiBall1"},{label:"islands",icon:"data/Island1"},{label:"killroy",icon:"etc/Killroy_Skull"},{label:"weeklyBosses",icon:"etc/SWR_Containment"},{label:"kangaroo",icon:"data/RooA"},{label:"voteBallot",icon:"etc/VoteBallot"}]},"world 3":{icon:"data/BadgeI2",categories:[{label:"Printer",icon:"data/ConTower0"},{label:"refinery",icon:"data/TaskSc6"},{label:"atomCollider",icon:"data/ConTower8"},{label:"Equinox",icon:"data/Quest78"},{label:"buildings",icon:"data/ConTower7"},{label:"deathNote",icon:"data/ConTower2"},{label:"worship",icon:"data/ClassIcons50"},{label:"prayers",icon:"data/PrayerSel"},{label:"Traps",icon:"data/TrapBoxSet1"},{label:"saltLick",icon:"data/ConTower3"},{label:"construction",icon:"data/ClassIcons49"}]},"world 4":{icon:"data/Ladle",categories:[{label:"cooking",icon:"data/ClassIcons51"},{label:"breeding",icon:"data/ClassIcons52"},{label:"laboratory",icon:"data/ClassIcons53"},{label:"rift",icon:"data/Mface75"},{label:"tome",icon:"etc/Tome_0"}]},"world 5":{icon:"data/GemP24",categories:[{label:"sailing",icon:"data/ClassIcons54"},{label:"divinity",icon:"data/ClassIcons55"},{label:"gaming",icon:"data/ClassIcons56"},{label:"slab",icon:"etc/Slab"}]},"world 6":{icon:"etc/sneaking-temp",categories:[{label:"farming",icon:"data/ClassIcons57"},{label:"sneaking",icon:"data/ClassIcons58"},{label:"summoning",icon:"data/ClassIcons59"},{label:"beanstalk",icon:"etc/beanstalk1"}]}};var AppDrawer_AccountDrawer=()=>{var e,t;let{state:l}=(0,u.useContext)(ep.I),[d,y]=(0,u.useState)({}),h=(0,ey.useRouter)(),handleClick=(e,t)=>{if(t)return y({...d,[e]:!(null==d?void 0:d[e])});handleLabelClick("",e)},handleLabelClick=(e,t)=>{let l=e?"/account/".concat(e.split(" ").join("-"),"/").concat(t):"/account/".concat(t);void 0!==window.gtag&&window.gtag("event","handle_nav",{event_category:l,event_label:"engagement",value:1}),h.push({pathname:l,query:h.query})},isSelected=e=>h.pathname.includes(e);return(0,m.jsxs)(ex.Z,{sx:{height:"100%"},children:[(0,m.jsx)(tx.Z,{}),(0,m.jsxs)(eY.Z,{children:[(null==l?void 0:null===(e=l.account)||void 0===e?void 0:e.accountCreateTime)?(0,m.jsxs)(tG.ZP,{children:["Account created at: ",(0,tk.Z)(null==l?void 0:null===(t=l.account)||void 0===t?void 0:t.accountCreateTime,"dd/MM/yyyy HH:mm:ss")]}):null,Object.entries(tW).map((e,t)=>{let[l,y]=e,{icon:h,categories:g,style:E}=y;return(0,m.jsxs)(u.Fragment,{children:[(0,m.jsxs)(tG.ZP,{"data-cy":l,button:!0,selected:isSelected(l),onClick:()=>handleClick(l,g),children:[(0,m.jsx)("img",{className:"list-img",width:32,height:32,style:{objectFit:"contain",...E},src:"".concat(tM.prefix).concat(h,".png"),alt:""}),(0,m.jsx)(eK.Z,{style:{marginLeft:10},primary:l.split("-").join(" ").capitalizeAllWords()}),g?(null==d?void 0:d[l])?(0,m.jsx)(tU.Z,{}):(0,m.jsx)(tQ.Z,{}):null]}),g?(0,m.jsx)(tB.Z,{in:null==d?void 0:d[l],timeout:"auto",unmountOnExit:!0,children:null==g?void 0:g.map((e,t)=>{let u=null==e?void 0:e.label.split(/(?=[A-Z])/).map(e=>e.toLowerCase()).join("-");return(0,m.jsxs)(tG.ZP,{selected:isSelected(u),"data-cy":u,style:{paddingLeft:35},button:!0,onClick:()=>handleLabelClick(l,u),children:[(0,m.jsx)("img",{className:"list-img",width:32,height:32,style:{objectFit:"contain",...null==e?void 0:e.style},src:"".concat(tM.prefix).concat(e.icon,".png"),alt:""}),(0,m.jsx)(eK.Z,{style:{marginLeft:10},primary:null==e?void 0:e.label.split(/(?=[A-Z])/).join(" ").capitalize()})]},e+" "+t)})}):null]},l+" "+t)})]}),(0,m.jsx)(eY.Z,{style:{marginTop:"auto"},children:(0,m.jsx)(tG.ZP,{children:(0,m.jsx)(eK.Z,{children:(0,m.jsx)(tO.Z,{display:"inline-block"})})})}),(0,m.jsx)(tx.Z,{})]})},tH=l(69368),tK=l(84592);let tY=["className"],ListItemIcon_useUtilityClasses=e=>{let{alignItems:t,classes:l}=e;return(0,ev.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},tK.f,l)},tZ=(0,eT.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,"flex-start"===l.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,y.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),tV=u.forwardRef(function(e,t){let l=(0,ee.Z)({props:e,name:"MuiListItemIcon"}),{className:d}=l,g=(0,h.Z)(l,tY),E=u.useContext(eM.Z),b=(0,y.Z)({},l,{alignItems:E.alignItems}),L=ListItemIcon_useUtilityClasses(b);return(0,m.jsx)(tZ,(0,y.Z)({className:(0,ef.Z)(L.root,d),ownerState:b,ref:t},g))});var tz=l(87918),tX=l(2511),AppDrawer_CharactersDrawer=()=>{var e,t;let{state:l,dispatch:d}=(0,u.useContext)(ep.I),[y,h]=(0,u.useState)(null),[g,E]=u.useState((null==l?void 0:l.displayedCharacters)?null==l?void 0:l.displayedCharacters:{all:!1,...null==l?void 0:null===(e=l.characters)||void 0===e?void 0:e.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!1}},{})}),[b,L]=(0,u.useState)(l.filters?l.filters:tM.sections.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!1}},{})),handleCharacterChange=(e,t,m)=>{var u,y;let h;E(h=m?{...null==l?void 0:null===(u=l.characters)||void 0===u?void 0:u.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:m===l}},{}),all:!1}:"all"===e?{all:!g.all,...null==l?void 0:null===(y=l.characters)||void 0===y?void 0:y.reduce((e,t)=>{let{name:l}=t;return{...e,[l]:!g.all}},{})}:{...g,[e.target.name]:e.target.checked}),d({type:"displayedCharacters",data:h})},k=(0,u.useMemo)(()=>{var e;return null==l?void 0:null===(e=l.characters)||void 0===e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+(l||0)},0)},[l]),handleChipClick=e=>{let t={...b,[e]:!(null==b?void 0:b[e])};void 0!==window.gtag&&window.gtag("event","filter_selection",{event_category:e,event_label:"engagement",value:!(null==b?void 0:b[e])}),L(t),d({type:"filters",data:t})};return(0,m.jsxs)(ex.Z,{sx:{height:"100%"},children:[(0,m.jsx)(tx.Z,{}),(0,m.jsxs)(eY.Z,{dense:!0,children:[(0,m.jsx)(tG.ZP,{secondaryAction:(0,m.jsx)(tH.Z,{edge:"end",onChange:()=>handleCharacterChange("all"),checked:null==g?void 0:g.all}),children:(0,m.jsxs)(eK.Z,{children:["All (Lv. ",k,")"]})}),null==l?void 0:null===(t=l.characters)||void 0===t?void 0:t.map((e,t)=>{let{name:l,classIndex:u,level:d}=e;return(0,m.jsxs)(tG.ZP,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),secondaryAction:(0,m.jsx)(tH.Z,{edge:"end",name:"".concat(l),onChange:handleCharacterChange,checked:null==g?void 0:g[l],role:"checkbox","aria-label":"Check to see stats for ".concat(l)}),children:[(0,m.jsx)(tV,{children:(0,m.jsx)(tX.Z,{title:"Lv. ".concat(d),children:(0,m.jsx)("img",{style:{width:38,height:36},src:"".concat(tM.prefix,"data/ClassIcons").concat(u,".png"),alt:""})})}),(0,m.jsx)(eK.Z,{sx:{height:30,margin:0},id:l,primary:l,secondary:y===t?(0,m.jsx)("span",{onClick:()=>handleCharacterChange(null,null,l),style:{textDecoration:"underline",cursor:"pointer"},children:"Only"}):""})]},"".concat(l,"-").concat(t))})]}),(0,m.jsx)(tx.Z,{}),(0,m.jsx)(eY.Z,{children:(0,m.jsx)(tG.ZP,{children:(0,m.jsxs)(ex.Z,{gap:2,children:[(0,m.jsx)(e$.Z,{children:"Filter by section"}),(0,m.jsx)(ex.Z,{direction:"row",rowGap:1.5,columnGap:1,flexWrap:"wrap",children:tM.sections.map((e,t)=>{let{name:l}=e;return(0,m.jsx)(tz.Z,{sx:{borderRadius:"8px",height:24,minWidth:60,maxWidth:150,border:"1px solid gray"},onClick:()=>handleChipClick(l),size:"small",variant:(null==b?void 0:b[l])?"filled":"outlined",color:(null==b?void 0:b[l])?"primary":"default",label:l},"".concat(l,"-").concat(t))})})]})})}),(0,m.jsx)(tx.Z,{}),(0,m.jsx)(eY.Z,{style:{marginTop:"auto"},children:(0,m.jsx)(tG.ZP,{children:(0,m.jsx)(eK.Z,{children:(0,m.jsx)(tO.Z,{display:"inline-block"})})})})]})},tj=l(27530);let tJ=(0,tL.Z)(tD)(()=>({display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:eL.RK},"& .MuiPaper-root":{backgroundImage:"none"}}));var NavBar_AppDrawer=e=>{let{permanent:t}=e,{state:l}=(0,u.useContext)(ep.I),d=(0,ey.useRouter)(),[y,h]=(0,u.useState)(!1);(0,u.useEffect)(()=>{h(!1)},[d.pathname]);let toggleDrawer=(e,t)=>{h(!t)},getDrawer=()=>d.pathname.includes("/account")?(0,m.jsx)(AppDrawer_AccountDrawer,{}):d.pathname.includes("/characters")?(0,m.jsx)(AppDrawer_CharactersDrawer,{}):d.pathname.includes("/tools")?(0,m.jsx)(tj.Z,{}):null;return(0,m.jsxs)(eD.Z,{component:"nav",sx:{display:"flex",alignItems:"center",height:eL.OC},children:[(0,m.jsx)(e7.Z,{onClick:e=>toggleDrawer(e,y),"aria-label":"open drawer",edge:"start",sx:{mr:2,display:{xs:"inherit",lg:"none"}},children:(0,m.jsx)(tA.Z,{})}),(0,m.jsxs)(ex.Z,{children:[(0,m.jsx)(e0.Z,{to:{pathname:"/",query:d.query},underline:"none",component:eA.Z,sx:{mr:2},color:"inherit",noWrap:!0,variant:"h6",children:"Idleon Toolbox"}),(null==l?void 0:l.lastUpdated)?(0,m.jsx)(e$.Z,{variant:"caption",children:(0,tk.Z)(null==l?void 0:l.lastUpdated,"dd/MM/yyyy HH:mm:ss")}):null]}),t?(0,m.jsxs)(tJ,{variant:"permanent",open:!0,sx:{display:(0,tM.shouldDisplayDrawer)(d.pathname)?{xs:"none",lg:"inherit"}:"none"},children:[(0,m.jsx)(eP,{sx:{height:eL.OC,minHeight:eL.OC}}),getDrawer()]}):(0,m.jsxs)(tJ,{sx:{display:{xs:"inherit",lg:"none"}},anchor:"left",open:y,onClose:()=>h(!1),children:[(0,m.jsx)(eP,{sx:{height:eL.OC,minHeight:eL.OC}}),(0,m.jsx)(NavBar_NavItemsList,{drawer:!0}),(0,m.jsx)(tx.Z,{}),getDrawer()]})]})},t$=l(13250),t0=l(56868),t1=l(36111);let t2=(0,eT.ZP)(ew,{shouldForwardProp:e=>"open"!==e})(e=>{let{theme:t,open:l}=e;return{zIndex:t.zIndex.drawer+1,transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),...l&&{marginLeft:eL.RK,width:"calc(100% - ".concat(eL.RK,"px)"),transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})}}});var common_NavBar=e=>{var t,d,y,h;let{children:g}=e,{dispatch:E,state:b}=(0,u.useContext)(ep.I),L=(0,ey.useRouter)(),k=(0,eX.Z)(e=>e.breakpoints.down("sm"),{noSsr:!0}),V=(0,tM.shouldDisplayDrawer)(null==L?void 0:L.pathname),handlePaste=async()=>{try{let e=JSON.parse(await navigator.clipboard.readText()),{data:t,charNames:m,companion:u,guildData:d,serverVars:y}=e,{parseData:h}=await l.e(3736).then(l.bind(l,83736)),g=h(t,m,u,d,y),b=new Date().getTime();localStorage.setItem("lastUpdated",JSON.stringify(b)),console.log("Manual Import",{...g,lastUpdated:b,manualImport:!0}),localStorage.setItem("rawJson",JSON.stringify({data:t,charNames:m,companion:u,guildData:d,serverVars:y,lastUpdated:b})),E({type:"data",data:{...g,lastUpdated:b,manualImport:!0}})}catch(e){console.error("Error while trying to manual import",e)}};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eD.Z,{sx:{display:"flex"},children:(0,m.jsx)(t2,{compopnent:"nav",children:(0,m.jsxs)(eP,{sx:{height:eL.OC,minHeight:eL.OC},children:[(0,m.jsx)(NavBar_AppDrawer,{}),(0,m.jsx)(NavBar_NavItemsList,{}),tM.isProd?null:(0,m.jsx)(e7.Z,{"data-cy":"paste-data",color:"inherit",onClick:handlePaste,children:(0,m.jsx)(t0.Z,{})}),(null==b?void 0:b.profile)&&(null==b?void 0:null===(d=b.characters)||void 0===d?void 0:null===(t=d[0])||void 0===t?void 0:t.name)?(0,m.jsxs)(e$.Z,{variant:"caption",children:["Inspecting ",null==b?void 0:null===(h=b.characters)||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y.name]}):null,(0,m.jsx)(NavBar_LoginButton,{})]})})}),(0,m.jsx)(NavBar_AppDrawer,{permanent:!0}),(0,m.jsx)(eD.Z,{sx:{textAlign:"center",pt:1,pr:3,pl:{xs:3,lg:V?"".concat(eL.RK+24,"px"):3}},children:(0,m.jsxs)(e$.Z,{component:"div",variant:"caption",sx:{fontSize:15},children:["* Please consider disabling your ad-blocker to show your support for the platform, ensuring free access to valuable content for all users ",(0,m.jsx)(t1.Z,{color:"error",sx:{fontSize:12}})]})}),(0,m.jsx)(eD.Z,{component:"main",sx:{pt:3,pr:3,pl:{xs:3,lg:V?"".concat(eL.RK+24,"px"):3},mb:k?"75px":"110px"},children:g}),(0,m.jsx)(eD.Z,{style:{backgroundColor:tM.isProd?"":"#d73333",position:"fixed",bottom:0,left:{xs:"inherit",lg:V?eL.RK:3},width:"100%"},children:(0,m.jsx)(t$.a,{style:{display:"block",height:k?50:90,maxHeight:k?50:90,maxWidth:1200,margin:"0 auto"},client:"ca-pub-1842647313167572",slot:"1488341218",format:""})},null==L?void 0:L.pathname)]})};let t5=(0,el.Z)({key:"css"}),t3=["https://firestore.googleapis.com","https://tpc.googlesyndication.com","https://partner.googleadservices.com","https://pagead2.googlesyndication.com","https://identitytoolkit.googleapis.com","https://googleads.g.doubleclick.net","https://www.google-analytics.com","https://adservice.google.co.il","https://www.googletagmanager.com","https://adservice.google.com"];var _app=e=>{let{Component:t,emotionCache:l=t5,pageProps:u}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ec(),{children:[(0,m.jsx)("title",{children:"Idleon Toolbox"}),(0,m.jsx)("meta",{name:"description",content:"Power up your Legends of Idleon adventure with Idleon Toolbox's essential tools and resources for optimizing gameplay, character builds, crafting, and more."}),(0,m.jsx)("meta",{name:"googlebot",content:"index,follow"}),null==t3?void 0:t3.map(e=>(0,m.jsx)("link",{rel:"preconnect",href:e},e))]}),!1,(0,m.jsx)(ed(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-YER8JY07QK"}),(0,m.jsx)(ed(),{id:"ga-analytics",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'G-YER8JY07QK'); \n "}),(0,m.jsx)(ed(),{async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1842647313167572",id:"ads-by-google",strategy:"afterInteractive",crossOrigin:"anonymous"}),(0,m.jsx)(d.C,{value:l,children:(0,m.jsx)(styles_ThemeProvider_ThemeProvider,{theme:eo.Z,children:(0,m.jsxs)(d.b,{theme:eo.Z,children:[(0,m.jsx)(CssBaseline_CssBaseline,{}),(0,m.jsx)(WaitForRouter,{children:(0,m.jsx)(ep.Z,{children:(0,m.jsxs)(common_NavBar,{children:[(0,m.jsx)(eh.lX,{openGraph:{type:"website",locale:"en_US",url:"https://www.idleontoolbox.com/",siteName:"Idleon Toolbox"}}),(0,m.jsx)(t,{...u})]})})})]})})})]})}},9339:function(e,t,l){"use strict";l.d(t,{fC:function(){return calcTotalAchievements},jy:function(){return getAchievements},k6:function(){return getAchievementStatus}});var m=l(30925),u=l(70473);let getAchievements=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.AchieveReg)||(null==e?void 0:e.AchieveReg),l=(0,m.tryToParse)(null==e?void 0:e.SteamAchieve)||(null==e?void 0:e.SteamAchieve);return parseAchievements(t,l)},parseAchievements=(e,t)=>null===u.achievements||void 0===u.achievements?void 0:u.achievements.map((l,m)=>{let{steamIndex:u}=l,d=u?(null==t?void 0:t[u])===-1:(null==e?void 0:e[m])===-1,y=u?null==t?void 0:t[u]:null==e?void 0:e[m];return{...l,completed:d,...y>=0?{currentQuantity:y}:{}}}),getAchievementStatus=(e,t)=>{if(!(null==e?void 0:e[t]))return 0;switch(t){case 27:case 37:case 44:case 107:case 109:case 117:return 5;case 108:return 10;case 99:case 104:return 20;default:var l;return(null==e?void 0:null===(l=e[t])||void 0===l?void 0:l.completed)?1:0}},calcTotalAchievements=e=>e.reduce((e,t)=>{let{completed:l}=t;return l?e+1:e},0)},88054:function(e,t,l){"use strict";l.d(t,{AK:function(){return getMaxCauldron},B9:function(){return updateVials},GG:function(){return getUpgradeableBubbles},It:function(){return calcSigilsLevels},RG:function(){return applyArtifactBonusOnSigil},Tw:function(){return getEquippedBubbles},Vq:function(){return getSigilBonus},YG:function(){return getVialsBonusByEffect},a2:function(){return getBubbleAtomCost},e5:function(){return calcBubbleLevels},iu:function(){return getVialsBonusByStat},jd:function(){return getLiquidCauldrons},k_:function(){return calcVialsLevels},ln:function(){return eo},mD:function(){return el},om:function(){return getBubbleBonus},p4:function(){return getAlchemy},y7:function(){return getActiveBubbleBonus}});var m=l(30925),u=l(70473),d=l(16727),y=l(32387),h=l(89260),g=l(15893),E=l(10924),b=l(1972),L=l(71345),k=l(67896);let V={0:"power",1:"quicc",2:"high-iq",3:"kazam"},j={0:"water drops",1:"liquid n2",2:"trench h2o",3:"toxic mercury"},ee={0:"O",1:"G",2:"P",3:"Y"},ea={_:"power",a:"quicc",b:"high-iq",c:"kazam"},el={brewing:170,liquidsRegen:100,liquidsCapacity:80,cauldronsSpeed:150,cauldronsNewBubble:125,cauldronsBoostReq:100,vialsAttempts:15,vialsRng:45},getAlchemy=(e,t,l)=>{var u,d;let y=(0,m.createArrayOfArrays)(null==e?void 0:e.CauldronInfo)||(null==e?void 0:e.CauldronInfo),h=(0,m.tryToParse)(null==e?void 0:e.CauldronJobs1)||(null==e?void 0:null===(u=e.CauldronJobs)||void 0===u?void 0:u[1]),g=getCauldronStats(e);return(null==y?void 0:y[8])&&(null==y?void 0:null===(d=y[8])||void 0===d?void 0:d.length)===0&&(y[8]=g.slice(0,16)),parseAlchemy(e,y,h,g,l)},parseAlchemy=(e,t,l,m,u)=>{let d=null==l?void 0:l.map((e,t)=>({activity:e,index:t})),y=getPay2Win(e,d,u),h=getBubbles(t),g=getCauldrons(null==t?void 0:t[5],m.slice(0,16),y,h,d),E=getVials(null==t?void 0:t[4]);return{p2w:y,bubbles:h,vials:E,cauldrons:g,cauldronsInfo:m,multiplierArray:null==t?void 0:t[10],liquids:null==t?void 0:t[6],activities:d}},getLiquidCauldrons=e=>{var t,l;let m=null==e?void 0:null===(t=e.alchemy)||void 0===t?void 0:t.liquids,u=null==e?void 0:null===(l=e.alchemy)||void 0===l?void 0:l.cauldronsInfo.slice(18);return m.map((t,l)=>{var m,d,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let[eT,ef]=u[4*l],[ev,eg]=u[4*l+1],[eS,eN]=[getCauldronBrewReq(ef+1),getCauldronBrewReq(eg+1)],eC=getCauldronBrewBonus(l+4,ef),eR=null!==(eh=null==e?void 0:null===(m=e.gemShopPurchases)||void 0===m?void 0:m.find((e,t)=>106===t))&&void 0!==eh?eh:0,eI=(0,y.W)(null==e?void 0:e.saltLick,5),ew=0;eR>l&&(ew=.5+eI/100),(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[123])>l&&(ew=0===ew?1:eI/100+2);let eE=getBubbleBonus(null==e?void 0:null===(k=e.alchemy)||void 0===k?void 0:k.bubbles,"kazam","DA_DAILY_DRIP",!1),eF=getVialsBonusByEffect(null==e?void 0:null===(V=e.alchemy)||void 0===V?void 0:V.vials,null,"Liquid".concat(l+1,"Cap")),eP=(0,g.c9)(null==e?void 0:e.lab.labBonuses,8),eD=(0,g.pc)(null==e?void 0:e.lab.jewels,16,eP),eA=(0,h.F4)(e,null,"Liquid".concat(0===l||1===l?"12":"34"),eD),eL=(0,E.pA)(null==e?void 0:e.rift,null==e?void 0:null===(ee=e.totalSkillsLevels)||void 0===ee?void 0:null===(j=ee.alchemy)||void 0===j?void 0:j.rank,4),ex=(0,g.c9)(null==e?void 0:e.lab.labBonuses,6),eU=null==e?void 0:null===(ec=e.alchemy)||void 0===ec?void 0:null===(e_=ec.p2w)||void 0===e_?void 0:null===(eo=e_.liquids)||void 0===eo?void 0:null===(el=eo[l])||void 0===el?void 0:null===(ea=el.capacity)||void 0===ea?void 0:ea.level,eQ=(0,b.mV)(e,"Cap_for_all_Liquids_in_Alchemy"),eG=null===(em=(0,L.d)(null==e?void 0:null===(ed=e.arcade)||void 0===ed?void 0:ed.shop,"Cap_for_all_Liquids"))||void 0===em?void 0:em.bonus,eB=eE*Math.max(Math.pow((null==e?void 0:null===(ey=e.totalSkillsLevels)||void 0===ey?void 0:null===(ep=ey.alchemy)||void 0===ep?void 0:ep.level)/25,.3),0),eM=ew+(eA+5*eL)/100;return{maxLiquid:Math.ceil((1+eM)*(ex*(10+(eC+(eF+(eU+(eB+(eQ+Math.ceil(eG))))))))),decantCap:{level:ef,progress:eT,req:eS},decantRate:{level:eg,progress:ev,req:eN}}})},getCauldronBrewReq=e=>Math.floor(1.6+Math.pow(1.25*e,1.8)),getCauldronBrewBonus=(e,t)=>e<4?Math.round(10*(0,m.growth)("decay",90,100,t,0,0))/10:Math.round(t),getPay2Win=(e,t,l)=>{let u={0:4,1:5,2:6},d=t.filter((e,t)=>{let{activity:m}=e;return m<100&&m>=4&&-1!==m&&t<(null==l?void 0:l.length)}),y={},[h,g,E,b,,L]=(0,m.tryToParse)(null==e?void 0:e.CauldronP2W)||(null==e?void 0:e.CauldronP2W);return y.cauldrons=h.toChunks(3).map((e,t)=>{let[l,m,u]=e;return{name:V[t],speed:{cost:getP2wCauldronCost("cauldron",0,l),costToMax:getCostToMax("cauldron",0,l,el.cauldronsSpeed),level:l},newBubble:{cost:getP2wCauldronCost("cauldron",1,m),costToMax:getCostToMax("cauldron",1,m,el.cauldronsNewBubble),level:m},boostReq:{cost:getP2wCauldronCost("cauldron",2,u),costToMax:getCostToMax("cauldron",2,u,el.cauldronsBoostReq),level:u}}}),y.liquids=g.toChunks(2).map((e,t)=>{let[l,m]=e;return{name:j[t],regen:{cost:getP2wCauldronCost("liquid",0,l),costToMax:getCostToMax("liquid",0,l,el.liquidsRegen),level:l},capacity:{cost:getP2wCauldronCost("liquid",1,m),costToMax:getCostToMax("liquid",1,m,el.liquidsCapacity),level:m},players:null==d?void 0:d.filter(e=>{let{activity:l}=e;return l===(null==u?void 0:u[t])})}}).filter(e=>{let{name:t}=e;return t}),y.vials={attempts:(null==E?void 0:E[0])||0,rng:(null==E?void 0:E[1])||0},y.player={speed:(null==b?void 0:b[0])||0,extraExp:(null==b?void 0:b[1])||0},y.sigils=getSigils(e,t,l),y.vialsAttempts={current:L[0],max:Math.round(3+(null==E?void 0:E[0]))},y},getCostToMax=(e,t,l,m)=>{let u=0;for(let d=l;d"liquid"===e?0===t?Math.round(2500*Math.pow(1.19-.135*l/(100+l),l)):Math.round(3500*Math.pow(1.2-.13*l/(100+l),l)):"cauldron"===e?0===t?Math.round(2500*Math.pow(1.15-.117*l/(100+l),l)):1===t?Math.round(3200*Math.pow(1.18-.145*l/(100+l),l)):Math.round(3750*Math.pow(1.2-.14*l/(100+l),l)):0,getBubbles=e=>{let t={0:{5:"",7:"Pickaxes_and_Fishing_Rods"},1:{5:"",6:"Catching_Nets_and_Traps"},2:{5:"",6:"Hatchets_and_Worship_Skulls"},3:{7:"",25:""}};return null==e?void 0:e.reduce((e,l,m)=>{var d;return m<=3?{...e,[null==V?void 0:V[m]]:null===(d=Object.keys(l))||void 0===d?void 0:d.reduce((e,d,y)=>{var h,g;return"length"!==d?[...e,{level:parseInt(null==l?void 0:l[d])||0,index:y,rawName:"aUpgrades".concat(ee[m]).concat(y),...u.cauldrons[null==V?void 0:V[m]][d],desc:null===(g=u.cauldrons[null==V?void 0:V[m]][d])||void 0===g?void 0:g.desc.replace("$",null==t?void 0:null===(h=t[m])||void 0===h?void 0:h[y])}]:e},[])}:e},{})},getEquippedBubbles=(e,t,l)=>{var u;let d=(0,m.tryToParse)(null==e?void 0:e.CauldronBubbles)||(null==e?void 0:e.CauldronBubbles);return null==d?void 0:null===(u=d.filter((e,t)=>t<(null==l?void 0:l.length)))||void 0===u?void 0:u.map(e=>null==e?void 0:e.reduce((e,l)=>{var m;let u=ea[l[0]],d=u?null==l?void 0:l.substring(1):null;return[...e,d?null==t?void 0:null===(m=t[u])||void 0===m?void 0:m[d]:{}]},[])).filter(e=>e.length)},getActiveBubbleBonus=(e,t,l,u)=>{var d,y;let h=(0,E.fe)(u,4);if(h)return getBubbleBonus(null==u?void 0:null===(d=u.alchemy)||void 0===d?void 0:d.bubbles,t,l,!1);let g=null==e?void 0:e.find(e=>{let{bubbleName:t}=e;return l===t});return(g||h)&&null!==(y=(0,m.growth)(null==g?void 0:g.func,null==g?void 0:g.level,null==g?void 0:g.x1,null==g?void 0:g.x2,!1))&&void 0!==y?y:0},getBubbleBonus=(e,t,l,u,d)=>{var y,h,g,E,b;let L=null==e?void 0:null===(y=e[t])||void 0===y?void 0:y.findIndex(e=>{let{bubbleName:t}=e;return t===l});if(-1===L)return 0;let k={quicc:[0,6,9,12,14].toSimpleObject(),power:[0,2,4,7,14].toSimpleObject(),"high-iq":[0,2,6,12,14].toSimpleObject()},V=null==e?void 0:null===(h=e[t])||void 0===h?void 0:h[L],j=null==e?void 0:null===(g=e[t])||void 0===g?void 0:g[1],ee=d?(0,m.growth)(null==j?void 0:j.func,null==j?void 0:j.level,null==j?void 0:j.x1,null==j?void 0:j.x2,u):1,ea=null==e?void 0:null===(E=e[t])||void 0===E?void 0:E[16],el=(null==k?void 0:null===(b=k[t])||void 0===b?void 0:b[L])?(0,m.growth)(null==ea?void 0:ea.func,null==ea?void 0:ea.level,null==ea?void 0:ea.x1,null==ea?void 0:ea.x2,u):1;return(0,m.growth)(null==V?void 0:V.func,null==V?void 0:V.level,null==V?void 0:V.x1,null==V?void 0:V.x2,u)*ee*el},getVials=e=>Object.keys(e).reduce((t,l,m)=>{let d=null===u.vials||void 0===u.vials?void 0:u.vials[m];return"length"!==l?[...t,{...d,level:parseInt(null==e?void 0:e[l])||0}]:t},[]).filter(e=>{let{name:t}=e;return t}),getVialsBonusByEffect=(e,t,l)=>null==e?void 0:e.reduce((e,u)=>{var d;let{func:y,level:h,x1:g,x2:E,desc:b,stat:L,multiplier:k=1}=u;return t&&!b.includes(t)||l&&!L.includes(l)?e:e+(null!==(d=(0,m.growth)(y,h,g,E,!1))&&void 0!==d?d:0)*k},0),getVialsBonusByStat=(e,t)=>null==e?void 0:e.reduce((e,l)=>{var u;let{func:d,level:y,x1:h,x2:g,multiplier:E=1,stat:b}=l;return t!==b?e:e+(null!==(u=(0,m.growth)(d,y,h,g))&&void 0!==u?u:0)*E},0),applyVialsMulti=(e,t)=>null==e?void 0:e.map(e=>({...e,multiplier:t})),updateVials=e=>{let t;let l=(0,g.c9)(e.lab.labBonuses,10);if(t=applyVialsMulti(e.alchemy.vials,l),(0,k.RB)(e.rift,"Vial_Mastery")){var m,u;let d=null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:null===(m=u.vials)||void 0===m?void 0:m.filter(e=>{let{level:t}=e;return 13===t}),y=1+2*(null==d?void 0:d.length)/100;t=applyVialsMulti(e.alchemy.vials,l*y)}return t},getCauldrons=(e,t,l,m,u)=>{let d=u.filter(e=>{let{activity:t}=e;return t<100&&-1!==t}),y={0:"power",4:"quicc",8:"high-iq",12:"kazam"},h={};for(let u=0,E=t.length;u{let{activity:t}=e;return t===u/4});h[y[u]]={progress:null==e?void 0:e[u/4],req:getMaxCauldron(null==m?void 0:null===(g=m[y[u]])||void 0===g?void 0:g.length),players:j},Object.entries(V).forEach(e=>{var t,m;let[d,g]=e,[E,b]=g;h[y[u]]={...h[y[u]],boosts:{...h[y[u]].boosts,[d]:{progress:E,level:parseInt(b),req:getCauldronBonus(0,2,null===(m=l.cauldrons[u/4])||void 0===m?void 0:null===(t=m.boostReq)||void 0===t?void 0:t.level,parseInt(b))}}}})}return h},getMaxCauldron=e=>3+Math.pow(3*e,2.2)*Math.pow(1.3,e),getP2WBonus=(e,t,l)=>{let[d,y,h]=u.p2w[e][t],g=Math.max(0,(0,m.growth)(h,l,d,y));return Math.max((100-g)/100,.05)},getCauldronBonus=(e,t,l,m)=>{let u=getP2WBonus(0,2,l);return Math.floor(1+2*(Math.pow(1.5*(m+1),1.6)*Math.pow(1.073,m+1))*u)},getCauldronStats=e=>{var t,l,m;return(null==e?void 0:e.CauldUpgLVs)&&(null==e?void 0:e.CauldUpgXPs)?null==e?void 0:null===(t=e.CauldUpgLVs)||void 0===t?void 0:t.map((t,l)=>{var m;return[null==e?void 0:null===(m=e.CauldUpgXPs)||void 0===m?void 0:m[l],t]}):null==e?void 0:null===(m=e.CauldronInfo)||void 0===m?void 0:null===(l=m[8])||void 0===l?void 0:l.reduce((e,t)=>[...e,...t],[])},getSigils=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.CauldronP2W)||(null==e?void 0:e.CauldronP2W);return parseSigils(u,t,l)},parseSigils=(e,t,l)=>{let m=null==e?void 0:e[4],d=[];for(let e=0,y=m.length;e{let{activity:m,index:u}=t;return m>=100&&Math.floor(m-100)===e/2&&u<11&&u<(null==l?void 0:l.length)});g&&(d=[...d,{...g,unlocked:h,progress:y,bonus:2===h?g.jadeBonus:1===h?null==g?void 0:g.boostBonus:0===h?null==g?void 0:g.unlockBonus:0,characters:E}])}return d.map((e,t)=>({...e,index:t}))},getSigilBonus=(e,t)=>e?null==e?void 0:e.reduce((e,l)=>(null==l?void 0:l.name)!==t?e:e+(null==l?void 0:l.bonus),0):0,applyArtifactBonusOnSigil=(e,t)=>{let l=(0,d.YS)(t,"Chilled_Yarn");if(!l)return e;let m=1+(null==l?void 0:l.bonus);return null==e?void 0:e.map(e=>({...e,bonus:e.bonus*m}))},eo=[0,100,1e3,2500,1e4,5e4,1e5,5e5,1000001,5e6,25e6,1e8,1e9,5e10],getBubbleAtomCost=(e,t)=>Math.floor(t/1e9*(e+1)*Math.pow(1.04,e)*100),calcBubbleLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0)),0):0},calcVialsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0):0},calcSigilsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{unlocked:l}=t;return e+(l+1)},0):0},getNblbBubbles=(e,t,l)=>{var m;let u=Object.values((null==e?void 0:null===(m=e.alchemy)||void 0===m?void 0:m.bubbles)||{}).map(e=>e.filter(e=>{let{level:l,index:m}=e;return l>=5&&me.level-t.level)),d=Math.ceil(Math.min(10,l)/4),y=[];for(let e=0;e{var t,l,m,u,y,h,g,E,b,L;let k=3,V=null==e?void 0:null===(m=e.lab)||void 0===m?void 0:null===(l=m.labBonuses)||void 0===l?void 0:null===(t=l.find(e=>"No_Bubble_Left_Behind"===e.name))||void 0===t?void 0:t.active;if(!V)return null;let j=Object.values(null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:u.bubbles).flatMap((e,t)=>e.map((e,l)=>({...e,tab:t,flatIndex:1e3*t+l}))),ee=j.filter(e=>{let{level:t,index:l}=e;return t>=5&&l<15}),ea=ee.sort((e,t)=>t.flatIndex-e.flatIndex).sort((e,t)=>e.level-t.level),el=null==e?void 0:null===(h=e.lab)||void 0===h?void 0:null===(y=h.jewels)||void 0===y?void 0:y.find(e=>"Pyrite_Rhinestone"===e.name);(null==el?void 0:el.acquired)&&k++;let eo=(0,d.YS)(null==e?void 0:null===(g=e.sailing)||void 0===g?void 0:g.artifacts,"Amberite"),e_=(null==eo?void 0:eo.acquired)||1;eo&&(k+=(null==eo?void 0:eo.baseBonus)*e_);let ec=null==e?void 0:null===(L=e.tasks)||void 0===L?void 0:null===(b=L[2])||void 0===b?void 0:null===(E=b[3])||void 0===E?void 0:E[6];ec>0&&(k+=ec);let em=ea.slice(0,k),ed=getNblbBubbles(e,25,k);return{normal:em,atomBubbles:ed,breakdown:[{name:"Base",value:3},{name:"Artifact",value:((null==eo?void 0:eo.baseBonus)||0)*e_},{name:"Merit",value:ec},{name:"Jewel",value:(null==el?void 0:el.acquired)?1:0}]}}},33739:function(e,t,l){"use strict";l.d(t,{J7:function(){return calcTotals},KC:function(){return getAnvil},MH:function(){return getTimeTillCap},eW:function(){return getPlayerAnvil},uv:function(){return calcAnvilExp}});var m=l(70473),u=l(10924),d=l(29129),y=l(88054),h=l(30796),g=l(96707),E=l(54685),b=l(88344),L=l(1972),k=l(64569),V=l(74861),j=l(15815),ee=l(32387),ea=l(11028),el=l(4056),eo=l(64605),e_=l(56552),ec=l(19834),em=l(9339),ed=l(5432),ep=l(20385);let getAnvilSpeed=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,y=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,g=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,E=(0,u.Yu)(e);return(1+(l+2*t)/100)*(1+(m+y)/100)*(1+d/100)*E*(1+(h+g)/100)},getTotalMonsterMatCost=function(){let{costThreshold:e,startingIndex:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,m=arguments.length>2?arguments[2]:void 0;if(!e)return 0;let u=0;for(let e=t;eMath.round((Math.pow(e+1,1.5)+e)*Math.max(.1,1-t/100)),getAnvilUpgradeCostItem=e=>{var t;let l=m.anvilUpgradeCost.findIndex((t,l)=>{let{costThreshold:u}=t;return e{let l=0;for(let m=0;mMath.round((Math.pow(e,3)+50)*(1+e/100)*Math.max(.1,1-t/100)),getCoinToMax=(e,t)=>{let l=0;for(let m=e;m<600;m++)l+=getCoinCost(m,t,!0);return null!=l?l:0},getAnvilExp=(e,t)=>{let l=(1+3*e/100)*t;return l<20?l:Math.min(20+(l-20)/(l-20+70)*50,75)},getAnvil=(e,t)=>{let l=null==e?void 0:e.AnvilPA,m=(0,h._X)(null==t?void 0:t.talents,1,"ACME_ANVIL"),u=0;if(m){var d,y,g;u=(null==e?void 0:null===(d=e.SkillLevels)||void 0===d?void 0:d[281])+m*Math.floor((null==t?void 0:null===(g=t.skillsInfo)||void 0===g?void 0:null===(y=g.smithing)||void 0===y?void 0:y.level)/10)}let[E,b,L,k,V,j]=null==e?void 0:e.AnvilPAstats,ee={availablePoints:E,pointsFromCoins:b,pointsFromMats:L,pointsFromAcme:u,xpPoints:k,speedPoints:V,capPoints:j},ea=null==e?void 0:e.AnvilPAselect;return{anvilProduction:l,anvilStats:ee,anvilSelected:ea}},getPlayerAnvil=(e,t,l)=>{var ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK;let{anvil:eY}=e,{anvilProduction:eZ,anvilStats:eV,anvilSelected:ez}=eY||{},{availablePoints:eX,pointsFromCoins:ej,pointsFromMats:eJ,pointsFromAcme:e$,xpPoints:e0,speedPoints:e1,capPoints:e2}=eV||{};Array.isArray(ez)||(ez=[ez]);let e5=null==eZ?void 0:eZ.reduce((e,t,l)=>{var u;let[d,y,h,g]=t;return[...e,{currentAmount:d,currentXP:y,currentProgress:parseFloat(h),totalProduced:g,...m.anvilProducts[l]||{},hammers:null==ez?void 0:null===(u=ez.filter(e=>e===l))||void 0===u?void 0:u.length}]},[]),e3={availablePoints:eX,pointsFromCoins:ej,pointsFromMats:eJ,pointsFromAcme:e$,xpPoints:e0,speedPoints:e1,capPoints:e2},e4=(0,y.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","ANVILNOMICS"),e6=null===(eh=h.pV[null==e?void 0:e.class])||void 0===eh?void 0:eh.includes("Archer"),e7=e6?(0,y.om)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.bubbles,"quicc","ARCHER_OR_BUST"):1,e9=e4*e7,e8=getAnvilUpgradeCostItem(eJ);e3.anvilCost={...e8,totalMats:getTotalMonsterMatCost(e8,eJ,e9),nextMatUpgrade:getMonsterMatCost(eJ,e9),totalCoins:getTotalCoinCost(ej,e9),nextCoinUpgrade:getCoinCost(ej,e9,!0),coinsToMax:getCoinToMax(ej,e9)};let te=(0,g.o9)(e,l,"Skill_EXP_gain"),ti=(0,E.Xt)(null==e?void 0:e.cards,"Z7"),tl=(0,E.OK)(null==l?void 0:l.cards,"Skill_EXP_(Passive)"),to=(0,u.tE)("Golden_Ham",e,l),t_=(null==e?void 0:null===(ev=e.cards)||void 0===ev?void 0:null===(ef=ev.cardSet)||void 0===ef?void 0:ef.rawName)==="CardSet3"?null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:null===(eg=eS.cardSet)||void 0===eg?void 0:eg.bonus:0,tm=(0,h.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),td=(0,h.xI)(t,l,tm,536),tp=(0,h.xI)(t,l,tm,35,e),ty=(0,h.c4)(e,t,l),tT=(0,k.wt)(null==l?void 0:l.shrines,5,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eN=l.sailing)||void 0===eN?void 0:eN.artifacts),tf=(0,V.U6)(null==l?void 0:l.statues,"StatueG18",null==e?void 0:e.talents),tv=null===(eC=(0,j.Y0)(null==e?void 0:e.activePrayers,"Unending_Energy",l))||void 0===eC?void 0:eC.bonus,tg=null===(eR=(0,j.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Proficiency",l))||void 0===eR?void 0:eR.bonus,tS=null===(eI=(0,j.Y0)(null==e?void 0:e.activePrayers,"Skilled_Dimwit",l))||void 0===eI?void 0:eI.curse,tN=null===(ew=(0,j.Y0)(null==e?void 0:e.activePrayers,"The_Royal_Sampler",l))||void 0===ew?void 0:ew.curse,tC=(0,b.zi)(e,27,l),tR=(0,h.eZ)(null==e?void 0:e.activeBuffs,"MAESTRO_TRANSFUSION"),tI=(0,ee.W)(null==l?void 0:l.saltLick,3),tw=(0,ea.U4)(null==l?void 0:null===(eE=l.dungeons)||void 0===eE?void 0:eE.upgrades,"Class_Exp"),tE=(0,el.xV)(null==e?void 0:e.postOffice,"Myriad_Crate",2),tF=(0,em.k6)(null==l?void 0:l.achievements,283),tq=(0,em.k6)(null==l?void 0:l.achievements,284),tP=(0,em.k6)(null==l?void 0:l.achievements,294),tD=(0,u.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,1),tA=(0,u.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,4),tL=(0,ed.du)(null==l?void 0:null===(eF=l.breeding)||void 0===eF?void 0:eF.pets,"Skill_EXP"),tx=null!==(ek=null===(eP=(0,ep.Ob)(l,"MSA_Skill_EXP"))||void 0===eP?void 0:eP.bonus)&&void 0!==ek?ek:0,tU=0,tQ=(0,ec.s8)(l,t,7);(null==tQ?void 0:tQ[null==e?void 0:e.playerId])!==-1&&(tU=(0,ec.zJ)(null==l?void 0:null===(eW=l.divinity)||void 0===eW?void 0:eW.linkedDeities,t,7)||0),e3.baseAnvilExp=te+(ti+to+ty*Math.min(1,td?ty:0)+(t_+tl+(Math.min(150,100*tp)+tT)+tf+tv+tg-tS-tN+(tC+(tR+(tI+(tw+(tE+(tU+(10*tF+(25*tq+(10*tP+(tD+(tA+(tL+tx))))))))))))));let tG=(0,L.fE)(l,"skills","StampB3",e),tB=(0,el.xV)(null==e?void 0:e.postOffice,"Blacksmith_Box",1),tM=(0,y.y7)(null==e?void 0:e.equippedBubbles,"quicc","HAMMER_HAMMER",l),tO=(0,V.U6)(null==l?void 0:l.statues,"StatueG12",null==e?void 0:e.talents),tk=(0,g.o9)(e,l,"Speed_in_Town"),tW=(0,h._X)(null==e?void 0:e.talents,0,"BROKEN_TIME");e3.anvilSpeed=3600*getAnvilSpeed(null==e?void 0:null===(eD=e.stats)||void 0===eD?void 0:eD.agility,e1,tG,tB,tM,tO,tk,tW);let tH=0,tK=null===(eA=(0,j.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",l))||void 0===eA?void 0:eA.curse,tY=null===(eL=(0,j.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",l))||void 0===eL?void 0:eL.bonus;(null==l?void 0:null===(eU=l.guild)||void 0===eU?void 0:null===(ex=eU.guildBonuses)||void 0===ex?void 0:ex.length)>0&&(tH=(0,eo._r)(null==l?void 0:null===(eH=l.guild)||void 0===eH?void 0:eH.guildBonuses,2));let tZ=(0,h._X)(null==e?void 0:e.starTalents,null,"TELEKINETIC_STORAGE"),tV=(0,k.wt)(null==l?void 0:l.shrines,3,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eQ=l.sailing)||void 0===eQ?void 0:eQ.artifacts),tz=(0,d.k)(null==l?void 0:l.bribes,"Bottomless_Bags"),tX=(1+(tH+tZ)/100)*(1+tV/100)*Math.max(1-tK/100,.4)*(1+(tY+tz)/100),tj=(0,L.fE)(l,"skills","StampB8",e),tJ=(0,L.fE)(l,"misc","StampC2",e),t$=null!==(eK=null==l?void 0:null===(eG=l.gemShopPurchases)||void 0===eG?void 0:eG.find((e,t)=>58===t))&&void 0!==eK?eK:0,t0=(0,h._X)(null==e?void 0:e.talents,0,"EXTRA_BAGS"),t1=(0,g.o9)(e,l,"Carry_Cap"),t2=null==e?void 0:null===(eB=e.carryCapBags)||void 0===eB?void 0:eB.find(e=>{let{Class:t}=e;return"bCraft"===t}),t5=(0,e_.nR)(t2,{allCapacity:tX,mattyBagStampBonus:tj,masonJarStampBonus:tJ,gemShopCarryBonus:t$,extraBagsTalentBonus:t0,starSignExtraCap:t1});e3.anvilCapacity=Math.round(t5*(2+.1*e2));let t3=ez.sort((e,t)=>e-t).map(e=>m.anvilProducts[e]);return{guild:(null==l?void 0:null===(eO=l.guild)||void 0===eO?void 0:null===(eM=eO.guildBonuses)||void 0===eM?void 0:eM.length)>0,stats:e3,production:e5,selected:t3}},calcAnvilExp=(e,t,l,m,d)=>{var y,g;let b=(0,h._X)(null==e?void 0:e.talents,1,"FOCUSED_SOUL"),k=(0,h._X)(null==e?void 0:e.talents,0,"HAPPY_DUDE"),V=(0,E.OK)(null==l?void 0:l.cards,"Smithing_EXP_(Passive)"),j=(0,el.xV)(null==e?void 0:e.postOffice,"Blacksmith_Box",0),ee=(0,L.mV)(l,"SmithExp",e),ea=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(g=l.totalSkillsLevels)||void 0===g?void 0:null===(y=g.smithing)||void 0===y?void 0:y.rank,0),eo=(0,h.A5)(t,2,"Maestro","LEFT_HAND_OF_LEARNING"),e_=(0,h.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),ec=(0,h.xI)(t,l,e_,42);(0,h.gW)(null==e?void 0:e.class,"Maestro")&&ec&&(eo*=2);let em=Math.max(.1,(1+(b+(ee+(k+25*ea)))/100)*(1+V/100)*(1+j/100)+(m+eo)/100),ed=getAnvilExp(d,em);return 100*(ed-1)},getTimeTillCap=e=>{let{hammers:t,currentAmount:l,currentProgress:m,requiredAmount:u,afkTime:d,stats:y}=e,h=(new Date().getTime()-d)/1e3,g=Math.min(Math.round(l+(m+h*(null==y?void 0:y.anvilSpeed)/3600)/u*(null!=t?t:0)),null==y?void 0:y.anvilCapacity);return((null==y?void 0:y.anvilCapacity)-g)/((null==y?void 0:y.anvilSpeed)/3600/u*(null!=t?t:0))},calcTotals=(e,t)=>{var l;return null==e?void 0:null===(l=e.anvil)||void 0===l?void 0:l.reduce((l,m,u)=>{let{stats:d,production:y}=getPlayerAnvil(null==t?void 0:t[u],t,e),h=null==y?void 0:y.filter(e=>{let{hammers:t}=e;return t>0});return null==h||h.forEach(e=>{let{hammers:t,rawName:m,requiredAmount:u}=e,y=Math.min((null==d?void 0:d.anvilSpeed)*t/u,null==d?void 0:d.anvilCapacity);(null==l?void 0:l[m])?l[m]+=y:l[m]=y}),l},{})}},71345:function(e,t,l){"use strict";l.d(t,{d:function(){return getArcadeBonus},z:function(){return getArcade}});var m=l(30925),u=l(70473),d=l(11028);let getArcade=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.ArcadeUpg)||(null==e?void 0:e.ArcadeUpg);return parseArcade(u,t,l)},parseArcade=(e,t,l)=>{var y,h;let g=null==t?void 0:null===(y=t.accountOptions)||void 0===y?void 0:y[74],E=null==t?void 0:null===(h=t.accountOptions)||void 0===h?void 0:h[75],b=Math.round((0,d.he)(t)/Math.max(1800,(0,d.gq)(t))),L=null===u.arcadeShop||void 0===u.arcadeShop?void 0:u.arcadeShop.map((t,u)=>{var d,y;let{x1:h,x2:g,func:E}=t,b=null!==(y=null==e?void 0:e[u])&&void 0!==y?y:0;return{...t,level:b,active:null==l?void 0:null===(d=l.ArcadeBonuses)||void 0===d?void 0:d.includes(u),bonus:(0,m.growth)(E,b,h,g,!1),iconName:"PachiShopICON".concat(u)}}),k=null==L?void 0:L.reduce((e,t)=>{let{level:l}=t;return e+l},0);return{shop:L,balls:g,goldBalls:E,maxBalls:b,totalUpgradeLevels:k}},getArcadeBonus=(e,t)=>null==e?void 0:e.find(e=>{let{effect:l}=e;return l.includes(t)})},95331:function(e,t,l){"use strict";l.d(t,{Bm:function(){return calcTotalAtomLevels},Xp:function(){return getAtomColliderThreshold},_m:function(){return getAtomBonus},nK:function(){return getAtoms}});var m=l(30925),u=l(70473),d=l(88054),y=l(20385),h=l(1972);let getAtoms=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.Atoms)||(null==e?void 0:e.Atoms),u=(0,m.tryToParse)(null==e?void 0:e.Divinity)||(null==e?void 0:e.Divinity);return parseAtoms(u,l,t)},parseAtoms=(e,t,l)=>{var m,g;let E=null!=t?t:[],b=null==e?void 0:e[39],L=null===u.atomsInfo||void 0===u.atomsInfo?void 0:u.atomsInfo.map((e,m)=>{var g,b,L,k,V,j,ee,ea,el,eo;let e_=null!==(j=null==E?void 0:E[m])&&void 0!==j?j:0,ec=null!==(ee=null==l?void 0:null===(L=l.towers)||void 0===L?void 0:null===(b=L.data)||void 0===b?void 0:null===(g=b[8])||void 0===g?void 0:g.level)&&void 0!==ee?ee:0,em=null!==(ea=null==t?void 0:t[9])&&void 0!==ea?ea:0,ed=(0,d.om)(null==l?void 0:null===(k=l.alchemy)||void 0===k?void 0:k.bubbles,"kazam","ATOM_SPLIT",!1),ep=null!==(el=null===(V=(0,y.Ob)(l,"Atom_Redux"))||void 0===V?void 0:V.unlocked)&&void 0!==el?el:0,ey=null!==(eo=(0,y.Ob)(l,"Isotope_Discovery"))&&void 0!==eo?eo:0,eh=(0,h.mV)(l,"Lower_Atom_Upgrade_Costs"),eT=Math.round(20+10*+!!ey),ef={account:l,atomReductionFromAtom:em,reduxSuperbit:ep,bubbleBonus:ed,atomColliderLevel:ec,stampBonusReduction:eh,atomInfo:e,level:e_},ev=getCost(ef),eg=getCost({...ef,level:e_+1}),eS=getCostToMax({...ef,maxLevel:eT}),eN=parseAtomBonus(e,e_,l);return{level:e_,maxLevel:eT,rawName:"Atom".concat(m),...(null===u.atomsInfo||void 0===u.atomsInfo?void 0:u.atomsInfo[m])||{},cost:Math.floor(ev),nextLeveCost:Math.floor(eg),costToMax:Math.floor(eS),bonus:eN}}),k=null==l?void 0:null===(m=l.accountOptions)||void 0===m?void 0:m[134],V=null==L?void 0:L.find(e=>{let{name:t}=e;return"Hydrogen_-_Stamp_Decreaser"===t}),j=Math.min(90,(null!==(g=null==V?void 0:V.level)&&void 0!==g?g:0)*k);return{particles:b,atoms:L,stampReducer:j}},getCost=e=>{var t;let{account:l,atomReductionFromAtom:m,reduxSuperbit:u,bubbleBonus:d,atomColliderLevel:y,stampBonusReduction:h,atomInfo:g,level:E}=e,b=1/(1+(h+m+10*(u?1:0)+d+y/10+7*(null==l?void 0:null===(t=l.tasks)||void 0===t?void 0:t[2][4][6]))/100);return b*((null==g?void 0:g.x3)+(null==g?void 0:g.x1)*E)*Math.pow(null==g?void 0:g.x2,E)},getCostToMax=e=>{let t=0;for(let l=null==e?void 0:e.level;l<(null==e?void 0:e.maxLevel);l++)t+=getCost({...e,level:l});return t},parseAtomBonus=(e,t,l)=>{var m,u,d;if((null==e?void 0:e.name)==="Fluoride_-_Void_Plate_Chef"){let d=null==l?void 0:null===(u=l.cooking)||void 0===u?void 0:null===(m=u.meals)||void 0===m?void 0:m.reduce((e,t)=>{let{level:l}=t;return l>=30?e+1:e},0);return 100*(Math.pow(1+(null==e?void 0:e.baseBonus)*t/100,d)-1)}if((null==e?void 0:e.name)==="Carbon_-_Wizard_Maximizer")return(null==e?void 0:e.baseBonus)*(null==l?void 0:null===(d=l.towers)||void 0===d?void 0:d.wizardOverLevels)},getAtomBonus=(e,t)=>{var l,m;let u=null==e?void 0:null===(l=e.atoms)||void 0===l?void 0:l.atoms;return null==u?void 0:null===(m=u.filter(e=>(null==e?void 0:e.name)===t).map(l=>{var m;return"Fluoride_-_Void_Plate_Chef"===t?null==l?void 0:l.bonus:"Carbon_-_Wizard_Maximizer"!==t?(null==l?void 0:l.level)*(null==l?void 0:l.baseBonus):(null==l?void 0:l.baseBonus)*(null==e?void 0:null===(m=e.towers)||void 0===m?void 0:m.wizardOverLevels)}))||void 0===m?void 0:m[0]},getAtomColliderThreshold=e=>0===e?15e6:1===e?25e6:2===e?1e8:3===e?25e7:105e7,calcTotalAtomLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},5432:function(e,t,l){"use strict";l.d(t,{N5:function(){return getBreeding},XM:function(){return addBreedingChance},cg:function(){return getTimeToLevel},du:function(){return getShinyBonus},eJ:function(){return calcUpgradeBonus},sd:function(){return calcHighestPower}});var m=l(70473),u=l(30925),d=l(88054),y=l(1972),h=l(15893),g=l(89260),E=l(9339);let getBreeding=(e,t)=>{let l=(0,u.tryToParse)(null==e?void 0:e.Breeding)||(null==e?void 0:e.Breeding),m=(0,u.tryToParse)(null==e?void 0:e.Pets)||(null==e?void 0:e.Pets),d=(0,u.tryToParse)(null==e?void 0:e.PetsStored)||(null==e?void 0:e.PetsStored),y=(0,u.tryToParse)(null==e?void 0:e.Territory)||(null==e?void 0:e.Territory),h=(0,u.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking);return parseBreeding(l,y,m,d,h,t)},parseBreeding=(e,t,l,u,d,y)=>{var h,g,E,b,L,k,V,j,ee,ea,el,eo,e_;let ec=null==e?void 0:e[0],em=null==e?void 0:null===(h=e[3])||void 0===h?void 0:h[8],ed=null==e?void 0:e[1],ep=null==e?void 0:null===(g=e[2])||void 0===g?void 0:g.map((e,t)=>({...m.petUpgrades[t]||[],level:e})),ey={second:(null==ep?void 0:null===(E=ep[2])||void 0===E?void 0:E.level)>0,third:(null==ep?void 0:null===(b=ep[4])||void 0===b?void 0:b.level)>0,fourth:(null==ep?void 0:null===(L=ep[6])||void 0===L?void 0:L.level)>0,fifth:(null==ep?void 0:null===(k=ep[9])||void 0===k?void 0:k.level)>0},eh=null==u?void 0:u.map(e=>{let[t,l,m]=e;return{name:t,level:l,power:m}}),eT=null==e?void 0:e.slice(4,8),ef=null==e?void 0:e.slice(22,26),ev=null==e?void 0:null===(V=e[2])||void 0===V?void 0:V[4],eg=Math.round(5+ev+2*(null!==(e_=null==y?void 0:null===(j=y.gemShopPurchases)||void 0===j?void 0:j.find((e,t)=>125===t))&&void 0!==e_?e_:0)),eS=null==l?void 0:l.slice(0,eg),eN=null==eS?void 0:eS.reduce((e,t)=>{let[l,,,m]=t;return 0===m?e:{...e,[l]:(null==e?void 0:e[l])?(null==e?void 0:e[l])+1:1}},{}),eC=null==t?void 0:t.map(e=>{let[,t]=e;return t}),eR=null==t?void 0:t.map(e=>{let[t]=e;return t}),eI=null==l?void 0:null===(ea=l.slice(27))||void 0===ea?void 0:null===(ee=ea.map(e=>{var t;let[l,u,d,y]=e,h=null===m.petGenes||void 0===m.petGenes?void 0:m.petGenes[u],g=null===m.monsters||void 0===m.monsters?void 0:null===(t=m.monsters[l])||void 0===t?void 0:t.Name;return{name:l,realName:g,x1:u,power:d,x3:y,gene:h}}))||void 0===ee?void 0:ee.toChunks(4),ew=m.territory.filter((e,t)=>14!==t),eE=null==ew?void 0:ew.map((e,t)=>{var l,m,u,d,y,h,g;let E=(null==eI?void 0:eI[t])||[],b=(null==eI?void 0:eI[t-1])||[],L=(null==eI?void 0:eI[t+1])||[],k=null==E?void 0:E.reduce((e,t,l)=>e+getForageSpeed({team:E,previousTeam:b,teamMember:t,position:l}),0),V=null==E?void 0:E.reduce((e,t)=>e+getFightPower(t),0),j=null==E?void 0:E.some(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.abilityType)===0}),ee=j?0:null==E?void 0:null===(l=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Flashy"}))||void 0===l?void 0:l.length,ea=null==E?void 0:null===(m=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Fleeter"}))||void 0===m?void 0:m.length,el=null==E?void 0:null===(u=E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Fasidious"}))||void 0===u?void 0:u.length,eo=null==E?void 0:E.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Miasma"});if(eo.length){let e=null==E?void 0:null===(g=E.map(e=>{let{gene:t}=e;return null==t?void 0:t.name}))||void 0===g?void 0:g.every((e,t,l)=>l.indexOf(t)===e);eo=e?1:4}else eo=1;let e_=[...E,...b,...L],ec=null==e_?void 0:null===(d=e_.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Badumdum"}))||void 0===d?void 0:d.length,em=null==e_?void 0:null===(y=e_.filter(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Tsar"}))||void 0===y?void 0:y.length,ed=k*Math.pow(1.3,ea)*Math.pow(1.2,ec)*Math.pow(1.5,ee)*Math.pow(1.5,el)*eo,ep=(V+k*t)*Math.pow(1.5,em){var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Monolithic"}).length/5+1),eh=t>14?null==ew?void 0:null===(h=ew[t-1])||void 0===h?void 0:h.powerReq:null==e?void 0:e.powerReq,eT=(eh+(null==eC?void 0:eC[t]))*Math.pow(ey,null==eC?void 0:eC[t]);return{...e,team:E,forageSpeed:ep,reqProgress:eT,currentProgress:null==eR?void 0:eR[t]}}),eF=[],eP={},eD=0,eA=null===m.petStats||void 0===m.petStats?void 0:m.petStats.map((e,t)=>{let l=null==ed?void 0:ed[t];return null==e?void 0:e.map((e,m)=>{var u,d,y,h,g;let E=null===(u=Array(19).fill(1))||void 0===u?void 0:u.reduce((e,l,u)=>{var d;return(null==ef?void 0:null===(d=ef[t])||void 0===d?void 0:d[m])>Math.floor((1+Math.pow(u+1,1.6))*Math.pow(1.7,u+1))?u+2:e},0);E=(null==ef?void 0:null===(d=ef[t])||void 0===d?void 0:d[m])===0?0:0===E?1:E,eD+=0===E?1:E;let b=Math.floor((1+Math.pow(E,1.6))*Math.pow(1.7,E)),L=Math.round((null==e?void 0:e.baseValue)*E),k={...e,world:"World"+(t+1),level:null==eT?void 0:null===(y=eT[t])||void 0===y?void 0:y[m],shinyLevel:E,progress:null==ef?void 0:null===(h=ef[t])||void 0===h?void 0:h[m],goal:b,rawPassive:null==e?void 0:e.passive,passive:null==e?void 0:null===(g=e.passive)||void 0===g?void 0:g.replace("{",L),passiveValue:L,unlocked:m0&&(eP[null==e?void 0:e.passive]=L),(null==eN?void 0:eN[null==e?void 0:e.monsterRawName])&&eF.push(k),k})});return{passivesTotals:eP,storedPets:eh,eggs:ec,deadCells:em,speciesUnlocks:ed,fencePets:eF,fencePetsObject:eN,maxArenaLevel:null==y?void 0:null===(el=y.accountOptions)||void 0===el?void 0:el[89],timeToNextEgg:(null==y?void 0:null===(eo=y.accountOptions)||void 0===eo?void 0:eo[87])*1e3,petUpgrades:ep,arenaBonuses:m.arenaBonuses,unlockedBreedingMulti:ey,pets:eA,territories:eE,foragingRounds:eC,currentProgress:eR,totalShinyLevels:eD}},addBreedingChance=(e,t)=>{var l,m;let d=(0,u.tryToParse)(null==e?void 0:e.Breeding)||(null==e?void 0:e.Breeding),y=0,h=null==t?void 0:null===(m=t.breeding)||void 0===m?void 0:null===(l=m.pets)||void 0===l?void 0:l.map((e,l)=>null==e?void 0:e.map((e,m)=>{var u,h;let E=(0,g.eA)(null==t?void 0:null===(u=t.cooking)||void 0===u?void 0:u.kitchens),b=getBreedingMulti(t,d,l,m,null==t?void 0:null===(h=t.breeding)||void 0===h?void 0:h.unlockedBreedingMulti,E);return y+=Math.min(9,Math.floor(Math.pow((null==b?void 0:b.second)-1,.8))+1),{...e,breedingMultipliers:b}}));return{...null==t?void 0:t.breeding,pets:h,totalBreedabilityLv:y}},getBaseBreedChance=(e,t,l)=>{var u;let d=m.randomList[54].split(" ");return l+2>(null==e?void 0:null===(u=e[1])||void 0===u?void 0:u[t])?1/Math.max(1,d[m.petStats[t][l].passiveIndex]):1},getBreedingMulti=(e,t,l,u,E,b)=>{var L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey;let eh=1+Math.ceil(100*Math.pow((null==t?void 0:t[4+l|0][u])/10,1.9))/100,eT=(null==E?void 0:E.second)?1+Math.log(Math.max(1,Math.pow((null==t?void 0:t[l+13|0][u])+1,.725))):1,ef=(null==E?void 0:E.third)?1+(.25*Math.pow(null==t?void 0:null===(L=t[0])||void 0===L?void 0:L[0],1.4)+Math.pow((null==t?void 0:null===(k=t[0])||void 0===k?void 0:k[0])/3,6)):1,ev=(null==E?void 0:E.fourth)?0===l?1:1+.1*l+Math.max(1,Math.min(3,1+.15*(null==t?void 0:null===(V=t[2])||void 0===V?void 0:V[7])))*Math.pow((null==t?void 0:null===(j=t[1])||void 0===j?void 0:j[l-1|0])/(m.petStats[l-1].length-m.petStats[l-1].length/2),3):1,eg=(null==E?void 0:E.fifth)?Math.max(1,Math.pow((null==e?void 0:null===(ee=e.accountOptions)||void 0===ee?void 0:ee[86])+1,.3)):1,eS=getBaseBreedChance(t,l,u),eN=null!==(ey=null==e?void 0:null===(ea=e.gemShopPurchases)||void 0===ea?void 0:ea.find((e,t)=>119===t))&&void 0!==ey?ey:0,eC=(0,d.YG)(null==e?void 0:null===(el=e.alchemy)||void 0===el?void 0:el.vials,null,"NewPet"),eR=(0,d.om)(null==e?void 0:null===(eo=e.alchemy)||void 0===eo?void 0:eo.bubbles,"kazam","PETTING_THE_RIFT",!1),eI=(0,y.mV)(e,"New_Pet_Chance"),ew=(0,h.c9)(null==e?void 0:null===(e_=e.lab)||void 0===e_?void 0:e_.labBonuses,8),eE=(0,h.pc)(null==e?void 0:null===(ec=e.lab)||void 0===ec?void 0:ec.jewels,16,ew),eF=(0,g.F4)(e,null,"Npet",eE),eP=calcUpgradeBonus(null==e?void 0:null===(ed=e.breeding)||void 0===ed?void 0:null===(em=ed.petUpgrades)||void 0===em?void 0:em[9],9,e),eD=(1+10*eN/100)*(1+(eC+eR*(null==e?void 0:null===(ep=e.rift)||void 0===ep?void 0:ep.currentRift))/100)*(1+eI/100)*(1+eF/100)*Math.pow(Math.max(1,eP),b/100)*eS*eh*eT*ef*ev*eg;return{first:eh,second:eT,third:ef,fourth:ev,fifth:eg,totalChance:eD}},getShinyBonus=(e,t)=>null==e?void 0:e.reduce((e,l)=>e+(null==l?void 0:l.reduce((e,l)=>{let{passive:m,passiveValue:u}=l;return e+(m.includes(t)&&u)},0)),0),getTimeToLevel=(e,t,l,m)=>{if((null==e?void 0:e.shinyLevel)===m)return 0;let u=0;for(let t=null==e?void 0:e.shinyLevel;t0===t||2===t||4===t?null==e?void 0:e.level:1===t?4*(null==e?void 0:e.level):3===t?25*(null==e?void 0:e.level):5===t?(1+.25*(null==e?void 0:e.level))*Math.min(2,Math.max(1,1+.1*(0,E.k6)(null==l?void 0:l.achievements,221))):6===t?6*(null==e?void 0:e.level):7===t?1+.15*(null==e?void 0:e.level):8===t?1+2*(null==e?void 0:e.level):9===t?1+.02*(null==e?void 0:e.level):10===t?10*(null==e?void 0:e.level):11===t?Math.ceil(12*Math.pow(null==e?void 0:e.level,.698)):0,getForageSpeed=e=>{var t,l,m,u;let{team:d,previousTeam:y,teamMember:h,position:g}=e;if((null==h?void 0:null===(t=h.gene)||void 0===t?void 0:t.abilityType)===1){switch(null==h?void 0:null===(l=h.gene)||void 0===l?void 0:l.name){case"Forager":return 2*(null==h?void 0:h.power);case"Targeter":if((null==y?void 0:null===(u=y[g])||void 0===u?void 0:null===(m=u.gene)||void 0===m?void 0:m.name)==="Targeter")return 5*(null==h?void 0:h.power);break;case"Opticular":if(null==d?void 0:d.every(e=>e.power<=h.power))return 3*(null==h?void 0:h.power);break;case"Borger":if(y.some(e=>{var t;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.name)==="Forager"}))return 10*(null==h?void 0:h.power)}return null==h?void 0:h.power}return 0},getFightPower=e=>{var t,l;return(null==e?void 0:null===(t=e.gene)||void 0===t?void 0:t.abilityType)===0?(null==e?void 0:null===(l=e.gene)||void 0===l?void 0:l.name)==="Mercenary"?2*e.power:e.power:0},calcHighestPower=e=>{var t;let l=null==e?void 0:null===(t=e.territories)||void 0===t?void 0:t.reduce((e,t)=>{let{team:l}=t;return[...e,...l]},[]),m=[...(null==e?void 0:e.storedPets)||[],...l].map(e=>{let{power:t}=e;return t});return Math.max(...m)}},29129:function(e,t,l){"use strict";l.d(t,{k:function(){return getBribeBonus},t:function(){return getBribes}});var m=l(30925),u=l(70473);let getBribes=e=>{let t=(null==e?void 0:e.BribeStatus)||(0,m.tryToParse)(null==e?void 0:e.BribeStatus);return parseBribes(t)},parseBribes=e=>null===u.bribes||void 0===u.bribes?void 0:u.bribes.map((t,l)=>{let m=null==e?void 0:e[l];return{...t,done:1===m}}),getBribeBonus=(e,t)=>{var l,m;return null!==(m=null==e?void 0:null===(l=e.find(e=>{let{name:l,done:m}=e;return l===t&&m}))||void 0===l?void 0:l.value)&&void 0!==m?m:0}},54685:function(e,t,l){"use strict";l.d(t,{BZ:function(){return calcCardBonus},OK:function(){return getCardBonusByEffect},QN:function(){return calcCardsLevels},V3:function(){return getPlayerCards},Xt:function(){return getEquippedCardBonus},vm:function(){return getCards},wt:function(){return getEquippedCardsData}});var m=l(70473),u=l(30925);let getCards=(e,t)=>{var l;let m=(null==e?void 0:null===(l=e.Cards)||void 0===l?void 0:l[0])||(0,u.tryToParse)(null==e?void 0:e.Cards0),d=(0,u.tryToParse)(null==e?void 0:e.Rift)||(null==e?void 0:e.Rift);return parseCards(m,d,t)},calculateStars=(e,t,l,m)=>{let u=0;for(let d=0;d<4+ +m;d++)"Boss3B"===l?t>1.5*Math.pow(d+1+Math.floor(d/3),2)&&(u=d+2):t>e*Math.pow(d+1+(Math.floor(d/3)+16*Math.floor(d/4)),2)&&(u=d+2);return u>0?u-1:u},calculateAmountToNextLevel=(e,t,l)=>t>=5?0:e*Math.pow(t+1+(Math.floor((t+1)/4)+16*Math.floor((t+1)/5)),2)-l+1,parseCards=(e,t,l)=>{let[u]=t||[],d=u>=45;return Object.entries(e).reduce((e,t)=>{var u,y;let[h,g]=t,E=null===m.cards||void 0===m.cards?void 0:m.cards[h],b=(null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[155])||"",L=(null==b?void 0:null===(y=b.toString())||void 0===y?void 0:y.split(","))||[],k=(null==L?void 0:L.includes(h))?5:calculateStars(null==E?void 0:E.perTier,g,h,d);return E?{...e,[null==E?void 0:E.displayName]:{...E,amount:g,stars:k,nextLevelReq:g+calculateAmountToNextLevel(null==E?void 0:E.perTier,k,g)}}:e},{})},calculateCardSetStars=(e,t)=>e&&t?t/(null==e?void 0:e.bonus)-1:null,getEquippedCardBonus=(e,t)=>{var l;let m=null==e?void 0:null===(l=e.equippedCards)||void 0===l?void 0:l.find(e=>{let{cardIndex:l}=e;return l===t});return m?calcCardBonus(m):0},getCardBonusByEffect=(e,t)=>{var l;return null===(l=Object.values(e||{}))||void 0===l?void 0:l.reduce((e,l)=>{var m;return(null==l?void 0:null===(m=l.effect)||void 0===m?void 0:m.includes(t))?e+calcCardBonus(l):e},0)},calcCardBonus=e=>{var t,l,m;return e?(null==e?void 0:e.bonus)*((null!==(t=null==e?void 0:e.stars)&&void 0!==t?t:-1)+1)*(null!==(l=null==e?void 0:e.chipBoost)&&void 0!==l?l:1):0},getPlayerCards=(e,t)=>{var l,u,d;if(!(null==e?void 0:e.CSetEq)&&!(null==e?void 0:e.CardEquip))return{};let y=null==e?void 0:e.CSetEq,h=getEquippedCardsData(null==e?void 0:e.CardEquip,t),g=m.cardSets[null===(l=Object.keys(y))||void 0===l?void 0:l[0]]||{};return{cardSet:{...g,bonus:null===(u=Object.values(y))||void 0===u?void 0:u[0],stars:calculateCardSetStars(g,null===(d=Object.values(y))||void 0===d?void 0:d[0])},equippedCards:h}},getEquippedCardsData=(e,t)=>null==e?void 0:e.map(e=>{var l,u,d,y;return{...(null===m.cards||void 0===m.cards?void 0:null===(l=m.cards[e])||void 0===l?void 0:l.displayName)?{cardName:null===m.cards||void 0===m.cards?void 0:null===(u=m.cards[e])||void 0===u?void 0:u.displayName}:{},...(null==t?void 0:null===(y=t.cards)||void 0===y?void 0:y[null===m.cards||void 0===m.cards?void 0:null===(d=m.cards[e])||void 0===d?void 0:d.displayName])||{}}}).filter((e,t)=>t<8),calcCardsLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{stars:l}=t;return e+(l+1)},0):0}},56552:function(e,t,l){"use strict";l.d(t,{NA:function(){return getPlayerConstructionExpPerHour},P9:function(){return getRespawnRate},SD:function(){return initializeCharacter},VK:function(){return getDropRate},WU:function(){return getAfkGain},Yp:function(){return getPlayerSpeedBonus},bv:function(){return getCashMulti},nR:function(){return getPlayerCapacity},ql:function(){return getCharacters},wJ:function(){return getPlayerFoodBonus},x6:function(){return getPlayerConstructionSpeed}});var m=l(70473),u=l(10924),d=l(88344),y=l(23515),h=l(34664),g=l(30796),E=l(54685),b=l(1972),L=l(4056),k=l(88054),V=l(74861),j=l(96707),ee=l(33739),ea=l(15815),el=l(64605),eo=l(64569),e_=l(79603),ec=l(32387),em=l(11028),ed=l(89260),ep=l(74805),ey=l(15265),eh=l(19225),eT=l(15893),ef=l(9339),ev=l(30925),eg=l(71345),eS=l(16727),eN=l(5432),eC=l(19834),eR=l(72973),eI=l(67896),ew=l(95331),eE=l(8616),eF=l(13339),eP=l(79184),eD=l(77115),eA=l(48832),eL=l(30183);let{tryToParse:ex,createIndexedArray:eU,createArrayOfArrays:eQ}=l(30925),getCharacters=(e,t)=>{let l=t||[0,1,2,3,4,5,6,7,8];return null==l?void 0:l.map((t,l)=>{var m;let u=null===(m=Object.entries(e))||void 0===m?void 0:m.reduce((e,t)=>{let[m,u]=t,d=RegExp("_".concat(l),"g");if(d.test(m)){let t=ex(u),l=m,d=[];switch(!0){case m.includes("EquipOrder"):l="EquipmentOrder",u=eQ(u);break;case m.includes("EquipQTY"):l="EquipmentQuantity",u=eQ(u);break;case m.includes("AnvilPA_"):l="AnvilPA",t=eQ(u);break;case m.includes("EMm0"):{l="EquipmentMap",d=null==e?void 0:e[l];let m=eU(t);d?d.splice(0,0,m):d=[m];break}case m.includes("IMm_"):l="InventoryMap",t=ex(u);break;case m.includes("EMm1"):{l="EquipmentMap",d=null==e?void 0:e[l];let m=eU(t);d?d.splice(1,0,m):d=[m];break}case m.includes("BuffsActive"):l="BuffsActive",d=eQ(t);break;case m.includes("ItemQTY"):l="ItemQuantity";break;case m.includes("PVStatList"):l="PersonalValuesMap",t={...(null==e?void 0:e[l])||{},StatList:ex(u)};break;case m.includes("PVtStarSign"):l="PersonalValuesMap",t={...(null==e?void 0:e[l])||{},StarSign:ex(u)};break;case m.includes("ObolEqO0"):l="ObolEquippedOrder";break;case m.includes("ObolEqMAP"):l="ObolEquippedMap";break;case m.includes("SL_"):l="SkillLevels";break;case m.includes("SLpre_"):l="SkillPreset";break;case m.includes("SM_"):l="SkillLevelsMAX";break;case m.includes("KLA_"):l="KillsLeft2Advance";break;case m.includes("AtkCD_"):l="AttackCooldowns";break;case m.includes("POu_"):l="PostOfficeInfo";break;case m.includes("PTimeAway"):l="PlayerAwayTime",t*=1e3;break;default:var y;l=null==m?void 0:null===(y=m.split("_"))||void 0===y?void 0:y[0]}return{...e,[l]:(null==d?void 0:d.length)?d:t}}return{...e}},{});return{name:t,playerId:l,...u}})},initializeCharacter=(e,t,l,b)=>{var V,j,ea,el,eo,ec,em,ed,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8,te;let ti;let tl={};if(tl.playerId=e.playerId,tl.name=e.name,!(null==e?void 0:e.CharacterClass))return tl;tl.classIndex=null==e?void 0:e.CharacterClass,tl.class=null===m.classes||void 0===m.classes?void 0:m.classes[null==e?void 0:e.CharacterClass],tl.afkTime=(0,u.XQ)(null==e?void 0:e.PlayerAwayTime,null==l?void 0:null===(V=l.timeAway)||void 0===V?void 0:V.GlobalTime),tl.afkTarget=null===m.monsters||void 0===m.monsters?void 0:null===(j=m.monsters[null==e?void 0:e.AFKtarget])||void 0===j?void 0:j.Name,tl.afkType=null===m.monsters||void 0===m.monsters?void 0:null===(ea=m.monsters[null==e?void 0:e.AFKtarget])||void 0===ea?void 0:ea.AFKtype,tl.targetMonster=null==e?void 0:e.AFKtarget;let to=null==e?void 0:e.CurrentMap;tl.mapIndex=to,tl.currentMap=null===m.mapNames||void 0===m.mapNames?void 0:m.mapNames[to],tl.money=parseFloat(null==e?void 0:e.Money),tl.cooldowns=null==e?void 0:e.AttackCooldowns;let t_={0:"strength",1:"agility",2:"wisdom",3:"luck",4:"level"};tl.stats=null==e?void 0:null===(eo=e.PersonalValuesMap)||void 0===eo?void 0:null===(el=eo.StatList)||void 0===el?void 0:el.reduce((e,t,l)=>t_[l]?{...e,[t_[l]]:t}:e,{}),tl.level=(null==e?void 0:null===(ec=e.Lv0)||void 0===ec?void 0:ec[0])||0;let tm=null==e?void 0:e.InvBagsUsed,td=Object.keys(tm);tl.invBagsUsed=Object.entries(m.invBags).map(e=>{let[t,l]=e,m=t.match(/[0-9]+/g)[0];return(m=100>parseInt(m)?m-1:m,td.includes(String(m)))?{...l,rawName:t,acquired:!0}:{...l,rawName:t}});let tp=(null==e?void 0:e.MaxCarryCap)||[];tl.maxCarryCap=tp,tl.carryCapBags=Object.keys(tp).sort(function(e,t){return e.localeCompare(t)}).map(e=>{var t;if("Quests"===e||"fillerz"===e||"Statues"===e)return;let l=null===m.carryBags||void 0===m.carryBags?void 0:null===(t=m.carryBags[e])||void 0===t?void 0:t[tp[e]];return l||{rawName:"MaxCapBagNone",displayName:e,Class:e,capacity:tp[e],Type:"CARRY"}}).filter(e=>e),tl.statues=null==e?void 0:e.StatueLevels;let ty={0:"armor",1:"tools",2:"food"},tT=null==e?void 0:null===(em=e.EquipmentOrder)||void 0===em?void 0:em.reduce((e,t,l)=>({...e,[null==ty?void 0:ty[l]]:t}),{}),tf=null===(ed=e.EquipmentQuantity)||void 0===ed?void 0:ed.reduce((e,t,l)=>({...e,[null==ty?void 0:ty[l]]:t}),{}),tv=null===(ef=e.EquipmentMap)||void 0===ef?void 0:ef[0];tl.equipment=(0,d.tT)(tT.armor,tv,tl.name);let tg=null===(ev=e.EquipmentMap)||void 0===ev?void 0:ev[1];tl.tools=(0,d.tT)(tT.tools,tg,tl.name),tl.food=Array.from(Object.values(tT.food)).reduce((e,t,l)=>{var u;return t?[...e,{name:null===m.items||void 0===m.items?void 0:null===(u=m.items[t])||void 0===u?void 0:u.displayName,rawName:t,owner:tl.name,amount:parseInt(tf.food[l]||tf.food[l]),...(null===m.items||void 0===m.items?void 0:m.items[t])||{}}]:e},[]);let tS=e.InventoryOrder,tN=e.ItemQuantity,tC=e.InventoryMap;tl.inventory=(0,y.$v)(tS,tN,tl.name,tC),tl.inventorySlots=null==tS?void 0:tS.reduce((e,t)=>e+("LockedInvSpace"!==t?1:0),0);let tR=(null==e?void 0:null===(eg=e.PersonalValuesMap)||void 0===eg?void 0:eg.StarSign)||"";tl.starSigns=tR.split(",").map(e=>e&&"_"!==e?null===m.starSignByIndexMap||void 0===m.starSignByIndexMap?void 0:m.starSignByIndexMap[e]:null).filter(e=>e),tl.equippedBubbles=null==l?void 0:null===(eS=l.equippedBubbles)||void 0===eS?void 0:eS[null==e?void 0:e.playerId];let tI=null==e?void 0:e.Exp0,tw=null==e?void 0:e.ExpReq0,tE=(null==e?void 0:e.Lv0)||[];tl.skillsInfo=tE.reduce((e,t,l)=>{var m,u;return l<19?{...e,[null===(m=h.Pe[l])||void 0===m?void 0:m.name]:{level:-1!==t?t:0,exp:parseFloat(tI[l]),expReq:parseFloat(tw[l]),icon:null===(u=h.Pe[l])||void 0===u?void 0:u.icon,index:l}}:e},{}),tl.skillsInfoArray=Object.entries(tl.skillsInfo||{}).reduce((e,t)=>{let[l,m]=t;return[...e,{...m,skillName:l}]},[]).sort((e,t)=>e.index-t.index);let[,tF,tq]=(null==e?void 0:e.PlayerStuff)||[];tl.selectedTalentPreset=tF;let tP=null==e?void 0:e.SkillLevels,tD=null==e?void 0:e.SkillPreset,tA=null==e?void 0:e.SkillLevelsMAX,{talents:tL,flatTalents:tx,starTalents:tU,flatStarTalents:tQ}=createTalentPreset(null==tl?void 0:tl.class,tP,tA);tD&&(tl.talentPreset=createTalentPreset(null==tl?void 0:tl.class,tD,tA)),tl.talents=tL,tl.flatTalents=tx,tl.starTalents=tU,tl.flatStarTalents=tQ;let tG=null==e?void 0:e.BuffsActive;tl.activeBuffs=(0,g.ju)(tG,[...tx||[],...tQ||[]]),tl.activePrayers=null==e?void 0:null===(eR=e.Prayers)||void 0===eR?void 0:null===(eN=eR.filter(e=>-1!==e).map(e=>{var t;return null==l?void 0:null===(t=l.prayers)||void 0===t?void 0:t[e]}))||void 0===eN?void 0:eN.filter(e=>e),tl.postOffice=(0,L.dQ)(null==e?void 0:e.PostOfficeInfo,l),tl.selectedCardPreset=tq,tl.cardPresets=null==e?void 0:null===(eI=e.CardPreset)||void 0===eI?void 0:eI.map(e=>(0,E.wt)(e,l)),tl.cards=(0,E.V3)(e,l);let tB=null==l?void 0:null===(eF=l.lab)||void 0===eF?void 0:null===(eE=eF.playersChips)||void 0===eE?void 0:null===(ew=eE[null==e?void 0:e.playerId])||void 0===ew?void 0:ew.find(e=>20===e.index),tM=null==l?void 0:null===(eA=l.lab)||void 0===eA?void 0:null===(eD=eA.playersChips)||void 0===eD?void 0:null===(eP=eD[null==e?void 0:e.playerId])||void 0===eP?void 0:eP.find(e=>21===e.index);tl.cards.equippedCards=null==tl?void 0:null===(ex=tl.cards)||void 0===ex?void 0:null===(eL=ex.equippedCards)||void 0===eL?void 0:eL.map((e,t)=>0===t&&tB||7===t&&tM?{...e,chipBoost:2}:e);let tO=(0,ep.dR)(e,!1);tl.obols={...tO,stats:(0,ep.eX)(tO,l.obols)},tl.worship=(0,ey.T8)(tl,l,null==e?void 0:null===(eU=e.PlayerStuff)||void 0===eU?void 0:eU[0]),tl.quests=(0,eh.GU)(null==e?void 0:e.QuestComplete),tl.crystalSpawnChance=getPlayerCrystalChance(tl,l,b),tl.nonConsumeChance=getNonConsumeChance(tl,l);let tk=null==e?void 0:e.KillsLeft2Advance;tl.kills=null==tk?void 0:tk.reduce((e,t,l)=>{var u;return[...e,parseFloat(null===m.mapPortals||void 0===m.mapPortals?void 0:null===(u=m.mapPortals[l])||void 0===u?void 0:u[0])-parseFloat(null==t?void 0:t[0])]},[]);let tW=null===(eQ=h.du.mining)||void 0===eQ?void 0:eQ[to],tH=null===(eG=h.du.fishing)||void 0===eG?void 0:eG[to],tK=0,tY;tW?(tK=null===(e0=tl.skillsInfo)||void 0===e0?void 0:null===(e$=e0.mining)||void 0===e$?void 0:e$.level,tY="ClassIconsM"):tH?(tK=null===(e2=tl.skillsInfo)||void 0===e2?void 0:null===(e1=e2.fishing)||void 0===e1?void 0:e1.level,tY="ClassIcons45"):(tK=parseFloat(null===m.mapPortals||void 0===m.mapPortals?void 0:null===(e5=m.mapPortals[to])||void 0===e5?void 0:e5[0])-parseFloat(null==tk?void 0:tk[to]),tY="ClassIconsF"),tl.nextPortal={goal:null!==(e4=null===m.mapPortals||void 0===m.mapPortals?void 0:null===(eB=m.mapPortals[to])||void 0===eB?void 0:eB[0])&&void 0!==e4?e4:0,current:tK,currentIcon:tY},tl.zow=getBarbarianZowChow(tk,[1e5]),tl.chow=getBarbarianZowChow(tk,[1e6,1e8]);let tZ=(0,k.y7)(tl.equippedBubbles,"kazam","BIG_P",l),tV=null===(eO=tl.skillsInfo)||void 0===eO?void 0:null===(eM=eO.divinity)||void 0===eM?void 0:eM.level,tz=null==l?void 0:null===(eW=l.divinity)||void 0===eW?void 0:null===(ek=eW.linkedDeities)||void 0===ek?void 0:ek[tl.playerId];if(tl.linkedDeity=tz,-1!==tz&&(tl.deityMinorBonus=(0,eC.kI)(tl,l)),(null==tl?void 0:tl.class)==="Elemental_Sorcerer"){let t=null==e?void 0:null===(e6=e.SkillLevels)||void 0===e6?void 0:e6[505],l=t%10,u=null===m.gods||void 0===m.gods?void 0:m.gods[l];if(u&&(null==u?void 0:u.godIndex)!==tz){ti=null==u?void 0:u.godIndex;let e=null===m.gods||void 0===m.gods?void 0:null===(e7=m.gods[ti])||void 0===e7?void 0:e7.minorBonusMultiplier;tl.secondLinkedDeityIndex=l,tl.secondDeityMinorBonus=Math.max(1,tZ)*(tV/(60+tV))*e}}let tX=null==l?void 0:null===(eK=l.divinity)||void 0===eK?void 0:null===(eH=eK.linkedStyles)||void 0===eH?void 0:eH[null==tl?void 0:tl.playerId];tl.divStyle={...null===m.divStyles||void 0===m.divStyles?void 0:m.divStyles[tX],index:tX},tl.isDivinityConnected=(null==l?void 0:null===(eZ=l.divinity)||void 0===eZ?void 0:null===(eY=eZ.linkedDeities)||void 0===eY?void 0:eY[null==tl?void 0:tl.playerId])===4||(0,eT.Rp)(tl,4);let tj=(0,u.Hx)(t,"Elemental_Sorcerer",!0),tJ=(0,e_.D)(m.classFamilyBonuses,"LV_FOR_ALL_TALENTS_ABOVE_LV_1",tj);if((null==tl?void 0:tl.class)==="Elemental_Sorcerer"){tJ*=1+(0,g._X)(null==tl?void 0:tl.talents,3,"THE_FAMILY_GUY")/100;let e=(0,e_.q)(m.classFamilyBonuses,"LV_FOR_ALL_TALENTS_ABOVE_LV_1");tJ=(0,g.VG)(tJ,null==e?void 0:e.func,null==e?void 0:e.x1,null==e?void 0:e.x2)}let t$=(0,g.J0)(tL,null,tz,tl.secondLinkedDeityIndex,tl.deityMinorBonus,tl.secondDeityMinorBonus,tJ,l,tl);if(tl.addedLevelsBreakdown=null==t$?void 0:t$.breakdown,tl.addedLevels=null==t$?void 0:t$.value,tl.talents=(0,g.Nb)(tL,null,tl.addedLevels),tl.flatTalents=(0,g.Nb)(tL,tx,tl.addedLevels),tD){let e=(0,g.J0)(null==tl?void 0:null===(e9=tl.talentPreset)||void 0===e9?void 0:e9.talents,null,tz,tl.secondLinkedDeityIndex,tl.deityMinorBonus,tl.secondDeityMinorBonus,tJ,l,tl);tl.talentPreset={...tl.talentPreset,talents:(0,g.Nb)(null==tl?void 0:null===(e8=tl.talentPreset)||void 0===e8?void 0:e8.talents,null,null==e?void 0:e.value),flatTalents:(0,g.Nb)(null==tl?void 0:null===(te=tl.talentPreset)||void 0===te?void 0:te.talents,null,null==e?void 0:e.value),addedLevels:null==e?void 0:e.value,addedLevelsBreakdown:null==e?void 0:e.breakdown}}return tl.activeBuffs=null===(eV=tl.activeBuffs)||void 0===eV?void 0:eV.map(e=>{var t;let{name:l}=e;return null===(t=tl.flatTalents)||void 0===t?void 0:t.find(e=>{let{name:t}=e;return t===l})}),tl.talentsLoadout=null==e?void 0:null===(ej=e.AttackLoadout)||void 0===ej?void 0:null===(eX=ej.flat())||void 0===eX?void 0:null===(ez=eX.filter(e=>"Null"!==e))||void 0===ez?void 0:ez.map(e=>{var t,l;return(null===(t=tl.flatTalents)||void 0===t?void 0:t.find(t=>{let{skillIndex:l}=t;return e===l}))||(null===(l=tl.flatStarTalents)||void 0===l?void 0:l.find(t=>{let{skillIndex:l}=t;return e===l}))}),tl.npcDialog=null==e?void 0:e.NPCdialogue,tl.questComplete=null==e?void 0:e.QuestComplete,tl.questCompleted=null===(eJ=Object.entries((null==e?void 0:e.QuestComplete)||{}))||void 0===eJ?void 0:eJ.reduce((e,t)=>{let[l,m]=t;return e+(1===m?1:0)},0),tl.printerSample=getPrinterSampleRate(tl,l,t),tl.anvil=(0,ee.KC)(e,tl),tl},createTalentPreset=(e,t,l)=>{let m=null===g.pV||void 0===g.pV?void 0:g.pV[e],{flat:u,talents:d}=(0,g.o1)(e,m,t,l),{flat:y,talents:h}=(0,g.o1)(e,g.cd,t,l,!0);return{talents:d,flatTalents:u,starTalents:h,flatStarTalents:y}},getRespawnRate=(e,t)=>{var l,u,y,h,g,E,b,L,k,V,ee,ea,el,e_,ec,em,ed,ey,eh,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB;let{targetMonster:eM}=e,eO=null===m.monsters||void 0===m.monsters?void 0:m.monsters[eM];if(!eO||(null==eO?void 0:eO.AFKtype)==="Nothing")return{respawnRate:0,breakdown:[{name:"Not fighting",value:"TOWN"}]};let ek="riftAll"===eM,{RespawnTime:eW,worldIndex:eH}=eO,eK=(0,eo.wt)(null==t?void 0:t.shrines,7,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(l=t.sailing)||void 0===l?void 0:l.artifacts),eY=(0,eT.gw)(e,t,10),eZ=(0,d.zi)(e,47,t),eV=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(u=m.bonuses.etcBonuses)||void 0===u?void 0:u[47]),ez=(0,j.o9)(e,t,"Mob_Respawn_rate"),eX=(0,ef.k6)(null==t?void 0:t.achievements,44),ej=null==t?void 0:null===(g=t.tasks)||void 0===g?void 0:null===(h=g[2])||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y[1],eJ=null==t?void 0:null===(L=t.meritsDescriptions)||void 0===L?void 0:null===(b=L[0])||void 0===b?void 0:null===(E=b[1])||void 0===E?void 0:E.bonusPerLevel,e$=(0,ef.k6)(null==t?void 0:t.achievements,109),e0=null==t?void 0:null===(ee=t.tasks)||void 0===ee?void 0:null===(V=ee[2])||void 0===V?void 0:null===(k=V[1])||void 0===k?void 0:k[1],e1=null==t?void 0:null===(e_=t.meritsDescriptions)||void 0===e_?void 0:null===(el=e_[1])||void 0===el?void 0:null===(ea=el[1])||void 0===ea?void 0:ea.bonusPerLevel,e2=null==t?void 0:null===(ed=t.tasks)||void 0===ed?void 0:null===(em=ed[2])||void 0===em?void 0:null===(ec=em[1])||void 0===ec?void 0:ec[1],e5=null==t?void 0:null===(ev=t.meritsDescriptions)||void 0===ev?void 0:null===(eh=ev[1])||void 0===eh?void 0:null===(ey=eh[1])||void 0===ey?void 0:ey.bonusPerLevel,e3=null==t?void 0:null===(eN=t.tasks)||void 0===eN?void 0:null===(eS=eN[2])||void 0===eS?void 0:null===(eg=eS[3])||void 0===eg?void 0:eg[1],e4=null==t?void 0:null===(eI=t.meritsDescriptions)||void 0===eI?void 0:null===(eR=eI[3])||void 0===eR?void 0:null===(eC=eR[1])||void 0===eC?void 0:eC.bonusPerLevel,e6=(0,ef.k6)(null==t?void 0:t.achievements,308),e7=null==t?void 0:null===(eF=t.tasks)||void 0===eF?void 0:null===(eE=eF[2])||void 0===eE?void 0:null===(ew=eE[4])||void 0===ew?void 0:ew[1],e9=null==t?void 0:null===(eA=t.meritsDescriptions)||void 0===eA?void 0:null===(eD=eA[4])||void 0===eD?void 0:null===(eP=eD[1])||void 0===eP?void 0:eP.bonusPerLevel,e8=null==t?void 0:null===(eU=t.tasks)||void 0===eU?void 0:null===(ex=eU[2])||void 0===ex?void 0:null===(eL=ex[5])||void 0===eL?void 0:eL[1],te=null==t?void 0:null===(eB=t.meritsDescriptions)||void 0===eB?void 0:null===(eG=eB[5])||void 0===eG?void 0:null===(eQ=eG[1])||void 0===eQ?void 0:eQ.bonusPerLevel,ti=1===eH||ek?ej*eJ:2===eH?e0*e1:3===eH?e2*e5:4===eH?e3*e4:5===eH?e7*e9:6===eH?e8*te:0,tl=1===eH||ek?eX:2===eH?e$:5===eH?2*e6:0,to=[{name:"Shrine",value:eK/100},{name:"Equipment",value:eZ/100},{name:"Achievement",value:tl/100},{name:"Chip",value:eY/100},{name:"Starsigns",value:ez/100},{name:"Merit",value:ti/100}];return to.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{respawnRate:(ek?45:eW)/(1+(eK+eY+(eZ+eV)+tl+ez+ti)/100),breakdown:to}},getDropRate=(e,t,l)=>{var y,h,V,ee,e_,ec,em,ed,ey,eh,eS,eC,eI,ew,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$;let e0;let{luck:e1}=(null==e?void 0:e.stats)||{};e0=e1<1e3?(Math.pow(e1+1,.37)-1)/40:(e1-1e3)/(e1+2500)*.5+.297;let e2=(0,L.xV)(null==e?void 0:e.postOffice,"Non_Predatory_Loot_Box",0),e5=(0,g._X)(null==e?void 0:e.talents,1,"ROBBINGHOOD"),e3=(0,g._X)(null==e?void 0:e.talents,1,"CURSE_OF_MR_LOOTY_BOOTY"),e4=(0,g._X)(null==e?void 0:e.starTalents,null,"BOSS_BATTLE_SPILLOVER"),e6=(0,d.zi)(e,2,t),e7=(0,d.zi)(e,2,t,!0),e9=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(y=m.bonuses.etcBonuses)||void 0===y?void 0:y[2]),e8=(0,k.om)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.bubbles,"kazam","DROPPIN_LOADS",!1),te=(0,E.OK)(null==e?void 0:null===(V=e.cards)||void 0===V?void 0:V.equippedCards,"Total_Drop_Rate"),ti=(0,el._r)(null==t?void 0:null===(ee=t.guild)||void 0===ee?void 0:ee.guildBonuses,10),tl=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(e_=ec.cardSet)||void 0===e_?void 0:e_.rawName)==="CardSet26"||(null==e?void 0:null===(ed=e.cards)||void 0===ed?void 0:null===(em=ed.cardSet)||void 0===em?void 0:em.rawName)==="CardSet25"?null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:null===(ey=eh.cardSet)||void 0===ey?void 0:ey.bonus:0,to=(0,eo.wt)(null==t?void 0:t.shrines,4,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(eS=t.sailing)||void 0===eS?void 0:eS.artifacts),t_=null===(eC=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Midas_Minded",t))||void 0===eC?void 0:eC.bonus,tm=(0,k.Vq)(null==t?void 0:null===(ew=t.alchemy)||void 0===ew?void 0:null===(eI=ew.p2w)||void 0===eI?void 0:eI.sigils,"TROVE"),td=(0,eN.du)(null==t?void 0:null===(eL=t.breeding)||void 0===eL?void 0:eL.pets,"Drop_Rate"),tp=(0,j.o9)(e,t,"Drop_Rate"),ty=(0,j.o9)(e,t,"Drop_Rarity"),tT=(0,b.mV)(t,"+{%_Drop_Rate"),tf=(0,g.A5)(l,3,"Siege_Breaker","ARCHLORD_OF_THE_PIRATES",null,!0),tv=1+tf*(0,ev.lavaLog)(null!==(ej=null==t?void 0:null===(ex=t.accountOptions)||void 0===ex?void 0:ex[139])&&void 0!==ej?ej:0)/100,tg=(0,u.fe)(t,3)?null==t?void 0:null===(eG=t.companions)||void 0===eG?void 0:null===(eQ=eG.list)||void 0===eQ?void 0:null===(eU=eQ.at(3))||void 0===eU?void 0:eU.bonus:0,tS=null===(eB=(0,eg.d)(null==t?void 0:null===(eM=t.arcade)||void 0===eM?void 0:eM.shop,"Drop_Rate"))||void 0===eB?void 0:eB.bonus,tN=(0,eR.z)(null==t?void 0:null===(eO=t.equinox)||void 0===eO?void 0:eO.upgrades,"Faux_Jewels"),tC=(0,eT.gw)(e,t,3),tR=(0,eF.R)(t,"+{% Drop Rate"),tI=(0,ef.k6)(null==t?void 0:t.achievements,377),tw=(0,ef.k6)(null==t?void 0:t.achievements,381),tE=(0,u.tE)("Golden_Cake",e,t),tF=(0,E.OK)(null==t?void 0:t.cards,"Total_Drop_Rate_(Passive)"),tq=null!==(eJ=null==t?void 0:null===(eH=t.tome)||void 0===eH?void 0:null===(eW=eH.bonuses)||void 0===eW?void 0:null===(ek=eW[2])||void 0===ek?void 0:ek.bonus)&&void 0!==eJ?eJ:0,tP=(0,eP.I)(null==t?void 0:null===(eK=t.owl)||void 0===eK?void 0:eK.bonuses,"Drop Rate"),tD=null===(eY=(0,eD.iz)(null==t?void 0:null===(eZ=t.farming)||void 0===eZ?void 0:eZ.ranks,"Seed_of_Loot"))||void 0===eY?void 0:eY.bonus,tA=(0,eA.F)(t,27),tL=e5+e2+(e6+e9+e7)+e8+te+e3+tp+ty+ti+tl+to+t_+tm+td+tS+tg+tT+e4*(null!==(e$=null==t?void 0:null===(eV=t.accountOptions)||void 0===eV?void 0:eV[189])&&void 0!==e$?e$:0)+tN+tR+tq+tF+tE+(6*tI+4*tw)+tP+tD+ +tA+9,tx=1.4*e0+tL/100+1;tx<5&&tC>0&&(tx=Math.min(5,tx+tC/100));let tU=tx*tv,tQ=(null==t?void 0:null===(ez=t.accountOptions)||void 0===ez?void 0:ez[232])>=1;tQ&&(tU+=.3);let tG=(0,u.U7)(null==t?void 0:t.bundles,"bun_p");tG&&(tU*=1.2);let tB=(0,eE.vq)(t,"Cotton_Candy");tU*=1+tB/100;let tM=[{name:"Luck",value:1.4*e0},{name:"Talents",value:(e5+e3+e4*(null==t?void 0:null===(eX=t.accountOptions)||void 0===eX?void 0:eX[189]))/100},{name:"Post Office",value:e2/100},{name:"Equipment",value:(e6+e7)/100},{name:"Obols",value:e9/100},{name:"Bubble",value:e8/100},{name:"Cards",value:(te+tl+tF)/100},{name:"Shrine",value:to/100},{name:"Prayers",value:t_/100},{name:"Sigil",value:tm/100},{name:"Shiny",value:td/100},{name:"Arcade",value:tS/100},{name:"Starsign",value:(tp+ty)/100},{name:"Guild",value:ti/100},{name:"Siege Breaker",value:tv},{name:"Companion",value:tg/100},{name:"Equinox",value:tN/100},{name:"Gem Bundle",value:tG?1.2:0},{name:"Stamps",value:tT/100},{name:"Pristine Charm",value:tB/100},{name:"Tome",value:tq/100},{name:"Owl",value:tP/100},{name:"Summoning",value:tR/100},{name:"Ninja Mastery",value:tQ?.3:0},{name:"Golden food",value:tE/100},{name:"Achievements",value:(6*tI+4*tw)/100},{name:"Land rank",value:tD},{name:"Vote",value:tA},{name:"Base",value:1}];return tM.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{dropRate:tU,breakdown:tM}},getCashMulti=(e,t,l)=>{var y,h,b,j,ee,eo,e_,ec,ey,eh,ev,eg,eN,eR,eI,ew,eE,eF,eP,eD,ex,eU,eQ,eG,eB,eM,eO,ek;let{strength:eW,agility:eH,wisdom:eK}=(null==e?void 0:e.stats)||{},eY=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"power","PENNY_OF_STRENGTH",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="strength"),eZ=(0,k.om)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.bubbles,"quicc","DOLLAR_OF_AGILITY",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="agility"),eV=(0,k.om)(null==t?void 0:null===(b=t.alchemy)||void 0===b?void 0:b.bubbles,"high-iq","NICKEL_OF_WISDOM",!1,(null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class])==="wisdom"),ez=(0,eT.c9)(null==t?void 0:t.lab.labBonuses,8),eX=(0,eT.pc)(null==t?void 0:t.lab.jewels,16,ez),ej=(0,ed.F4)(t,null,"Cash",eX),eJ=null!==(ek=null===(j=(0,eS.YS)(null==t?void 0:null===(ee=t.sailing)||void 0===ee?void 0:ee.artifacts,"Maneki_Kat"))||void 0===j?void 0:j.bonus)&&void 0!==ek?ek:0,e$=null==t?void 0:null===(eo=t.accountOptions)||void 0===eo?void 0:eo[89],e0=null===m.randomList||void 0===m.randomList?void 0:m.randomList[53],e1=+(0,u.bV)(e$,e0,5),e2=+(0,u.bV)(e$,e0,14),e5=(0,V.U6)(null==t?void 0:t.statues,"StatueG20"),e3=(0,eT.c9)(null==t?void 0:t.lab.labBonuses,9),e4=null===(e_=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Jawbreaker",t))||void 0===e_?void 0:e_.bonus,e6=null==l?void 0:l.reduce((e,m)=>(0,u.fe)(t,3)?e+(0,eC.kI)(m,t,3,l):(null==m?void 0:m.linkedDeity)===3?e+(null==m?void 0:m.deityMinorBonus):e,0),e7=(0,k.YG)(null==t?void 0:null===(ec=t.alchemy)||void 0===ec?void 0:ec.vials,null,"MonsterCash"),e9=(0,d.zi)(e,3,t),e8=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(ey=m.bonuses.etcBonuses)||void 0===ey?void 0:ey[3]),te=(0,E.OK)(null==t?void 0:t.cards,"Money_from_mobs_(Passive)"),ti=(0,E.OK)(null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:eh.equippedCards,"Money_from_Monsters"),tl=(0,g._X)(null==e?void 0:e.talents,1,"CHACHING!"),to=(0,em.Qo)(null==t?void 0:null===(ev=t.dungeons)||void 0===ev?void 0:ev.upgrades,"Monster_Cash"),t_=(null==t?void 0:null===(eR=t.arcade)||void 0===eR?void 0:null===(eN=eR.shop)||void 0===eN?void 0:null===(eg=eN[10])||void 0===eg?void 0:eg.bonus)+(null==t?void 0:null===(eE=t.arcade)||void 0===eE?void 0:null===(ew=eE.shop)||void 0===ew?void 0:null===(eI=ew[11])||void 0===eI?void 0:eI.bonus),tm=(0,L.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",2),td=(0,el._r)(null==t?void 0:null===(eF=t.guild)||void 0===eF?void 0:eF.guildBonuses,8),tp=1*(0,g._X)(null==e?void 0:e.starTalents,null,"COINS_FOR_CHARON"),ty=(null==e?void 0:null===(eD=e.skillsInfo)||void 0===eD?void 0:null===(eP=eD.cooking)||void 0===eP?void 0:eP.level)/10,tT=ty*(0,g._X)(null==e?void 0:e.starTalents,null,"AMERICAN_TIPPER"),tf=(0,u.tE)("Golden_Bread",e,t),tv=(0,ef.k6)(null==t?void 0:t.achievements,235),tg=(0,ef.k6)(null==t?void 0:t.achievements,350),tS=(0,ef.k6)(null==t?void 0:t.achievements,376),{dropRate:tN}=getDropRate(e,t,l),tC=(0,eA.F)(t,34),tR=(0,eL.u)(null==t?void 0:null===(ex=t.kangaroo)||void 0===ex?void 0:ex.bonuses,"Cash"),tI=eY*Math.floor(eW/250)+(eZ*Math.floor(eH/250)+eV*Math.floor(eK/250)),tw=(1+tI/100)*(1+(ej+eJ+tR+tC)/100)*(1+(.5*e1+(e2+e5/100)))*(1+e3/100)*(1+e4/100)*(1+(e6+(null==t?void 0:null===(eG=t.farming)||void 0===eG?void 0:null===(eQ=eG.cropDepot)||void 0===eQ?void 0:null===(eU=eQ.cash)||void 0===eU?void 0:eU.value))/100)*(1+(e7+(e9+e8+(ti+te+(tl+(to+t_+(tm+(td*(1+Math.floor((null==e?void 0:e.mapIndex)/50))+(tp+(tT+(1+tf/100+(5*tv+10*tg+20*tS)))))))))))/100),tE=[{name:"Bubbles*",value:tI},{name:"Meal*",value:ej},{name:"Artifact*",value:eJ},{name:"Pet Arena*",value:100*(.5*e1+e2)},{name:"Statues",value:e5},{name:"Lab*",value:e3},{name:"Prayers*",value:e4},{name:"Divinity*",value:e6},{name:"Crop Depot*",value:null==t?void 0:null===(eO=t.farming)||void 0===eO?void 0:null===(eM=eO.cropDepot)||void 0===eM?void 0:null===(eB=eM.cash)||void 0===eB?void 0:eB.value},{name:"Vials",value:e7},{name:"Equipment",value:e9},{name:"Obols",value:e8},{name:"Cards",value:ti+te},{name:"Guild",value:td*(1+Math.floor((null==e?void 0:e.mapIndex)/50))},{name:"Talents",value:tp+tT},{name:"Golden Food",value:tf},{name:"Achievements",value:5*tv},{name:"Dungeons",value:to},{name:"Arcade",value:t_},{name:"Post Office",value:tm},{name:"Kangaroo",value:tR},{name:"Vote",value:tC},{name:"Drop Rate*",value:(tN<2?tN:Math.floor(tN<5?tN:tN+1))*100}];return tE.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{cashMulti:tw,breakdown:tE}},getPrinterSampleRate=(e,t,l)=>{var y,h,E,V,j,ee,el,eo;let em=(0,g._X)(null==e?void 0:e.starTalents,null,"PRINTER_SAMPLING"),ed=(0,ec.W)(null==t?void 0:t.saltLick,0),ep=(0,d.zi)(e,60,t),ey=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"kazam","SAMPLE_IT",!1),eh=(0,g._X)(null==e?void 0:e.talents,null,"SUPER_SAMPLES"),eT=(0,ef.k6)(null==t?void 0:t.achievements,158),ev=(0,k.YG)(null==t?void 0:null===(h=t.alchemy)||void 0===h?void 0:h.vials,"Printer_sample"),eS=null===(E=(0,ea.Y0)(null==e?void 0:e.activePrayers,"The_Royal_Sampler",t))||void 0===E?void 0:E.bonus,eN=(0,b.mV)(t,"3D_Printer_Sampling_Size"),eC=null==t?void 0:null===(ee=t.tasks)||void 0===ee?void 0:null===(j=ee[2])||void 0===j?void 0:null===(V=j[2])||void 0===V?void 0:V[4],eR=(0,u.Hx)(l,"Voidwalker"),eI=(0,e_.D)(m.classFamilyBonuses,"PRINTER_SAMPLE_SIZE",eR)||0,ew=null===(el=(0,eg.d)(null==t?void 0:null===(eo=t.arcade)||void 0===eo?void 0:eo.shop,"Sample_Size"))||void 0===el?void 0:el.bonus,eE=(0,L.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",0);return Math.floor(1e3*((em+(ed+ep)+(ey+(eh+Math.min(1,eT)))+ev+eS+eN+Math.min(5,.5*eC)+Math.min(5,eI)+(ew+eE))/100))/10},getBarbarianZowChow=(e,t)=>{let l=["Nothing","Z","Copper","Iron","Starfire","Plat","Void","Filler","JungleZ","Grandfrog's_Gazebo","Grandfrog's_Backyard","Gravel_Tomb","Heaty_Hole","Igloo's_Basement","Inside_the_Igloo","End_Of_The_Road","Efaunt's_Tomb","Eycicles's_Nest","Enclave_a_la_Troll","Chizoar's_Cavern","KattleKruk's_Volcano","Castle_Interior"].toSimpleObject(),u=Object.values(m.mapNames).map((l,u)=>{var d,y,h;let g=null===m.mapEnemiesArray||void 0===m.mapEnemiesArray?void 0:m.mapEnemiesArray[u],{MonsterFace:E,Name:b,AFKtype:L}=(null===m.monsters||void 0===m.monsters?void 0:m.monsters[g])||{},k=Math.abs((null==e?void 0:null===(d=e[u])||void 0===d?void 0:d[0])-(null===m.mapDetails||void 0===m.mapDetails?void 0:null===(h=m.mapDetails[u])||void 0===h?void 0:null===(y=h[0])||void 0===y?void 0:y[0]));return{mapName:l,afkTarget:g,kills:k,monsterFace:E,name:b,afkType:L,done:null==t?void 0:t.map(e=>k>=e)}}).filter(e=>{let{mapName:t,afkTarget:m,name:u,afkType:d,kills:y,mapThreshold:h}=e;return"FIGHTING"===d&&!l[t]&&!d.includes("Fish")&&!d.includes("Bug")&&!t.includes("Colosseum")}),d=null==u?void 0:u.reduce((e,t)=>{let{done:l}=t;return[(null==l?void 0:l[0])?(null==e?void 0:e[0])+1:null==e?void 0:e[0],(null==l?void 0:l[1])?(null==e?void 0:e[1])+1:null==e?void 0:e[1]]},[0,0]);return{finished:d,list:u}},getPlayerCrystalChance=(e,t,l)=>{var m,u,d,y;let h=ex(null==l?void 0:l.Sailing)||(null==l?void 0:l.Sailing),k=null==h?void 0:h[3],V=(null==k?void 0:k[0])>0,j=(0,eo.wt)(null==t?void 0:t.shrines,6,e.mapIndex,t.cards,V),ee=(0,b.fE)(t,"misc","StampC3",e),ea=null==e?void 0:null===(u=e.cards)||void 0===u?void 0:null===(m=u.equippedCards)||void 0===m?void 0:m.find(e=>{let{cardIndex:t}=e;return"A10"===t}),el=ea?(0,E.BZ)(ea):0,e_=null==e?void 0:null===(y=e.cards)||void 0===y?void 0:null===(d=y.equippedCards)||void 0===d?void 0:d.find(e=>{let{cardIndex:t}=e;return"G4"===t}),ec=e_?(0,E.BZ)(e_):0,em=(0,g._X)(null==e?void 0:e.starTalents,null,"CRYSTALS_4_DAYYS"),ed=(0,g._X)(null==e?void 0:e.talents,1,"CMON_OUT_CRYSTALS"),ep=(0,L.xV)(null==e?void 0:e.postOffice,"Non_Predatory_Loot_Box",2),ey=[{name:"Cmon Out Crystals",value:ed},{name:"Crystal Shrine Bonus",value:j},{name:"Post Office",value:ep},{name:"Crystals 4 Days",value:em},{name:"Crystallin Stamp",value:ee},{name:"Poop Card",value:el},{name:"Demon Genie Card",value:ec}];return ey.sort((e,t)=>null==e?void 0:e.name.localeCompare(null==t?void 0:t.name,"en")),{value:5e-4*(1+ed/100)*(1+(ep+j)/100)*(1+em/100)*(1+ee/100)*(1+(el+ec)/100),breakdown:ey}},getPlayerFoodBonus=(e,t,l)=>{var m,u,y,h;let k=(0,L.xV)(null==e?void 0:e.postOffice,"Carepack_From_Mum",2),ee=(0,V.U6)(null==t?void 0:t.statues,"StatueG4",null==e?void 0:e.talents),ea=(0,d.zi)(e,9,t),el=(0,b.mV)(t,"Effect_from_Boost_Food",e),eo=(0,j.o9)(e,t,"All_Food_Effect"),e_=(0,E.Xt)(null==e?void 0:e.cards,"Y5"),ec=(null==e?void 0:null===(u=e.cards)||void 0===u?void 0:null===(m=u.cardSet)||void 0===m?void 0:m.rawName)==="CardSet1"?null==e?void 0:null===(h=e.cards)||void 0===h?void 0:null===(y=h.cardSet)||void 0===y?void 0:y.bonus:0,em=(0,g._X)(null==e?void 0:e.starTalents,null,"FROTHY_MALK");if(l){let l=(0,L.xV)(null==e?void 0:e.postOffice,"Carepack_From_Mum",1),m=(0,b.mV)(t,"Boost_Health_Effect",e);return 1+(l+(ee+(ea+(m+(eo+ec)))))/100}return 1+(k+(ee+(ea+(el+(eo+(e_+(ec+em)))))))/100},getPlayerSpeedBonus=(e,t,l)=>{var m,y,h,L,ee,ea,el,eo,e_,em,ed,ep;let ey,eh;let eT=(0,g._X)(null==e?void 0:e.talents,0,"FEATHERWEIGHT"),ef=(0,g._X)(null==e?void 0:e.talents,0,"FEATHER_FLIGHT"),ev=(0,b.mV)(l,"Movement_Speed",e),eg=(0,g.eZ)(null==e?void 0:e.activeBuffs,"STRAFE"),eS=(0,u.sU)(e,l,"MoveSpdBoosts");eh=(null===(m=e.stats)||void 0===m?void 0:m.agility)<1e3?(Math.pow((null===(h=e.stats)||void 0===h?void 0:h.agility)+1,.4)-1)/40:((null===(L=e.stats)||void 0===L?void 0:L.agility)-1e3)/((null===(ee=e.stats)||void 0===ee?void 0:ee.agility)+2500)*.5+.371;let eN=(0,V.U6)(null==l?void 0:l.statues,"StatueG2",null==e?void 0:e.talents),eC=(0,j.o9)(e,l,"Movement_Speed"),eR=(0,d.zi)(e,1,l),eI=(0,E.OK)(null==e?void 0:null===(y=e.cards)||void 0===y?void 0:y.equippedCards,"Move_Spd");ey=1+((ey=(eS+eT+ev+eg+(eN+(eC+(eR+(eI+ef)))))/100)+eh/2.2);let ew=(0,g._X)(null==e?void 0:e.starTalents,null,"TIPTOE_QUICKNESS");if(ey>2)ey=Math.floor(100*ey)/100;else if(ey>1.75)ey=Math.min(2,Math.floor(100*(ey+ew/100))/100);else{let t=(0,ec.W)(null==l?void 0:l.saltLick,7),m=null!==(ep=null==l?void 0:null===(e_=l.lab)||void 0===e_?void 0:null===(eo=e_.playersChips)||void 0===eo?void 0:null===(el=eo[null==e?void 0:e.playerId])||void 0===el?void 0:null===(ea=el.find(e=>15===e.index))||void 0===ea?void 0:ea.baseVal)&&void 0!==ep?ep:0,u=(0,k.Vq)(null==l?void 0:null===(ed=l.alchemy)||void 0===ed?void 0:null===(em=ed.p2w)||void 0===em?void 0:em.sigils,"TUFT_OF_HAIR");ey=Math.min(1.75,Math.floor(100*(ey+(t+m+(ew+u))/100))/100)}return Math.round(100*ey)},getAfkGain=(e,t,l)=>{var y,h,b,V,ee,ec,ed,ey,eh,ef,ev,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8;let te=[],ti=0,{afkType:tl}=e,{lab:to,guild:t_,dungeons:tm,accountOptions:td,bribes:tp,shrines:ty,charactersLevels:tT,tasks:tf}=l,tv=(null==tf?void 0:null===(h=tf[2])||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y[2])>(null==e?void 0:e.playerId)?2:0,tg=(0,u.jU)(t,"Beast_Master"),tS=(0,e_.D)(m.classFamilyBonuses,"ALL_SKILL_AFK_GAINS",tg),tN=(0,E.OK)(null==e?void 0:null===(b=e.cards)||void 0===b?void 0:b.equippedCards,"Skill_AFK_gain_rate"),tC=0;(null==t_?void 0:null===(V=t_.guildBonuses)||void 0===V?void 0:V.length)>0&&(tC=(0,el._r)(null==t_?void 0:t_.guildBonuses,7));let tR=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(ee=ec.cardSet)||void 0===ee?void 0:ee.rawName)==="CardSet5"?null==e?void 0:null===(ey=e.cards)||void 0===ey?void 0:null===(ed=ey.cardSet)||void 0===ed?void 0:ed.bonus:0,tI=(0,g.A5)(t,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),tw=(0,g.xI)(t,l,tI,79),tE=tw?(0,g._X)(null==e?void 0:e.talents,0,"SLEEPIN'_ON_THE_JOB"):0,tF=(0,k.Vq)(null==l?void 0:null===(ef=l.alchemy)||void 0===ef?void 0:null===(eh=ef.p2w)||void 0===eh?void 0:eh.sigils,"DREAM_CATCHER"),tq=(0,eT.gw)(e,l,8),tP=(0,d.zi)(e,59,l),tD=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(ev=m.bonuses.etcBonuses)||void 0===ev?void 0:ev[59]),tA=(0,d.zi)(e,24,l),tL=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(eS=m.bonuses.etcBonuses)||void 0===eS?void 0:eS[24]),tx=null===(eN=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",l))||void 0===eN?void 0:eN.bonus,tU=null===(eR=(0,ea.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",l))||void 0===eR?void 0:eR.curse,tQ=tv+(tS+(2+tN)+(tC+tR+(tE+(tF+tq)+(tA+tL+(tP+tD)+(tx-tU))))),tG=null===(eI=(0,eg.d)(null==l?void 0:null===(ew=l.arcade)||void 0===ew?void 0:ew.shop,"AFK_Gains_Rate"))||void 0===eI?void 0:eI.bonus,tB=(0,em.Qo)(null==l?void 0:null===(eE=l.dungeons)||void 0===eE?void 0:eE.upgrades,"AFK_Gains"),tM=(0,u.fe)(l,0)||(null==e?void 0:e.linkedDeity)===0||(null==e?void 0:e.secondLinkedDeityIndex)===0?1:0,tO=null==t?void 0:t.reduce((e,m)=>(0,u.fe)(l,0)?e+(0,eC.kI)(m,l,4,t):(null==m?void 0:m.linkedDeity)===4?(null==m?void 0:m.deityMinorBonus)>e?null==m?void 0:m.deityMinorBonus:e:(null==m?void 0:m.secondLinkedDeityIndex)===4&&(null==m?void 0:m.secondDeityMinorBonus)>e?null==m?void 0:m.secondDeityMinorBonus:e,0),tk=(0,u.fe)(l,6)&&5,tW=(0,u.f6)(l),tH=(0,g._X)(null==e?void 0:e.starTalents,null,"RANDO_EVENT_LOOTY"),tK=+(tG+(tB+(30*tM+(tO+(tk+tH*tW))))),tY=tQ+tK;te=[{title:"Base"},{name:""},{name:"Tasks",value:tv},{name:"Family",value:tS},{name:"Cards",value:tN},{name:"Guild",value:tC},{name:"Card Set",value:tR},{name:"Sleepin On The Job (VW Eclipse)",value:tE},{name:"Sigil",value:tF},{name:"Chips",value:tq},{name:"Equipment",value:tP+tA},{name:"Obols",value:tD+tL},{name:"Prayers",value:tx-tU},{name:"Arcade",value:tG},{name:"Dungeons",value:tB},{name:"Divinity Major",value:30*tM},{name:"Divinity Minor",value:tO},{name:"Companion",value:tk},{name:"Rando Event Looty",value:tH*tW},{name:""}];let tZ=(null==tp?void 0:null===(eF=tp[24])||void 0===eF?void 0:eF.done)?null==tp?void 0:null===(eP=tp[24])||void 0===eP?void 0:eP.value:0,tV=(0,eo.wt)(ty,8,null==e?void 0:e.mapIndex,l.cards,null==l?void 0:null===(eD=l.sailing)||void 0===eD?void 0:eD.artifacts),tz=(0,g._X)(null==e?void 0:e.starTalents,null,"TICK_TOCK"),tX=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_SKILLING"),tj=(0,g._X)(null==e?void 0:e.talents,0,"ACTIVE_AFK'ER"),tJ=(0,g._X)(null==e?void 0:e.talents,2,"CATCHING_SOME_ZZZ'S"),t$=getTrappingStuff("TrapMGbonus",8,l),t0=(0,j.o9)(e,l,"Skill_AFK_Gain");if("FIGHTING"===tl){let t=(0,u.Hx)(tT,"Voidwalker"),y=(0,e_.D)(m.classFamilyBonuses,"FIGHTING_AFK_GAINS",t),h=(0,L.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",1),b=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_BRAWLING"),k=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_CASTING"),V=(0,g._X)(null==e?void 0:e.talents,0,"IDLE_SHOOTING"),ee=(0,g._X)(null==e?void 0:e.talents,0,"SLEEPIN'_ON_THE_JOB"),ea=(null==tp?void 0:null===(eA=tp[3])||void 0===eA?void 0:eA.done)?null==tp?void 0:null===(eL=tp[3])||void 0===eL?void 0:eL.value:0,eo=(null==e?void 0:null===(eU=e.cards)||void 0===eU?void 0:null===(ex=eU.cardSet)||void 0===ex?void 0:ex.rawName)==="CardSet8"?null==e?void 0:null===(eG=e.cards)||void 0===eG?void 0:null===(eQ=eG.cardSet)||void 0===eQ?void 0:eQ.bonus:0,ec=(0,E.OK)(null==e?void 0:null===(eB=e.cards)||void 0===eB?void 0:eB.equippedCards,m.cardBonuses[43]),em=(0,d.zi)(e,20,l),ed=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(eM=m.bonuses.etcBonuses)||void 0===eM?void 0:eM[20]),ey=(0,j.o9)(e,l,"Fight_AFK_Gain"),eh=0;(null==t_?void 0:null===(eO=t_.guildBonuses)||void 0===eO?void 0:eO.length)>0&&(eh=(0,el._r)(null==t_?void 0:t_.guildBonuses,4));let eT=null!==(eY=null==l?void 0:null===(eK=l.lab)||void 0===eK?void 0:null===(eH=eK.playersChips)||void 0===eH?void 0:null===(eW=eH[null==e?void 0:e.playerId])||void 0===eW?void 0:null===(ek=eW.find(e=>7===e.index))||void 0===ek?void 0:ek.baseVal)&&void 0!==eY?eY:0;ti=.2+(y+h+b+ea+(V+eo+(k+(tz+(tv+tK+(ec+(ee+(em+ed+(tP+tD)+(ey+(eh+(tx-tU+eT)))))))))))/100,te=[...te,{title:"Fighting"},{name:""},{name:"Family",value:y},{name:"Post Office",value:h},{name:"Talents",value:b+k+V+ee},{name:"Bribe",value:ea},{name:"Card Set",value:eo},{name:"Cards",value:ec},{name:"Equipment",value:em+tP},{name:"Obols",value:ed+tD},{name:"Prayers",value:tx-tU},{name:"Chips",value:eT},{name:"Guild",value:eh},{name:"Starsign",value:ey}]}else if("COOKING"===tl){let t=(0,g._X)(null==e?void 0:e.talents,3,"WAITING_TO_COOL");ti=.25+(tX+tz+(tY+(t$+(t0+(tZ+t)))))/100,te=[...te,{title:"Cooking"},{name:""},{name:"Talents",value:tX+t+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ}]}else if("MINING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Dwarven_Supplies",2),m=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eV=l.totalSkillsLevels)||void 0===eV?void 0:null===(eZ=eV.mining)||void 0===eZ?void 0:eZ.rank,2),d=m?(0,E.OK)(null==l?void 0:l.cards,"Mining_Away_Gains"):(0,E.OK)(null==e?void 0:null===(ez=e.cards)||void 0===ez?void 0:ez.equippedCards,"Mining_Away_Gains"),y=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],h=(0,k.om)(null==l?void 0:null===(eX=l.alchemy)||void 0===eX?void 0:eX.bubbles,"power","DREAM_OF_IRONFISH",!1,"strength"===y);ti=.25+(tX+(t+(t$+tz+(tY+(d+(t0+(tZ+h)))))))/100,te=[...te,{title:"Mining"},{name:""},{name:"Talents",value:tX+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:d},{name:"Post Office",value:t},{name:"Bubble",value:h}]}else if("CHOPPIN"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Taped_Up_Timber",2),d=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eJ=l.totalSkillsLevels)||void 0===eJ?void 0:null===(ej=eJ.chopping)||void 0===ej?void 0:ej.rank,2),y=d?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[36]):(0,E.OK)(null==e?void 0:null===(e$=e.cards)||void 0===e$?void 0:e$.equippedCards,m.cardBonuses[36]),h=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],b=(0,k.om)(null==l?void 0:null===(e0=l.alchemy)||void 0===e0?void 0:e0.bubbles,"high-iq","TREE_SLEEPER",!1,"wisdom"===h);ti=.25+(tj+(t+(t$+tz+(tY+(y+(t0+(tZ+b)))))))/100,te=[...te,{title:"Choppin"},{name:""},{name:"Talents",value:tj+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:y},{name:"Post Office",value:t},{name:"Bubble",value:b}]}else if("FISHING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Sealed_Fishheads",2),y=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(e2=l.totalSkillsLevels)||void 0===e2?void 0:null===(e1=e2.fishing)||void 0===e1?void 0:e1.rank,2),h=y?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[39]):(0,E.OK)(null==e?void 0:null===(e5=e.cards)||void 0===e5?void 0:e5.equippedCards,m.cardBonuses[39]),b=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],V=(0,k.om)(null==l?void 0:null===(e3=l.alchemy)||void 0===e3?void 0:e3.bubbles,"power","DREAM_OF_IRONFISH",!1,"strength"===b),j=(0,d.zi)(e,64,l),ee=(0,d.zi)(e,64,l,!0),ea=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(e4=m.bonuses.etcBonuses)||void 0===e4?void 0:e4[64]);ti=.25+(tX+(tJ+(t$+t+(tz+(tY+(h+(t0+(tZ+(V+(j+ea+ee))))))))))/100,te=[...te,{title:"Fishing"},{name:""},{name:"Talents",value:tX+tJ+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:h},{name:"Post Office",value:t},{name:"Bubble",value:V},{name:"Equipment",value:j},{name:"Obols",value:ea},{name:"Tools",value:ee}]}else if("CATCHING"===tl){let t=(0,L.xV)(null==e?void 0:e.postOffice,"Bug_Hunting_Supplies",2),d=(0,g._X)(null==e?void 0:e.talents,2,"SUNSET_ON_THE_HIVES"),y=(0,u.pA)(null==l?void 0:l.rift,null==l?void 0:null===(e7=l.totalSkillsLevels)||void 0===e7?void 0:null===(e6=e7.catching)||void 0===e6?void 0:e6.rank,2),h=y?(0,E.OK)(null==l?void 0:l.cards,m.cardBonuses[41]):(0,E.OK)(null==e?void 0:null===(e9=e.cards)||void 0===e9?void 0:e9.equippedCards,m.cardBonuses[41]),b=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],V=(0,k.om)(null==l?void 0:null===(e8=l.alchemy)||void 0===e8?void 0:e8.bubbles,"quicc","FLY_IN_MIND",!1,"agility"===b);ti=.25+(d+(t$+t+(tz+(tY+(h+(t0+(tZ+V)))))))/100,te=[...te,{title:"Catching"},{name:""},{name:"Talents",value:d+tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ},{name:"Card",value:h},{name:"Post Office",value:t},{name:"Bubble",value:V}]}else"LABORATORY"===tl&&(ti=.25+(tz+(tY+(t$+(t0+tZ))))/100,te=[...te,{title:"Laboratory"},{name:""},{name:"Talents",value:tz},{name:"Starsign",value:t0},{name:"Trapping Bonus",value:t$},{name:"Bribe",value:tZ}]);let t1=ti;ti<1.5&&(t1=Math.min(1.5,ti+tV/100)),te=[...te,{name:"Shrine (< 150)",value:ti<1.5?tV:0}];let t2=Math.max(.01,t1);return{afkGains:t2,breakdown:te}},getTrappingStuff=(e,t,l)=>{if("TrapMGbonus"===e){var u,d,y;let e=null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[99];if(e>=25*(t+1)){let e=null===m.randomList||void 0===m.randomList?void 0:null===(y=m.randomList[59])||void 0===y?void 0:null===(d=y.split(" "))||void 0===d?void 0:d.map(e=>parseFloat(e));return null==e?void 0:e[t]}return 0}return 1},getPlayerCapacity=(e,t)=>e?(0,u.UR)(e,t):50,getNonConsumeChance=(e,t)=>{let{starSigns:l,cards:m,postOffice:u,talents:d,equippedBubbles:y}=e,{lab:h}=t,b=(0,eT.c9)(null==h?void 0:h.labBonuses,8),V=(0,eT.pc)(null==h?void 0:h.jewels,8,b),ee=(0,k.y7)(y,"power","BITE_BUT_NOT_CHEW",t),ea=(0,g._X)(d,1,"FREE_MEAL"),el=(0,L.xV)(u,"Carepack_From_Mum",0),eo=(0,E.Xt)(null==m?void 0:m.equippedCards,"B3"),e_=(0,j.Wv)(l,t,"chance_to_not");return Math.min(Math.min(90+5*V,98+Math.min(ee,1)),Math.max(1,V)*(ea+(el+(eo+e_+ee))))},getPlayerConstructionSpeed=(e,t)=>{var l,u,y,h,E,V,j,ee;let ea=null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(l=u.construction)||void 0===l?void 0:l.level,eo=null===g.nl||void 0===g.nl?void 0:g.nl[null==e?void 0:e.class],e_=(0,k.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"power","CARPENTER",!1,"strength"===eo),ec=(0,b.mV)(t,"Building_Speed",e),em=(0,L.wO)(null==e?void 0:e.postOffice,"Construction_Container"),ed=(0,el._r)(null==t?void 0:null===(h=t.guild)||void 0===h?void 0:h.guildBonuses,5),ey=(0,d.zi)(e,30,t),eh=(0,ep.gY)(null==e?void 0:e.obols,null===m.bonuses||void 0===m.bonuses?void 0:null===(E=m.bonuses.etcBonuses)||void 0===E?void 0:E[30]),eT=(0,ef.k6)(null==t?void 0:t.achievements,153),eg=(0,eI.lC)(null==t?void 0:null===(V=t.towers)||void 0===V?void 0:V.totalLevels,"Build Spd"),eS=(0,k.YG)(null==t?void 0:null===(j=t.alchemy)||void 0===j?void 0:j.vials,null,"Contspd"),eN=(0,g._X)(null==e?void 0:e.talents,2,"REDOX_RATES",!1,!0),eC=(0,ew._m)(t,"Helium_-_Talent_Power_Stacker"),eR=(0,d.ju)([...null==t?void 0:t.storage,...(null==t?void 0:null===(ee=t.refinery)||void 0===ee?void 0:ee.refineryStorage)||[]],"Refinery1",!0,!0);return Math.floor(3*Math.pow(ea/2+.7,1.6)*(1+ea*e_/100)*(1+(ec+.25*em+(ed+(ey+eh)+Math.min(5,5*eT)+eg+eS))/100)*(1+eN*(eC+(0,ev.lavaLog)(eR))/100))},getPlayerConstructionExpPerHour=(e,t)=>{var l,m,u;let d=null==e?void 0:e.constructionSpeed,y=(0,k.y7)(e.equippedBubbles,"power","CALL_ME_BOB",t),h=(0,g._X)(null==e?void 0:e.talents,2,"SHARPER_SAWS"),E=(0,g._X)(null==e?void 0:e.talents,1,"TEMPESTUOUS_EMOTIONS"),ee=(0,k.YG)(null==t?void 0:null===(l=t.alchemy)||void 0===l?void 0:l.vials,null,"ConsExp"),ea=(0,V.U6)(null==t?void 0:t.statues,"StatueG19",null==e?void 0:e.talents),el=(0,b.mV)(t,"+{%_Construction_Exp_Gain",e),eo=(0,j.o9)(e,t,"Construct_Exp"),e_=(0,L.wO)(null==e?void 0:e.postOffice,"Construction_Container");return Math.ceil((Math.pow(d,.7)/2+(2+6*(null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(m=u.construction)||void 0===m?void 0:m.level)))*(1+(y+(h+E+(ee+(ea+(el+(eo+Math.max(0,.5*(e_-100))))))))/100))}},47212:function(e,t,l){"use strict";l.d(t,{q5:function(){return d},ZX:function(){return getBuildCost},VR:function(){return getConstruction},Bt:function(){return getExtraMaxLevels},d4:function(){return getTowers},ai:function(){return optimizeArrayWithSwaps}});var m=l(30925),u=l(70473);let createCogstructionData=(e,t)=>{let l=null==e?void 0:e.reduce((e,l,m)=>{let u=getCogstructionCogType(t[m]);if(!u)return e;let{a:d="",c:y="",d:h="",b:g="",e:E="",g:b="",k:L="",f:k=""}=l||{},V=[d,y,h,g,E,b,L,k].map((e,t)=>t<7?"".concat(getCogstructionValue(e)||"",","):getCogstructionValue(e)),j=t[m].includes("Player_")?t[m].split("Player_")[1]:"";return"".concat(e,"\n").concat(u,",").concat(j,",").concat(V.join(""))},"cog type,name,build_rate,flaggy_rate,exp_mult,exp_rate,build_rate_boost,flaggy_rate_boost,flaggy_speed,exp_rate_boost"),m="empties_x,empties_y",u=null==t?void 0:t.slice(0,96);for(let e=0;e<8;e++)for(let t=0;t<12;t++){let l=(7-e)*12+t;(null==u?void 0:u[l])==="Blank"&&(m="".concat(m,"\n").concat(t,",").concat(e))}return{cogData:l,empties:m}},getCogstructionCogType=e=>{if("Blank"===e)return null;if(e.includes("Player_"))return"Character";if("CogY"===e)return"Yang_Cog";if("CogZ"===e)return"Omni_Cog";let t=Object.entries({ad:"Plus",di:"X",up:"Up",do:"Down",ri:"Right",le:"Left",ro:"Row",co:"Col",cr:"Omni"}).find(t=>{let[l]=t;return e.endsWith(l)});return t?"".concat(t[1],"_Cog"):"Cog"},getCogstructionValue=e=>{var t;return(null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.includes("%"))?(null==e?void 0:e.value)>0&&!isNaN((null==e?void 0:e.value)/100)?(null==e?void 0:e.value)/100:"":(null==e?void 0:e.value)||""},getConstruction=(e,t)=>{let l=(null==e?void 0:e.CogMap)||(0,m.tryToParse)(null==e?void 0:e.CogM),u=(null==e?void 0:e.CogOrder)||(0,m.tryToParse)(null==e?void 0:e.CogO),d=createCogMap(l,null==u?void 0:u.length),y=parseConstruction(d),h=getFlags(e,y,u,t),g=createCogstructionData(y,u);return{...h,cogstruction:g}},getFlags=(e,t,l,u)=>{let d=(null==e?void 0:e.FlagUnlock)||(0,m.tryToParse)(null==e?void 0:e.FlagU),y=(null==e?void 0:e.FlagsPlaced)||(0,m.tryToParse)(null==e?void 0:e.FlagP);return parseFlags(d,y,t,l,u)},parseConstruction=e=>null==e?void 0:e.map(e=>{var t;return null===(t=Object.entries(e))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t;return(null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l])&&(null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l])!=="_"?{...e,[l]:{name:null===u.cogKeyMap||void 0===u.cogKeyMap?void 0:u.cogKeyMap[l],value:m}}:{...e,[l]:m}},{})}),createCogMap=(e,t)=>{let l=[];for(let m=0;m{var y,h;let g=null==e?void 0:e.reduce((e,d,y)=>{let h=null==m?void 0:m[y],g=null==l?void 0:l[y];return[...e,{currentAmount:-11===d?null===u.flagsReqs||void 0===u.flagsReqs?void 0:u.flagsReqs[y]:parseFloat(d),requiredAmount:null===u.flagsReqs||void 0===u.flagsReqs?void 0:u.flagsReqs[y],flagPlaced:null==t?void 0:t.includes(y),cog:{name:h,stats:g,originalIndex:y}}]},[]),E=null!==(h=null==d?void 0:null===(y=d.gemShopPurchases)||void 0===y?void 0:y.find((e,t)=>118===t))&&void 0!==h?h:0,b=null==l?void 0:l.map((e,t)=>({...e,name:null==m?void 0:m[t]})).filter(e=>{let{name:t}=e;return null==t?void 0:t.includes("Player_")}).reduce((e,t)=>{let{a:l}=t;return e+((null==l?void 0:l.value)||0)},0),L=evaluateBoard(g);return{...L,baseBoard:g,totalFlaggyRate:(null==L?void 0:L.totalFlaggyRate)*(1+50*E/100),playersBuildRate:b}},swapElements=(e,t,l)=>{var m,u;let d=[...e],y={...null===(m=d[t])||void 0===m?void 0:m.cog};return d[t]={...d[t],cog:{...null===(u=d[l])||void 0===u?void 0:u.cog}},d[l]={...d[l],cog:y},d},optimizeArrayWithSwaps=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2500,m=arguments.length>3?arguments[3]:void 0,u=[...e],d=evaluateBoard(u,m),y=null==d?void 0:d[t],h=[],g=Date.now();for(;Date.now()-gy&&(d=em,u=g,y=null==em?void 0:em[t],h=[...h,{from:e,to:l}])}return{...d,moves:h}},evaluateBoard=(e,t)=>{let{boosted:l}=getAllBoostedCogs(e),m=0,u=0,d=0,y=0,h=null==e?void 0:e.map((e,h)=>{var g,E,b,L,k,V,j,ee,ea,el,eo,e_;let{cog:ec}=e||{},{e:em,g:ed,f:ep}=(null==l?void 0:l[h])||{},ey=(null==ec?void 0:null===(E=ec.stats)||void 0===E?void 0:null===(g=E.a)||void 0===g?void 0:g.value)||0,eh=(null==ec?void 0:null===(L=ec.stats)||void 0===L?void 0:null===(b=L.c)||void 0===b?void 0:b.value)||0,eT=(null==ec?void 0:null===(V=ec.stats)||void 0===V?void 0:null===(k=V.b)||void 0===k?void 0:k.value)||0,ef=0;if(null==ec?void 0:null===(j=ec.name)||void 0===j?void 0:j.includes("Player_")){let e=null==t?void 0:t.find(e=>{let{name:t}=e;return t===(null==ec?void 0:ec.name.replace("Player_",""))});e?(ef=(null==e?void 0:e.constructionExpPerHour)*(1+((null==ep?void 0:ep.value)||0)/100),y+=ef):y+=eT}let ev=ey*(1+((null==em?void 0:em.value)||0)/100);m+=Math.max(ev,0),u+=(null==ec?void 0:null===(ea=ec.stats)||void 0===ea?void 0:null===(ee=ea.d)||void 0===ee?void 0:ee.value)||0;let eg=eh+eh*((null==ed?void 0:ed.value)||0)/100;return d+=Math.max(eg,0),{...e,cog:{...ec,stats:{...null==ec?void 0:ec.stats,a:{...null==ec?void 0:null===(el=ec.stats)||void 0===el?void 0:el.a,value:ev},c:{...null==ec?void 0:null===(eo=ec.stats)||void 0===eo?void 0:eo.c,value:eg},...t?{b:{...null==ec?void 0:null===(e_=ec.stats)||void 0===e_?void 0:e_.b,value:ef}}:{}}}}});return t&&(h=null==h?void 0:h.map(e=>{var t,l,m,d,y,h,g,E;return(null==e?void 0:null===(l=e.cog)||void 0===l?void 0:null===(t=l.name)||void 0===t?void 0:t.includes("Player_"))?{...e,cog:{...null==e?void 0:e.cog,stats:{...null==e?void 0:null===(m=e.cog)||void 0===m?void 0:m.stats,b:{...null==e?void 0:null===(y=e.cog)||void 0===y?void 0:null===(d=y.stats)||void 0===d?void 0:d.b,value:(null==e?void 0:null===(E=e.cog)||void 0===E?void 0:null===(g=E.stats)||void 0===g?void 0:null===(h=g.b)||void 0===h?void 0:h.value)*(1+u/100)}}}}:e})),{totalBuildRate:m,totalExpRate:u,totalFlaggyRate:d,totalPlayerExpRate:y*(t?1+u/100:1),board:h}},getAllBoostedCogs=e=>{let t={},l=Array(96).fill(0);for(let h=0;h<8;h++)for(let g=0;g<12;g++){var m,u,d,y;let E=(7-h)*12+g,b=null==e?void 0:null===(m=e[E])||void 0===m?void 0:m.cog,L=(null==e?void 0:null===(d=e[E])||void 0===d?void 0:null===(u=d.cog)||void 0===u?void 0:u.stats)||{},k=getAffectedIndexes(b,g,h);if((null==k?void 0:k.length)>0){k=null==k?void 0:null===(y=k.map(e=>{let[t,l]=e;return t<0||l<0||t>=12||l>=8?null:(7-l)*12+t}))||void 0===y?void 0:y.filter(e=>null!==e);let{e,f:m,g:u}=L||{};if(e||m||u)for(let e=0;e{var m;let u=[];switch(null==e?void 0:null===(m=e.stats)||void 0===m?void 0:m.h){case"diagonal":u.push([t-1,l-1],[t+1,l-1],[t-1,l+1],[t+1,l+1]);break;case"adjacent":u.push([t-1,l],[t,l+1],[t+1,l],[t,l-1]);break;case"up":u.push([t-1,l+2],[t,l+2],[t+1,l+2],[t-1,l+1],[t,l+1],[t+1,l+1]);break;case"right":u.push([t+2,l-1],[t+2,l],[t+2,l+1],[t+1,l-1],[t+1,l],[t+1,l+1]);break;case"down":u.push([t-1,l-2],[t,l-2],[t+1,l-2],[t-1,l-1],[t,l-1],[t+1,l-1]);break;case"left":u.push([t-2,l-1],[t-2,l],[t-2,l+1],[t-1,l-1],[t-1,l],[t-1,l+1]);break;case"row":for(let e=0;e<12;e++)t!==e&&u.push([e,l]);break;case"column":for(let e=0;e<8;e++)l!==e&&u.push([t,e]);break;case"corners":u.push([t-2,l-2],[t+2,l-2],[t-2,l+2],[t+2,l+2]);break;case"around":u.push([t,l-2],[t-1,l-1],[t,l-1],[t+1,l-1],[t-2,l],[t-1,l],[t+1,l],[t+2,l],[t-1,l+1],[t,l+1],[t+1,l+1],[t,l+2]);break;case"everything":for(let e=0;e<8;e++)for(let m=0;m<12;m++)(l!==e||t!==m)&&u.push([m,e])}return u},getTowers=e=>{let t=(null==e?void 0:e.TowerInfo)||(0,m.tryToParse)(null==e?void 0:e.Tower),l=(0,m.tryToParse)(null==e?void 0:e.TotemInfo)||(null==e?void 0:e.TotemInfo);return parseTowers(t,l)},parseTowers=(e,t)=>{var l;let m=null==t?void 0:t[0],d=null==m?void 0:m.reduce((e,t)=>e+t,0),y=Object.keys(u.towers).length,h=null==e?void 0:e.slice(54,62),g=0,E=0,b=null===(l=Object.entries(u.towers))||void 0===l?void 0:l.map(t=>{let[l,m]=t,u=null==e?void 0:e[null==m?void 0:m.index];return(null==m?void 0:m.index)>=9&&(null==m?void 0:m.index)<=17&&u>50&&(g+=u-50),E+=u,{...m,name:l,level:u,nextLevel:u+1===(null==e?void 0:e[m.index+y]),progress:null==e?void 0:e[(null==m?void 0:m.index)+12+2*y],inProgress:null==h?void 0:h.includes(null==m?void 0:m.index),slot:null==h?void 0:h.findIndex(e=>e===(null==m?void 0:m.index))}});return{data:b,buildMultiplier:null===u.randomList||void 0===u.randomList?void 0:u.randomList[13].split(" "),wizardOverLevels:g,totalLevels:E,totalWaves:d,towersTwo:null==e?void 0:e[2]}},getBuildCost=(e,t,l,m)=>{if(0===m)return 20*Math.pow(t+1,2)*Math.pow(1.6,t+1);{var u;let d=Number(null==e?void 0:null===(u=e.buildMultiplier)||void 0===u?void 0:u[m]);return d*Math.pow(l,t)}},d=[250,500,750,1e3,1250,1500,2500],getConstructionMasteryBonus=(e,t)=>6===t?e>=(null==d?void 0:d[6])?30:0:4===t?e>=(null==d?void 0:d[3])?100:0:5===t?e>=(null==d?void 0:d[5])?100:0:3===t&&e>=(null==d?void 0:d[1])?35:0,getExtraMaxLevels=(e,t,l)=>50===t?Math.round(2*l+getConstructionMasteryBonus(e,6,0)):101===t?getConstructionMasteryBonus(e,4,0):100===t?getConstructionMasteryBonus(e,5,0):15===t?getConstructionMasteryBonus(e,3,0):0},89260:function(e,t,l){"use strict";l.d(t,{Cz:function(){return ey},F4:function(){return getMealsBonusByEffectOrStat},GF:function(){return getChipsAndJewels},IG:function(){return parseKitchens},Kn:function(){return calcTimeToNextLevel},QR:function(){return calcTotalMeals},Qo:function(){return calcMealTime},Tt:function(){return getCooking},eA:function(){return getTotalKitchenLevels},sV:function(){return getMealLevelCost},vu:function(){return getKitchens},wR:function(){return applyMealsMulti},zp:function(){return ep}});var m=l(70473),u=l(1972);l(88344);var d=l(30925);l(4056);var y=l(15893),h=l(88054),g=l(10924),E=l(9339),b=l(16727),L=l(5432),k=l(20385),V=l(30796),j=l(72973),ee=l(74044);l(35909),l(99958);var ea=l(54685),el=l(71345),eo=l(13339),e_=l(78713),ec=l(96707),em=l(8616),ed=l(48832);let ep=["Grasslands","Jungle","Encroaching Forest","Tree Interior","Stinky Sewers","Desert Oasis","Beach Docks","Coarse Mountains","Twilight Desert","The Crypt","Frosty Peaks","Tundra Outback","Crystal Caverns","Pristalle Lake","Nebulon Mantle","Starfield Skies","Shores of Eternity","Molten Bay","Smokey Lake","Wurm Catacombs"],getCooking=(e,t)=>{let l=(0,d.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking),m=(0,d.tryToParse)(null==e?void 0:e.Meals)||(null==e?void 0:e.Meals),u=(0,d.tryToParse)(null==e?void 0:e.Territory)||(null==e?void 0:e.Territory);return parseCooking(m,u,l,t)},parseCooking=(e,t,l,m)=>{let u=getMeals(e,m),d=getSpices(e,t,m);return{meals:u,spices:d}},getSpices=(e,t,l)=>{var m,u;let d=null==t?void 0:t.reduce((e,t,l)=>{let[m,,,u,d]=t;return[...e,{progress:m,amount:d,rawName:u,name:ep[l]}]},[]),y=null==e?void 0:null===(m=e[3])||void 0===m?void 0:m.filter(e=>e>0).map((e,t)=>{var l;return{amount:e,toClaim:null==d?void 0:null===(l=d[t])||void 0===l?void 0:l.amount,rawName:"CookingSpice".concat(t),name:ep[t]}}),h=null==l?void 0:null===(u=l.accountOptions)||void 0===u?void 0:u[100];return{toClaim:d,available:y,numberOfClaims:h}},getMeals=(e,t)=>{var l;let u=null==e?void 0:e[0],d=null==e?void 0:e[2],y=(0,L.du)(null==t?void 0:null===(l=t.breeding)||void 0===l?void 0:l.pets,"Bonuses_from_All_Meals");return null==u?void 0:u.map((e,t)=>t>66?null:{index:t,level:e,amount:null==d?void 0:d[t],shinyMulti:y,...(null===m.cookingMenu||void 0===m.cookingMenu?void 0:m.cookingMenu[t])||{}}).filter(e=>e)},applyMealsMulti=(e,t)=>null==e?void 0:e.map(e=>({...e,multiplier:1+t/100})),getSpiceUpgradeCost=e=>(e+1+Math.floor(Math.max(0,e-10)/2)+Math.pow(Math.max(0,e-30),1.2))*Math.pow(1.02,Math.max(0,e-60)),getMealsBonusByEffectOrStat=function(e,t,l){var m,u,d,y;let h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=(0,L.du)(null==e?void 0:null===(m=e.breeding)||void 0===m?void 0:m.pets,"Bonuses_from_All_Meals");return null!==(y=null==e?void 0:null===(d=e.cooking)||void 0===d?void 0:null===(u=d.meals)||void 0===u?void 0:u.reduce((e,m)=>{let{level:u,baseStat:d,effect:y,stat:E}=m;if(t){if(!y.includes(t))return e}else if(E!==l)return e;return"PxLine"===l?e+u*d:e+(1+(h+g)/100)*u*d},0))&&void 0!==y?y:0},getKitchens=(e,t,l)=>{let m=(0,d.tryToParse)(null==e?void 0:e.Cooking)||(null==e?void 0:e.Cooking),u=(0,d.tryToParse)(null==e?void 0:e.Atoms)||(null==e?void 0:e.Atoms);return parseKitchens(m,u,t,l)},parseKitchens=(e,t,l,d,L)=>{var j,ee,em,ep,ey,eh,eT;let{characterIndex:ef,enableNanoChip:ev}=L||{},eg=null==d?void 0:null===(j=d.accountOptions)||void 0===j?void 0:j[89],eS=null===m.randomList||void 0===m.randomList?void 0:m.randomList[53],eN=null==e?void 0:e.reduce((e,t)=>{let[l,m,u]=t.slice(6,9);return e+l+m+u},0),eC=null==d?void 0:null===(em=d.cooking)||void 0===em?void 0:null===(ee=em.meals)||void 0===ee?void 0:ee.reduce((e,t)=>{let{level:l}=t;return l>=11?e+1:e},0),eR=null==d?void 0:null===(ey=d.cooking)||void 0===ey?void 0:null===(ep=ey.meals)||void 0===ep?void 0:ep.reduce((e,t)=>{let{level:l}=t;return l>=30?e+1:e},0),eI=null==d?void 0:null===(eT=d.cooking)||void 0===eT?void 0:null===(eh=eT.meals)||void 0===eh?void 0:eh.reduce((e,t)=>{let{level:l}=t;return e+l},0);return null==e?void 0:e.map((e,L)=>{var j,ee,em,ep,ey,eh,eT,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej;let eJ;let[e$,e0,e1,e2,e5,e3,e4,e6,e7,,e9]=e;if(e$<=0)return null;let e8=(0,y.c9)(null==d?void 0:null===(j=d.lab)||void 0===j?void 0:j.labBonuses,8),te=(0,y.pc)(null==d?void 0:null===(ee=d.lab)||void 0===ee?void 0:ee.jewels,16,e8),ti=(0,y.pc)(null==d?void 0:null===(em=d.lab)||void 0===em?void 0:em.jewels,14,e8),tl=(0,u.mV)(d,"Meal_Cooking_Speed"),to=(0,h.iu)(null==d?void 0:null===(ep=d.alchemy)||void 0===ep?void 0:ep.vials,"MealCook"),t_=(0,h.iu)(null==d?void 0:null===(ey=d.alchemy)||void 0===ey?void 0:ey.vials,"6turtle"),tm=(0,h.iu)(null==d?void 0:null===(eh=d.alchemy)||void 0===eh?void 0:eh.vials,"6CookSpd"),td=getMealsBonusByEffectOrStat(d,null,"Mcook",te),tp=(0,h.om)(null==d?void 0:null===(eT=d.alchemy)||void 0===eT?void 0:eT.bubbles,"kazam","DIAMOND_CHEF",!1),ty=getMealsBonusByEffectOrStat(d,null,"KitchenEff",te),tT=null==d?void 0:null===(ew=d.cards)||void 0===ew?void 0:ew.Massive_Troll,tf=null!==(eV=null==tT?void 0:tT.stars)&&void 0!==eV?eV:0,tv=0===tf?0:tf+1,tg=(null==d?void 0:null===(eP=d.lab)||void 0===eP?void 0:null===(eF=eP.jewels)||void 0===eF?void 0:null===(eE=eF.slice(0,3))||void 0===eE?void 0:eE.every(e=>{let{active:t}=e;return t}))?2:1,tS=(0,y.pc)(null==d?void 0:null===(eD=d.lab)||void 0===eD?void 0:eD.jewels,0,e8)*tg,tN=L<(null==d?void 0:null===(eA=d.gemShopPurchases)||void 0===eA?void 0:eA.find((e,t)=>120===t)),tC=null!==(ez=null===(eL=(0,b.YS)(null==d?void 0:null===(ex=d.sailing)||void 0===ex?void 0:ex.artifacts,"Triagulon"))||void 0===eL?void 0:eL.bonus)&&void 0!==ez?ez:0,tR=Math.pow(tp,eC),tI=(0,E.k6)(null==d?void 0:d.achievements,225),tw=(0,E.k6)(null==d?void 0:d.achievements,224),tE=getMealsBonusByEffectOrStat(d,null,"zMealFarm",te),tF=(0,ea.OK)(null==d?void 0:d.cards,"Cooking_Spd_Multi_(Passive)"),tq=null!==(eX=null===(eU=(0,el.d)(null==d?void 0:null===(eQ=d.arcade)||void 0===eQ?void 0:eQ.shop,"Cook_SPD_multi"))||void 0===eU?void 0:eU.bonus)&&void 0!==eX?eX:0,tP=(0,eo.R)(d,"{var l;let m=null!==(l=(0,ec.o9)(t,d,"Cooking_SPD"))&&void 0!==l?l:0;return m>e?m:e},0);let tA=(0,k.Ob)(d,"MSA_Mealing"),tL=0;tA&&(tL=null==tA?void 0:tA.bonus);let tx=(0,V.A5)(l,3,"Voidwalker","ENHANCEMENT_ECLIPSE"),tU=(0,V.A5)(l,3,"Voidwalker","BLOOD_MARROW"),tQ=(0,V.xI)(l,d,tx,146),tG=m.atomsInfo.findIndex(e=>{let{name:t}=e;return"Fluoride_-_Void_Plate_Chef"===t}),tB=0,tM=null==t?void 0:t[tG];tM&&(tB=Math.pow(1+(null===m.atomsInfo||void 0===m.atomsInfo?void 0:null===(ej=m.atomsInfo[tG])||void 0===ej?void 0:ej.baseBonus)*tM/100,eR));let tO=(0,ed.F)(d,13),tk=10*(1+Math.pow(Math.min(1.012,1+tU/100),eI)/100)*Math.max(1,null==d?void 0:null===(eM=d.farming)||void 0===eM?void 0:null===(eB=eM.cropDepot)||void 0===eB?void 0:null===(eG=eB.cookingSpeed)||void 0===eG?void 0:eG.value)*Math.max(1,Math.max(1,tQ))*(1+(tN?2:0))*(1+tO/100)*(1+tE*Math.ceil((tD+1)/50)/100)*Math.max(1,tR)*Math.max(1,tB)*(1+tL/100)*(1+e4/10)*(1+tC/100)*(1+tq/100)*(1+t_/100)*(1+to/100)*(1+(tl+Math.max(0,Math.floor(eN/25)*(ti||0)))/100)*(1+td/100)*(1+eJ/100)*(1+tP/100)*(1+tF/100)*(1+tm/100)*Math.max(1,tS)*(1+Math.min(6*tv+(20*tI+10*tw),100)/100)*(1+ty*Math.floor((e4+(e6+e7))/10)/100),tW=(0,h.YG)(null==d?void 0:null===(eO=d.alchemy)||void 0===eO?void 0:eO.vials,"Recipe_Cooking_Speed"),tH=(0,u.mV)(d,"New_Recipe_Cooking_Speed"),tK=getMealsBonusByEffectOrStat(d,null,"Rcook",te),tY=5*(1+(tN?1:0))*(1+tO/100)*Math.max(1,tR)*Math.max(1,tB)*(1+tL/100)*(1+e6/10)*(1+tW/100)*(1+tH/100)*(1+tK/100)*(1+Math.min(6*tv,50)/100)*(1+ty*Math.floor((e4+(e6+e7))/10)/100),tZ=1+Math.pow(5*e7,.85)/100,tV=(0,h.YG)(null==d?void 0:null===(ek=d.alchemy)||void 0===ek?void 0:ek.vials,null,"Kcosts"),tz=getMealsBonusByEffectOrStat(d,null,"KitchC",te),tX=(0,g.bV)(eg,eS,7),tj=(0,h.Vq)(null==d?void 0:null===(eH=d.alchemy)||void 0===eH?void 0:null===(eW=eH.p2w)||void 0===eW?void 0:eW.sigils,"GARLIC_GLOVE"),tJ=(0,e_.a)(d,"Fractal"),t$=null==tJ?void 0:null===(eK=tJ.shop)||void 0===eK?void 0:eK.find(e=>{let{effect:t,unlocked:l}=e;return t.includes("Kitchen_Upgrade_Costs")&&l}),t0=1/((1+(tV+tj)/100)*(1+(t$?30:0)/100)*(1+tz/100)*(1+(tN?40:0)/100)*(1+.5*(tX?1:0))),t1=1+t0*getSpiceUpgradeCost(e4),t2=1+t0*getSpiceUpgradeCost(e6),t5=1+t0*getSpiceUpgradeCost(e7),t3=[e1,e2,e5,e3].filter(e=>-1!==e),t4=t3.map(e=>{var t;return parseInt(null===(t=m.randomList[49])||void 0===t?void 0:t.split(" ")[e])}),t6=getMealsFromSpiceValues(m.randomList[49],t4).filter(e=>e>0).map(e=>{var t,l;return{index:e,rawName:null===m.cookingMenu||void 0===m.cookingMenu?void 0:null===(t=m.cookingMenu[e])||void 0===t?void 0:t.rawName,cookReq:null===m.cookingMenu||void 0===m.cookingMenu?void 0:null===(l=m.cookingMenu[e])||void 0===l?void 0:l.cookReq}});return{status:e$,meal:{...(null===m.cookingMenu||void 0===m.cookingMenu?void 0:m.cookingMenu[e0])||{},...(null==d?void 0:null===(eZ=d.cooking)||void 0===eZ?void 0:null===(eY=eZ.meals)||void 0===eY?void 0:eY[e0])||{}},luckLv:e7,fireLv:e6,speedLv:e4,currentProgress:e9,mealSpeed:tk,mealLuck:tZ,fireSpeed:tY,speedCost:t1,fireCost:t2,luckCost:t5,...3===e$?{spices:t3}:{},...3===e$?{possibleMeals:t6}:{}}}).filter(e=>e)},getMealsFromSpiceValues=(e,t)=>{let l=[];t.forEach(e=>{l.includes(e)||l.push(e)});let m=e.split(" ").map(e=>parseFloat(e)),u=t.reduce((e,t)=>e+m.indexOf(t),0);return e.includes(u)||l.push(u),!(t.length>2)||l.includes(u-1)||m.includes(u-1)||l.push(u-1),!(t.length>1)||l.includes(u+1)||m.includes(u+1)||l.push(u+1),l.sort((e,t)=>e{let{amount:y,level:h,cookReq:g}=t;if(h>=e)return 0;let E=0;for(let t=h;t{var u;let d=(null==m?void 0:null===(u=m.equinox)||void 0===u?void 0:u.challenges.find(e=>-1===e.current&&e.reward.includes("'Food_Lust'_Equinox_Upg_now_reduces_cost_by_-42%_per_stack")))?1:0;return 1/Math.min(5,Math.max(1,1+10*(0,E.k6)(t,233)/100))*Math.max(.001,Math.pow(Math.max(.58,.8-.22*d),(0,j.z)(l,"Food_Lust")))*(10+(e+Math.pow(e,2)))*Math.pow(1.2+.05*e,e)},calcTimeToNextLevel=(e,t,l)=>e*t/l,getTotalKitchenLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{speedLv:l,luckLv:m,fireLv:u}=t;return e+l+m+u},0),ey=100,getChipsAndJewels=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(!e)return[];let{serverVars:l,timeAway:m,lab:u}=e||{},d=null==u?void 0:u.chips,y=null==u?void 0:u.jewels,h=Math.floor((null==m?void 0:m.GlobalTime)/604800),g=[];for(let m=0;me;e++){let l=[];for(let t=0;2>t;t++){let u=new ee.Z(Math.round(h+m+500*e+(-1+2*t))),g=Math.floor(1e3*u.rand()),E=2===e?Math.round(g-Math.floor(g/y.length)*y.length):Math.round(g-Math.floor(g/(d.length-10*(1-e)))*(d.length-Math.round(10*(1-e))));l.push(E)}if(l[0]===t[e])for(let u=0;100>u;u++){let g=new ee.Z(Math.round(h+m+500*e+765*(u+1))),E=Math.floor(1e3*g.rand()),b=2===e?Math.round(E-Math.floor(E/y.length)*y.length):Math.round(E-Math.floor(E/(d.length-10*(1-e)))*(d.length-Math.round(10*(1-e))));if(l[0]!==b&&l[1]!==b){t[e]=b;break}}}for(let m=0;3>m;m++){-1!==l.ChipRepo[m]&&(t[m]=l.ChipRepo[m]);let u=(0,em.x5)(e,"Laboratory_Bling");18<=t[m]&&20>=t[m]&&u&&(t[m]=Math.max(1,t[m]-10))}let j=Math.floor((h+m)*6048e5);t=t.map((e,t)=>2===t?y[e]:d[e]),g.push({items:t,date:new Date(j)})}return g},calcTotalMeals=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},72339:function(e,t,l){"use strict";l.d(t,{C:function(){return notateDamage},m:function(){return getMaxDamage}});var m=l(30796),u=l(4056),d=l(11028),y=l(54685),h=l(64605),g=l(88054),E=l(88344),b=l(74805),L=l(79603),k=l(70473),V=l(10924),j=l(96707),ee=l(71345),ea=l(56552),el=l(74861),eo=l(1972),e_=l(30925),ec=l(64569),em=l(15815),ed=l(15893),ep=l(89260),ey=l(74629),eh=l(16727),eT=l(95331),ef=l(5432),ev=l(20385),eg=l(47212),eS=l(32387),eN=l(9339),eC=l(19834),eR=l(72973),eI=l(99958);let getMaxDamage=(e,t,l)=>{var u;let d={survivabilityMath:0},y=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],h=(0,m._X)(null==e?void 0:e.talents,1,"STRENGTH_IN_NUMBERS"),g=(0,m._X)(null==e?void 0:e.talents,1,"KNOWLEDGE_IS_POWER"),E=(0,m._X)(null==e?void 0:e.talents,1,"LUCKY_HIT"),b=((null==e?void 0:null===(u=e.stats)||void 0===u?void 0:u[y])||0)*(1+(h+(g+E))/100),{respawnRate:L}=(0,ea.P9)(e,l);d.respawnRate=L;let{afkGains:k}=(0,ea.WU)(e,t,l);d.afkGains=k,d.maxHp=getMaxHp(e,t,l),d.maxMp=getMaxMp(e,t,l),d.movementSpeed=(0,ea.Yp)(e,t,l),d.accuracy=getAccuracy(e,t,l,d.movementSpeed),d.critDamage=getCritDamage(e,t,l),d.critChance=getCritChance(e,t,l,d),d.hitChance=getHitChance(e,t,l,d),d.mastery=getMastery(e,t,l),d.miningEff=(0,eI.x4)(e,t,l,d);let{baseDamage:V}=getBaseDamage(e,t,l,d,b),j=getDamageFromHpMp(e,t,l,d,b),ee=getDamageFromPerX(e,t,l,d,j),el=getDamagePercent(e,t,l,d);return d.maxDamage=V*ee*el,d.minDamage=d.mastery*d.maxDamage,d.defence=getPlayerDefence(e,t,l,d),d.survivability=getSurvivability(e,t,l,d),d.killsPerHour=getKillsPerHour(e,t,l,d),d.survivabilityMath=d.killsPerHour*d.afkGains*(d.survivability/100),d.survivability=getSurvivability(e,t,l,d),d.killsPerHour=getKillsPerHour(e,t,l,d),d.killPerkill=getKillPerKill(e,t,l,d),d.finalKillsPerHour=Math.floor(d.killsPerHour*d.afkGains*(d.survivability/100)*d.killPerkill),d},notateDamage=e=>{let t=[];return 9999999>e.maxDamage?t.push(Math.ceil(e.minDamage)+"~"+Math.ceil(e.maxDamage)):999999999>e.maxDamage?t.push(Math.ceil(e.minDamage/1e3)/1e3+"[~"+Math.ceil(e.maxDamage/1e3)/1e3+"["):9999999999999>e.maxDamage?t.push(Math.ceil(e.minDamage/1e5)/10+"[~"+Math.ceil(e.maxDamage/1e5)/10+"["):t.push(Math.ceil(e.minDamage/1e9)/1e3+"!~"+Math.ceil(e.maxDamage/1e9)/1e3+"!"),t},getMastery=(e,t,l)=>{var u,d;let h=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],b=(0,g.om)(null==l?void 0:null===(u=l.alchemy)||void 0===u?void 0:u.bubbles,"quicc","LIL_BIG_DAMAGE",!1,"agility"===h),L=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Minimum_Damage"),k=(0,m._X)(null==e?void 0:e.talents,2,"MASTERY_UP"),V=(0,E.zi)(e,21,l);return Math.min(.8,.35+(b+(L+(k+V)))/100)},getDamagePercent=(e,t,l)=>{var d,h,ee,ea,el,eo,eI,ew,eE,eF,eP,eD,eA,eL,ex,eU,eQ,eG,eB,eM,eO,ek,eW,eH,eK,eY,eZ,eV,ez,eX,ej,eJ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,e8,te,ti,tl,to,t_,tm,td;let tp=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],{strength:ty,agility:tT,wisdom:tf,luck:tv}=(null==e?void 0:e.stats)||{},tg=(0,m._X)(null==e?void 0:e.talents,3,"WORMHOLE_EMPEROR"),tS=1+tg*(0,e_.lavaLog)(null!==(e9=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[152])&&void 0!==e9?e9:0)/100,tN=(0,eR.z)(null==l?void 0:null===(h=l.equinox)||void 0===h?void 0:h.upgrades,"Matching_Scims"),tC=5*(0,ey.MH)(l),tR=(0,m.eZ)(null==e?void 0:e.activeBuffs,"NO_PAIN_NO_GAIN"),tI=(0,j.o9)(e,l,"Total_Damage"),tw=null!==(e8=null==l?void 0:null===(ee=l.divinity)||void 0===ee?void 0:ee.unlockedDeities)&&void 0!==e8?e8:0,tE=(0,m.A5)(t,3,"Elemental_Sorcerer","GODS_CHOSEN_CHILDREN",!1,!0),tF=(0,m.A5)(t,3,"Voidwalker","POWER_ORB"),tq=(0,ec.wt)(null==l?void 0:l.shrines,0,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(ea=l.sailing)||void 0===ea?void 0:ea.artifacts),tP=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",2),tD=(0,u.xV)(null==e?void 0:e.postOffice,"Scurvy_C'arr'ate",2),tA=(0,u.xV)(null==e?void 0:e.postOffice,"Gaming_Lootcrate",2),tL=(0,V.jU)(t,"Blood_Berserker"),tx=(0,m._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),tU=(0,L.D)(k.classFamilyBonuses,"TOTAL_DAMAGE",tL),tQ=tU*((null==e?void 0:e.class)==="Blood_Berserker"&&tx>0?1+tx/100:1),tG=(0,eh.YS)(null==l?void 0:null===(el=l.sailing)||void 0===el?void 0:el.artifacts,"Crystal_Steak"),tB=null!==(te=null==tG?void 0:null===(eI=tG.additionalData)||void 0===eI?void 0:null===(eo=eI[null==e?void 0:e.playerId])||void 0===eo?void 0:eo.bonus)&&void 0!==te?te:0,tM=null!==(ti=null===(ew=(0,eh.YS)(null==l?void 0:null===(eE=l.sailing)||void 0===eE?void 0:eE.artifacts,"Ruble_Cuble"))||void 0===ew?void 0:ew.bonus)&&void 0!==ti?ti:0,tO=null!==(tl=null===(eF=(0,eh.YS)(null==l?void 0:null===(eP=l.sailing)||void 0===eP?void 0:eP.artifacts,"Fun_Hippoete"))||void 0===eF?void 0:eF.bonus)&&void 0!==tl?tl:0,tk=null!==(to=null===(eD=(0,eh.YS)(null==l?void 0:null===(eA=l.sailing)||void 0===eA?void 0:eA.artifacts,"Opera_Mask"))||void 0===eD?void 0:eD.bonus)&&void 0!==to?to:0,tW=null!==(t_=null===(eL=(0,eh.YS)(null==l?void 0:null===(ex=l.sailing)||void 0===ex?void 0:ex.artifacts,"The_True_Lantern"))||void 0===eL?void 0:eL.bonus)&&void 0!==t_?t_:0,tH=null!==(tm=(0,eT._m)(l,"Carbon_-_Wizard_Maximizer"))&&void 0!==tm?tm:0,tK=(0,ef.du)(null==l?void 0:null===(eU=l.breeding)||void 0===eU?void 0:eU.pets,"Total_Damage"),tY=null!==(td=null===(eQ=(0,ev.Ob)(l,"MSA_Skill_EXP"))||void 0===eQ?void 0:eQ.bonus)&&void 0!==td?td:0,tZ=(0,V.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,0),tV=(0,g.om)(null==l?void 0:null===(eG=l.alchemy)||void 0===eG?void 0:eG.bubbles,"power","BRITTLEY_SPEARS",!1,"strength"===tp),tz=(0,g.om)(null==l?void 0:null===(eB=l.alchemy)||void 0===eB?void 0:eB.bubbles,"quicc","BOW_JACK",!1,"agility"===tp),tX=(0,g.om)(null==l?void 0:null===(eM=l.alchemy)||void 0===eM?void 0:eM.bubbles,"high-iq","MATTY_STAFFORD",!1,"wisdom"===tp),tj="strength"===tp||"luck"===tp?(0,g.om)(null==l?void 0:null===(eO=l.alchemy)||void 0===eO?void 0:eO.bubbles,"power","POWER_TRIONE",!1,"strength"===tp):0,tJ="agility"===tp?(0,g.om)(null==l?void 0:null===(ek=l.alchemy)||void 0===ek?void 0:ek.bubbles,"quicc","POWER_TRITWO",!1,"agility"===tp):0,t$="wisdom"===tp?(0,g.om)(null==l?void 0:null===(eW=l.alchemy)||void 0===eW?void 0:eW.bubbles,"high-iq","POWER_TRITHREE",!1,"wisdom"===tp):0,t0=(null==l?void 0:null===(eH=l.towers)||void 0===eH?void 0:eH.totalLevels)>=(null===eg.q5||void 0===eg.q5?void 0:eg.q5[2])?2*Math.floor(((null==l?void 0:null===(eK=l.towers)||void 0===eK?void 0:eK.totalLevels)-(null===eg.q5||void 0===eg.q5?void 0:eg.q5[2]))/10):0,t1=(0,m._X)(null==e?void 0:e.talents,0,"GILDED_SWORD"),t2=(0,eS.W)(null==l?void 0:l.saltLick,9),t5=(0,E.zi)(e,45,l),t3=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(eY=k.bonuses.etcBonuses)||void 0===eY?void 0:eY[45]),t4=null===(eZ=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===eZ?void 0:eZ.bonus,t6=null===(eV=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Precision",l))||void 0===eV?void 0:eV.curse,t7=null===(ez=(0,em.Y0)(null==e?void 0:e.activePrayers,"Fibers_of_Absence",l))||void 0===ez?void 0:ez.curse,t9=(0,ed.c9)(null==l?void 0:null===(eX=l.lab)||void 0===eX?void 0:eX.labBonuses,0),t8=(0,ed.c9)(null==l?void 0:null===(ej=l.lab)||void 0===ej?void 0:ej.labBonuses,11),ai=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ao=(null==l?void 0:null===(e$=l.lab.jewels)||void 0===e$?void 0:null===(eJ=e$.slice(7,10))||void 0===eJ?void 0:eJ.every(e=>{let{active:t}=e;return t}))?2:1,as=(0,ed.pc)(null==l?void 0:l.lab.jewels,10,ai)*ao,a_=(null==e?void 0:null===(e1=e.cards)||void 0===e1?void 0:null===(e0=e1.cardSet)||void 0===e0?void 0:e0.rawName)==="CardSet26"?null==e?void 0:null===(e5=e.cards)||void 0===e5?void 0:null===(e2=e5.cardSet)||void 0===e2?void 0:e2.bonus:0,am=(0,y.OK)(null==e?void 0:null===(e3=e.cards)||void 0===e3?void 0:e3.equippedCards,"Total_Damage"),au=null==l?void 0:null===(e4=l.accountOptions)||void 0===e4?void 0:e4[89],ap=null===k.randomList||void 0===k.randomList?void 0:k.randomList[53],ay=+(0,V.bV)(au,ap,2),aT=+(0,V.bV)(au,ap,15),av=(0,ed.gw)(e,l,12),ag=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,ai),aS=(0,ep.F4)(l,null,"TotDmg",ag),aN=(0,m._X)(null==e?void 0:e.talents,1,"CURSE_OF_MR_LOOTY_BOOTY"),aC=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),aR=(0,eC.HQ)(null==l?void 0:null===(e6=l.divinity)||void 0===e6?void 0:e6.deities,"Flutterbis"),aI=(0,eC.HQ)(null==l?void 0:null===(e7=l.divinity)||void 0===e7?void 0:e7.deities,"Kattlecruk"),aw=tS*(1+tN/100)*(1+tC/100)*(1+(tR+(tI+(Math.max(0,tw-10)*tE+Math.floor(Math.max(0,(null==e?void 0:e.level)-200)/50)*tF)))/100)*(1+(tq+(tP+(tD+tA)+tQ)+(tB+(tH+(tK+tY))))/100)*(1+(tZ+tV+(tz+(tX+(tM+(tO+(tj*Math.floor(Math.max(ty,tv)/250)+tJ*Math.floor(tT/250)+(t$*Math.floor(tf/250)+t0)))))))/100)*(1+(t1+(t2+(t5+t3+t4))+(t9+(t8+as)+(tk+tW)))/100)*(1+(am+a_)/100)*(1+(20*ay+40*aT+(av+aS)+2*(0,eN.k6)(null==l?void 0:l.achievements,58)+3*(0,eN.k6)(null==l?void 0:l.achievements,59)+(5*(0,eN.k6)(null==l?void 0:l.achievements,60)+5*(0,eN.k6)(null==l?void 0:l.achievements,62))+2*(0,eN.k6)(null==l?void 0:l.achievements,119)+3*(0,eN.k6)(null==l?void 0:l.achievements,120)+(5*(0,eN.k6)(null==l?void 0:l.achievements,121)+2*(0,eN.k6)(null==l?void 0:l.achievements,185)+3*(0,eN.k6)(null==l?void 0:l.achievements,186)+(5*(0,eN.k6)(null==l?void 0:l.achievements,187)+((0,eN.k6)(null==l?void 0:l.achievements,240)+(0,eN.k6)(null==l?void 0:l.achievements,280))+3*(0,eN.k6)(null==l?void 0:l.achievements,297)+2*(0,eN.k6)(null==l?void 0:l.achievements,303)+(aR+aI))))/100)*Math.max((1-aN/100)*(1-aC/100)*Math.max(.01,1-(t6+t7)/100),.05);return 100{var y,h,g,E,b,L,j,ee,ea,el,ec,em;let ed=(0,m._X)(null==e?void 0:e.talents,1,"VEINS_OF_THE_INFERNAL"),ep=(0,V.Wk)(l,"chopping"),ey=(0,m._X)(null==e?void 0:e.talents,1,"CHOPPIN_IT_UP_EZ",!0),eh=(0,m._X)(null==e?void 0:e.talents,2,"SKILLAGE_DAMAGE"),eT=null!==(em=Math.min(...(null===(h=Object.entries((null==e?void 0:e.skillsInfo)||{}))||void 0===h?void 0:null===(y=h.filter(e=>{let[t,{index:l}]=e;return l<9}))||void 0===y?void 0:y.map(e=>{let[t,{level:l}]=e;return l}))||[]))&&void 0!==em?em:0,ef=(0,m._X)(null==e?void 0:e.talents,2,"APOCALYPSE_ZOW"),ev=(null==e?void 0:null===(E=e.zow)||void 0===E?void 0:null===(g=E.finished)||void 0===g?void 0:g[0])+1||0,eg=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],eS=(0,m._X)(null==e?void 0:e.talents,2,"PRECISION_POWER"),eN=u.accuracy>=(null==eg?void 0:eg.Defence)*2.25?(null==l?void 0:null===(b=l.refinery)||void 0===b?void 0:b.totalLevels)*eS:0,eR=null==l?void 0:null===(j=l.alchemy)||void 0===j?void 0:null===(L=j.vials)||void 0===L?void 0:L.reduce((e,t)=>{let{level:l}=t;return e+(l>3?1:0)},0),eI=(0,m._X)(null==e?void 0:e.talents,2,"VIRILE_VIALS"),ew=null==l?void 0:null===(ee=l.looty)||void 0===ee?void 0:ee.lootedItems,eE=(0,m._X)(null==e?void 0:e.talents,2,"LOOTY_MC_SHOOTY"),eF=(0,eo.MH)(null==l?void 0:l.stamps),eP=(0,m._X)(null==e?void 0:e.talents,2,"PAPERWORK,_GREAT..."),eD=(0,m._X)(null==e?void 0:e.talents,2,"SPEEDNA"),eA=eD*Math.floor((u.movementSpeed/100-1)/.15),eL=(0,m._X)(null==e?void 0:e.starTalents,null,"DUNGEONIC_DAMAGE"),ex=eL*(0,e_.lavaLog)(null==l?void 0:null===(ea=l.accountOptions)||void 0===ea?void 0:ea[71]),eU=(0,V.fe)(l,0),eQ=eU?(0,eC.kI)(e,l,2):(null==e?void 0:e.linkedDeity)===2?null==e?void 0:e.deityMinorBonus:(null==e?void 0:e.secondLinkedDeityIndex)===2?null==e?void 0:e.secondDeityMinorBonus:0,eG=(0,V.tE)("Golden_Kebabs",e,l)||1,eB=d*(1+ed*((null==e?void 0:null===(ec=e.skillsInfo)||void 0===ec?void 0:null===(el=ec.smithing)||void 0===el?void 0:el.level)/12)/100)*(1+(ey*Math.floor(ep/25)+(eh*Math.floor(eT/5)+ef*ev+eN+eI*eR+(eE*ew/50+eP*eF/10)+eA+ex+eQ))/100)*(1===eG?eG:1+eG/100);return 100{var y,h,g,E;let b=(0,el.U6)(null==l?void 0:l.statues,"StatueG23",null==e?void 0:e.talents),L=(0,m._X)(null==e?void 0:e.talents,0,"MEAT_SHANK"),k=(0,m._X)(null==e?void 0:e.talents,0,"OVERCLOCKED_ENERGY"),V=(null==l?void 0:null===(h=l.bribes)||void 0===h?void 0:null===(y=h[20])||void 0===y?void 0:y.done)?null==l?void 0:null===(E=l.bribes)||void 0===E?void 0:null===(g=E[20])||void 0===g?void 0:g.value:0,j=(0,eo.mV)(l,"Total_Damage");return 1+(Math.pow(d,.7)+(V+(j+b+0)+((0,e_.lavaLog)(u.maxHp)*L+(0,e_.lavaLog)(u.maxMp)*k)))/100},getBaseDamage=(e,t,l,d,h)=>{var L,j,ea,ec,em,ed,ep,ey,eh,eT;let ef=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ev=(0,m._X)(null==e?void 0:e.talents,1,"CARRY_A_BIG_STICK"),eg=(0,m._X)(null==e?void 0:e.talents,1,"HIGH_POLYMER_LIMBS"),eS=(0,m._X)(null==e?void 0:e.talents,1,"POWER_OVERWHELMING"),eN=(0,m._X)(null==e?void 0:e.talents,0,"SHARPENED_AXE"),eC=getWeaponPower(e,t,l),eR=null!==(eT=null===(L=(0,ee.d)(null==l?void 0:null===(j=l.arcade)||void 0===j?void 0:j.shop,"Base_Damage"))||void 0===L?void 0:L.bonus)&&void 0!==eT?eT:0,eI=(0,V.tE)("Golden_Nomwich",e,l),ew=(0,eo.mV)(l,"Base_Damage"),eE=(0,u.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",0),eF=(0,E.zi)(e,16,l),eP=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ea=k.bonuses.etcBonuses)||void 0===ea?void 0:ea[16]),eD=(0,el.U6)(null==l?void 0:l.statues,"StatueG1",null==e?void 0:e.talents),eA=(0,g.om)(null==l?void 0:null===(ec=l.alchemy)||void 0===ec?void 0:ec.bubbles,"power","BIG_MEATY_CLAWS",!1,"strength"===ef),eL=(0,g.om)(null==l?void 0:null===(em=l.alchemy)||void 0===em?void 0:em.bubbles,"quicc","QUICK_SLAP",!1,"agility"===ef),ex=(0,g.om)(null==l?void 0:null===(ed=l.alchemy)||void 0===ed?void 0:ed.bubbles,"high-iq","NAME_I_GUESS",!1,"wisdom"===ef),eU=(0,y.OK)(null==e?void 0:null===(ep=e.cards)||void 0===ep?void 0:ep.equippedCards,"Base_Damage"),eQ=(0,g.Vq)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:null===(ey=eh.p2w)||void 0===ey?void 0:ey.sigils,"PLUNGING_SWORD"),eG=Math.pow((eC*(1+(ev+(eg+eS))/100)+eN)/3,2)+(h+eI)+eR+(ew+(eF+eP)+eD+(eE+(eA*(0,e_.lavaLog)(Math.max(d.maxHp-250,1))+eL*(Math.max(d.movementSpeed/100-1.1,0)/.25)+(ex*(0,e_.lavaLog)(Math.max(d.maxMp-150,1))+(eU+eQ)))));eG>4e3&&(eG=4e3+Math.max(Math.pow(eG-4e3,.91),0)),eG>15e3&&(eG=15e3+Math.max(Math.pow(eG-15e3,.84)));let eB=(0,V.sU)(e,l,"BaseDmgBoosts");return{baseDamage:eG+=eB}},getAccuracy=(e,t,l,h)=>{var b,L,k,ea,e_,ec,ey,eh,eT,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF;let eP={strength:"wisdom",agility:"strength",wisdom:"agility",luck:"luck"},eD=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eA=null==eP?void 0:eP[eD],eL=(0,g.iu)(null==l?void 0:null===(b=l.alchemy)||void 0===b?void 0:b.vials,"baseACC"),ex=(0,u.xV)(null==e?void 0:e.postOffice,"Box_of_Unwanted_Stats",0),eU=(0,y.OK)(null==e?void 0:null===(L=e.cards)||void 0===L?void 0:L.equippedCards,"Base_accuracy"),eQ=(0,E.zi)(e,28,l),eG=(0,V.tE)("Butter_Bar",e,l)||0,eB=(0,eo.mV)(l,"Base_Accuracy"),eM=(0,g.om)(null==l?void 0:null===(k=l.alchemy)||void 0===k?void 0:k.bubbles,"quicc","SHAQURACY",!1,"agility"===eD),eO=(0,y.OK)(null==e?void 0:null===(ea=e.cards)||void 0===ea?void 0:ea.equippedCards,"Total_Accuracy"),ek=(null==e?void 0:null===(ec=e.cards)||void 0===ec?void 0:null===(e_=ec.cardSet)||void 0===e_?void 0:e_.rawName)==="CardSet4"?null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:null===(ey=eh.cardSet)||void 0===ey?void 0:ey.bonus:0,eW=(0,m.eZ)(null==e?void 0:e.activeBuffs,"EXTENDO_RANGEO"),eH=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),eK=(0,j.o9)(e,l,"Accuracy"),eY=(0,el.U6)(null==l?void 0:l.statues,"StatueG15",null==e?void 0:e.talents),eZ=null===(eT=(0,ee.d)(null==l?void 0:null===(ef=l.arcade)||void 0===ef?void 0:ef.shop,"Total_Accuracy"))||void 0===eT?void 0:eT.bonus,eV=(0,d.Qo)(null==l?void 0:null===(ev=l.dungeons)||void 0===ev?void 0:ev.upgrades,"Accuracy"),ez=(null==l?void 0:null===(eS=l.bribes)||void 0===eS?void 0:null===(eg=eS[21])||void 0===eg?void 0:eg.done)?null==l?void 0:null===(eR=l.bribes)||void 0===eR?void 0:null===(eN=eR[21])||void 0===eN?void 0:eN.value:0,eX=(0,m._X)(null==e?void 0:e.starTalents,null,"TIPTOE_QUICKNESS",!0),ej=null===(eI=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Precision",l))||void 0===eI?void 0:eI.bonus,eJ=null===(ew=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===ew?void 0:ew.curse,e$=null===(eE=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===eE?void 0:eE.curse,e0=(0,ed.gw)(e,l,2),e1=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),e2=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,e1),e5=(0,ep.F4)(l,null,"TotAcc",e2),e3=(0,V.fe)(l,0),e4=e3?(0,eC.kI)(e,l,0):(null==e?void 0:e.linkedDeity)===0?null==e?void 0:e.deityMinorBonus:0,e6=(null==e?void 0:null===(eF=e.stats)||void 0===eF?void 0:eF[eA])*(1+eM/100)*(1+(eW+(eO+(eK+(eH+(eY+(eZ+(eV+ez)))))))/100);return h/100>1.99&&(e6*=1+eX/100),e6=(Math.pow(e6/4,1.4)+(e6+(2+eL+(ex+(eU+eQ+eG)+eB))))*(1+(e6+2*ek)/200)*Math.max(.1,1+(ej-eJ-e$)/100)*(1+(e0+e5)/100)*(1+e4/100)},getMaxMp=(e,t,l)=>{var d,h,g;let E=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Base_MP"),b=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Total_MP"),L=(0,eo.mV)(l,"Base_MP"),k=(0,m._X)(null==e?void 0:e.talents,0,"MANA_BOOSTER"),V=(0,u.xV)(null==e?void 0:e.postOffice,"Magician_Starterpack",0),j=(0,u.xV)(null==e?void 0:e.postOffice,"Magician_Starterpack",1),ee=(0,m._X)(null==e?void 0:e.talents,1,"MANA_OVERDRIVE"),ea=(0,m._X)(null==e?void 0:e.talents,1,"HEMA_OVERDRIVE"),el=10+E+0+L+(k+((null==e?void 0:null===(g=e.stats)||void 0===g?void 0:g.wisdom)+V));return el*((1+(ee+ea)/100)*(1+(j+b)/100))},getMaxHp=(e,t,l)=>{var d,h,g,ee,ea;let e_=(0,V.sU)(e,l,"HpBaseBoosts"),em=(0,el.U6)(null==l?void 0:l.statues,"StatueG5",null==e?void 0:e.talents),ed=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Base_HP"),ep=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Total_HP"),ey=(0,eo.mV)(l,"Base_HP"),eh=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",0),eT=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",1),ef=(0,m._X)(null==e?void 0:e.talents,0,"HEALTH_BOOSTER"),ev=(0,m._X)(null==e?void 0:e.starTalents,null,"UBERCHARGED_HEALTH"),eg=(0,m._X)(null==e?void 0:e.talents,1,"STRENGTH_IN_NUMBERS"),eS=(0,m._X)(null==e?void 0:e.talents,1,"HEALTH_OVERDRIVE"),eN=(0,m._X)(null==e?void 0:e.talents,1,"HEMA_OVERDRIVE"),eC=(0,m.eZ)(null==e?void 0:e.activeBuffs,"NO_PAIN_NO_GAIN"),eR=(0,j.o9)(e,l,"Total_HP"),eI=(0,V.jU)(t,"Squire"),ew=(0,m._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),eE=(0,L.D)(k.classFamilyBonuses,"TOTAL_HP",eI),eF=eE*((0,m.gW)(null==e?void 0:e.class,"Squire")&&(null==e?void 0:e.level)===eI&&ew>0?1+ew/100:1),eP=(0,E.zi)(e,15,l),eD=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(g=k.bonuses.etcBonuses)||void 0===g?void 0:g[15]),eA=(0,ec.wt)(null==l?void 0:l.shrines,1,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(ee=l.sailing)||void 0===ee?void 0:ee.artifacts),eL=(0,V.tE)("Golden_Jam",e,l)||1,ex=15+ed+0+(ey+(e_+em))+(eh+(ef+ev)+Math.pow((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.strength)*(1+eg/100),1.05));return ex*((1+(eS+(eN+eP+eD))/100)*(1+eA/100)*(1===eL?eL:1+eL/100)*(1+eT/100)*(1-eC/100)*(1+(eF+ep)/100)*(1+eR/100))},getWeaponPower=(e,t,l)=>{var ea,el,eo,ec,em,ep,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD,eA,eL,ex;let eU=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eQ=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",0),eG=(0,d.Qo)(null==l?void 0:null===(ea=l.dungeons)||void 0===ea?void 0:ea.upgrades,"Weapon_Power"),eB=(0,y.OK)(null==e?void 0:null===(el=e.cards)||void 0===el?void 0:el.equippedCards,"Weapon_Power"),eM=(0,y.OK)(null==l?void 0:l.cards,"Weapon_Power_(Passive)"),eO=(0,h._r)(null==l?void 0:null===(eo=l.guild)||void 0===eo?void 0:eo.guildBonuses,3),ek=(0,g.Vq)(null==l?void 0:null===(em=l.alchemy)||void 0===em?void 0:null===(ec=em.p2w)||void 0===ec?void 0:ec.sigils,"DUSTER_STUDS"),eW=(0,E.zi)(e,"Weapon_Power",l),eH=(0,b.gY)(null==e?void 0:e.obols,"Weapon_Power"),eK=(0,ed.gw)(e,l,19),eY="strength"===eU?(0,g.om)(null==l?void 0:null===(ep=l.alchemy)||void 0===ep?void 0:ep.bubbles,"power","SPEAR_POWAH",!1,"strength"===eU):0,eZ="agility"===eU?(0,g.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","BOW_POWER",!1,"agility"===eU):0,eV="wisdom"===eU||"luck"===eU?(0,g.om)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:eh.bubbles,"high-iq","WAND_PAWUR",!1,"wisdom"===eU):0,ez=(0,g.iu)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.vials,"WeaponPOW"),eX=(0,V.jU)(t,"Barbarian"),ej=(0,L.D)(k.classFamilyBonuses,"WEAPON_POWER",eX),eJ=(0,j.o9)(e,l,"Weapon_Power"),e$=null===(ef=(0,ee.d)(null==l?void 0:null===(ev=l.arcade)||void 0===ev?void 0:ev.shop,"Weapon_Power"))||void 0===ef?void 0:ef.bonus,e0=(0,m._X)(null==e?void 0:e.talents,3,"TOUGH_STEAKS"),e1=(0,m._X)(null==e?void 0:e.talents,3,"GAMER_STRENGTH"),e2=Math.round(10*(0,m._X)(null==e?void 0:e.talents,3,"CREW_ROWING_STRENGTH"))/10,e5=(0,m._X)(null==e?void 0:e.talents,3,"BELIEVER_STRENGTH"),e3=(0,m._X)(null==e?void 0:e.talents,3,"ANIMALISTIC_FEROCITY"),e4=(0,m._X)(null==e?void 0:e.talents,3,"WIRED_IN_POWER"),e6=null!==(ex=null==l?void 0:null===(eN=l.breeding)||void 0===eN?void 0:null===(eS=eN.storedPets)||void 0===eS?void 0:null===(eg=eS[0])||void 0===eg?void 0:eg.power)&&void 0!==ex?ex:0,e7=(0,V.jU)(t,"Beginner"),e9=(0,m._X)(null==e?void 0:e.starTalents,null,"BEGINNER_BEST_CLASS"),e8=(0,V.sU)(e,l,"WeaponPowerBoosts");return 5+eQ+eG+e8+(eB+eM+(eO+ek))+((eW+eH)*(1+(eK+(eY+(eZ+eV)))/100)+Math.min(e9,Math.floor(e7/10))+(ez+(ej+(eJ+(e$+(e0*Math.floor((null==e?void 0:null===(eR=e.skillsInfo)||void 0===eR?void 0:null===(eC=eR.cooking)||void 0===eC?void 0:eC.level)/10)+(e1*Math.floor((null==e?void 0:null===(ew=e.skillsInfo)||void 0===ew?void 0:null===(eI=ew.gaming)||void 0===eI?void 0:eI.level)/10)+(e2*Math.floor((null==e?void 0:null===(eF=e.skillsInfo)||void 0===eF?void 0:null===(eE=eF.sailing)||void 0===eE?void 0:eE.level)/10)+e5*Math.floor((null==e?void 0:null===(eD=e.skillsInfo)||void 0===eD?void 0:null===(eP=eD.divinity)||void 0===eP?void 0:eP.level)/10)))+(e3*(0,e_.lavaLog)(e6)+e4*Math.floor((null==e?void 0:null===(eL=e.skillsInfo)||void 0===eL?void 0:null===(eA=eL.laboratory)||void 0===eA?void 0:eA.level)/10))))))))},getCritDamage=(e,t,l)=>{var u,d,h,L,V,j,ee,ea;let e_=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ec=(0,m._X)(null==e?void 0:e.talents,0,"FARSIGHT"),ed=(0,m._X)(null==e?void 0:e.talents,0,"CRITIKILL"),ep=(0,m._X)(null==e?void 0:e.talents,0,"KNUCKLEBUSTER"),ey=(0,m.eZ)(null==e?void 0:e.activeBuffs,"DIVINE_INTERVENTION"),eh=(0,g.om)(null==l?void 0:null===(u=l.alchemy)||void 0===u?void 0:u.bubbles,"power","BAPPITY_BOOPITY",!1,"strength"===e_),eT=(0,eo.mV)(l,"Critical_Damage"),ef=(0,y.OK)(null==e?void 0:null===(d=e.cards)||void 0===d?void 0:d.equippedCards,"Critical_Damage"),ev=null===(h=(0,em.Y0)(null==e?void 0:e.activePrayers,"Circular_Criticals",l))||void 0===h?void 0:h.curse,eg=(0,E.zi)(e,22,l),eS=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(L=k.bonuses.etcBonuses)||void 0===L?void 0:L[22]),eN=(0,el.U6)(null==l?void 0:l.statues,"StatueG6",null==e?void 0:e.talents);return 1.2+(ed+eN+(ec+(eT+(100*(1e3>(null==e?void 0:null===(V=e.stats)||void 0===V?void 0:V.strength)?(Math.pow((null==e?void 0:null===(j=e.stats)||void 0===j?void 0:j.strength)+1,.37)-1)/40:((null==e?void 0:null===(ee=e.stats)||void 0===ee?void 0:ee.strength)-1e3)/((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.strength)+2500)*.5+.255)/1.8+(eh+(ef-ev+(ep+(eg+eS+ey))))))))/100},getCritChance=(e,t,l,d)=>{var h,L,V,ee,ea,eo,ec,ey,eh,eT,ef,ev;let eg=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],eS=(0,y.OK)(null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.equippedCards,"Critical_Chance"),eC=(0,y.OK)(null==l?void 0:l.cards,"Critical_Chance_(Passive)"),eR=(null==e?void 0:null===(V=e.cards)||void 0===V?void 0:null===(L=V.cardSet)||void 0===L?void 0:L.rawName)==="CardSet6"?null==e?void 0:null===(ea=e.cards)||void 0===ea?void 0:null===(ee=ea.cardSet)||void 0===ee?void 0:ee.bonus:0,eI=null===(eo=(0,em.Y0)(null==e?void 0:e.activePrayers,"Circular_Criticals",l))||void 0===eo?void 0:eo.bonus,ew=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),eE=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,ew),eF=(0,ep.F4)(l,null,"Crit",eE),eP=(0,el.U6)(null==l?void 0:l.statues,"StatueG14",null==e?void 0:e.talents),eD=(0,m._X)(null==e?void 0:e.starTalents,null,"MEGA_CRIT"),eA=(0,m._X)(null==e?void 0:e.starTalents,null,"OVERACCURATE_CRIT"),eL=(0,j.o9)(e,l,"Crit_Chance"),ex=(0,E.zi)(e,23,l),eU=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ec=k.bonuses.etcBonuses)||void 0===ec?void 0:ec[23]),eQ=(0,m._X)(null==e?void 0:e.talents,0,"I_SEE_YOU"),eG=(0,m._X)(null==e?void 0:e.talents,0,"FARSIGHT",!0),eB=(0,eN.k6)(null==l?void 0:l.achievements,184),eM=(0,u.xV)(null==e?void 0:e.postOffice,"Civil_War_Memory_Box",2),eO=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ek=Math.floor(null==d?void 0:d.accuracy),eW=(0,e_.lavaLog)(ek-1.5*(null==eO?void 0:eO.Defence)),eH=(0,g.om)(null==l?void 0:null===(ey=l.alchemy)||void 0===ey?void 0:ey.bubbles,"quicc","CHEAP_SHOT",!1,"agility"===eg);return 5+eR+(eS+Math.min(eC,50)+(eD+(ex+eU)+(eI+eF+eP+eL)))+(eQ+(eG+5*eB+(eM+eA*eW)+((1e3>(null==e?void 0:null===(eh=e.stats)||void 0===eh?void 0:eh.agility)?(Math.pow((null==e?void 0:null===(eT=e.stats)||void 0===eT?void 0:eT.agility)+1,.37)-1)/40:((null==e?void 0:null===(ef=e.stats)||void 0===ef?void 0:ef.agility)-1e3)/((null==e?void 0:null===(ev=e.stats)||void 0===ev?void 0:ev.agility)+2500)*.5+.255)/2.3*100+eH)))},getHitChance=(e,t,l,m)=>{let u=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],d=(null==m?void 0:m.accuracy)/(null==u?void 0:u.Defence);return .5<=d?Math.floor(Math.min(100*(.95*d-.425),100)):0},getKillsPerHour=(e,t,l,d)=>{var y,h,L,V,j,ee,ea,el;let eo=getTalentEffectOnKills(e,l,"D"),e_=getTalentEffectOnKills(e,l,"K"),ec=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],em=(null==e?void 0:null===(h=e.equipment)||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y.Speed)||0,ey=(0,E.zi)(e,56,l),eh=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(L=k.bonuses.etcBonuses)||void 0===L?void 0:L[56]),eT=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ef=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,eT),ev=(0,ep.F4)(l,null,"AtkSpd",ef),eg=(0,ed.gw)(e,l,4),eS=(0,g.om)(null==l?void 0:null===(V=l.alchemy)||void 0===V?void 0:V.bubbles,"high-iq","HYPERSWIFT",!1,"wisdom"===ec),eN=(0,u.xV)(null==e?void 0:e.postOffice,"Deaths_Storage_Unit",1),eC=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],eR=getMonsterHpTotal(null==eC?void 0:eC.MonsterHPTotal,e,l),eI=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(ee=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===ee?void 0:null===(j=ee[1])||void 0===j?void 0:j[0],ew=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(el=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===el?void 0:null===(ea=el[1])||void 0===ea?void 0:ea[1],eE=Math.min(Math.max(e_,1),2.2),eF=Math.max(.1,(1+(10-em)/5)/(1+(ey+eh+(ev+(eg+(eS+eN))))/100)),eP=(null==d?void 0:d.maxDamage)*(d.mastery+(1-d.mastery)/2)*(1+(d.critDamage-1)*(d.critChance/100))*(d.hitChance/100)*Math.max(eo,1),eD=0{var u,d;let y=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],h=null==e?void 0:null===(u=e.talentsLoadout)||void 0===u?void 0:u.reduce((e,t)=>(null==t?void 0:t.AFKactivity)!==0||(null==t?void 0:t[l])===1?e:e*((null==t?void 0:t[l])||1)*(1+Math.min(1,(null==t?void 0:t.baseLevel)/((null==t?void 0:t.baseLevel)+100))),1),E=(0,m._X)(null==e?void 0:e.starTalents,null,"ATTACKS_ON_SIMMER"),b=(0,m._X)(null==e?void 0:e.talents,1,"TWO_PUNCH_MAN"),L=(0,m._X)(null==e?void 0:e.talents,2,"TRIPLE_JAB"),k=(0,m._X)(null==e?void 0:e.talents,1,"DOUBLE_STRIKE"),V=(0,m._X)(null==e?void 0:e.talents,1,"HAVE_ANOTHER!"),j=(0,m._X)(null==e?void 0:e.talents,2,"HAVE_ANOTHER..._AGAIN!"),ee=(0,g.om)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.bubbles,"high-iq","ALL_FOR_KILL",!1,"wisdom"===y);return"D"===l?h*(1+(Math.min(E,25)+Math.min(ee,25))/100)*(1+(b+(L+(k+(V+j))))/100):h},getMonsterHpTotal=(e,t,l)=>{var m,u,d;let y=null===(m=(0,em.Y0)(null==t?void 0:t.activePrayers,"Big_Brain_Time",l))||void 0===m?void 0:m.curse,h=null===(u=(0,em.Y0)(null==t?void 0:t.activePrayers,"Midas_Minded",l))||void 0===u?void 0:u.curse,g=null===(d=(0,em.Y0)(null==t?void 0:t.activePrayers,"Jawbreaker",l))||void 0===d?void 0:d.curse;return e*(1+(y+(h+g))/100)},getSurvivability=(e,t,l,d)=>{var y,h;let g=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],E=getMonsterDamage(g,e,l,d),b=(0,m._X)(null==e?void 0:e.talents,1,"MANA_IS_LIFE");b&&(E/=1+b/100);let L=(0,V.Zf)(e,l,"Health"),j=(0,m._X)(null==e?void 0:e.starTalents,null,"GOBLET_OF_HEMOGLOBIN"),ee=L+(null==d?void 0:d.survivabilityMath)*(j/100)*(null==d?void 0:d.maxHp),ea=null===k.mapDetails||void 0===k.mapDetails?void 0:null===(h=k.mapDetails[null==e?void 0:e.mapIndex])||void 0===h?void 0:null===(y=h[1])||void 0===y?void 0:y[2],el=E*ea-ee;if(!(el>0))return 100;{el=(null==d?void 0:d.maxHp)/el;let t=(0,m._X)(null==e?void 0:e.starTalents,null,"BORED_TO_DEATH"),l=(0,u.xV)(null==e?void 0:e.postOffice,"Locally_Sourced_Organs",2);return Math.min(Math.round(100*(el/(el+(0===t?600/(1+Math.min(50,Math.max(0,l)/100)):Math.max(t/(1+Math.min(50,Math.max(0,l))/100),100))/3600))),100)}},getMonsterDamage=(e,t,l,u)=>{var d,y,h;let{Damages:g}=e||{},E=(null==g?void 0:g[0])-2.5*Math.pow(null==u?void 0:null===(d=u.defence)||void 0===d?void 0:d.value,.8),b=Math.pow(null==u?void 0:null===(y=u.defence)||void 0===y?void 0:y.value,1.5)/100,L=E/Math.max(1+(null==u?void 0:null===(h=u.defence)||void 0===h?void 0:h.value)/Math.max(null==g?void 0:g[0],1)*b,1),k=(0,m.eZ)(null==t?void 0:t.activeBuffs,"NO_PAIN_NO_GAIN"),V=(0,m._X)(null==t?void 0:t.talents,1,"BRICKY_SKIN");return k&&(L*=2),V&&(L*=Math.max(.05,1-V/100)),L<.5?0:Math.max(Math.ceil(L),0)},getPlayerDefence=(e,t,l)=>{var h,L,ea,e_,ey,eh,eT,ef,ev,eg,eS,eN,eR,eI,ew,eE,eF,eP,eD,eA;let eL=null===m.nl||void 0===m.nl?void 0:m.nl[null==e?void 0:e.class],ex=(0,u.xV)(null==e?void 0:e.postOffice,"Box_of_Unwanted_Stats",1),eU=(null==e?void 0:null===(L=e.cards)||void 0===L?void 0:null===(h=L.cardSet)||void 0===h?void 0:h.rawName)==="CardSet4"?null==e?void 0:null===(e_=e.cards)||void 0===e_?void 0:null===(ea=e_.cardSet)||void 0===ea?void 0:ea.bonus:0,eQ=(0,y.OK)(null==e?void 0:null===(ey=e.cards)||void 0===ey?void 0:ey.equippedCards,"Base_Defence"),eG=(0,y.OK)(null==e?void 0:null===(eh=e.cards)||void 0===eh?void 0:eh.equippedCards,"Defence_from_Equipment"),eB=(0,g.om)(null==l?void 0:null===(eT=l.alchemy)||void 0===eT?void 0:eT.bubbles,"power","FMJ",!1,"strength"===eL),eM=(0,eo.mV)(l,"Base_Defence"),eO=(0,E.zi)(e,"Defence",l,!0),ek=(0,E.zi)(e,"Defence",l),eW=(0,b.gY)(null==e?void 0:e.obols,"Defence"),eH=(0,E.zi)(e,50,l),eK=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ef=k.bonuses.etcBonuses)||void 0===ef?void 0:ef[50]),eY=(0,E.zi)(e,7,l),eZ=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ev=k.bonuses.etcBonuses)||void 0===ev?void 0:ev[7]),eV=null!==(eA=null===(eg=(0,ee.d)(null==l?void 0:null===(eS=l.arcade)||void 0===eS?void 0:eS.shop,"Base_Defence"))||void 0===eg?void 0:eg.bonus)&&void 0!==eA?eA:0,ez=(0,el.U6)(null==l?void 0:l.statues,"StatueG8",null==e?void 0:e.talents),eX=(0,ed.c9)(null==l?void 0:l.lab.labBonuses,8),ej=(0,ed.pc)(null==l?void 0:l.lab.jewels,16,eX),eJ=(0,ep.F4)(l,null,"Def",ej),e$=(0,m._X)(null==e?void 0:e.talents,2,"BRICKY_SKIN",!0),e0=(0,m._X)(null==e?void 0:e.talents,0,"BUCKLERED_UP"),e1=(0,ec.wt)(null==l?void 0:l.shrines,1,null==e?void 0:e.mapIndex,null==l?void 0:l.cards,null==l?void 0:null===(eN=l.sailing)||void 0===eN?void 0:eN.artifacts),e2=(null==l?void 0:null===(eI=l.bribes)||void 0===eI?void 0:null===(eR=eI[22])||void 0===eR?void 0:eR.done)?null==l?void 0:null===(eE=l.bribes)||void 0===eE?void 0:null===(ew=eE[22])||void 0===ew?void 0:ew.value:0,e5=null===(eF=(0,em.Y0)(null==e?void 0:e.activePrayers,"Beefy_For_Real",l))||void 0===eF?void 0:eF.curse,e3=null===(eP=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===eP?void 0:eP.curse,e4=(0,V.tE)("Golden_Meat_Pie",e,l),e6=(0,j.o9)(e,l,"Defence"),e7=(0,m.eZ)(null==e?void 0:e.activeBuffs,"BALANCED_SPIRIT"),e9=(0,d.Qo)(null==l?void 0:null===(eD=l.dungeons)||void 0===eD?void 0:eD.upgrades,"Defence"),e8=(0,ed.gw)(e,l,0),te=(0,V.fe)(l,0),ti=te?(0,eC.kI)(e,l,0):(null==e?void 0:e.linkedDeity)===0?null==e?void 0:e.deityMinorBonus:0,tl=Math.floor(ex+eQ+Math.min(null==e?void 0:e.level,eB)+(eM+(eH+eK)+eV+ez)+((ek+eW+eO)*(1+(eB+eG)/100)+(eJ+e$)))*(1+(e1+e2)/100)*Math.max(.05,1-(e5+e3)/100)*(1+(e4+e0+(eY+eZ+(e6+(e7+(eU+(e9+e8))))))/100)*(1+ti/100);return{value:tl,breakdown:[{name:"Post Office",value:ex},{name:"Card Bonus",value:eQ+eG},{name:"Cardset Bonus",value:eU},{name:"Flurbo Bonus",value:e9},{name:"Minor Divinity Bonus",value:ti},{name:"Chip Bonus",value:e8},{name:"Bubble Bonus",value:eB},{name:"Stamp Bonus",value:eM},{name:"Equip Base Defence ",value:eH+eK},{name:"Equip Defence",value:ek+eW+eO},{name:"Equip % Defence",value:eY+eZ},{name:"Arcade Bonus",value:eV},{name:"Statue Bonus",value:ez},{name:"Meal Bonus",value:eJ},{name:"Shrine Bonus",value:e1},{name:"Bribe Bonus",value:e2},{name:"Prayers",value:e5+e3},{name:"Golden Food",value:e4},{name:"Talents Bonus",value:e$+e0},{name:"Active Talents Bonus",value:e7}]}},getKillPerKill=(e,t,l,u)=>{var d,y,h,b,L,j,ee,ea,el;let eo=(0,E.zi)(e,68,l),e_=(0,E.zi)(e,69,l),ec=(0,E.zi)(e,70,l),ep=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ey=getMonsterHpTotal(null==ep?void 0:ep.MonsterHPTotal,e,l),eh=(null==u?void 0:u.maxDamage)>=2*ey&&.5<(null==l?void 0:null===(d=l.towers)||void 0===d?void 0:d.towersTwo)?(null==u?void 0:u.accuracy)>1.5*(null==ep?void 0:ep.Defence):0,eT=(0,ed.c9)(null==l?void 0:null===(y=l.lab)||void 0===y?void 0:y.labBonuses,4),ef=0;100<=(null==e?void 0:e.mapIndex)&&150>(null==e?void 0:e.mapIndex)?ef=eo:150<=(null==e?void 0:e.mapIndex)&&200>(null==e?void 0:e.mapIndex)?ef=e_:50<=(null==e?void 0:e.mapIndex)&&100>(null==e?void 0:e.mapIndex)&&(ef=ec);let ev=(0,V.fe)(l,0)||(null==e?void 0:e.linkedDeity)===2||(null==e?void 0:e.secondLinkedDeityIndex)===2?1:0,eg=(0,m._X)(null==e?void 0:e.talents,3,"CHARRED_SKULLS"),eS=(0,m._X)(null==e?void 0:e.talents,3,"STACKED_SKULLS"),eN=(0,m._X)(null==e?void 0:e.talents,3,"MEMORIAL_SKULLS"),eC=(0,m._X)(null==e?void 0:e.talents,2,"MONSTER_DECIMATOR"),eR=getMultiKillTotal(e,t,l,u),eI=(0,g.y7)(null==e?void 0:e.equippedBubbles,"quicc","KILL_PER_KILL",l),ew=null===(h=(0,em.Y0)(null==e?void 0:e.activePrayers,"Fibers_of_Absence",l))||void 0===h?void 0:h.bonus;return eh?Math.max(1,eT)*(1+ef/100)*Math.max(1,1+ev)*(1+(eg*((null==e?void 0:null===(b=e.stats)||void 0===b?void 0:b.strength)/1e3)+(eS*((null==e?void 0:null===(L=e.stats)||void 0===L?void 0:L.agility)/1e3)+(eN*((null==e?void 0:null===(j=e.stats)||void 0===j?void 0:j.wisdom)/1e3)+eC))+(eR+(eI+ew)))/100):Math.max(1,eT)*(1+ef/100)*Math.max(1,1+ev)*(1+(eg*((null==e?void 0:null===(ee=e.stats)||void 0===ee?void 0:ee.strength)/1e3)+(eS*((null==e?void 0:null===(ea=e.stats)||void 0===ea?void 0:ea.agility)/1e3)+(eN*((null==e?void 0:null===(el=e.stats)||void 0===el?void 0:el.wisdom)/1e3)+eC))+(eI+ew))/100)},getMultiKillTotal=(e,t,l,d)=>{var h,L,V,ea,el,e_,ec,ep,ey,eT,ev,eg,eC,eR,eI,ew;let eE=(0,j.o9)(e,l,"Total_Multikill"),eF=(0,eS.W)(null==l?void 0:l.saltLick,8),eP=(0,eo.mV)(l,"Base_Overkill"),eD=(0,E.zi)(e,29,l),eA=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(h=k.bonuses.etcBonuses)||void 0===h?void 0:h[29]),eL=null===k.monsters||void 0===k.monsters?void 0:k.monsters[null==e?void 0:e.targetMonster],ex=getMonsterHpTotal(null==eL?void 0:eL.MonsterHPTotal,e,l),eU=1;for(let e=0;e<50;e++)(null==d?void 0:d.maxDamage)>=2*ex*Math.pow(2,e+1)&&(eU=e+2);let eQ=(null==l?void 0:null===(V=l.deathNote)||void 0===V?void 0:null===(L=V[Math.floor((null==e?void 0:e.mapIndex)/50)])||void 0===L?void 0:L.rank)||0,eG=(0,g.iu)(null==l?void 0:null===(ea=l.alchemy)||void 0===ea?void 0:ea.vials,"Overkill"),eB=(0,m.eZ)(null==e?void 0:e.activeBuffs,"VOID_RADIUS"),eM=(0,m.A5)(t,3,"Voidwalker","MASTER_OF_THE_SYSTEM"),eO=null!==(eI=null===(el=(0,ee.d)(null==l?void 0:null===(e_=l.arcade)||void 0===e_?void 0:e_.shop,"Multikill_per_Tier"))||void 0===el?void 0:el.bonus)&&void 0!==eI?eI:0,ek=null!==(ew=null===(ec=(0,eh.YS)(null==l?void 0:null===(ep=l.sailing)||void 0===ep?void 0:ep.artifacts,"Trilobite_Rock"))||void 0===ec?void 0:ec.bonus)&&void 0!==ew?ew:0,eW=(0,m.eZ)(null==e?void 0:e.activeBuffs,"MANA_IS_LIFE","y"),eH=(0,ed.gw)(e,l,14),eK=(0,E.zi)(e,71,l),eY=(0,b.gY)(null==e?void 0:e.obols,null===k.bonuses||void 0===k.bonuses?void 0:null===(ey=k.bonuses.etcBonuses)||void 0===ey?void 0:ey[71]),eZ=(0,y.OK)(null==e?void 0:null===(eT=e.cards)||void 0===eT?void 0:eT.equippedCards,"Multikill_per_tier"),eV=null===(ev=(0,em.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Pain",l))||void 0===ev?void 0:ev.bonus,ez=(0,ef.du)(null==l?void 0:null===(eg=l.breeding)||void 0===eg?void 0:eg.pets,"Multikill_Per_Tier"),eX=(0,u.xV)(null==e?void 0:e.postOffice,"Utilitarian_Capsule",1),ej=(0,g.y7)(null==e?void 0:e.equippedBubbles,"kazam","MR_MASSACRE",l),eJ=(0,eN.k6)(null==l?void 0:l.achievements,148),e$=(0,eN.k6)(null==l?void 0:l.achievements,122),e0=(0,eN.k6)(null==l?void 0:l.achievements,123);return Math.floor(eE+eF+(eP+2*(null==l?void 0:null===(eC=l.towers)||void 0===eC?void 0:eC.towersTwo))+(eD+eA+(Math.min(5,eJ)+(6*e$+2*e0)))+eU*(eQ+(eG+(eB+eM*Math.floor((null==l?void 0:null===(eR=l.accountOptions)||void 0===eR?void 0:eR[158])/5))+(eO+(ek+eW)+(eH+(eK+eY+eZ+(eV+ez)))+(eX+ej)))))}},74629:function(e,t,l){"use strict";l.d(t,{MH:function(){return getEclipseSkullsBonus},WA:function(){return getDeathNote},jS:function(){return getDeathNoteRank},sr:function(){return calcTotalKillsDigits}});var m=l(70473),u=l(67896),d=l(30925);let getDeathNote=(e,t,l)=>{var u;let y=(0,d.tryToParse)(null==e?void 0:e.Ninja),h=null===m.ninjaExtraInfo||void 0===m.ninjaExtraInfo?void 0:null===(u=m.ninjaExtraInfo[30])||void 0===u?void 0:u.split(" "),g=null==y?void 0:y[105],E=null==t?void 0:t.reduce((e,t)=>{let{kills:l}=t;return l&&l.length&&l.forEach((t,l)=>{e[l]=(e[l]||0)+t}),e},[]),b=h.map((e,t)=>({rawName:e,kills:null==g?void 0:g[t]})).reduce((e,t)=>{var u;let{rawName:d,kills:y}=t,h=getDeathNoteRank(l,y,!0);return{rank:((null==e?void 0:e.rank)||0)+h,mobs:[...(null==e?void 0:e.mobs)||[],{rawName:d,displayName:null===m.monsters||void 0===m.monsters?void 0:null===(u=m.monsters[d])||void 0===u?void 0:u.Name,kills:y}]}},{});return m.deathNote.reduce((e,t)=>{var u,d,y;let{rawName:h,world:g}=t,b=null===m.mapEnemies||void 0===m.mapEnemies?void 0:m.mapEnemies[h],L=null==E?void 0:E[b],k=getDeathNoteRank(l,L);return{...e,[g]:{...(null==e?void 0:e[g])||{},rank:((null==e?void 0:null===(u=e[g])||void 0===u?void 0:u.rank)||0)+k,mobs:[...(null==e?void 0:null===(d=e[g])||void 0===d?void 0:d.mobs)||[],{rawName:h,displayName:null===m.monsters||void 0===m.monsters?void 0:null===(y=m.monsters[h])||void 0===y?void 0:y.Name,kills:L}]}}},{miniBosses:b})},getDeathNoteRank=(e,t,l)=>l?100>t?0:250>t?1:1e3>t?2:5e3>t?3:25e3>t?4:1e5>t?5:1e6>t?7:10:25e3>t?0:1e5>t?1:25e4>t?2:5e5>t?3:1e6>t?4:5e6>t?5:1e8>t?7:1e9{var t;let l=(0,u.RB)(null==e?void 0:e.rift,"Eclipse_Skulls");return l?null===(t=Object.entries((null==e?void 0:e.deathNote)||{}))||void 0===t?void 0:t.reduce((e,t)=>{let[l,{mobs:m}]=t,u=null==m?void 0:m.reduce((e,t)=>{let{kills:l}=t;return e+(l>=1e9?1:0)},0);return e+u},0):0},calcTotalKillsDigits=e=>{let t=JSON.parse(JSON.stringify(e));return Object.values(t).reduce((e,t)=>{let{mobs:l}=t,m=l.reduce((e,t)=>{let{kills:l}=t;return e+Math.ceil((0,d.lavaLog)(l))},0);return e+m},0)}},19834:function(e,t,l){"use strict";l.d(t,{HQ:function(){return getGodBlessingBonus},kI:function(){return getMinorDivinityBonus},s8:function(){return getDeityLinkedIndex},wl:function(){return applyGodCost},y0:function(){return getDivinity},zJ:function(){return getGodByIndex}});var m=l(15893),u=l(10924),d=l(88054),y=l(8616);let{tryToParse:h}=l(30925),{gods:g}=l(70473),getDivinity=(e,t,l)=>{let m=h(null==e?void 0:e.Divinity)||(null==e?void 0:e.Divinity);return m?parseDivinity(m,t,l):null},parseDivinity=(e,t,l)=>{let m=null==t?void 0:t.length,u=null==e?void 0:e.slice(12,12+m),d=null==e?void 0:e.slice(28,28+(null==g?void 0:g.length)+1),h=null==e?void 0:e.slice(0,(null==t?void 0:t.length)+1),E=null==e?void 0:e[25],b=E-10,L=null==g?void 0:g.map((e,t)=>{let m=null==d?void 0:d[t],u=1;(0,y.x5)(l,"True_Godly_Blessings")&&(u=1+.05*Math.max(0,b));let h=m*(null==e?void 0:e.blessingMultiplier)*u;return 2===t&&(h=Math.min(h,500)),{...e,rawName:"DivGod".concat(t),level:m,blessingBonus:h}});return{linkedDeities:u,linkedStyles:h,deities:L,blessingLevels:d,unlockedDeities:E,godRank:b<0?0:b}},applyGodCost=e=>{var t,l;return null==e?void 0:null===(l=e.divinity)||void 0===l?void 0:null===(t=l.deities)||void 0===t?void 0:t.map((t,l)=>({...t,cost:getGodCost(t,l,e)}))},getCostToMax=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,u=0;for(let d=e;d0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,d=arguments.length>2?arguments[2]:void 0;if(t<100){var y,h,g,E,b;let e=l*Math.pow(m,t),L=l*Math.pow(m,t+1),k=getCostToMax(t,l,m);if(0===u||8===u||4===u||2===u){let t=null==d?void 0:null===(y=d.gaming)||void 0===y?void 0:y.bits;return{type:"bits",cost:e,nextLevelCost:L,costToMax:k,currency:t}}if(1===u){let t=null==d?void 0:null===(g=d.sailing)||void 0===g?void 0:null===(h=g.lootPile)||void 0===h?void 0:h[0];return{type:"sailingGold",cost:e,nextLevelCost:L,costToMax:k,currency:t}}if(3===u||6===u){let t=null==d?void 0:null===(E=d.currencies)||void 0===E?void 0:E.rawMoney;return{type:"coins",cost:e,nextLevelCost:L,costToMax:k,currency:t}}{let t=null==d?void 0:null===(b=d.atomCollider)||void 0===b?void 0:b.particles;return{type:"particles",cost:e,nextLevelCost:L,costToMax:k,currency:t}}}return{cost:"MAX"}},getGodBlessingBonus=(e,t)=>{var l,m;return null!==(m=null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.blessingBonus)&&void 0!==m?m:0},getGodByIndex=(e,t,l)=>{let m=null==t?void 0:t.find((t,m)=>(null==e?void 0:e[m])===l);return null==m?void 0:m.deityMinorBonus},getDeityLinkedIndex=(e,t,l)=>{var d,y;let h=null==e?void 0:null===(y=e.divinity)||void 0===y?void 0:null===(d=y.linkedDeities)||void 0===d?void 0:d.map((t,m)=>{var d;return l===t||(0,u.fe)(e,0)&&(null==e?void 0:null===(d=e.finishedWorlds)||void 0===d?void 0:d.World4)?m:-1}),g=t.map((t,d)=>{var y;return(0,m.Rp)(t,l)||(0,u.fe)(e,0)&&(null==e?void 0:null===(y=e.finishedWorlds)||void 0===y?void 0:y.World4)?d:-1});return(null==h?void 0:h.map((e,t)=>-1===e&&(null==g?void 0:g[t])!==-1?null==g?void 0:g[t]:e))||[]},getMinorDivinityBonus=(e,t,l,m)=>{var u,y,h,E,b,L,k,V;let j=null==m?void 0:m.find(e=>{var t;return null===(t=e.equippedBubbles)||void 0===t?void 0:t.find(e=>{let{bubbleName:t}=e;return"BIG_P"===t})}),ee=(0,d.y7)(null===(u=j||e||(null==m?void 0:m[0]))||void 0===u?void 0:u.equippedBubbles,"kazam","BIG_P",t),ea=null===(E=e||j||(null==m?void 0:m[0]))||void 0===E?void 0:null===(h=E.skillsInfo)||void 0===h?void 0:null===(y=h.divinity)||void 0===y?void 0:y.level,el=null!=l?l:null==t?void 0:null===(L=t.divinity)||void 0===L?void 0:null===(b=L.linkedDeities)||void 0===b?void 0:b[e.playerId],eo=null==g?void 0:null===(k=g[el])||void 0===k?void 0:k.godIndex,e_=null==g?void 0:null===(V=g[eo])||void 0===V?void 0:V.minorBonusMultiplier;return Math.max(1,ee)*(ea/(60+ea))*e_}},11028:function(e,t,l){"use strict";l.d(t,{IS:function(){return calcHappyHours},Qo:function(){return getDungeonFlurboStatBonus},U4:function(){return getDungeonStatBonus},MR:function(){return getDungeons},he:function(){return getMaxClaimTime},gq:function(){return getSecPerBall}});var m=l(30925),u=l(70473),d=l(1972),y=l(29129),h=l(88054),g=l(9339),E=l(33913),b=l(19013),L=l(13882);function isThursday(e){return(0,L.Z)(1,arguments),4===(0,b.Z)(e).getDay()}var k=l(77349);function getDay(e){return(0,L.Z)(1,arguments),(0,b.Z)(e).getDay()}function nextDay(e,t){(0,L.Z)(2,arguments);var l=t-getDay(e);return l<=0&&(l+=7),(0,k.Z)(e,l)}function nextThursday(e){return(0,L.Z)(1,arguments),nextDay(e,4)}var V=l(7069);function previousDay(e,t){(0,L.Z)(2,arguments);var l=getDay(e)-t;return l<=0&&(l+=7),(0,V.Z)(e,l)}function previousThursday(e){return(0,L.Z)(1,arguments),previousDay(e,4)}var j=l(69119);function startOfToday(){return(0,j.Z)(Date.now())}let getDungeons=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.DungUpg)||(null==e?void 0:e.DungUpg);return parseDungeons(l,t)},parseDungeons=(e,t)=>{let l=null===u.dungeonCreditShop||void 0===u.dungeonCreditShop?void 0:u.dungeonCreditShop.map((t,l)=>{var m;return{...t,level:null==e?void 0:null===(m=e[0])||void 0===m?void 0:m[l]}}),m=null==e?void 0:e[1],d=null==e?void 0:e[2],y=0,h=null===u.dungeonTraits||void 0===u.dungeonTraits?void 0:u.dungeonTraits.map(e=>{var t;return{...e,bonuses:null==e?void 0:null===(t=e.bonuses)||void 0===t?void 0:t.map(e=>{let t=null==d?void 0:d.includes(y),l=y;return y++,{bonus:e,isActive:t,bonusIndex:l}})}}),g=null==e?void 0:e[5],E=null==m?void 0:m.map((e,t)=>({...u.dungeonStats[t],level:e})),b=null==g?void 0:g.map((e,t)=>({...u.dungeonFlurboStats[t],level:e})),L=(null==t?void 0:t[72])||0,k=(null==t?void 0:t[73])||0,V=(null==t?void 0:t[76])||0,j=null===u.randomList||void 0===u.randomList?void 0:u.randomList[29].split(" "),ee=t[71],ea=Number(j.reduce((e,l,m,u)=>(t[71]>Number(l)&&(e=m.toString()),e),"0"))+1,el=null==j?void 0:j[ea];return{upgrades:b,insideUpgrades:E,credits:L,flurbos:k,boostedRuns:V,progress:ee,rankReq:el,rank:ea,rngItems:l,statBoosts:h}},getDungeonStatBonus=(e,t)=>{var l;let u=null==e?void 0:e.find(e=>{let{effect:l}=e;return l===t});return u&&null!==(l=(0,m.growth)(null==u?void 0:u.func,null==u?void 0:u.level,null==u?void 0:u.x1,null==u?void 0:u.x2,!1))&&void 0!==l?l:0},getDungeonFlurboStatBonus=(e,t)=>{var l;let u=null==e?void 0:e.find(e=>{let{effect:l}=e;return l===t});return u&&null!==(l=(0,m.growth)(null==u?void 0:u.func,null==u?void 0:u.level,null==u?void 0:u.x1,null==u?void 0:u.x2,!1))&&void 0!==l?l:0},getMaxClaimTime=e=>Math.ceil(3600*(48+Math.min(10,(0,d.mV)(e,"hr_Arcade_Ball_claim_max_time")))),getSecPerBall=e=>4e3/(1+(getBallBonus(e)+(0,y.k)(null==e?void 0:e.bribes,"Weighted_Marbles"))/100),getBallBonus=e=>{var t,l,m,y;let E=0;for(let t=0;tnull==e?void 0:e.map(e=>e+Math.round(t/1e3)-3600),calcHappyHours=e=>{let t;t=isThursday(startOfToday())?startOfToday():(t=previousThursday(startOfToday())).getTime()-6e4*t.getTimezoneOffset();let l=getHappyHourDates(e,t),m=null==l?void 0:l.filter(e=>!(0,E.Z)(1e3*e)).map(e=>1e3*e);if((null==m?void 0:m.length)!==0)return m;{let t=nextThursday(startOfToday());return getHappyHourDates(e,t=t.getTime()-6e4*t.getTimezoneOffset())}}},99958:function(e,t,l){"use strict";l.d(t,{x4:function(){return getMiningEff}});var m=l(88054),u=l(96707),d=l(89260),y=l(4056),h=l(30796),g=l(10924),E=l(79603),b=l(70473),L=l(88344),k=l(15893),V=l(54685),j=l(15815),ee=l(64605),ea=l(32805),el=l(74861),eo=l(1972),e_=l(5432),ec=l(74805),em=l(16727),ed=l(95331),ep=l(30925);let getNobisectBonus=(e,t,l,u)=>{var d,y,g,E,b,L;let k=null===h.nl||void 0===h.nl?void 0:h.nl[null==e?void 0:e.class],{strength:V,wisdom:j,agility:ee}=(null==e?void 0:e.stats)||{},ea=(0,m.om)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.bubbles,"power","HEARTY_DIGGY",!1,k),el=(0,m.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"high-iq","HOCUS_CHOPPUS",!1,k),eo=Math.max(1,getAllEff(e,l,t)+Math.pow((ea*(0,ep.lavaLog)(null==u?void 0:u.maxHp)+el*(0,ep.lavaLog)(null==u?void 0:u.maxMp))/100,2)+Math.pow((V+(j+ee))/3,.5)/7),e_=null==t?void 0:null===(E=t.divinity)||void 0===E?void 0:null===(g=E.deities)||void 0===g?void 0:g[2];return(null!==(b=null==e_?void 0:e_.level)&&void 0!==b?b:0)*(null!==(L=null==e_?void 0:e_.blessingMultiplier)&&void 0!==L?L:0)*Math.min(1.8,Math.max(.1,4*Math.pow((eo+1e4)/Math.max(10*eo+10,1)*.01,2)))},getAllBaseSkillEff=(e,t,l,m)=>{var u,d,g,E,b,L,V,j;let ee=(0,e_.du)(null==t?void 0:null===(u=t.breeding)||void 0===u?void 0:u.pets,"Base_Efficiency_for_All_Skills"),ea=(0,eo.mV)(t,"All_Skill_Efficiency",e),el=getNobisectBonus(e,t,l,m),ec=(0,y.xV)(null==e?void 0:e.postOffice,"Myriad_Crate",1),em=null!==(j=null==t?void 0:null===(E=t.lab)||void 0===E?void 0:null===(g=E.playersChips)||void 0===g?void 0:null===(d=g[null==e?void 0:e.playerId].find(e=>11===e.index))||void 0===d?void 0:d.baseVal)&&void 0!==j?j:0,ed=(0,h._X)(null==e?void 0:e.starTalents,null,"SUPERSOURCE"),ep=(0,k.c9)(null==t?void 0:null===(b=t.lab)||void 0===b?void 0:b.labBonuses,8),ey=(0,k.pc)(null==t?void 0:t.lab.jewels,12,ep),eh=(null===(V=t.lab.jewels)||void 0===V?void 0:null===(L=V.slice(11,16))||void 0===L?void 0:L.every(e=>{let{active:t}=e;return t}))?2:1;return ee+ea+el+ec+em+(ed+ey*eh)},getAllEff=(e,t,l)=>{var m,u,y,ea,el,eo,e_,ed,ep,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI,ew,eE,eF,eP,eD;let eA=(0,g.Hx)(null==l?void 0:l.charactersLevels,"Hunter"),eL=(0,E.D)(b.classFamilyBonuses,"EFFICIENCY_FOR_ALL_SKILLS",eA),ex=(0,L.zi)(e,48,l),eU=(0,ec.gY)(null==e?void 0:e.obols,null===b.bonuses||void 0===b.bonuses?void 0:null===(m=b.bonuses.etcBonuses)||void 0===m?void 0:m[48]),eQ=null!==(eE=null===(u=(0,em.YS)(null==l?void 0:null===(y=l.sailing)||void 0===y?void 0:y.artifacts,"Frost_Relic"))||void 0===u?void 0:u.bonus)&&void 0!==eE?eE:0,eG=(0,h._X)(null==e?void 0:e.starTalents,null,"STUDIOUS_QUESTER"),eB=(0,k.c9)(null==l?void 0:null===(ea=l.lab)||void 0===ea?void 0:ea.labBonuses,8),eM=(0,k.pc)(null==l?void 0:l.lab.jewels,16,eB),eO=(0,d.F4)(l,null,"Seff",eM),ek=null!==(eF=null==l?void 0:null===(ed=l.lab)||void 0===ed?void 0:null===(e_=ed.playersChips)||void 0===e_?void 0:null===(eo=e_[null==e?void 0:e.playerId])||void 0===eo?void 0:null===(el=eo.find(e=>11===e.index))||void 0===el?void 0:el.baseVal)&&void 0!==eF?eF:0,eW=(null==l?void 0:null===(ey=l.cards)||void 0===ey?void 0:null===(ep=ey.Crystal_Capybara)||void 0===ep?void 0:ep.stars)?(null==l?void 0:null===(eT=l.cards)||void 0===eT?void 0:null===(eh=eT.Crystal_Capybara)||void 0===eh?void 0:eh.stars)+1:0,eH=(0,g.fi)(null==l?void 0:l.totalSkillsLevels,null==l?void 0:l.rift,2),eK=(0,V.Xt)(null==e?void 0:e.cards,"Boss4B"),eY=(0,g.fe)(l,5)?5:0,eZ=(null==e?void 0:null===(ev=e.cards)||void 0===ev?void 0:null===(ef=ev.cardSet)||void 0===ef?void 0:ef.rawName)==="CardSet2"?null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:null===(eg=eS.cardSet)||void 0===eg?void 0:eg.bonus:0,eV=null===(eN=(0,j.Y0)(null==e?void 0:e.activePrayers,"Skilled_Dimwit",l))||void 0===eN?void 0:eN.bonus,ez=null===(eC=(0,j.Y0)(null==e?void 0:e.activePrayers,"Balance_of_Proficiency",l))||void 0===eC?void 0:eC.curse,eX=(0,h.eZ)(null==e?void 0:e.activeBuffs,"MAESTRO_TRANSFUSION"),ej=0;return(null==l?void 0:null===(eI=l.guild)||void 0===eI?void 0:null===(eR=eI.guildBonuses)||void 0===eR?void 0:eR.length)>0&&(ej=(0,ee._r)(null==l?void 0:null===(eP=l.guild)||void 0===eP?void 0:eP.guildBonuses,6)),(1+(eL+(ex+eU+(eQ+Math.min(.1*(null==e?void 0:e.questCompleted),eG))))/100)*(1+(eO+(ek+3*eW)+(eH+(null!==(eD=null==l?void 0:null===(ew=l.accountOptions)||void 0===ew?void 0:ew[180])&&void 0!==eD?eD:0)))/100)*(1+(eK+eY)/100)*(1+(ej+(eZ+eV))/100)*Math.max(1-(eX+ez)/100,.01)},getMiningEff=(e,t,l,d)=>{var E,k,j,ee,e_,em,ey,eh,eT,ef,ev,eg,eS,eN,eC,eR,eI;let ew=null===h.nl||void 0===h.nl?void 0:h.nl[null==e?void 0:e.class],eE=(null==e?void 0:null===(k=e.tools)||void 0===k?void 0:null===(E=k[ea.T.PICKAXE])||void 0===E?void 0:E.Weapon_Power)||0,eF=eE,eP=(0,h._X)(null==e?void 0:e.talents,1,"TOOL_PROFICIENCY"),eD=(0,m.om)(null==l?void 0:null===(j=l.alchemy)||void 0===j?void 0:j.bubbles,"power","STRONK_TOOLS",!1,ew),eA=null==e?void 0:null===(e_=e.skillsInfo)||void 0===e_?void 0:null===(ee=e_.mining)||void 0===ee?void 0:ee.level;eF=eF*(1+eP*((null==e?void 0:null===(ey=e.skillsInfo)||void 0===ey?void 0:null===(em=ey.mining)||void 0===em?void 0:em.level)/10)/100)*(1+eD/100)+4;let eL=(0,el.U6)(null==l?void 0:l.statues,"StatueG3",null==e?void 0:e.talents),ex=(0,m.om)(null==l?void 0:null===(eh=l.alchemy)||void 0===eh?void 0:eh.bubbles,"power","SLABI_OREFISH",!1,ew),eU=null==l?void 0:null===(eT=l.looty)||void 0===eT?void 0:eT.rawLootedItems;eF+=eE+eL+ex*Math.floor(eU/100);let eQ=(0,h._X)(null==e?void 0:e.talents,3,"SKILL_STRENGTHEN"),eG=(0,eo.mV)(l,"Base_Mining",e),eB=getAllBaseSkillEff(e,l,t,d),eM=(0,y.xV)(null==e?void 0:e.postOffice,"Dwarven_Supplies",0),eO=getMaestroRightHandBonus(e,"mining",t),ek=(0,g.tE)("Golden_Peanut",e,l)||1,eW=(0,h._X)(null==e?void 0:e.talents,0,"BRUTE_EFFICIENCY"),eH=(0,L.zi)(e,10,l,!0),eK=(0,ec.gY)(null==e?void 0:e.obols,null===b.bonuses||void 0===b.bonuses?void 0:null===(ef=b.bonuses.etcBonuses)||void 0===ef?void 0:ef[10]),eY=(0,g.pA)(null==l?void 0:l.rift,null==l?void 0:null===(eg=l.totalSkillsLevels)||void 0===eg?void 0:null===(ev=eg.mining)||void 0===ev?void 0:ev.rank,1),eZ=(0,V.OK)(null==e?void 0:null===(eS=e.cards)||void 0===eS?void 0:eS.equippedCards,"Total_Mining_Efficiency"),eV=(0,u.o9)(e,l,"Mining_Efficency"),ez=(0,m.iu)(null==l?void 0:null===(eN=l.alchemy)||void 0===eN?void 0:eN.vials,"MinEff"),eX=(0,m.om)(null==l?void 0:null===(eC=l.alchemy)||void 0===eC?void 0:eC.bubbles,"power","HEARTY_DIGGY",!1,ew),ej=(0,h._X)(null==e?void 0:e.talents,1,"COPPER_COLLECTOR"),eJ=(0,ed._m)(l,"Helium_-_Talent_Power_Stacker"),e$=(0,L.ju)(null==l?void 0:l.storage,"Copper_Ore",!0),e0=getAllEff(e,t,l);return 12+(Math.pow(eF,1.3)+(Math.pow((null==e?void 0:null===(eR=e.stats)||void 0===eR?void 0:eR.strength)+1,.6)*(1+eQ/100)+(eG+eB)))*(1+eA/200)*(1+(eM+eO)/100)*(1+Math.pow((null==e?void 0:null===(eI=e.stats)||void 0===eI?void 0:eI.strength)/100,.35)*(1+eQ/100))*ek*(1+(eW+(eH+eK+10*eY))/100)*(1+(eZ+(eV+ez))/100)*(1+eF/100)*1*(1+eX*(0,ep.lavaLog)(null==d?void 0:d.maxHp)/100)*(1+ej*(eJ+(0,ep.lavaLog)(e$))/100)*e0},getMaestroRightHandBonus=(e,t,l)=>{var m,u,d,y;let g=(0,h.A5)(l,2,"Maestro","RIGHT_HAND_OF_ACTION",null,!0),E=(0,h.L1)(l,2,"Maestro","RIGHT_HAND_OF_ACTION",null,!0);return(null==e?void 0:null===(u=e.skillsInfo)||void 0===u?void 0:null===(m=u[t])||void 0===m?void 0:m.level)<(null==E?void 0:null===(y=E.skillsInfo)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d.level)?g:0}},72973:function(e,t,l){"use strict";l.d(t,{B:function(){return getEquinox},z:function(){return getEquinoxBonus}});var m=l(70473),u=l(30925),d=l(88054),y=l(10924),h=l(48832);let getEquinox=(e,t)=>{let l=(0,u.tryToParse)(null==e?void 0:e.WeeklyBoss)||(null==e?void 0:e.WeeklyBoss),m=(0,u.tryToParse)(null==e?void 0:e.Dream)||(null==e?void 0:e.Dream);return l&&m?parseEquinox(l,m,t):null},parseEquinox=(e,t,l)=>{var u;let g=t.slice(2,16).reduce((e,t)=>e+t,0),E=Object.keys(e).filter(e=>e.startsWith("d_")).reduce((t,l)=>(t[l.substring(2)]=e[l],t),{}),b=Object.values(E).reduce((e,t)=>e+(-1===t?1:0),0),L=t[2],k=m.equinoxChallenges.map((e,t)=>{let{label:l,goal:m,reward:u}=e;return{label:l,goal:m,reward:u,current:E[t]||0,active:-1!==E[t]&&0{let u=e.filter(e=>-1===e.current&&e.reward.includes("Max_LV")).map(e=>e.reward),d=e.filter(e=>-1===e.current&&"Unlock_next_Equinox_upgrade"===e.reward).length;return m.equinoxUpgrades.map((e,m)=>{let{name:y,description:h,maxLevel:g,bonus:E}=e,b="Hmm..."===y?0:"Food_Lust"===y?Math.min(parseInt(t[m]),null==l?void 0:l[193]):E*t[m]||0;return{name:y,bonus:b,desc:null==h?void 0:h.replace("{}",E*t[m]||0).replace("{","").replace("}",t[m]||0).split("_@_"),lvl:t[m]||0,maxLvl:g+u.filter(e=>e.includes(y)).reduce((e,t)=>e+parseInt(t.match(/\d+/)[0],10),0),unlocked:m<=d}})},getEquinoxBonus=(e,t)=>{var l,m;return(null==e?void 0:null===(m=e.filter(e=>e.name===t))||void 0===m?void 0:null===(l=m[0])||void 0===l?void 0:l.bonus)||0}},79603:function(e,t,l){"use strict";l.d(t,{D:function(){return getFamilyBonusBonus},q:function(){return getFamilyBonus}});var m=l(30925);let getFamilyBonusBonus=(e,t,l)=>{let u=null==e?void 0:e.find(e=>{let{name:l}=e;return null==l?void 0:l.includes(t)});return u?(0,m.growth)(null==u?void 0:u.func,Math.max(0,Math.round(l-(null==u?void 0:u.x3))),null==u?void 0:u.x1,null==u?void 0:u.x2,!1):0},getFamilyBonus=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return null==l?void 0:l.includes(t)})},20385:function(e,t,l){"use strict";l.d(t,{Ob:function(){return isSuperbitUnlocked},gm:function(){return getGaming},h$:function(){return calculateSnailEncouragementForSuccessChance}});var m=l(70473),u=l(30925),d=l(19834),y=l(10924),h=l(72973),g=l(48832);let{tryToParse:E}=l(30925),getGaming=(e,t,l,m)=>{let u=E(null==e?void 0:e.Gaming)||(null==e?void 0:e.Gaming),d=E(null==e?void 0:e.GamingSprout)||(null==e?void 0:e.GamingSprout);return u&&d?parseGaming(u,d,t,l,m):null},parseGaming=(e,t,l,d,y)=>{var E,b,L,k,V,j,ee,ea,el,eo,e_,ec;let em=[];for(let t=0;t<9;t++){let l=0;for(let m=u.number2letter.indexOf("hhhhhhhhh".charAt(t));l(null==t?void 0:t[1])>0?e+1:e,0),eT=null==e?void 0:e[0],ef=null==e?void 0:e[10],ev=null==e?void 0:e[8],eg=null==t?void 0:null===(E=t[28])||void 0===E?void 0:E[1],eS=null==t?void 0:null===(b=t[26])||void 0===b?void 0:b[1],eN=calcGoldNuggets(eS),eC=null==t?void 0:null===(L=t[27])||void 0===L?void 0:L[1],eR=null==t?void 0:null===(k=t[27])||void 0===k?void 0:k[0],eI=calcAcorns(eC,eR),ew=calcResourcePerTime("nugget"),eE=calcResourcePerTime("acorn",eR),eF=calcAcornShop(t),eP=null==t?void 0:t.slice(25,25+(null===m.gamingImports||void 0===m.gamingImports?void 0:m.gamingImports.length)+1),eD=null!==(e_=null==d?void 0:null===(V=d.gemShopPurchases)||void 0===V?void 0:V.find((e,t)=>131===t))&&void 0!==e_?e_:0,eA=calcSprinklerSave(null!==(ec=null==d?void 0:null===(j=d.gemShopPurchases)||void 0===j?void 0:j.find((e,t)=>131===t))&&void 0!==ec?ec:0),eL=null===m.gamingImports||void 0===m.gamingImports?void 0:m.gamingImports.map((e,t)=>{var l,m,u,y;let g=calcImportBonus(t,null==e?void 0:e.minorBonus,eP);return{...e,level:null==eP?void 0:null===(l=eP[t])||void 0===l?void 0:l[0],rawName:3===t?"GamingItem".concat(t,"_0"):0===t&&eD>0?"GamingItem".concat(t,"b"):"GamingItem".concat(t),minorBonus:null==g?void 0:g.description,cost:calcImportCost(t,eP),acquired:(null==eP?void 0:null===(m=eP[t])||void 0===m?void 0:m[0])>0,...0===t?{saveSprinklerChance:100*eA}:{},...1===t?{maxNuggetValue:maxNuggetValue(null==g?void 0:g.result,(0,h.z)(null==d?void 0:null===(u=d.equinox)||void 0===u?void 0:u.upgrades,"Metal_Detector"),null==d?void 0:null===(y=d.accountOptions)||void 0===y?void 0:y[192])}:{},...2===t?{acornShop:eF}:{}}}).filter((e,t)=>t<8),ex=null==e?void 0:null===(ee=e.slice(1,(null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:m.gamingUpgrades.length)+1))||void 0===ee?void 0:ee.map((u,h)=>{var g;let E=calcFertilizerBonus(h,e,t,l,d,eF,eL);return{...null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:m.gamingUpgrades[h],level:u,bonus:E,description:null===m.gamingUpgrades||void 0===m.gamingUpgrades?void 0:null===(g=m.gamingUpgrades[h])||void 0===g?void 0:g.description.replace(/{/,E),cost:calcFertilizerCost(h,e,y)}}),eU=getDropsAmount(null==t?void 0:null===(ea=t[25])||void 0===ea?void 0:ea[1],eL),eQ=(null==e?void 0:e[12])||[],eG=null===m.superbitsUpgrades||void 0===m.superbitsUpgrades?void 0:m.superbitsUpgrades.map((e,t)=>({...e,unlocked:(null==eQ?void 0:eQ.indexOf(null===u.number2letter||void 0===u.number2letter?void 0:u.number2letter[t]))!==-1,cost:(null==e?void 0:e.x1)*Math.pow(10,null==e?void 0:e.x2),...calcSuperbitBonus(l,d,t)})),eB=null==e?void 0:e[5],eM=null==e?void 0:e[4],eO=null==e?void 0:e[7],ek=getMutations(),eW=1+(0,g.F)(d,21)/100,eH=getNewMutationChance(eM,eB,eW),eK=[100,200,300,400,500].map(e=>({value:e,chance:getNewMutationChance(eM,e)}));return{bestNugget:ev,bits:eT,envelopes:ey,snailLevel:ed,snailEncouragement:ep,fertilizerUpgrades:ex,availableSprouts:eh,availableDrops:eU,sproutsCapacity:null==ex?void 0:null===(el=ex[2])||void 0===el?void 0:el.bonus,imports:eL,lastShovelClicked:eS,goldNuggets:eN,lastAcornClicked:eC,acorns:eI,nuggetsBreakpoints:ew,acornsBreakpoints:eE,superbitsUpgrades:eG,mutations:ek,unlockedMutations:eM,mutationCost:(25+(10*(eO+1)+Math.pow(eO+1,2)))*Math.pow(1.3,eO),dna:eB,newMutationChance:eH,mutationChanceBreakpoints:eK,logBook:em,poingHighscore:ef,poingMulti:Math.max(1+Math.pow(ef,.5)/100,1),totalPlantsPicked:eg}},getNewMutationChance=(e,t,l)=>Math.floor(1e3*(0===e?Math.min(.8,7*t/(100+t)*l):Math.min(.99,42*t/(100+t)*Math.pow(.31,e)*l)))/10,getMutations=()=>{var e;let t=null===m.randomList2||void 0===m.randomList2?void 0:null===(e=m.randomList2[0])||void 0===e?void 0:e.split(" ");return["FunGi","Bonsai","Cactus","Blossom","Voraci","Berri Bush","EverGreen","Chemical"].map((e,l)=>{var m;return{name:e,index:l,description:null==t?void 0:null===(m=t[l])||void 0===m?void 0:m.replace(/â‚£/g,"bits")}})},calcSuperbitBonus=(e,t,l)=>{var m,u,d,h,g,E,b,L,k,V,j;let ee,ea,el;if(0===l)ea=Math.pow(1.03,ee=null!==(d=null==t?void 0:null===(u=t.achievements)||void 0===u?void 0:null===(m=u.filter(e=>{let{completed:t}=e;return t}))||void 0===m?void 0:m.length)&&void 0!==d?d:0);else if(3===l||11===l||16===l)ee=Math.floor((null==t?void 0:null===(h=t.towers)||void 0===h?void 0:h.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(g=t.towers)||void 0===g?void 0:g.totalWaves," waves)");else if(13===l)ee=10*Math.floor((null==t?void 0:null===(E=t.towers)||void 0===E?void 0:E.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(b=t.towers)||void 0===b?void 0:b.totalWaves," waves)");else if(7===l)ee=Math.floor((null==t?void 0:null===(L=t.towers)||void 0===L?void 0:L.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(k=t.towers)||void 0===k?void 0:k.totalWaves," waves)");else if(20===l)ee=50*Math.floor((null==t?void 0:null===(V=t.towers)||void 0===V?void 0:V.totalWaves)/10),el="Total Bonus: ".concat(ee,"% (").concat(null==t?void 0:null===(j=t.towers)||void 0===j?void 0:j.totalWaves," waves)");else if(12===l){let t=(0,y.fx)(e,"gaming");ea=Math.floor(t)}return{bonus:ee,totalBonus:ea,additionalInfo:el}},getDropsAmount=(e,t)=>{var l;let m=null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.level;return Math.floor(Math.pow(e*(1+m/100)/3600,.75))},maxNuggetValue=(e,t,l)=>1584.8931924611136*e*(1+t*l/100),calcResourcePerTime=(e,t)=>{let l=[1,2,3,4,5,6].reduce((l,m,u)=>{var d,y;let{breakpoints:h,lastClicked:g}=l,E=3600*Math.floor(g)+g%1*6e3,b="nugget"===e?calcGoldNuggets(E):calcAcorns(E,t);if(0===h.length)return{breakpoints:[...h,{time:E,amount:b}],lastClicked:g+.1};for(;b<=(null==h?void 0:null===(d=h[u-1])||void 0===d?void 0:d.amount)&&g%1!=0;)(b="nugget"===e?calcGoldNuggets(E):calcAcorns(E,t))<=(null==h?void 0:null===(y=h[u-1])||void 0===y?void 0:y.amount)&&(g+=.1,E=3600*Math.floor(g)+g%1*6e3);return{breakpoints:[...h,{time:E,amount:b}],lastClicked:g}},{breakpoints:[],lastClicked:1});return null==l?void 0:l.breakpoints},calcGoldNuggets=e=>Math.floor(Math.pow(e/3600,.44)),calcAcorns=(e,t)=>Math.floor(Math.pow(e*(1+t/100)/3600,.85)),calcSprinklerSave=e=>1===e?.3:2===e?.43:3===e?.53:4===e?.6:0,calcImportBonus=(e,t,l)=>{var m;let u=null==l?void 0:null===(m=l[e])||void 0===m?void 0:m[0];if(1===e){let e=Math.floor(10*(1+Math.pow(60*u/(250+u),1.7)))/10;return{description:t.replace(/{/,e),result:e}}if(2===e){let e=Math.round(5*u);return{description:t.replace(/{/,e),result:e}}if(5===e){let e=Math.floor(60*u/(100+u)*10)/10;return{description:t.replace(/{/,e),result:e}}return{description:t.replace(/{/,Math.round(u)),value:Math.round(u)}},calcImportCost=(e,t)=>{var l,u,d;return(null===m.gamingImports||void 0===m.gamingImports?void 0:null===(l=m.gamingImports[e])||void 0===l?void 0:l.x1)*Math.pow(10,null===m.gamingImports||void 0===m.gamingImports?void 0:null===(u=m.gamingImports[e])||void 0===u?void 0:u.x2)/4*Math.pow(1.4,null==t?void 0:null===(d=t[e])||void 0===d?void 0:d[0])},calcFertilizerBonus=(e,t,l,m,y,h,g)=>{var E,b,L,k,V,j;if(0===e){let e=null==t?void 0:t[1];return(0,u.notateNumber)((1+4*e)*Math.pow(1.065,e),"bits")}if(1===e){let e=null==t?void 0:t[2],u=null==m?void 0:m.find(e=>{let{linkedDeity:t}=e;return 6===t}),V=null!==(k=(0,d.kI)(u,y,6,m))&&void 0!==k?k:0,j=1+((null==h?void 0:null===(E=h[1])||void 0===E?void 0:E.bonus)+V)/100,ee=3+(null==g?void 0:null===(b=g[4])||void 0===b?void 0:b.level)/100,ea=null==l?void 0:null===(L=l[29])||void 0===L?void 0:L[1],el=1/calcSproutGrowChance(t),eo=Math.floor(100*(5e3/((1+2*e/100)*j*(1+ee*ea))*el/60))/100;return eo>60?"".concat(Math.floor(100*eo/60)/100," Hr"):"".concat(Math.floor(10*eo)/10," Min")}if(2===e){let e=null==t?void 0:t[3],l=null!==(j=null==y?void 0:null===(V=y.gemShopPurchases)||void 0===V?void 0:V.find((e,t)=>133===t))&&void 0!==j?j:0;return(0,u.notateNumber)(Math.round(Math.min(24,3+e+l)))}},calcSproutGrowChance=e=>{let t=null==e?void 0:e[7];return .13+.11*t/(150+t)},calcFertilizerCost=(e,t,l)=>{if(0===e){let e=null==t?void 0:t[1],m=Math.min(1.25,Math.max(1.13,1+(null==l?void 0:l.GamingFertCostExpA)/1e3));return(1+(3*e+Math.pow(e,2)))*Math.pow(m+Math.max(0,Math.min(.15,.18*(e-50)/(e+100))),e)}if(1===e){let e=null==t?void 0:t[2];return(2+(5*e+Math.pow(e,2)))*Math.pow(1.22,e)}if(2===e){let e=null==t?void 0:t[3];return 11>e?(25*(e+1)+Math.pow(e+1,3))*Math.pow(5+3.7*e,e):9999*1e63}},calcAcornShop=e=>{let t=["All plants give x{ bits","All plants grow {% faster"],[,,l,m]=null==e?void 0:e[27];return[l,m].map((e,l)=>{let m=0===l?1+8*e/(250+e):Math.pow(3*e,.8);return{cost:1+e+2*Math.max(0,e-5),description:null==t?void 0:t[l].replace(/{/,"".concat(m.toFixed(2))),bonus:m}})},isSuperbitUnlocked=(e,t)=>{var l,m;return null==e?void 0:null===(m=e.gaming)||void 0===m?void 0:null===(l=m.superbitsUpgrades)||void 0===l?void 0:l.find(e=>{let{name:l,unlocked:m}=e;return l===t&&m})},calculateSnailEncouragementForSuccessChance=(e,t)=>{let l=0,m=1e3;for(;m-l>1;){let u=Math.floor((l+m)/2),d=(1-.1*Math.pow(e,.72))*(1+100*u/(25+u)/100);d{if(!t)return null;let l=(0,m.tryToParse)(null==e?void 0:e.Guild)||(null==e?void 0:e.GuildTasks),d=parseGuildTasks(l),y=null===u.guildBonuses||void 0===u.guildBonuses?void 0:u.guildBonuses.map((e,l)=>{var m,u,d;return{...e,level:null!==(d=null==t?void 0:null===(u=t.stats)||void 0===u?void 0:null===(m=u[0])||void 0===m?void 0:m[l])&&void 0!==d?d:0}});if(t){let e=getGuildTotalPoints(l,y,null==t?void 0:t.points),m=getGuildLevel(e),h=getGuildLevelReq(l,e),g=parseGuildMembers(t,y),E=null==y?void 0:y.reduce((e,t,l)=>{var m,d;let{level:y}=t;return e+calculateGuildBonusCost(y,null===u.guildBonuses||void 0===u.guildBonuses?void 0:null===(m=u.guildBonuses[l])||void 0===m?void 0:m.gpBaseCost,null===u.guildBonuses||void 0===u.guildBonuses?void 0:null===(d=u.guildBonuses[l])||void 0===d?void 0:d.gpIncrease)},0),b=(null==t?void 0:t.points)+E;return{guildBonuses:y,guildTasks:d,members:g,maxMembers:30+4*m,level:m,levelReq:h,totalGp:b}}},getGuildTotalPoints=(e,t,l)=>{let m=l;for(let l=0;18>l;){var u,d,y,h,g,E,b;let L=l++;0!==e[0][L]&&(m+=Math.round((((null==t?void 0:null===(u=t[L])||void 0===u?void 0:u.gpBaseCost)+(null==t?void 0:null===(d=t[L])||void 0===d?void 0:d.gpIncrease))/(null==t?void 0:null===(y=t[L])||void 0===y?void 0:y.gpIncrease)+.5*(e[0][L]-1))/((null==t?void 0:null===(h=t[L])||void 0===h?void 0:h.gpBaseCost)/(null==t?void 0:null===(g=t[L])||void 0===g?void 0:g.gpIncrease))*e[0][L]*(null==t?void 0:null===(E=t[L])||void 0===E?void 0:E.gpBaseCost)-(null==t?void 0:null===(b=t[L])||void 0===b?void 0:b.gpIncrease)*e[0][L]))}return m},getGuildLevelReq=(e,t)=>{for(let e=0;100>e;){let l=e++;if(!(t>=100*(l+1)*Math.pow(1.21,l)))return 100*(l+1)*Math.pow(1.21,l)}return 0},getGuildLevel=e=>{for(let t=0;100>t;){let l=t++;if(!(e>=100*(l+1)*Math.pow(1.21,l)))return Math.min(l+1,45)}return 1},getGuildBonusBonus=(e,t)=>{var l;let u=null==e?void 0:e[t];return u&&null!==(l=(0,m.growth)(u.func,u.level,u.x1,u.x2,!1))&&void 0!==l?l:0},parseGuildMembers=(e,t)=>{var l;return null==e?void 0:null===(l=e.members)||void 0===l?void 0:l.map(e=>{let{a:l,b:m,c:u,d,e:y,f:h,g}=e;return{name:l,level:d,gpEarned:y,wantedBonus:(null==t?void 0:t[h])||-1,rank:g}})},parseGuildTasks=e=>{var t;let l=null==e?void 0:null===(t=e.slice(1))||void 0===t?void 0:t.map(e=>{let[t,,l]=e;return{...null===u.guildTasks||void 0===u.guildTasks?void 0:u.guildTasks[t],progress:l}});return{daily:null==l?void 0:l.slice(0,5),weekly:null==l?void 0:l.slice(5)}},calculateGuildBonusCost=(e,t,l)=>{if(0===e)return 0;let m=t;for(let u=1;u{var l;return e&&t?null===(l=Object.keys(t))||void 0===l?void 0:l.reduce((l,m)=>{if("UQ1txt"===m||"UQ2txt"===m)return{...l,[m]:(null==e?void 0:e[m])||(null==t?void 0:t[m])};let u=null==e?void 0:e[m],d=null==t?void 0:t[m],y=u;return isNaN(d)?{...l,[m]:d}:(y=(u||0)+((null==t?void 0:t.UQ1txt)&&(null==e?void 0:e.Type)!=="KEYCHAIN"&&(null==e?void 0:e.UQ1txt)!==(null==t?void 0:t.UQ1txt)?0:d),{...l,[m]:parseFloat(y)})},{}):{}},calculateItemTotalAmount=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null==e?void 0:e.reduce((e,u)=>{if(l)t===(m?null==u?void 0:u.rawName:null==u?void 0:u.name)&&(e+=null==u?void 0:u.amount);else{var d,y;(m?null==u?void 0:null===(d=u.rawName)||void 0===d?void 0:d.includes(t):null==u?void 0:null===(y=u.name)||void 0===y?void 0:y.includes(t))&&(e+=null==u?void 0:u.amount)}return e},0)},getStatsFromGear=function(e,t,l){var u,d,y,h,g,E,b,L,k,V,j,ee;let ea=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{equipment:el,tools:eo}=e||{},e_=null!==(V=null==l?void 0:null===(y=l.lab)||void 0===y?void 0:null===(d=y.playersChips)||void 0===d?void 0:null===(u=d[null==e?void 0:e.playerId])||void 0===u?void 0:u.find(e=>16===e.index))&&void 0!==V?V:0,ec=null!==(j=null==l?void 0:null===(E=l.lab)||void 0===E?void 0:null===(g=E.playersChips)||void 0===g?void 0:null===(h=g[null==e?void 0:e.playerId])||void 0===h?void 0:h.find(e=>17===e.index))&&void 0!==j?j:0,em=null!==(ee=null==l?void 0:null===(k=l.lab)||void 0===k?void 0:null===(L=k.playersChips)||void 0===L?void 0:null===(b=L[null==e?void 0:e.playerId])||void 0===b?void 0:b.find(e=>18===e.index))&&void 0!==ee?ee:0,ed=ea?eo:el;return isNaN(t)?null==ed?void 0:ed.reduce((e,l)=>e+getStatFromEquipment(l,t),0):null==ed?void 0:ed.reduce((e,l,u)=>{var d;return e+getStatFromEquipment(l,null===m.bonuses||void 0===m.bonuses?void 0:null===(d=m.bonuses.etcBonuses)||void 0===d?void 0:d[t])*(!ea&&(3===u&&em||10===u&&e_||9===u&&ec)?2:1)},0)},getStatFromEquipment=(e,t)=>{let l=(null==e?void 0:e.UQ1txt)===t?null==e?void 0:e.UQ1val:0,m=(null==e?void 0:e.UQ2txt)===t?null==e?void 0:e.UQ2val:0;return(null==e?void 0:e[t])?null==e?void 0:e[t]:l+m},createItemsWithUpgrades=(e,t,l)=>Array.from(Object.values(e)).reduce((e,u,d)=>{var y;let h=addStoneDataToEquip(null===m.items||void 0===m.items?void 0:m.items[u],null==t?void 0:t[d]),g="",E={...null===m.items||void 0===m.items?void 0:m.items[u],...h};(null==E?void 0:E.UQ1txt)&&(g+=null==E?void 0:E.UQ1txt),(null==E?void 0:E.UQ2txt)&&(g+=" ".concat(null==E?void 0:E.UQ2txt));let b={name:null===m.items||void 0===m.items?void 0:null===(y=m.items[u])||void 0===y?void 0:y.displayName,rawName:u,owner:l,..."Blank"===u?{}:{...null===m.items||void 0===m.items?void 0:m.items[u],...h},misc:g};return(null==b?void 0:b.Premiumified)&&(b.UQ1txt||delete b.UQ1val,b.UQ2txt||delete b.UQ2val,delete b.Defence,delete b.Weapon_Power,delete b.Reach),u?[...e,b]:e},[]),findItemInInventory=(e,t)=>t?e.reduce((e,l)=>{let{name:m,owner:u,amount:d}=l;if(m===t){var y;return null!=e&&e[u]?{...e,[u]:{amount:(null==e?void 0:null===(y=e[u])||void 0===y?void 0:y.amount)+1}}:{...e,[u]:{amount:d}}}return e},{}):{},findItemByDescriptionInInventory=(e,t)=>{if(!t)return{};let l=e.filter(e=>{var l,m;let{misc:u,description:d}=e;return(null==d?void 0:null===(l=d.toLowerCase())||void 0===l?void 0:l.includes(null==t?void 0:t.toLowerCase()))||(null==u?void 0:null===(m=u.toLowerCase())||void 0===m?void 0:m.includes(null==t?void 0:t.toLowerCase()))},[]);return null==l?void 0:l.reduce((e,t)=>{let l=null==e?void 0:e.findIndex(e=>(null==e?void 0:e.rawName)===(null==t?void 0:t.rawName)),m=null==e?void 0:e[l];if(m){var u;let d=null==m?void 0:null===(u=m.owners)||void 0===u?void 0:u.includes(null==t?void 0:t.owner),y=d?null==m?void 0:m.owners:[...null==m?void 0:m.owners,null==t?void 0:t.owner];(null==m?void 0:m.misc)===(null==t?void 0:t.misc)&&(null==e||e.splice(l,1)),e=[...e,{...t,owners:y}]}else e=[...e,{...t,owners:[null==t?void 0:t.owner]}];return e},[])},flattenCraftObject=e=>{if(!e)return[];let t={},l=JSON.parse(JSON.stringify(e)),flatten=(e,l)=>null==e?void 0:e.reduce((e,m)=>(e.push(m),m.materials&&(e=e.concat(flatten(null==m?void 0:m.materials,l)),m.materials=[]),t[null==m?void 0:m.itemName]?t[null==m?void 0:m.itemName].itemQuantity+=null==m?void 0:m.itemQuantity:t[null==m?void 0:m.itemName]=m,e),[]);return flatten(null==l?void 0:l.materials,t),Object.values(t)},findQuantityOwned=(e,t)=>{var l;let m=findItemInInventory(e,t);return null===(l=Object.entries(m))||void 0===l?void 0:l.reduce((e,t)=>{let[l,{amount:m}]=t;return{amount:(null==e?void 0:e.amount)+m,owner:[...null==e?void 0:e.owner,l]}},{amount:0,owner:[]})},addEquippedItems=(e,t)=>t?null==e?void 0:e.reduce((e,t)=>{let{tools:l,equipment:m,food:u}=t;return[...e,...l,...m,...u]},[]).filter(e=>{let{rawName:t}=e;return"Blank"!==t}).map(e=>(null==e?void 0:e.amount)?e:{...e,amount:1}):[],getAllItems=(e,t)=>{var l,m;let u=null==e?void 0:e.reduce((e,t)=>{let{inventory:l=[]}=t;return[...e,...l]},[]),d=null==t?void 0:null===(m=t.forge)||void 0===m?void 0:null===(l=m.list)||void 0===l?void 0:l.reduce((e,t)=>{let{bar:l,barrel:m,ore:u}=t;return[...e,l,m,u]},[]);return[...u||[],...(null==t?void 0:t.storage)||[],...d||[]]},mergeItemsByOwner=e=>{let t={};return e.forEach(e=>{if(!e.displayName)return;let l=e.owner+e.displayName;t[l]?t[l].amount+=e.amount:t[l]={...e}}),Object.values(t)},getAllTools=()=>{var e,t,l,u,d;let y=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(e=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/EquipmentTools[0-9]+/)}))||void 0===e?void 0:e.filter(e=>{let{rawName:t}=e;return"EquipmentTools13"!==t&&"EquipmentTools10"!==t}),h=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(t=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/EquipmentToolsHatchet[0-9]+/)}))||void 0===t?void 0:t.filter(e=>{let{rawName:t}=e;return"EquipmentToolsHatchet0"!==t&&"EquipmentToolsHatchet3"!==t&&"EquipmentToolsHatchet11"!==t}),g=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(l=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/FishingRod[0-9]+/)}))||void 0===l?void 0:l.filter(e=>{let{rawName:t}=e;return"FishingRod1"!==t}),E=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(u=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/CatchingNet[0-9]+/)}))||void 0===u?void 0:u.filter(e=>{let{rawName:t}=e;return"CatchingNet1"!==t}),b=null===m.itemsArray||void 0===m.itemsArray?void 0:m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/TrapBoxSet[0-9]+/)}),L=null===m.itemsArray||void 0===m.itemsArray?void 0:null===(d=m.itemsArray.filter(e=>{let{rawName:t}=e;return null==t?void 0:t.match(/WorshipSkull[0-9]+/)}))||void 0===d?void 0:d.filter(e=>{let{rawName:t}=e;return"WorshipSkull8"!==t});return[y,h,g,E,b,L]},calcTrophiesFound=e=>{var t;return null==e?void 0:null===(t=e.lootyRaw)||void 0===t?void 0:t.reduce((e,t)=>e+(t.includes("Trophy")?1:0),0)},calcObolsFound=e=>{var t;return null==e?void 0:null===(t=e.lootyRaw)||void 0===t?void 0:t.reduce((e,t)=>e+(t.includes("Obol")?1:0),0)}},15893:function(e,t,l){"use strict";l.d(t,{Cs:function(){return getLab},Rp:function(){return isGodEnabledBySorcerer},Z$:function(){return getRequirementAmount},c9:function(){return getLabBonus},gw:function(){return getPlayerLabChipBonus},p8:function(){return isLabEnabledBySorcererRaw},pc:function(){return getJewelBonus},ww:function(){return applyBonusDesc}});var m=l(30925),u=l(70473),d=l(89260),y=l(54685),h=l(10924),g=l(5432),E=l(30796),b=l(72973),L=l(13339),k=l(88344);let getLab=(e,t,l,u)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Lab)||(null==e?void 0:e.Lab);return parseLab(d,t,l,u)},parseLab=(e,t,l,m)=>{var d,y,g,E,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;if(!e)return{};let eT=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[89],ef=null===u.randomList||void 0===u.randomList?void 0:u.randomList[53],[ev]=e,eg=e[15],eS=e[14],eN=e[13],eC=null==e?void 0:e.slice(1,(null==t?void 0:t.length)+1),eR=[];for(let e=0;enull==e?void 0:e.playerName);let eI=(null==l?void 0:null===(y=l.lab)||void 0===y?void 0:y.jewels)||(null==eS?void 0:eS.map((e,t)=>({...(null===u.jewels||void 0===u.jewels?void 0:u.jewels[t])||{},acquired:1===e,rawName:"ConsoleJwl".concat(t)})).filter(e=>{let{name:t}=e;return t})),ew=null==eC?void 0:eC.map(e=>e.map(e=>(null===u.chips||void 0===u.chips?void 0:u.chips[e])?{...null===u.chips||void 0===u.chips?void 0:u.chips[e],chipIndex:e}:e)),eE=(null!==(ed=null==l?void 0:null===(g=l.gemShopPurchases)||void 0===g?void 0:g.find((e,t)=>123===t))&&void 0!==ed?ed:0)*2,eF=[...t].filter((e,t)=>{var m,u;return(0,h.fe)(l,0)||(null==e?void 0:e.AFKtarget)==="Laboratory"||isLabEnabledBySorcererRaw(e,1)||(null==l?void 0:null===(u=l.divinity)||void 0===u?void 0:null===(m=u.linkedDeities)||void 0===m?void 0:m[t])===1}).map((e,t)=>{var l,m;return{...e,x:null==eR?void 0:null===(l=eR[null==e?void 0:e.playerId])||void 0===l?void 0:l.x,y:null==eR?void 0:null===(m=eR[null==e?void 0:e.playerId])||void 0===m?void 0:m.y}}),eP=JSON.parse(JSON.stringify(u.chips));null==eg||eg.map((e,t)=>{if(te).reduce((e,l)=>e+(l.index===eP[t].index?1:0),0);eP[t].repoAmount=e-l,eP[t].amount=l}});let eD=(null!==(ep=null==l?void 0:null===(V=l.tasks)||void 0===V?void 0:null===(k=V[2])||void 0===k?void 0:null===(E=k[3])||void 0===E?void 0:E[4])&&void 0!==ep?ep:0)*(null===u.merits||void 0===u.merits?void 0:null===(ee=u.merits[3])||void 0===ee?void 0:null===(j=ee[4])||void 0===j?void 0:j.bonusPerLevel),eA=t.filter(e=>{let{CharacterClass:t}=e;return 36===t}),eL=null==eA?void 0:eA.reduce((e,t)=>(null==e?void 0:e.SkillLevels[536])>(null==t?void 0:t.SkillLevels[536])?e:t,null==eA?void 0:eA[0]);eL&&(eL={...eL,...null==eR?void 0:eR[null==eL?void 0:eL.playerId]});let ex=(0,b.z)(null==l?void 0:null===(ea=l.equinox)||void 0===ea?void 0:ea.upgrades,"Laboratory_Fuse"),eU=(0,L.R)(l,"+{ Lab Con Range"),eQ=!0,eG=JSON.parse(JSON.stringify(u.labBonuses)),eB=[];for(;eQ;){if(eQ=!1,(eF=calcPlayerLineWidth(eF,eG,eI,ew,l,null==l?void 0:l.cards,null==l?void 0:l.gemShopPurchases,eT,ef,eL,t,m)).length>0&&0===eB.length){let e=getPrismPlayerConnection(eF);e&&eB.push(e)}for(let e=0;ee.playerId===u.playerId)&&(d=!0,eB=[...eB,u]);let y=getLabBonus(eG,8),h=getJewelBonus(eI,9,y),g=getLabBonus(eG,13),E=checkConnection(eG,h,g,eD,ex,eU,null==eB?void 0:eB[e],!1);eG=E.resArr;let b=checkConnection(eI,h,g,eD,ex,eU,null==eB?void 0:eB[e],!0);(null==(eI=b.resArr)?void 0:null===(ey=eI[16])||void 0===ey?void 0:ey.acquired)&&!(null==eI?void 0:null===(eh=eI[16])||void 0===eh?void 0:eh.active)&&(eI[16].active=!0,eF=calcPlayerLineWidth(eF,eG,eI,ew,l,null==l?void 0:l.cards,null==l?void 0:l.gemShopPurchases,eT,ef,eL,t,m),eI[16].active=!1),eG=(E=checkConnection(eG,h,g,eD,ex,eU,null==eB?void 0:eB[e],!1)).resArr,eI=(b=checkConnection(eI,h,g,eD,ex,eU,null==eB?void 0:eB[e],!0)).resArr,eQ=eQ||d||(null==b?void 0:b.newConnection)||(null==E?void 0:E.newConnection)}}}let eM=getJewelBonus(eI,19),eO=getLabBonus(eG,8);eI=eI.map((e,t)=>{var l;return{...e,multiplier:19===t?1:eO+((null==eI?void 0:null===(l=eI[19])||void 0===l?void 0:l.active)?eM:0)/100}});let ek=null==l?void 0:l.breeding.speciesUnlocks.reduce((e,t)=>e+t,0),eW=null==eI?void 0:null===(el=eI[1])||void 0===el?void 0:el.active;eG=applyBonusDesc(eG,ek*(eW?1.75:1),0,eW?1.75:1);let eH=null==l?void 0:null===(eo=l.storage)||void 0===eo?void 0:eo.filter(e=>e.amount>=1e7).length,eK=(null==eI?void 0:null===(e_=eI[17])||void 0===e_?void 0:e_.active)?1.5:0;return eG=applyBonusDesc(eG,eH*(2+eK),11,2+eK),{playersCords:eR=null==eR?void 0:eR.map((e,t)=>{let l=null==eF?void 0:eF.find(e=>{let{playerId:l}=e;return l===t});return{...e,lineWidth:(null==l?void 0:l.lineWidth)||(null==e?void 0:e.lineWidth)||0,soupedUp:te+t,0),currentRotation:eN}},isLabEnabledBySorcererRaw=(e,t)=>{if((null===u.classes||void 0===u.classes?void 0:u.classes[null==e?void 0:e.CharacterClass])==="Elemental_Sorcerer"){var l;let m=null==e?void 0:null===(l=e.SkillLevels)||void 0===l?void 0:l[505];return m%10===t}},isGodEnabledBySorcerer=(e,t)=>{if((null==e?void 0:e.class)==="Elemental_Sorcerer"){var l;let m=null===(l=e.flatTalents)||void 0===l?void 0:l.find(e=>{let{talentId:t}=e;return 505===t});return(null==m?void 0:m.level)%10===t}},applyBonusDesc=function(e,t,l){let m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return null==e?void 0:e.map((e,u)=>u===l?{...e,bonusOn:t,extraData:m,bonusDesc:t}:e)},getJewelBonus=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,m=(null==e?void 0:e.find(e=>e.index===t))||{};return(null==m?void 0:m.active)?(null==m?void 0:m.bonus)*((null==m?void 0:m.multiplier)||l):0},getLabBonus=(e,t)=>{var l;let m=(null==e?void 0:e.find(e=>e.index===t))||{};return null!==(l=(null==m?void 0:m.active)?null==m?void 0:m.bonusOn:null==m?void 0:m.bonusOff)&&void 0!==l?l:0},getDistance=(e,t,l,m)=>.9604339*Math.max(Math.abs(e-l),Math.abs(t-m))+.397824735*Math.min(Math.abs(e-l),Math.abs(t-m)),getRange=(e,t,l,m,u,d,y)=>!y&&(13===d||8===d)||9===d&&y||19===d&&y?80:80*(1+(e+t)/100)+l+m+u,calcPlayerLineWidth=(e,t,l,m,u,d,y,g,E,b,L,k)=>null==e?void 0:e.map(e=>{var V,j,ee;let ea=(null!==(ee=null==y?void 0:y.find((e,t)=>123===t))&&void 0!==ee?ee:0)*2,el=(0,h.bV)(g,E,13)?20:0,eo=null==L?void 0:null===(V=L.find(t=>{let{name:l}=t;return l===(null==e?void 0:e.name)}))||void 0===V?void 0:V.playerId,e_=getPlayerLineWidth(e,null==e?void 0:null===(j=e.Lv0)||void 0===j?void 0:j[12],ea>0&&eo<=ea,t,l,null==m?void 0:m[null==e?void 0:e.playerId],u,d,el,b,k);return{...e,lineWidth:e_}}),getPlayerLineWidth=(e,t,l,h,b,L,k,V,j,ee,ea)=>{var el,eo,e_;let ec=getLabBonus(h,8),em=50+2*(null!=t?t:0),{acquired:ed,x:ep,y:ey}=b[5];ed&&150>getDistance(ep,ey,e.x,e.y)&&(em*=1.25);let eh=null==L?void 0:L.reduce((e,t)=>6===t.index?e+t.baseVal:e,0),eT=getJewelBonus(b,16,ec),ef=(0,d.F4)(k,null,"PxLine",eT),ev=(0,d.F4)(k,null,"LinePct",eT),eg=(0,y.OK)(V,"Line_Width_(Passive)"),eS=(0,g.du)(null==k?void 0:null===(el=k.breeding)||void 0===el?void 0:el.pets,"Line_Width_in_Lab"),eN=0;if((null==e?void 0:e.x)>=(null==ee?void 0:ee.x)){let e=ee.SkillLevels[536]||0,t=(null===u.talents||void 0===u.talents?void 0:null===(eo=u.talents.Bubonic_Conjuror)||void 0===eo?void 0:eo.PURPLE_TUBE)||{};eN=ea?(0,E.A5)(ea,3,"Bubonic_Conjuror","PURPLE_TUBE",!1,!0):null!==(e_=(0,m.growth)(null==t?void 0:t.funcX,e,null==t?void 0:t.x1,null==t?void 0:t.x2,!1))&&void 0!==e_?e_:0}return Math.floor((em+ef+Math.min(eg,50))*(1+(eN+ev+(eh+20*j+eS+(l?30:0)))/100))},getPrismPlayerConnection=e=>{for(let t=0;t{for(let m=0;mt.playerId===e[m].playerId)&&h)return e[m]}return null},checkConnection=(e,t,l,m,u,d,y,h)=>null==e?void 0:e.reduce((e,g,E)=>{let b=!1,L=getRange(t,l,m,u,d,E,h),k=getDistance(y.x,y.y,g.x,g.y);return k{var m,u,d,y;return null!==(y=null==t?void 0:null===(d=t.lab)||void 0===d?void 0:null===(u=d.playersChips)||void 0===u?void 0:null===(m=u[null==e?void 0:e.playerId])||void 0===m?void 0:m.reduce((e,t)=>(null==t?void 0:t.index)===l?e+(null==t?void 0:t.baseVal):e,0))&&void 0!==y?y:0},getRequirementAmount=(e,t,l)=>{var m,u,d,y,h;let g;if(t.includes("Spice")){let e=null==l?void 0:null===(d=l.cooking)||void 0===d?void 0:null===(u=d.spices)||void 0===u?void 0:null===(m=u.available)||void 0===m?void 0:m.find(e=>{let{rawName:l}=e;return l===t});g=(null==e?void 0:e.amount)||0}else if(t.includes("CookingM")){let t=null==l?void 0:null===(h=l.cooking)||void 0===h?void 0:null===(y=h.meals)||void 0===y?void 0:y.find(t=>{let{name:l}=t;return l===e});g=(null==t?void 0:t.amount)||0}else g=(0,k.ju)(null==l?void 0:l.storage,t,!0,!0);return g}},10924:function(e,t,l){"use strict";l.d(t,{B4:function(){return calculateTotalSkillsLevel},DE:function(){return getCurrencies},HA:function(){return getTypeGen},Hx:function(){return getHighestLevelOfClass},Ix:function(){return enhanceKeysObject},KB:function(){return getRandomEvents},NG:function(){return getKillroySchedule},NQ:function(){return getLooty},Nh:function(){return getCharacterByHighestSkillLevel},O4:function(){return getExpReq},QV:function(){return getHighestLevelCharacter},Rf:function(){return getCompanions},U7:function(){return isBundlePurchased},UR:function(){return getMaterialCapacity},VS:function(){return getKillRoy},W9:function(){return getLibraryBookTimes},Wk:function(){return getMinigameScore},XQ:function(){return calculateAfkTime},Yu:function(){return getSpeedBonusFromAgility},Zf:function(){return getHealthFoodBonus},_3:function(){return getGoldenFoodMulti},ai:function(){return getGiantMobChance},bV:function(){return isArenaBonusActive},cg:function(){return enhanceColoTickets},f6:function(){return getRandomEventItems},fe:function(){return isCompanionBonusActive},fi:function(){return getSkillMasteryBonusByIndex},fx:function(){return getHighestCharacterSkill},jU:function(){return getHighestLevelOf},kU:function(){return getBundles},pA:function(){return isMasteryBonusUnlocked},qO:function(){return getEventShopBonus},qP:function(){return getSkillRankColor},rb:function(){return getMiniBossesData},sU:function(){return getFoodBonus},tE:function(){return getGoldenFoodBonus},tS:function(){return calculateLeaderboard},tc:function(){return getHighestCapacityCharacter},vZ:function(){return calcTotalQuestCompleted},z3:function(){return getItemCapacity}});var m=l(30925),u=l(34664),d=l(70473),y=l(30796),h=l(89260),g=l(88054),E=l(1972),b=l(9339),L=l(15893),k=l(95331),V=l(15815),j=l(64569),ee=l(20385),ea=l(79603),el=l(88344),eo=l(74044),e_=l(33913),ec=l(64605),em=l(96707),ed=l(56552),ep=l(8616),ey=l(29129),eh=l(48832);let getLibraryBookTimes=(e,t,l)=>{var m;let{bookCount:u,libTime:d,breakdown:y}=calcBookCount(l,t,e),h=null==l?void 0:l.timeAway,g=[16,18,20].map(m=>({breakpoint:m,time:calcTimeToXBooks(u,m,l,t,e)-(null==h?void 0:h.BookLib)}));return g=[...g,{breakpoint:0,time:calcTimeToXBooks(0,20,l,t,e)}],{bookCount:u,next:(null===(m=getTimeToNextBooks(u,l,t,e))||void 0===m?void 0:m.value)-d,breakdown:y,breakpoints:g}},calcBookCount=(e,t,l)=>{var m,u,d;let y=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[55],h=null==e?void 0:e.timeAway,g=null==h?void 0:h.BookLib,E=(new Date).getTime()/1e3-h.GlobalTime,b=y;E>300&&(g+=E);let{breakdown:L}=getTimeToNextBooks(b,e,t,l);for(;g>(null===(u=getTimeToNextBooks(b,e,t,l))||void 0===u?void 0:u.value);)g-=null===(d=getTimeToNextBooks(b,e,t,l))||void 0===d?void 0:d.value,b+=1;return{bookCount:b,libTime:g,breakdown:L}},calcTimeToXBooks=(e,t,l,m,u)=>{let d=0;for(let h=e;h{var d,y,V;let j=(0,m.tryToParse)(null==u?void 0:u.Tower)||(null==u?void 0:u.Tower),ea=(0,L.c9)(null==t?void 0:t.lab.labBonuses,8),el=(0,L.pc)(null==t?void 0:null===(d=t.lab)||void 0===d?void 0:d.jewels,16,ea),eo=(0,h.F4)(t,"Library_checkout_Speed",null,el),e_=(0,g.om)(null==t?void 0:null===(y=t.alchemy)||void 0===y?void 0:y.bubbles,"kazam","IGNORE_OVERDUES",!1),ec=(0,g.YG)(null==t?void 0:null===(V=t.alchemy)||void 0===V?void 0:V.vials,"Talent_Book_Library"),em=(0,E.mV)(t,"Talent_Book_Library_Refresh_Speed"),ed=null==j?void 0:j[1],ep=(0,k._m)(t,"Oxygen_-_Library_Booker"),ey=(0,ee.Ob)(t,"Library_Checkouts"),eh=0;ey&&(eh=null==ey?void 0:ey.totalBonus);let eT=Math.round(4*(3600/((1+eo/100)*(1+ep/100)*(1+(5*ed+e_+(ec+(em+Math.min(30,Math.max(0,30*(0,b.k6)(null==t?void 0:t.achievements,145)))+eh)))/100)))*(1+10*Math.pow(e,1.4)/100)),ef=[{name:"Meal Bonus",value:eo},{name:"Atom Bonus",value:ep},{name:"Tower Bonus",value:5*ed},{name:"Bubble Bonus",value:e_},{name:"Vial Bonus",value:ec},{name:"Stamp Bonus",value:em},{name:"Superbit Bonus",value:eh},{name:"Achievement Bonus",value:Math.min(30,Math.max(0,30*(0,b.k6)(null==t?void 0:t.achievements,145)))}];return{value:eT,breakdown:ef}},getLooty=e=>{var t,l;let y=(null==e?void 0:null===(t=e.Cards)||void 0===t?void 0:t[1])||(0,m.tryToParse)(null==e?void 0:e.Cards1),h=JSON.parse(JSON.stringify(d.items)),g=null===d.slab||void 0===d.slab?void 0:d.slab.map(e=>{var t;return{name:null==h?void 0:null===(t=h[e])||void 0===t?void 0:t.displayName,rawName:e,obtained:null==y?void 0:y.includes(e),onRotation:null===u.Ns||void 0===u.Ns?void 0:u.Ns[e],unobtainable:null===u.oA||void 0===u.oA?void 0:u.oA[e]}}),E=null==g?void 0:null===(l=g.filter(e=>{let{obtained:t,rawName:l,unobtainable:m}=e;return!t&&!m}))||void 0===l?void 0:l.length;return{slabItems:g,lootyRaw:y,lootedItems:null==y?void 0:y.length,missingItems:E,totalItems:null===d.slab||void 0===d.slab?void 0:d.slab.length,rawLootedItems:null==y?void 0:y.length}},getCurrencies=(e,t)=>{var l,m,u;let d=(null==t?void 0:null===(l=t.CurrenciesOwned)||void 0===l?void 0:l.KeysAll)||(null==t?void 0:t.CYKeysAll);return(null==t?void 0:t.CurrenciesOwned)?{...null==t?void 0:t.CurrenciesOwned,KeysAll:getKeysObject(d)}:{WorldTeleports:null==t?void 0:t.CYWorldTeleports,KeysAll:getKeysObject(d),ColosseumTickets:null==t?void 0:t.CYColosseumTickets,ObolFragments:null==t?void 0:t.CYObolFragments,SilverPens:null==t?void 0:t.CYSilverPens,GoldPens:null==t?void 0:t.CYGoldPens,DeliveryBoxComplete:null==t?void 0:t.CYDeliveryBoxComplete,DeliveryBoxStreak:null==t?void 0:t.CYDeliveryBoxStreak,DeliveryBoxMisc:null==t?void 0:t.CYDeliveryBoxMisc,minigamePlays:null!==(u=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[33])&&void 0!==u?u:0}},enhanceColoTickets=(e,t,l)=>{let m=Object.entries({0:{name:"Typhoon",dialogThreshold:3,daysSinceIndex:15},1:{name:"Centurion",dialogThreshold:4,daysSinceIndex:35},2:{name:"Lonely_Hunter",dialogThreshold:6,daysSinceIndex:56}}).reduce((t,m,u)=>{var d;let[,y]=m,h=null==l?void 0:null===(d=l.accountOptions)||void 0===d?void 0:d[null==y?void 0:y.daysSinceIndex];return[...t,{rawName:"TixEZ".concat(u),amountPerDay:1,daysSincePickup:h,amount:e,totalAmount:Math.min(h,3)}]},[]);return{allTickets:m,totalAmount:e}},getKeysObject=e=>e.reduce((e,t,l)=>l<5?[...e,{amount:t,...u.Aw[l]}]:e,[]),enhanceKeysObject=(e,t,l)=>{let m={0:{name:"Dog_Bone",dialogThreshold:5,daysSinceIndex:16},1:{name:"Djonnut",dialogThreshold:6,daysSinceIndex:31},2:{name:"Bellows",dialogThreshold:8.5,daysSinceIndex:80},3:{}};return e.map((e,u)=>{var d,y;let h=getAmountPerDay(null==m?void 0:m[u],t),g=null==l?void 0:null===(y=l.accountOptions)||void 0===y?void 0:y[null==m?void 0:null===(d=m[u])||void 0===d?void 0:d.daysSinceIndex];return{...e,amountPerDay:h,daysSincePickup:g,totalAmount:Math.min(g,3)*h}})},getAmountPerDay=function(){let{name:e,dialogThreshold:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return l.reduce((l,m)=>{let{npcDialog:u}=m;return void 0===t?l:(null==u?void 0:u[e])>t?l+1:l},0)},getBundles=e=>{var t;let l=(0,m.tryToParse)(null==e?void 0:e.BundlesReceived)||(null==e?void 0:e.BundlesReceived);return l?null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t;return m?[...e,{name:l,owned:!!m}]:e},[]).sort((e,t)=>{var l,m,u,d;return null==e?void 0:null===(d=e.name)||void 0===d?void 0:null===(u=d.match(/_[a-z]/i))||void 0===u?void 0:u[0].localeCompare(null==t?void 0:null===(m=t.name)||void 0===m?void 0:null===(l=m.match(/_[a-z]/i))||void 0===l?void 0:l[0])}):[]},isBundlePurchased=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}),isArenaBonusActive=(e,t,l)=>{let m=t.split(" ");return!(l>m.length)&&e>=m[l]},calculateAfkTime=e=>1e3*parseFloat(e),getMaterialCapacity=(e,t)=>{let{allCapacity:l,mattyBagStampBonus:m,gemShopCarryBonus:u,masonJarStampBonus:d,extraBagsTalentBonus:y,starSignExtraCap:h}=t,g=null==e?void 0:e.capacity;return Math.floor(g*(1+m/100)*(1+25*u/100)*(1+(d+h)/100)*(1+y/100)*l)},getSpeedBonusFromAgility=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(Math.pow(e+1,.37)-1)/40;return e>1e3&&(t=(e-1e3)/(e+2500)*.5+.297),2*t+1},getHighestLevelOf=(e,t)=>{let l=null==e?void 0:e.filter(e=>(0,y.gW)(null==e?void 0:e.class,t));return null==l?void 0:l.reduce((e,t)=>{let{level:l}=t;return l>e?l:e},0)},getHighestLevelOfClass=(e,t,l)=>{let m=null==e?void 0:e.reduce((e,t)=>{let{level:l,class:m}=t;return(null==e?void 0:e[m])?e[m]=Math.max(null==e?void 0:e[m],l):e[m]=l,e},{}),u=null===y.pV||void 0===y.pV?void 0:y.pV[t];l&&(u=u.filter(e=>e===t));let d=null==u?void 0:u.find(e=>null==m?void 0:m[e]);return(null==m?void 0:m[d])||0},getCharacterByHighestSkillLevel=(e,t,l)=>{let m;if(t){let l=null===y.pV||void 0===y.pV?void 0:y.pV[t];m=e.filter(e=>l.includes(e.class))}else m=e;return m.reduce((e,t)=>{var m,u,d,y;return(null==t?void 0:null===(u=t.skillsInfo)||void 0===u?void 0:null===(m=u[l])||void 0===m?void 0:m.level)>(null==e?void 0:null===(y=e.skillsInfo)||void 0===y?void 0:null===(d=y[l])||void 0===d?void 0:d.level)?t:e},m[0])},getHighestLevelCharacter=e=>{let t=null==e?void 0:e.map(e=>{let{level:t}=e;return t});return Math.max(...t)},getHighestCharacterSkill=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,l=null==e?void 0:e.map(e=>{var l,m;let{skillsInfo:u}=e;return null!==(m=null==u?void 0:null===(l=u[t])||void 0===l?void 0:l.level)&&void 0!==m?m:0});return Math.max(...l)},calculateLeaderboard=e=>{var t;let l=e.reduce((e,t)=>{let{name:l,skillsInfo:m}=t;if(!m)return e;for(let[t,u]of Object.entries(m))if(e[t]){let m={...e[t],[l]:u},d=Object.keys(m).length;e[t]=Object.entries(m).sort((e,t)=>{let[l,{level:m}]=e,[u,{level:d}]=t;return d-m}).reduceRight((e,t)=>{let[l,m]=t;return{...e,[l]:{...m,rank:d--}}},{})}else e[t]={...e[t],[l]:u};return e},{});return null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,m]=t,u=Object.entries(m).reduce((e,t)=>{let[m,u]=t;return{...e,[m]:{[l]:u}}},{});return Object.entries(u).reduce((t,l)=>{let[m,u]=l;return{...t,[m]:{...e[m]||{},...u}}},{})},{})},calculateTotalSkillsLevel=e=>{var t;let l=null==e?void 0:e.reduce((e,t)=>{let{skillsInfo:l}=t;if(!l)return e;for(let[t,u]of Object.entries(l))if(null==e?void 0:e[t]){var m;e[t]={...e[t],level:null!==(m=e[t].level+(null==u?void 0:u.level))&&void 0!==m?m:0}}else e[t]={level:null==u?void 0:u.level,index:(null==u?void 0:u.index)-1,icon:null==u?void 0:u.icon};return e},{});return null===(t=Object.entries(l))||void 0===t?void 0:t.reduce((e,t)=>{let[l,{level:m}]=t,u=getSkillRank(m);return{...e,[l]:{...null==e?void 0:e[l],rank:u,color:getSkillRankColor(m)}}},l)},getSkillRankColor=e=>e<300?"white":e>=300&&e<400?"#ffc277":e>=400&&e<600?"#cadadb":e>=600&&e<1e3?"gold":"#56ccff",getSkillRank=e=>150>e?0:200>e?1:300>e?2:400>e?3:500>e?4:750>e?5:1e3>e?6:7,isMasteryBonusUnlocked=(e,t,l)=>(null==e?void 0:e.currentRift)<15?0:t>l?1:0,getSkillRankByIndex=(e,t)=>{for(let[,l]of Object.entries(e))if((null==l?void 0:l.level)>0&&(null==l?void 0:l.index)===t)return null==l?void 0:l.rank;return null},getSkillMasteryBonusByIndex=(e,t,l)=>{let m=Array(15).fill(1);return null==m?void 0:m.reduce((m,u,d)=>{let y=getSkillRankByIndex(e,d);return 1===l?m+=10*isMasteryBonusUnlocked(t,y,Math.round(l)):3===l?m+=isMasteryBonusUnlocked(t,y,Math.round(l)):4===l?m+=25*isMasteryBonusUnlocked(t,y,Math.round(l)):0!==d&&2!==d&&3!==d&&5!==d&&6!==d&&8!==d&&8!==d&&(m+=5*isMasteryBonusUnlocked(t,y,Math.round(l))),m},7)},getExpReq=(e,t)=>0===e?(15+Math.pow(t,1.9)+11*t)*Math.pow(1.208-Math.min(.164,.215*t/(t+100)),t)-15:2===e?(15+Math.pow(t,2)+13*t)*Math.pow(1.225-Math.min(.114,.135*t/(t+50)),t)-26:8===e?71>t?((10+Math.pow(t,2.81)+4*t)*Math.pow(1.117-.135*t/(t+5),t)-6)*(1+Math.pow(t,1.72)/300):((10+Math.pow(t,2.81)+4*t)*Math.pow(1.003,t)-6)/2.35*(1+Math.pow(t,1.72)/300):9===e?(15+Math.pow(t,1.3)+6*t)*Math.pow(1.17-Math.min(.07,.135*t/(t+50)),t)-26:(15+Math.pow(t,2)+15*t)*Math.pow(1.225-Math.min(.18,.135*t/(t+50)),t)-30,getGiantMobChance=(e,t)=>{var l,m,u,d;let y=null==t?void 0:null===(l=t.accountOptions)||void 0===l?void 0:l[57],h=null===(m=(0,V.Y0)(null==e?void 0:e.activePrayers,"Glitterbug",t))||void 0===m?void 0:m.curse,E=(0,j.wt)(null==t?void 0:t.shrines,6,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(u=t.sailing)||void 0===u?void 0:u.artifacts),b=(0,g.iu)(null==t?void 0:null===(d=t.alchemy)||void 0===d?void 0:d.vials,"GiantMob");return{chance:y<5?1/((100+50*Math.pow(y+1,2))*(1+h/100))*(1+(E+b)/100):1/(2*Math.pow(y+1,1.95)*(1+h/100)*Math.pow(y+1,1.5+y/15))*(1+(E+b)/100),crescentShrineBonus:E,giantMobVial:b,glitterbugPrayer:h}},getGoldenFoodMulti=(e,t)=>{var l,m,u,k,V,j,ee,eo;let e_=null!==(eo=null!==(ee=getHighestLevelOfClass(null==t?void 0:t.charactersLevels,"Bubonic_Conjuror"))&&void 0!==ee?ee:getHighestLevelOfClass(null==t?void 0:t.charactersLevels,"Shaman"))&&void 0!==eo?eo:0,ec=(0,y._X)(null==e?void 0:e.talents,3,"THE_FAMILY_GUY"),ed=(0,ea.D)(d.classFamilyBonuses,"GOLDEN_FOODS",e_),eT=null===(l=y.pV[null==e?void 0:e.class])||void 0===l?void 0:l.includes("Shaman"),ef=(0,el.zi)(e,8,t),ev=(0,y._X)(null==e?void 0:e.talents,1,"HAUNGRY_FOR_GOLD"),eg=(0,E.mV)(t,"Effect_from_Golden_Food._Sparkle_sparkle!"),eS=(0,b.k6)(null==t?void 0:t.achievements,37),eN=(0,g.om)(null==t?void 0:null===(m=t.alchemy)||void 0===m?void 0:m.bubbles,"power","SHIMMERON",!1,(null===y.nl||void 0===y.nl?void 0:y.nl[null==e?void 0:e.class])==="strength"),eC=(0,g.Vq)(null==t?void 0:null===(k=t.alchemy)||void 0===k?void 0:null===(u=k.p2w)||void 0===u?void 0:u.sigils,"EMOJI_VEGGIE"),eR=(0,ep.vq)(t,"Gumm_Stick"),eI=(0,L.c9)(null==t?void 0:null===(V=t.lab)||void 0===V?void 0:V.labBonuses,8),ew=(0,L.pc)(null==t?void 0:null===(j=t.lab)||void 0===j?void 0:j.jewels,16,eI),eE=(0,h.F4)(t,null,"zGoldFood",ew),eF=(0,em.o9)(e,t,"Golden_Food"),eP=(0,ey.k)(null==t?void 0:t.bribes,"Gold_from_Lead"),eD=(0,b.k6)(null==t?void 0:t.achievements,380),eA=(0,b.k6)(null==t?void 0:t.achievements,383),eL=(0,eh.F)(t,26);return Math.max(eT?ed*(ec>0?1+ec/100:1)||0:ed,1)+(ef+(ev+(eg+(eS+(eN+eC)+eE+eF+eP+eR+(2*eD+3*eA+eL)))))/100},getGoldenFoodBonus=(e,t,l)=>{var u,y;if(!t)return 0;let h=null==t?void 0:null===(u=t.food)||void 0===u?void 0:u.find(t=>{let{name:l}=t;return l===e}),g=getGoldenFoodMulti(t,l),E=(null==h?void 0:h.Amount)&&(null==h?void 0:h.amount)?(null==h?void 0:h.Amount)*g*.05*(0,m.lavaLog)(1+(null==h?void 0:h.amount))*(1+(0,m.lavaLog)(1+(null==h?void 0:h.amount))/2.14):0;if((0,ep.x5)(l,"Gold_Food_Beanstalk")){let t=null==l?void 0:null===(y=l.sneaking)||void 0===y?void 0:y.beanstalkData,u=d.ninjaExtraInfo[29].split(" ").filter(e=>isNaN(e)).map((e,l)=>({...(null===d.items||void 0===d.items?void 0:d.items[e])||{},active:(null==t?void 0:t[l])>0,index:l})),h=null==u?void 0:u.find(t=>{let{displayName:l,active:m}=t;return l===e&m});return h?E+(null==h?void 0:h.Amount)*g*.05*(0,m.lavaLog)(1+1e3*Math.pow(10,null==t?void 0:t[null==h?void 0:h.index]))*(1+(0,m.lavaLog)(1+1e3*Math.pow(10,null==t?void 0:t[null==h?void 0:h.index]))/2.14):E}return E},getRandomEvents=e=>{if(!e)return[];let{serverVars:t,timeAway:l}=e||{},m=[],u=Math.round(Math.floor((null==l?void 0:l.GlobalTime)/3600));for(let e=0;e<100;e++){let l=u+e+(null==t?void 0:t.RandEvntHr),y=new eo.Z(l),h=y.rand(),g=getEventType(h),E=new eo.Z(l+1),b=E.rand(),L=getEventMaps(g);if(0===L.length)continue;let k=Math.min(Math.floor(b*L.length),L.length-1),V=null===d.rawMapNames||void 0===d.rawMapNames?void 0:d.rawMapNames.indexOf(null==L?void 0:L[k]);if(-1===V)continue;let j=null===d.mapNames||void 0===d.mapNames?void 0:d.mapNames[V],ee=getEventName(g),ea=(u+e+1)*36e5;if((0,e_.Z)(ea))continue;let el=new Date(ea);el.isDstObserved()&&(ea-=36e5),m.push({mapName:j,eventName:ee,date:ea})}return m},getEventMaps=e=>{let[t,l,m]=d.randomList.slice(68,71),u=[];return(0===e||1===e||3===e||4===e)&&(u=u.concat(t.split(" "))),(0===e||1===e||3===e)&&(u=u.concat(l.split(" "))),(0===e||2===e)&&(u=u.concat(m.split(" "))),u},getEventName=e=>{var t;let l={0:"Meteorite",1:"Mega_Grumblo",2:"Glacial_Guild",3:"Snake_Swarm",4:"Angry_Frogs"};return null!==(t=null==l?void 0:l[e])&&void 0!==t?t:""},getEventType=e=>.045>e?0:.087>e?1:.129>e?2:.171>e?3:.213>e?4:-1,getHighestCapacityCharacter=(e,t,l)=>null==t?void 0:t.reduce((t,m)=>{var u;let d=(null==e?void 0:e.itemType)==="Equip"?1:null===(u=getItemCapacity(null==e?void 0:e.typeGen,m,l))||void 0===u?void 0:u.value,y=(null==m?void 0:m.inventorySlots)*d;return y>(null==t?void 0:t.maxCapacity)&&(t={capacityPerSlot:d,maxCapacity:y,character:null==m?void 0:m.name}),t},{capacityPerSlot:0,maxCapacity:0,character:""}),getAllCap=(e,t)=>{var l,m,u,d,h,g,E,b;let L=(0,ec._r)(null==t?void 0:null===(l=t.guild)||void 0===l?void 0:l.guildBonuses,2),k=(0,y._X)(null==e?void 0:e.starTalents,null,"TELEKINETIC_STORAGE"),ee=(0,j.wt)(null==t?void 0:t.shrines,3,null==e?void 0:e.mapIndex,null==t?void 0:t.cards,null==t?void 0:null===(m=t.sailing)||void 0===m?void 0:m.artifacts),ea=null===(u=(0,V.Y0)(null==e?void 0:e.activePrayers,"Zerg_Rushogen",t))||void 0===u?void 0:u.curse,el=null===(d=(0,V.Y0)(null==e?void 0:e.activePrayers,"Ruck_Sack",t))||void 0===d?void 0:d.bonus,eo=(null==t?void 0:null===(g=t.bribes)||void 0===g?void 0:null===(h=g[23])||void 0===h?void 0:h.done)?null==t?void 0:null===(b=t.bribes)||void 0===b?void 0:null===(E=b[23])||void 0===E?void 0:E.value:0;return{value:(1+(L+k)/100)*(1+ee/100)*Math.max(1-ea/100,.4)*(1+(el+eo)/100),breakdown:[{value:L,name:"Guild"},{value:k,name:"Talent"},{value:ee,name:"Shrine"},{value:el+-ea,name:"Prayer"},{value:eo,name:"Bribe"}]}},getItemCapacity=function(){var e,t,l,m,u,d,h,g,b,L,k,V,j,ee,ea,el,eo,e_;let ec=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ed=arguments.length>1?arguments[1]:void 0,ep=arguments.length>2?arguments[2]:void 0,ey=null==ep?void 0:null===(e=ep.gemShopPurchases)||void 0===e?void 0:e.find((e,t)=>58===t),eh=(0,em.o9)(ed,ep,"Carry_Cap"),eT=(0,E.mV)(ep,"Carrying_Capacity_for_Mining_Items",ed),ef=(0,E.mV)(ep,"Carrying_Capacity_for_Choppin'_Items",ed),ev=(0,E.mV)(ep,"Carry_Capacity_for_Fishing_Items",ed),eg=(0,E.mV)(ep,"Carry_Capacity_for_Catching_Items",ed),eS=(0,E.mV)(ep,"Carrying_Capacity_for_Material_Items",ed),eN=(0,E.mV)(ep,"Carry_Capacity_for_ALL_item_types!"),eC=(0,y._X)(null==ed?void 0:ed.talents,0,"EXTRA_BAGS"),eR=getAllCap(ed,ep),eI,ew=[{title:"Base"},{name:""},...null==eR?void 0:eR.breakdown,{name:""}];return"bOre"===ec||"bBar"===ec||"cOil"===ec?(eI=Math.floor((null==ed?void 0:null===(t=ed.maxCarryCap)||void 0===t?void 0:t.Mining)*(1+eT/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Mining"},{name:""},{value:null==ed?void 0:null===(l=ed.maxCarryCap)||void 0===l?void 0:l.Mining,name:"Base Bag"},{value:eT,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dFish"===ec?(eI=Math.floor((null==ed?void 0:null===(m=ed.maxCarryCap)||void 0===m?void 0:m.Fishing)*(1+25*ey/100)*(1+ev/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Fishing"},{name:""},{value:null==ed?void 0:null===(u=ed.maxCarryCap)||void 0===u?void 0:u.Fishing,name:"Base Bag"},{value:ev,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dBugs"===ec?(eI=Math.floor((null==ed?void 0:null===(d=ed.maxCarryCap)||void 0===d?void 0:d.Bugs)*(1+25*ey/100)*(1+eg/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Catching"},{name:""},{value:null==ed?void 0:null===(h=ed.maxCarryCap)||void 0===h?void 0:h.Bugs,name:"Base Bag"},{value:eg,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"bLog"===ec||"bLeaf"===ec?(eI=Math.floor((null==ed?void 0:null===(g=ed.maxCarryCap)||void 0===g?void 0:g.Chopping)*(1+ef/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Chopping"},{name:""},{value:null==ed?void 0:null===(b=ed.maxCarryCap)||void 0===b?void 0:b.Chopping,name:"Base Bag"},{value:ef,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"cFood"===ec?(eI=Math.floor((null==ed?void 0:null===(L=ed.maxCarryCap)||void 0===L?void 0:L.Foods)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Food"},{name:""},{value:null==ed?void 0:null===(k=ed.maxCarryCap)||void 0===k?void 0:k.Foods,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dCritters"===ec?(eI=Math.floor((null==ed?void 0:null===(V=ed.maxCarryCap)||void 0===V?void 0:V.Critters)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Critters"},{name:""},{value:null==ed?void 0:null===(j=ed.maxCarryCap)||void 0===j?void 0:j.Critters,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dSouls"===ec?(eI=Math.floor((null==ed?void 0:null===(ee=ed.maxCarryCap)||void 0===ee?void 0:ee.Souls)*(1+25*ey/100)*(1+(eN+eh)/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Souls"},{name:""},{value:null==ed?void 0:null===(ea=ed.maxCarryCap)||void 0===ea?void 0:ea.Souls,name:"Base Bag"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eh,name:"Star Sign"}]):"dCurrency"===ec||"dQuest"===ec||"dStatueStone"===ec?eI=999999:"bCraft"===ec?(eI=Math.floor((null==ed?void 0:null===(el=ed.maxCarryCap)||void 0===el?void 0:el.bCraft)*(1+eS/100)*(1+25*ey/100)*(1+(eN+eh)/100)*(1+eC/100)*(null==eR?void 0:eR.value)),ew=[...ew,{title:"Materials"},{name:""},{value:null==ed?void 0:null===(eo=ed.maxCarryCap)||void 0===eo?void 0:eo.bCraft,name:"Base Bag"},{value:eS,name:"Stamps"},{value:ey,name:"Gemshop"},{value:eN,name:"All Stamps"},{value:eC,name:"Talent"},{value:eh,name:"Star Sign"}]):eI="dExpOrb"===ec||"dStone"===ec||"dFishToolkit"===ec?999999:"fillerz"===ec?null==ed?void 0:null===(e_=ed.maxCarryCap)||void 0===e_?void 0:e_.fillerz:"d"===ec.charAt(0)?999999:2,{value:eI,breakdown:ew}},getTypeGen=e=>{let t={bCraft:"bCraft",Foods:"cFood",Mining:"bOre",Quests:"dQuest",Statues:"dStatueStone",Chopping:"bLog",Fishing:"dFish",Bugs:"dBugs",Critters:"dCritters",Souls:"dSouls"};return null==t?void 0:t[e]},getFoodBonus=(e,t,l)=>{var m;let u=(0,ed.wJ)(e,t);return null==e?void 0:null===(m=e.food)||void 0===m?void 0:m.reduce((e,t)=>{let{Amount:m,Effect:d}=t;return e+(d===l?m*u:0)},0)},getHealthFoodBonus=(e,t,l)=>{var m;let u=(0,ed.wJ)(e,t,!0);return null==e?void 0:null===(m=e.food)||void 0===m?void 0:m.reduce((e,t)=>{let{Trigger:m,Amount:d,Cooldown:y,Effect:h}=t;return e+(m>0&&h===l?d*u/Math.max(y,1)*3600:0)},0)},getMinigameScore=(e,t)=>{var l,m,u;return(null==e?void 0:null===(u=e.highscores)||void 0===u?void 0:null===(m=u.minigameHighscores)||void 0===m?void 0:null===(l=m.find(e=>{let{minigame:l}=e;return l===t}))||void 0===l?void 0:l.score)||0},getCompanions=function(){var e,t;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[m]=(null==l?void 0:null===(e=l.e)||void 0===e?void 0:e.split(","))||[],u=null===d.companions||void 0===d.companions?void 0:d.companions[m],y=null==l?void 0:null===(t=l.l)||void 0===t?void 0:t.reduce((e,t)=>{let[l]=null==t?void 0:t.split(",");return{...e,[l]:!0}},{}),h=null===d.companions||void 0===d.companions?void 0:d.companions.map((e,t)=>({...e,acquired:!!(null==y?void 0:y[t])}));return{totalBoxesOpened:null==l?void 0:l.x,currentCompanion:u,list:h,lastFreeClaim:null==l?void 0:l.t,petCrystals:null==l?void 0:l.s,maxStorage:40}},isCompanionBonusActive=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.companions)||void 0===u?void 0:null===(m=u.list)||void 0===m?void 0:null===(l=m.at(t))||void 0===l?void 0:l.acquired},getRandomEventItems=e=>{var t;let l=d.randomList.slice(82,87).flat(),m=new Set(null==e?void 0:null===(t=e.looty)||void 0===t?void 0:t.lootyRaw);return l.reduce((e,t)=>m.has(t)?e+1:e,0)},getDays=(e,t)=>({mini3b:Math.min(10,Math.floor(Math.pow((t<3?3:t)-3,.55))),mini4b:Math.min(8,Math.floor(Math.pow((t<3?3:t)-3,.5))),mini5a:Math.min(6,Math.floor(Math.pow((t<3?3:t)-3,.5))),mini6a:Math.min(6,Math.floor(Math.pow((t<3?3:t)-3,.5)))})[e],getDaysTillNext=(e,t,l)=>(0,m.createRange)(1,100).find(m=>{let u=getDays(e,t+m);if(u>l)return m}),getMiniBossesData=e=>{var t,l,m,u,d,y,h,g,E,b,L,k;let V=null!==(E=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[96])&&void 0!==E?E:0,j=null!==(b=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[98])&&void 0!==b?b:0,ee=null!==(L=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[225])&&void 0!==L?L:0,ea=null!==(k=null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[226])&&void 0!==k?k:0,el=[getDays("mini3b",V),getDays("mini4b",j),getDays("mini5a",ee),getDays("mini6a",ea)];return[{current:el[0],maxed:el[0]>=10,rawName:"mini3b",name:"Dilapidated_Slush",unlocked:null==e?void 0:null===(d=e.finishedWorlds)||void 0===d?void 0:d.World3,daysTillNext:getDaysTillNext("mini3b",V,el[0])},{current:el[1],maxed:el[1]>=8,rawName:"mini4b",name:"Mutated_Mush",unlocked:null==e?void 0:null===(y=e.finishedWorlds)||void 0===y?void 0:y.World2,daysTillNext:getDaysTillNext("mini4b",j,el[1])},{current:el[2],maxed:el[2]>=6,rawName:"mini5a",name:"Domeo_Magmus",unlocked:null==e?void 0:null===(h=e.finishedWorlds)||void 0===h?void 0:h.World4,daysTillNext:getDaysTillNext("mini5a",ee,el[2])},{current:el[3],maxed:el[3]>=6,rawName:"mini6a",name:"Demented_Spiritlord",unlocked:null==e?void 0:null===(g=e.finishedWorlds)||void 0===g?void 0:g.World5,daysTillNext:getDaysTillNext("mini6a",ea,el[3])}].filter(e=>{let{unlocked:t}=e;return t})},getKillRoy=(e,t,l,u)=>{var y,h,g,E,b,L,k,V;let j=null==l?void 0:null===(y=l.accountOptions)||void 0===y?void 0:y[105],ee=(0,m.tryToParse)(null==e?void 0:e.KRbest),ea=Object.values(ee||{}).reduce((e,t)=>e+t,0),el=(null==l?void 0:null===(h=l.accountOptions)||void 0===h?void 0:h[227])===1,eo=el?3:2,e_=getKillRoyClasses(eo,l,u),ec=[{level:null==l?void 0:null===(g=l.accountOptions)||void 0===g?void 0:g[106],description:"Increases your maximum time in room. Base time is 100 seconds.",upgrade:"+1 Second Timer"},{level:null==l?void 0:null===(E=l.accountOptions)||void 0===E?void 0:E[107],description:"Increases chance for Talent Point drop, depends on how many Talent Point drops already got",upgrade:"+ Talent Drops"},{level:null==l?void 0:null===(b=l.accountOptions)||void 0===b?void 0:b[108],description:"Increases chance of dropping skulls by mobs",upgrade:"+1% Bonus Skulls"},{level:null==l?void 0:null===(L=l.accountOptions)||void 0===L?void 0:L[109],description:"Faster Respawn"},{level:null==l?void 0:null===(k=l.accountOptions)||void 0===k?void 0:k[110],description:"Mobs can drop Dungeon Credits now",upgrade:"Dungeon Drops"},{level:null==l?void 0:null===(V=l.accountOptions)||void 0===V?void 0:V[111],description:"Mobs can drop Pearls now",upgrade:"Pearl Drops"}];return{list:d.deathNote.map(e=>{var t;let l={...e,icon:"Mface".concat(null===d.monsters||void 0===d.monsters?void 0:d.monsters[e.rawName].MonsterFace)};return(null==ee?void 0:ee[e.rawName])?{...l,killRoyKills:null!==(t=null==ee?void 0:ee[e.rawName])&&void 0!==t?t:0}:l}),totalKills:ea,totalDamageMulti:1+Math.floor(Math.pow(ea,.4))/100,rooms:eo,killRoyClasses:e_,upgrades:ec,skulls:j}},calcTotalQuestCompleted=e=>{let t=e.reduce((e,t)=>{var l;let{questComplete:m}=t;return null===(l=Object.entries(m||{}))||void 0===l||l.forEach(t=>{let[l,m]=t;e[l]||1!==m||(e[l]=1)},0),e},{});return Object.values(t).reduce((e,t)=>e+t,0)},getKillroySchedule=(e,t,l)=>{var m;let u=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[227])===1,d=u?3:2,y=[];for(let m=0;m<20;m++)y.push(getKillRoyClasses(d,e,l,!0,m,t));return y},getKillRoyClasses=function(e,t,l){var m,u,y,h,g,E;let b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],L=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,k=arguments.length>5?arguments[5]:void 0,V=[],j=[],ee=null==t?void 0:null===(m=t.accountOptions)||void 0===m?void 0:m[113],ea={1:[0],21:[0,1],321:[0,1,2]},el=null==k?void 0:k.some(e=>{let{kills:t}=e;return(null==t?void 0:t[200])>=0}),e_=Math.floor(((null==t?void 0:null===(u=t.timeAway)||void 0===u?void 0:u.GlobalTime)+Math.round((null==t?void 0:null===(y=t.timeAway)||void 0===y?void 0:y.ShopRestock)+86400*(null==t?void 0:null===(h=t.accountOptions)||void 0===h?void 0:h[39])))/604800);for(let t=0;t=4){let e=d.randomList[99].split(" "),t=Math.floor(y/e.length),l=Math.round(y-t*e.length);j.push(e[l])}else{let e=d.randomList[Math.round(69+m)].split(" "),t=Math.floor(y/e.length),l=Math.round(y-t*e.length);j.push(e[l])}}return b?{monsters:j.map(e=>{var t;return null===(t=d.monsters[d.mapEnemiesArray[d.rawMapNames.indexOf(e)]])||void 0===t?void 0:t.MonsterFace}),classes:V.map(e=>({className:0===e?"Beginner":1===e?"Warrior":2===e?"Archer":"Mage",classIndex:0===e?1:1===e?6:2===e?18:30})),date:Math.floor((e_+L-1)*6048e5)}:V.map(e=>0===e?"Beginner":1===e?"Warrior":2===e?"Archer":"Mage")},getEventShopBonus=(e,t)=>{var l,u;return null!=e&&null!==(l=e.accountOptions)&&void 0!==l&&!!l[311]&&-1!==(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[311]).indexOf(m.number2letter[t])}},74805:function(e,t,l){"use strict";l.d(t,{dR:function(){return getObols},eX:function(){return mergeCharacterAndAccountObols},gY:function(){return getObolsBonus}});var m=l(30925),u=l(70473),d=l(88344);let y=["STR","AGI","WIS","LUK","Weapon_Power","Defence","UQ1txt","UQ2txt"],getObols=function(e){var t,l;let u=!(arguments.length>1)||void 0===arguments[1]||arguments[1],d=(0,m.tryToParse)(null==e?void 0:e.ObolEqO1)||(u?null==e?void 0:null===(t=e.ObolEquippedOrder)||void 0===t?void 0:t[1]:null==e?void 0:e.ObolEquippedOrder),y=(0,m.tryToParse)(null==e?void 0:e.ObolEqMAPz1)||(u?null==e?void 0:null===(l=e.ObolEquippedMap)||void 0===l?void 0:l[1]:null==e?void 0:e.ObolEquippedMap);return parseObols(d,y,u)},parseObols=(e,t,l)=>{let m=l?u.obols.family:u.obols.character,d=null==e?void 0:e.map((e,t)=>{var d;return{displayName:null===u.items||void 0===u.items?void 0:null===(d=u.items[e])||void 0===d?void 0:d.displayName,rawName:e,...l?{}:{index:calculateWeirdObolIndex(t)},...(null==m?void 0:m[t])?m[t]:{}}}),y=createObolsWithUpgrades(d,t);y.sort((e,t)=>e.index-t.index);let h=getStatsFromObols(y,l);return{list:y,stats:h}},createObolsWithUpgrades=(e,t)=>e.reduce((e,l,m)=>{let{rawName:y}=l;if("Blank"===y)return[...e,l];let h=(0,d.t8)(null===u.items||void 0===u.items?void 0:u.items[y],null==t?void 0:t[m]);return y?[...e,{..."Blank"===y?{}:{...l,...null===u.items||void 0===u.items?void 0:u.items[y],...h}}]:e},[]),getStatsFromObols=(e,t)=>{let l=t?"familyBonus":"personalBonus";return null==e?void 0:e.reduce((e,t)=>(Object.entries(t).forEach(m=>{var u,d,h,g,E,b,L,k,V,j;let[ee,ea]=m,el=y.includes(ee);if(el){if((null===(u=e[ee])||void 0===u?void 0:u[l])||(null===(d=e[ea])||void 0===d?void 0:d[l])){if("UQ1txt"===ee||"UQ2txt"===ee){if(0===ea)return;let m=null===(h=ee.match(/\d/g))||void 0===h?void 0:h[0];e[ea]={[l]:(null!==(E=null==e?void 0:null===(g=e[ea])||void 0===g?void 0:g[l])&&void 0!==E?E:0)+(null==t?void 0:t["UQ".concat(m,"val")])||0}}else e[ee]={[l]:(null!==(L=null==e?void 0:null===(b=e[ee])||void 0===b?void 0:b[l])&&void 0!==L?L:0)+ea}}else if("UQ1txt"===ee||"UQ2txt"===ee){if(0===ea)return;let m=null===(k=ee.match(/\d/g))||void 0===k?void 0:k[0];e[ea]={[l]:(null!==(j=null==e?void 0:null===(V=e[ea])||void 0===V?void 0:V[l])&&void 0!==j?j:0)+(null==t?void 0:t["UQ".concat(m,"val")])||0}}else e[ee]={[l]:ea}}}),e),{})},mergeCharacterAndAccountObols=(e,t)=>{let l=new Set([...Object.keys(e.stats),...Object.keys(t.stats)]);return Array.from(l).reduce((l,m)=>{var u,d,y,h;let{personalBonus:g}=null!==(y=null===(u=e.stats)||void 0===u?void 0:u[m])&&void 0!==y?y:0,{familyBonus:E}=null!==(h=null===(d=t.stats)||void 0===d?void 0:d[m])&&void 0!==h?h:0;return l[m]={personalBonus:g,familyBonus:E},l},{})},calculateWeirdObolIndex=e=>{switch(e){case 12:return 13;case 13:return 14;case 14:return 12;case 17:return 15;case 15:return 17;case 16:return 19;case 18:return 16;case 19:return 18;default:return e}},getObolsBonus=(e,t)=>{var l;let{personalBonus:m=0,familyBonus:u=0}=(null==e?void 0:null===(l=e.stats)||void 0===l?void 0:l[t])||{};return m||u?(null!=m?m:0)+(null!=u?u:0):0}},34664:function(e,t,l){"use strict";l.d(t,{Aw:function(){return d},Ns:function(){return y},Pe:function(){return u},SS:function(){return m},du:function(){return g},oA:function(){return h}});let m={The_Book_Worm:"1",The_Buff_Guy:"1a",The_Fuzzy_Dice:"1b",Flexo_Bendo:"2",Dwarfo_Beardus:"3",Hipster_Logger:"4",Pie_Seas:"4a",Miniature_Game:"4b",Shoe_Fly:"4c",Pack_Mule:"5",Pirate_Booty:"6",All_Rounder:"7",Muscle_Man:"7a",Fast_Frog:"7b",Smart_Stooge:"7c",Lucky_Larry:"7d",Fatty_Doodoo:"8",Robinhood:"9",Blue_Hedgehog:"9a",Ned_Kelly:"10",The_Fallen_Titan:"10a",Chronus_Cosmos:"CR",Activelius:"11",Gum_Drop:"11a",Mount_Eaterest:"12",Bob_Build_Guy:"13",The_Big_Comatose:"14",Sir_Savvy:"14a",Silly_Snoozer:"15",The_Big_Brain:"15a",Grim_Reaper:"16",The_Forsaken:"16a",The_OG_Skiller:"17",Mr_No_Sleep:"18",All_Rounderi:"1",Centaurii:"2",Murmollio:"3",Strandissi:"4",Agitagi:"4B",Wispommo:"5",Lukiris:"5B",Pokaminni:"6",Gor_Bowzor:"7",Hydron_Cosmos:"8",Trapezoidburg:"8B",Sawsaw_Salala:"9",Preys_Bea:"9B",Cullingo:"10",Gum_Drop_Major:"10B",Grim_Reaper_Major:"11",Sir_Savvy_Major:"12",The_Bulwark:"13",Big_Brain_Major:"14",The_Fiesty:"15",The_Overachiever:"15B",Comatose_Major:"16","S._Snoozer_Major":"17",Breedabilli:"18",Gordonius_Major:"19",Power_Bowower:"19b",Scienscion:"20",Artifosho:"21",Divividov:"22","C._Shanti_Minor":"23",Muscle_Magnus:"S",Cropiovo_Minor:"A1",Fabarmi:"A2","O.G._Signalais":"A3",Lightspeed_Frog:"A4",Beanbie_Major:"A5",Damarian_Major:"A6",Lotto_Larrinald:"A7",Intellostooge:"A8","S._Tealio":"B1","Sneekee_E._X.":"B2",Jadaciussi:"B3",Druipi_Major:"B4",Sumo_Magno:"B5",Killian_Maximus:"B6",Seraph_Cosmos:"SC",Glimmer_of_Beyond:"C1"},u={0:{name:"character",icon:""},1:{name:"mining",icon:"ClassIcons42"},2:{name:"smithing",icon:"ClassIcons43"},3:{name:"chopping",icon:"ClassIcons44"},4:{name:"fishing",icon:"ClassIcons45"},5:{name:"alchemy",icon:"ClassIcons46"},6:{name:"catching",icon:"ClassIcons47"},7:{name:"trapping",icon:"ClassIcons48"},8:{name:"construction",icon:"ClassIcons49"},9:{name:"worship",icon:"ClassIcons50"},10:{name:"cooking",icon:"ClassIcons51"},11:{name:"breeding",icon:"ClassIcons52"},12:{name:"laboratory",icon:"ClassIcons53"},13:{name:"sailing",icon:"ClassIcons54"},14:{name:"divinity",icon:"ClassIcons55"},15:{name:"gaming",icon:"ClassIcons56"},16:{name:"farming",icon:"ClassIcons57"},17:{name:"sneaking",icon:"ClassIcons58"},18:{name:"summoning",icon:"ClassIcons59"}},d={0:{name:"Forest_Villa_Key",rawName:"Key1"},1:{name:"Efaunt's_Tomb_Key",rawName:"Key2"},2:{name:"Chizoar's_Cavern_Key",rawName:"Key3"},3:{name:"Troll's_Enclave_Key",rawName:"Key4"},4:{name:"Kruk's_Volcano_Key",rawName:"Key5"}},y=["EquipmentCape0","EquipmentCape2","EquipmentPendant28","EquipmentRings31","EquipmentRings32","EquipmentRings33","EquipmentHats80","EquipmentHats34"].toSimpleObject(),h=["Quest30","Quest42","Quest49","Quest50","Quest64","EquipmentShoes2","EquipmentPendant18","TestObj4","TestObj5","TestObj8","TestObj14","TestObj15","TestObj16","EquipmentPants11","EquipmentSmithingTabs7","EquipmentSmithingTabs8","Quest8","Quest28","StampB28","StampB29","StampB33","StampB35","CardsC13","CardsC14","CardsC15","CardsD12","CardsD13","Trophy4","Trophy7","StampsA22","StampsA25","DoubleAFKtix","ObolFrag","DeliveryBox","StampC17","FishingRod1","CatchingNet1","FoodHealth8","EquipmentCape1","EquipmentHats72","EquipmentHats55","MaxCapBagFi0","MaxCapBagB0","MaxCapBagTr0","MaxCapBagTr2","MaxCapBagS0","MaxCapBagS2","Spice0","Spice6","Spice9","StampC13","TalentPoint5","DungWeaponSwordE5","DungWeaponBowE5","DungWeaponWandE5","DungWeaponPunchE5","DungWeaponPunchF1","DungWeaponPunchF2","DungWeaponPunchF3","DungWeaponPunchF4","DungWeaponPunchF5","DungWeaponWandF1","DungWeaponWandF2","DungWeaponWandF3","DungWeaponWandF4","DungWeaponWandF5","DungWeaponBowF1","DungWeaponBowF2","DungWeaponBowF3","DungWeaponBowF4","DungWeaponBowF5","DungWeaponSwordF1","DungWeaponSwordF2","DungWeaponSwordF3","DungWeaponSwordF4","DungWeaponSwordF5","DungEquipmentHats4","DungEquipmentShoes4","DungEquipmentShirt4","DungEquipmentRings4","DungEquipmentPendant4","DungEquipmentPants4"].toSimpleObject(),g={mining:[6,7,9,10,11].toSimpleObject(),fishing:[54,55,61].toSimpleObject()}},4056:function(e,t,l){"use strict";l.d(t,{NU:function(){return getPostOfficeShipments},dQ:function(){return getPlayerPostOffice},wO:function(){return getPostOfficeBoxLevel},xV:function(){return getPostOfficeBonus}});var m=l(30925),u=l(70473);let getPlayerPostOffice=(e,t)=>{var l,m,d;let y=0,h=null===u.postOffice||void 0===u.postOffice?void 0:u.postOffice.map((t,l)=>{var m,u;let d=null!==(u=null==e?void 0:null===(m=e[l])||void 0===m?void 0:m[0])&&void 0!==u?u:null==e?void 0:e[l];return y+=d,{...t,level:d||0}}),g=(null==t?void 0:null===(l=t.currencies)||void 0===l?void 0:l.DeliveryBoxComplete)+(null==t?void 0:null===(m=t.currencies)||void 0===m?void 0:m.DeliveryBoxStreak)+(null==t?void 0:null===(d=t.currencies)||void 0===d?void 0:d.DeliveryBoxMisc);return{boxes:h,totalOrders:g,totalPointsSpent:y,unspentPoints:g-y||0}},getPostOfficeBonus=(e,t,l)=>{var u,d,y,h,g;let E=null==e?void 0:null===(u=e.boxes)||void 0===u?void 0:u.find(e=>{let{name:l}=e;return l===t});if(!E)return 0;let b=Math.round(0===l?null==E?void 0:E.level:1===l?(null==E?void 0:E.level)-(null==E?void 0:null===(d=E.upgradeLevels)||void 0===d?void 0:d[0]):(null==E?void 0:E.level)-(null==E?void 0:null===(y=E.upgradeLevels)||void 0===y?void 0:y[1])),L=null==E?void 0:null===(h=E.upgrades)||void 0===h?void 0:h[l];return null!==(g=(0,m.growth)(null==L?void 0:L.func,b>0?b:0,null==L?void 0:L.x1,null==L?void 0:L.x2,!1))&&void 0!==g?g:0},getPostOfficeBoxLevel=(e,t)=>{var l;let m=null==e?void 0:null===(l=e.boxes)||void 0===l?void 0:l.find(e=>{let{name:l}=e;return l===t});return m?null==m?void 0:m.level:0},getPostOfficeShipments=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.PostOfficeInfo0)||(null==e?void 0:e.PostOfficeInfo0),l=(0,m.createArrayOfArrays)(t),u=(0,m.tryToParse)(null==e?void 0:e.PostOfficeInfo1)||(null==e?void 0:e.PostOfficeInfo1),d=(0,m.createArrayOfArrays)(u);return null==d?void 0:d.map((e,t)=>{var m;let[u,d,y]=e;return{index:t,totalShipments:u,streak:d,completedAnOrder:null==l?void 0:null===(m=l[t])||void 0===m?void 0:m[2],shield:y}})}},15815:function(e,t,l){"use strict";l.d(t,{Y0:function(){return getPrayerBonusAndCurse},hn:function(){return getPrayers},il:function(){return calcPrayerCost},vR:function(){return calcTotalPrayersLevel}});var m=l(30925),u=l(88344),d=l(70473),y=l(20385);let getPrayers=(e,t)=>{let l=(null==e?void 0:e.PrayersUnlocked)||(0,m.tryToParse)(null==e?void 0:e.PrayOwned);return parsePrayers(l,t)},parsePrayers=(e,t)=>null==e?void 0:e.reduce((e,l,m)=>{var y,h;let g=null===d.prayers||void 0===d.prayers?void 0:null===(y=d.prayers[m])||void 0===y?void 0:y.soul,E=(0,u.ju)(t,null===d.items||void 0===d.items?void 0:null===(h=d.items[g])||void 0===h?void 0:h.displayName,!0);return m<19?[...e,{...null===d.prayers||void 0===d.prayers?void 0:d.prayers[m],prayerIndex:m,totalAmount:E,level:l}]:e},[]),getPrayerBonusAndCurse=(e,t,l)=>{let m;let u=(0,y.Ob)(l,"No_more_Praying"),d=u&&(!e||(null==e?void 0:e.length)===0);if(d){var h;m=null==l?void 0:null===(h=l.prayers)||void 0===h?void 0:h.find(e=>{let{name:l}=e;return l===t})}else m=null==e?void 0:e.find(e=>{let{name:l}=e;return l===t});if(!m)return{bonus:0,curse:0};let g=m.x1+m.x1*(m.level-1)/10,E=m.x2+m.x2*(m.level-1)/10;return{bonus:Math.round(d?g/5:g),curse:Math.round(d?0:E)}},calcPrayerCost=e=>{let{level:t,costMulti:l,prayerIndex:m}=e;return t<6?Math.round(l*(1+(4+m/25)*t)):Math.round(Math.min(2e9,l*(1+(1+m/20)*t)*Math.pow(9===m?1.3:1.12,t-5)))},calcTotalPrayersLevel=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0)},73592:function(e,t,l){"use strict";l.d(t,{J:function(){return calcTotals},h:function(){return getPrinter}});var m=l(30925),u=l(19834),d=l(16727),y=l(30796),h=l(10924),g=l(95331),E=l(8616),b=l(48832);let getPrinter=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Print)||(null==e?void 0:e.Printer),d=(0,m.tryToParse)(null==e?void 0:e.PrinterXtra)||(null==e?void 0:e.PrinterXtra);return parsePrinter(u,d,t,l)},parsePrinter=(e,t,l,g)=>{var L,k,V,j,ee,ea,el,eo;let e_=(0,u.s8)(g,l,3),ec=(0,d.YS)(null==g?void 0:null===(L=g.sailing)||void 0===L?void 0:L.artifacts,"Gold_Relic"),em=(null==ec?void 0:ec.acquired)===4?null==ec?void 0:ec.sovereignMultiplier:(null==ec?void 0:ec.acquired)===3?null==ec?void 0:ec.eldritchMultiplier:(null==ec?void 0:ec.acquired)===2?null==ec?void 0:ec.ancientMultiplier:0,ed=null==g?void 0:null===(j=g.lab)||void 0===j?void 0:null===(V=j.labBonuses)||void 0===V?void 0:null===(k=V.find(e=>"Wired_In"===e.name))||void 0===k?void 0:k.active,ep=null==g?void 0:null===(ee=g.lab)||void 0===ee?void 0:ee.connectedPlayers,ey=null==g?void 0:null===(ea=g.accountOptions)||void 0===ea?void 0:ea[125],eh=null==g?void 0:null===(el=g.accountOptions)||void 0===el?void 0:el[138],eT=null==l?void 0:l.filter(e=>(null==e?void 0:e.class)==="Divine_Knight"),ef=null==eT?void 0:eT.reduce((e,t)=>{let{talents:l,addedLevels:m}=t,u=(0,y._X)(l,3,"KING_OF_THE_REMEMBERED",!1,!1,m,!1);return u>e?u:e},0),ev=(null==g?void 0:null===(eo=g.rift)||void 0===eo?void 0:eo.currentRift)>15,eg=ev?(0,h.fi)(null==g?void 0:g.totalSkillsLevels,null==g?void 0:g.rift,3):0,eS=null==e?void 0:e.slice(5,null==e?void 0:e.length);return l.map((e,l)=>{let u=null==eS?void 0:eS.slice(14*l,14*l+14);if(t){let e=null==t?void 0:t.slice(10*l,10*l+10);u.splice(-4,0,e),u=u.flat()}return null==u?void 0:u.reduce((e,t,d,y)=>{if(d%2==0){let t=y.slice(d,d+2).map((e,t)=>e),h=t[1],L=null==ep?void 0:ep.find(e=>{let{playerId:t}=e;return t===l}),k=(0,E.vq)(g,"Lolly_Flower"),V=1+(0,b.F)(g,11)/100,j=(1+ey*(2+em)/100)*(1+ef*(0,m.lavaLog)(eh)/100)*(1+eg/100)*(1+k/100)*V,ee=ed&&L?e_.includes(l)?6*j:2*j:e_.includes(l)?3*j:j;h*=ee;let ea=[{name:"Lab",value:L&&ed?2:0},{name:"Harriep God",value:e_.includes(l)?3:0},{name:"Skill Mastery",value:1+eg/100},{name:"Divine Knight",value:(0,m.notateNumber)(1+ef*(0,m.lavaLog)(eh)/100,"MultiplierInfo")},{name:"Gold Relic",value:1+ey*(2+em)/100},{name:"Charm",value:1+k/100},{name:"Vote",value:V}];return[...e,{item:t[0],value:t[1],active:d>=u.length-4,boostedValue:h,breakdown:ea}]}return e},[])})},calcTotals=(e,t)=>{var l,m;let{printer:u,storage:d}=e||{},y=(0,g.Xp)(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[133]),h=null==u?void 0:u.reduce((e,t)=>(t.forEach(t=>{let{boostedValue:l,item:m,active:u}=t;if("Blank"!==m&&u){var h,g;if(null==e?void 0:e[m])e[m]={...e[m],boostedValue:l+(null===(h=e[m])||void 0===h?void 0:h.boostedValue)};else{let t=null===(g=d.find(e=>{let{rawName:t}=e;return t===m}))||void 0===g?void 0:g.amount;e[m]={boostedValue:l,atomable:t>=y-.01*y,storageItem:t}}}}),e),{});h=calcAtoms(h,y,t);let E=null===(m=Object.entries(h))||void 0===m?void 0:m.reduce((e,t)=>{var l;let[,m]=t;return e+(null!==(l=null==m?void 0:m.atoms)&&void 0!==l?l:0)},0);return{...h,atom:{boostedValue:E,atoms:E}}},calcAtoms=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,m=arguments.length>2?arguments[2]:void 0;return null===(e=Object.entries(t))||void 0===e?void 0:e.reduce((e,t)=>{let[u,d]=t,{boostedValue:y,atomable:h,storageItem:g}=d,E=y,b;if(null==m?void 0:m.checked)b=h;else{let e=y>=l&&!h,t=y>l-g&&!h;E=e?y-l:t?y-(l-g):y,b=e||t||h}return e[u]={...d,...b?{atoms:E/1e7}:{}},e},{})}},19225:function(e,t,l){"use strict";l.d(t,{GU:function(){return getPlayerQuests},jZ:function(){return isWorldFinished},zz:function(){return getQuests}});var m=l(70473),u=l(30925);let isWorldFinished=(e,t)=>{let l={1:"Builder_Bird",2:"Constructor_Crow",3:"Carpenter_Cardinal",4:"Muhmuguh",5:"Lafu_Shi"};return null==e?void 0:e.some(e=>{let{npcDialog:m}=e;return null==m?void 0:m[null==l?void 0:l[t]]})},getQuests=e=>{let t=Object.keys(m.quests),l=null==t?void 0:t.reduce((t,l)=>{var y,h,g,E,b,L,k,V,j;let ee=(0,u.cloneObject)(m.quests[l]),ea=null==d?void 0:null===(y=d[l])||void 0===y?void 0:y.world,el=null==d?void 0:null===(h=d[l])||void 0===h?void 0:h.index;if(!ea)return t;for(let t=0;t<(null==e?void 0:e.length);t++){let m=(0,u.cloneObject)(null==e?void 0:null===(E=e[t])||void 0===E?void 0:null===(g=E.quests)||void 0===g?void 0:g[l])||{},d=Object.keys(m),y=!1;for(let e=0;e<(null==d?void 0:d.length);e++){let l=d[e],u=m[l];ee[l]&&((null==ee?void 0:ee[l-1])&&(!y&&(0===u||-1===u)||1===u)&&(ee[l-1].progress=null===(L=ee[l-1])||void 0===L?void 0:null===(b=L.progress)||void 0===b?void 0:b.filter(e=>{let{charIndex:l}=e;return l!==t})),1===u?(ee[l].completed=[...(null===(k=ee[l])||void 0===k?void 0:k.completed)||[],{charIndex:t,status:u}],ee[l].progress=[...(null===(V=ee[l])||void 0===V?void 0:V.progress)||[],{charIndex:t,status:u}]):y||0!==u&&-1!==u||(ee[l].progress=[...(null===(j=ee[l])||void 0===j?void 0:j.progress)||[],{charIndex:t,status:u}],y=!0))}}return{...t,[ea]:[...(null==t?void 0:t[ea])||[],{name:l,index:el,npcQuests:Object.values(ee)}]}},{});for(let e in l){let t=l[e];null==t||t.sort((e,t)=>(null==e?void 0:e.index)-(null==t?void 0:t.index))}return l},getPlayerQuests=e=>Object.keys(e).reduce((t,l)=>{let[m,u]=l.split(/([0-9]+)/);return l.includes("Fishpaste")&&(m="Fishpaste97"),{...t,[m]:{...(null==t?void 0:t[m])||{},[u]:e[l]}}},{}),d={Scripticus:{world:"Blunder_Hills",index:0},Glumlee:{world:"Blunder_Hills",index:1},Krunk:{world:"Blunder_Hills",index:2},Mutton:{world:"Blunder_Hills",index:3},Woodsman:{world:"Blunder_Hills",index:4},Hamish:{world:"Blunder_Hills",index:5},Toadstall:{world:"Blunder_Hills",index:5},Picnic_Stowaway:{world:"Blunder_Hills",index:6},Promotheus:{world:"Blunder_Hills",index:6},Typhoon:{world:"Blunder_Hills",index:7},Sprout:{world:"Blunder_Hills",index:8},Dazey:{world:"Blunder_Hills",index:9},Telescope:{world:"Blunder_Hills",index:10},Stiltzcho:{world:"Blunder_Hills",index:11},Funguy:{world:"Blunder_Hills",index:12},Tiki_Chief:{world:"Blunder_Hills",index:13},Dog_Bone:{world:"Blunder_Hills",index:14},Papua_Piggea:{world:"Blunder_Hills",index:15},TP_Pete:{world:"Blunder_Hills",index:16},Meel:{world:"Blunder_Hills",index:17},Town_Marble:{world:""},Mr_Pigibank:{world:""},Secretkeeper:{world:""},Bushlyte:{world:""},Rocklyte:{world:""},Cowbo_Jones:{world:"Yum-Yum_Desert",index:0},Fishpaste97:{world:"Yum-Yum_Desert",index:1},Scubidew:{world:"Yum-Yum_Desert",index:2},Whattso:{world:"Yum-Yum_Desert",index:3},Bandit_Bob:{world:"Yum-Yum_Desert",index:4},Carpetiem:{world:"Yum-Yum_Desert",index:5},Centurion:{world:"Yum-Yum_Desert",index:6},Goldric:{world:"Yum-Yum_Desert",index:7},Snake_Jar:{world:"Yum-Yum_Desert",index:8},Speccius:{world:"Yum-Yum_Desert",index:9},XxX_Cattleprod_XxX:{world:"Yum-Yum_Desert",index:10},Loominadi:{world:"Yum-Yum_Desert",index:11},Wellington:{world:"Yum-Yum_Desert",index:12},Djonnut:{world:"Yum-Yum_Desert",index:13},Walupiggy:{world:"Yum-Yum_Desert",index:14},Gangster_Gus:{world:"Yum-Yum_Desert",index:15},Omar_Da_Ogar:{world:"Yum-Yum_Desert",index:16},Builder_Bird:{world:""},Postboy_Pablob:{world:""},Desert_Davey:{world:""},Giftmas_Blobulyte:{world:""},Loveulyte:{world:""},Constructor_Crow:{world:""},Iceland_Irwin:{world:""},Egggulyte:{world:""},Hoggindaz:{world:"Frostbite_Tundra",index:0},Worldo:{world:"Frostbite_Tundra",index:0},Lord_of_the_Hunt:{world:"Frostbite_Tundra",index:1},Lonely_Hunter:{world:"Frostbite_Tundra",index:2},Snouts:{world:"Frostbite_Tundra",index:3},Shuvelle:{world:"Frostbite_Tundra",index:4},Yondergreen:{world:"Frostbite_Tundra",index:5},Crystalswine:{world:"Frostbite_Tundra",index:6},Bill_Brr:{world:"Frostbite_Tundra",index:7},Bellows:{world:"Frostbite_Tundra",index:8},Cactolyte:{world:""},Coastiolyte:{world:""},Gobo:{world:"Hyperion_Nebula",index:0},Oinkin:{world:"Hyperion_Nebula",index:1},Eliteus:{world:"Hyperion_Nebula",index:2},Capital_P:{world:"Hyperion_Nebula",index:3},Blobbo:{world:"Hyperion_Nebula",index:4},Royal_Worm:{world:"Hyperion_Nebula",index:5},Monolith:{world:"Hyperion_Nebula",index:6},Rift_Ripper:{world:"Hyperion_Nebula",index:7},Muhmuguh:{world:"Smolderin'_Plateau",index:1},Slargon:{world:"Smolderin'_Plateau",index:2},Pirate_Porkchop:{world:"Smolderin'_Plateau",index:3},Poigu:{world:"Smolderin'_Plateau",index:4},Tired_Mole:{world:"Smolderin'_Plateau",index:5},Lafu_Shi:{world:"Spirited_Valley",index:1},Hoov:{world:"Spirited_Valley",index:2},Woodlin_Elder:{world:"Spirited_Valley",index:3},Sussy_Gene:{world:"Spirited_Valley",index:4}}},72664:function(e,t,l){"use strict";l.d(t,{B4:function(){return hasMissingMats},Ew:function(){return calcResourceToRankUp},Xf:function(){return calcCost},_G:function(){return calcTimeToRankUp},vX:function(){return getRefineryCycles},wt:function(){return getRefinery}});var m=l(30925),u=l(70473),d=l(88344),y=l(4056),h=l(88054),g=l(1972),E=l(5432),b=l(67896),L=l(47212),k=l(71345),V=l(10924),j=l(30796),ee=l(79603),ea=l(48832);let getRefinery=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Refinery)||(null==e?void 0:e.Refinery);return parseRefinery(u,t,l)},parseRefinery=(e,t,l)=>{var m,y,h,g,E;let b=null==e?void 0:e[1],L=null==e?void 0:e[2],k=null==b?void 0:b.reduce((e,t,l)=>{var m;return"Blank"!==t?[...e,{rawName:t,name:null===(m=u.items[t])||void 0===m?void 0:m.displayName,amount:null==L?void 0:L[l],owner:"refinery"}]:e},[]),V=[...t,...k||[]],j=null==l?void 0:null===(y=l[2])||void 0===y?void 0:null===(m=y[2])||void 0===m?void 0:m[6],ee=null==e?void 0:e.slice(3,3+(null==e?void 0:null===(h=e[0])||void 0===h?void 0:h[0])),ea=null==ee?void 0:ee.reduce((e,t,l)=>{let m="Refinery".concat(l+1),[y,h,,g,E]=t,{saltName:b,cost:L}=(null===u.refinery||void 0===u.refinery?void 0:u.refinery[m])||{},k=null==L?void 0:L.map(e=>{let t=(0,d.ju)(V,null==e?void 0:e.name,!0);return{...e,totalAmount:t}});return[...e,{saltName:b,cost:k,rawName:m,powerCap:getPowerCap(h),refined:y,rank:h,active:g,autoRefinePercentage:E}]},[]);return{salts:ea,refinerySaltTaskLevel:j,timePastCombustion:null==e?void 0:null===(g=e[0])||void 0===g?void 0:g[1],timePastSynthesis:null==e?void 0:null===(E=e[0])||void 0===E?void 0:E[2],totalLevels:null==ea?void 0:ea.reduce((e,t)=>{let{rank:l}=t;return e+l},0),refineryStorage:k}},getPowerCap=e=>{var t;let l=null===(t=u.randomList[18])||void 0===t?void 0:t.split(" ");return parseFloat(Math.max(null==l?void 0:l[Math.min(e,(null==l?void 0:l.length)-2)],25))},hasMissingMats=(e,t,l,m)=>null==l?void 0:l.filter(l=>{var u;let{rawName:d,quantity:y,totalAmount:h}=l;return h{var l,m,d,y,el,eo,e_,ec;let{alchemy:em,saltLick:ed,charactersLevels:ep,breeding:ey,rift:eh,towers:eT}=e,ef=null==em?void 0:em.vials,ev=(0,h.YG)(ef,"Refinery_Cycle_Speed"),eg=(null==ed?void 0:ed[2])?(null==ed?void 0:null===(l=ed[2])||void 0===l?void 0:l.baseBonus)*(null==ed?void 0:null===(m=ed[2])||void 0===m?void 0:m.level):0,eS=(null==em?void 0:null===(el=em.p2w)||void 0===el?void 0:null===(y=el.sigils)||void 0===y?void 0:null===(d=y.find(e=>(null==e?void 0:e.name)==="PIPE_GAUGE"))||void 0===d?void 0:d.bonus)||0,eN=(0,g.mV)(e,"Faster_refinery_cycles"),eC=(0,E.du)(null==ey?void 0:ey.pets,"Faster_Refinery_Speed"),eR=0,eI=(0,b.RB)(eh,"Construct_Mastery");eI&&(eR=(null==eT?void 0:eT.totalLevels)>=(null===L.q5||void 0===L.q5?void 0:L.q5[0])?Math.floor((null==eT?void 0:eT.totalLevels)/10):0);let ew=null!==(ec=null===(eo=(0,k.d)(null==e?void 0:null===(e_=e.arcade)||void 0===e_?void 0:e_.shop,"Refinery_Speed"))||void 0===eo?void 0:eo.bonus)&&void 0!==ec?ec:0,eE=(0,V.Hx)(ep,"Divine_Knight"),eF=(0,j.A5)(t,3,"Divine_Knight","THE_FAMILY_GUY"),eP=(0,ee.D)(u.classFamilyBonuses,"Refinery_Speed",eE),eD=eP*(eF>0?1+eF/100:1)||0,eA=(0,ea.F)(e,33),eL=[{name:"Vials",value:ev/100},{name:"Salt lick",value:eg/100},{name:"Family",value:eD/100},{name:"Sigils",value:eS/100},{name:"Stamps",value:eN/100},{name:"Shinies",value:eC/100},{name:"Const mastery",value:eR/100},{name:"Arcade",value:ew/100},{name:"Vote",value:eA/100}];return{bonusBreakdown:eL,bonus:ev+eg+eD+eS+eN+eC+eR+ew+eA}},getRefineryCycles=(e,t,l)=>{var u,d,h,g,E,b,L;let{bonusBreakdown:k,bonus:V}=getRefineryCycleBonuses(e,t,l),j=(null==e?void 0:null===(h=e.lab)||void 0===h?void 0:null===(d=h.labBonuses)||void 0===d?void 0:null===(u=d.find(e=>"Gilded_Cyclical_Tubing"===e.name))||void 0===u?void 0:u.active)?3:1,ee=null==t?void 0:t.filter(e=>(null==e?void 0:e.class)==="Squire"||(null==e?void 0:e.class)==="Divine_Knight"),ea=ee.reduce((e,t)=>{var l;let{name:u,talents:d,cooldowns:h,postOffice:g,afkTime:E}=t,b=(0,y.xV)(g,"Magician_Starterpack",2),L=null==d?void 0:null===(l=d[2])||void 0===l?void 0:l.orderedTalents.find(e=>(null==e?void 0:e.name)==="REFINERY_THROTTLE"),k=0;(null==L?void 0:L.maxLevel)>0&&(k=(0,m.growth)(null==L?void 0:L.funcX,null==L?void 0:L.maxLevel,null==L?void 0:L.x1,null==L?void 0:L.x2)||0);let V=(new Date().getTime()-E)/1e3,j=(1-Math.max(0,b)/100)*(null==h?void 0:h[130]),ee=j-V;return{squiresCycles:(null==e?void 0:e.squiresCycles)+k,squiresCooldowns:[...null==e?void 0:e.squiresCooldowns,{name:u,cooldown:ee<0?ee:new Date().getTime()+1e3*ee}]}},{squiresCycles:0,squiresCooldowns:[]}),el=(new Date().getTime()-(null!=l?l:0))/1e3,eo=[...k,{name:"Lab",value:j}],e_={name:"Combustion",time:Math.ceil(900/((1+V/100)*j))-(null==e?void 0:null===(g=e.refinery)||void 0===g?void 0:g.timePastCombustion)%1,timePast:(null==e?void 0:null===(E=e.refinery)||void 0===E?void 0:E.timePastCombustion)+el,breakdown:[{name:"Base",value:900},...eo]},ec={name:"Synthesis",time:Math.ceil(3600/((1+V/100)*j))-(null==e?void 0:null===(b=e.refinery)||void 0===b?void 0:b.timePastSynthesis)%1,timePast:(null==e?void 0:null===(L=e.refinery)||void 0===L?void 0:L.timePastSynthesis)+el,breakdown:[{name:"Base",value:3600},...eo]};return{...ea,cycles:[e_,ec]}},calcTimeToRankUp=(e,t,l,m,u,d,y,h,g)=>{var E,b,L,k;let{bonus:V}=getRefineryCycleBonuses(e,t,l),j=(null==e?void 0:null===(L=e.lab)||void 0===L?void 0:null===(b=L.labBonuses)||void 0===b?void 0:null===(E=b.find(e=>"Gilded_Cyclical_Tubing"===e.name))||void 0===E?void 0:E.active)?3:1,ee=Math.floor(Math.pow(d,1.3)),ea=86400/((g<=2?900:3600)/(1+V/100))+(u&&null!==(k=null==m?void 0:m.squiresCycles)&&void 0!==k?k:0);return{timeLeft:new Date().getTime()+36e5*((y-h)/ee/ea*24/j),totalTime:new Date().getTime()+36e5*((y-0)/ee/ea*24/j)}},calcCost=(e,t,l,m,u)=>{let d=null==m?void 0:m.includes("Refinery");return Math.floor(Math.pow(t,d&&u<=(null==e?void 0:e.refinerySaltTaskLevel)?1.3:1.5))*l},calcResourceToRankUp=(e,t,l,m)=>(l-t)/Math.floor(Math.pow(e,1.3))*m},16727:function(e,t,l){"use strict";l.d(t,{JR:function(){return calcArtifactsAcquired},NW:function(){return calcTotalBoatLevels},YS:function(){return isArtifactAcquired},x0:function(){return getSailing},yN:function(){return getArtifacts}});var m=l(30925),u=l(70473),d=l(10924),y=l(30796),h=l(88054),g=l(54685),E=l(1972),b=l(89260),L=l(19834),k=l(74861),V=l(20385),j=l(15893),ee=l(5432),ea=l(79603),el=l(74044),eo=l(9339);let getSailing=(e,t,l,u,d,y)=>{let h=(0,m.tryToParse)(null==e?void 0:e.Sailing)||(null==e?void 0:e.Sailing),g=(0,m.tryToParse)(null==e?void 0:e.Captains)||(null==e?void 0:e.Captains),E=(0,m.tryToParse)(null==e?void 0:e.Boats)||(null==e?void 0:e.Boats),b=(0,m.tryToParse)(null==e?void 0:e.SailChests)||(null==e?void 0:e.SailChests);return h&&g&&E&&b?parseSailing(t,h,g,E,b,l,u,d,y):null},parseSailing=(e,t,l,m,u,d,y,h,g)=>{var E,b,L,k,V,j,ee;let ea=null==t?void 0:t[1],el=null!==(ee=null===(E=isArtifactAcquired(e,"Dreamcatcher"))||void 0===E?void 0:E.bonus)&&void 0!==ee?ee:0,e_=null==y?void 0:null===(b=y.gemShopPurchases)||void 0===b?void 0:b.find((e,t)=>129===t),ec=(0,eo.k6)(null==y?void 0:y.achievements,287)+(0,eo.k6)(null==y?void 0:y.achievements,290),em=Math.min(Math.round(5+e_+(Math.min(4,el)+(null==y?void 0:null===(V=y.tasks)||void 0===V?void 0:null===(k=V[2])||void 0===k?void 0:null===(L=k[4])||void 0===L?void 0:L[2])+ec)),30),ed=getChests(u,e,h),ep=getRareTreasureChance(),ey=getLootPile(ea),eh=getCaptainsAndBoats(t,l,m,y,d,g,e,ey),eT=null==eh?void 0:null===(j=eh.boats)||void 0===j?void 0:j.map(e=>{let{maxTime:t}=e;return t}),ef=calculateMaxCapacityTime(eT,em-((null==ed?void 0:ed.length)||0)),ev=getFutureTrades(eh,null==t?void 0:t[0],ey,e,y);return{maxChests:em,artifacts:e,lootPile:ey,chests:ed,rareTreasureChance:ep,trades:ev,timeToFullChests:ef,...eh}},calculateMaxCapacityTime=(e,t)=>{let l=t/Math.min(...e),m=0,u=0;for(let d of e)if(m+=d,(u+=l*(m-d))>=t)break;return m},getFutureTrades=function(){var e,t,l,m;let{boats:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0,y=arguments.length>2?arguments[2]:void 0,h=arguments.length>3?arguments[3]:void 0,g=arguments.length>4?arguments[4]:void 0,E=null!==(m=null==u?void 0:null===(t=u[0])||void 0===t?void 0:null===(e=t.loot)||void 0===e?void 0:e.value)&&void 0!==m?m:0,b=isArtifactAcquired(h,"Emerald_Relic"),L=null==d?void 0:d.reduce((e,t)=>-1===t?e+1:e,0),k=Math.floor((null==g?void 0:null===(l=g.timeAway)||void 0===l?void 0:l.GlobalTime)/21600),V=[];for(let e=0;e<40;e++){let t=new el.Z(k+e),l=t.rand(),m=Math.min(30,Math.ceil(2*l*L)),u=getLootItemCost(null==y?void 0:y[m],E),d=new Date(Math.floor((k+e)*216e5));V.push({...null==y?void 0:y[m],date:d,moneyValue:getMoneyValue(u,m,b),lootItemCost:u})}return V},getLootItemCost=(e,t)=>Math.max(.2*(null==e?void 0:e.amount),t),getMoneyValue=(e,t,l)=>{var m;let u=null!==(m=null==l?void 0:l.acquired)&&void 0!==m?m:0;return e*(1.5*Math.pow(1.6,Math.floor(t/2))*(1+((t+1)%2*150+(30*Math.floor(u/2)+30*Math.floor(u/3)))/100))},getArtifacts=(e,t,l)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Sailing)||(null==e?void 0:e.Sailing),y=null==d?void 0:d[3],h=null==d?void 0:d[1];return null===u.artifacts||void 0===u.artifacts?void 0:u.artifacts.map((e,m)=>getArtifact(e,null==y?void 0:y[m],h,m,t,l))},getChests=(e,t,l)=>null==e?void 0:e.map(e=>({...getArtifactChance(e,t,l),rawName:"SailChest".concat(null==e?void 0:e[3])})),getArtifactChance=(e,t,l)=>{let[m,d,y]=e,h=null===u.islands||void 0===u.islands?void 0:u.islands[d],g=0;for(let e=0;e{let{acquired:t}=e;return t<3});return{artifactChance:L>.01?Math.round(100*L)/100:.01,ancientChance:(y/getAncientChances(d,l)).toFixed(5),eldritchChance:(y/getEldritchChances(d,l)).toFixed(5),sovereignChance:(y/getSovereignChances(d,l)).toFixed(5),island:h,islandIndex:d,treasure:m,possibleArtifacts:k}},getAncientChances=(e,t)=>3>e?850:(1e3+(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100),getEldritchChances=(e,t)=>3>e?900+250*e:(1e3+(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100)*4,getSovereignChances=(e,t)=>5>e?9e3+2e3*e:(1e3+1.25*(e-3)*(null==t?void 0:t.AncientOddPerIsland))/(1+(null==t?void 0:t.AncientArtiPCT)/100)*180,isArtifactAcquired=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return null==e?void 0:e.find(e=>{let{name:l,acquired:m}=e;return l===t&&m})},getRareTreasureChance=()=>.05,getCaptainsAndBoats=(e,t,l,m,h,g,E,b)=>{var L,k,V,j,el;let eo=(null==e?void 0:null===(L=e[2])||void 0===L?void 0:L[0])||0,e_=(null==e?void 0:null===(k=e[2])||void 0===k?void 0:k[1])||0,ec=null!==(j=(0,d.Hx)(g,"Siege_Breaker"))&&void 0!==j?j:0,em=null!==(el=(0,y.A5)(h,3,"Siege_Breaker","THE_FAMILY_GUY"))&&void 0!==el?el:0,ed=(0,ea.D)(u.classFamilyBonuses,"FASTER_MINIMUM_BOAT_TRAVEL_TIME",ec),ep=(0,ee.du)(null==m?void 0:null===(V=m.breeding)||void 0===V?void 0:V.pets,"Lower_Minimum_Travel_Time_for_Sailing"),ey=Math.round(120/(1+(ed*(1+em/100)+ep)/100)),eh=getBaseSpeed(m,h,E),eT=null==t?void 0:t.slice(30,34);eT=eT.map((e,t)=>getCaptain(e,t,!0));let ef=null==t?void 0:t.slice(0,eo+1),ev=null==ef?void 0:ef.map((e,t)=>getCaptain(e,t)),eg=null==l?void 0:l.slice(0,e_+1),eS=null==eg?void 0:eg.map((e,t)=>getBoat(e,t,b,ev,E,h,m,eh,ey)),eN=null==eS?void 0:eS.reduce((e,t,l)=>{let{captainMappedIndex:m}=t;return{...e,[m]:l}},{});return{captains:ev,boats:eS,shopCaptains:eT,captainsOnBoats:eN,minimumTravelTime:ey,minimumTravelTimeBreakdown:[{name:"Base",value:120},{name:"Family Bonus",value:ed},{name:"The Family Guy",value:em},{name:"Shiny Bonus",value:ep}]}},getBoat=function(e,t,l,m,d,y,h,g){var E,b;let L=arguments.length>8&&void 0!==arguments[8]?arguments[8]:120,[k,V,,j,ee,ea]=e,el=null==m?void 0:m[k],eo=null===u.islands||void 0===u.islands?void 0:u.islands[V],e_={rawName:"Boat_Frame_".concat(getBoatFrame(j+ea)),level:j+ea,artifactChance:getBoatArtifactChance(d,m[k],h),captainIndex:k,captainMappedIndex:null==el?void 0:el.captainIndex,lootLevel:j,speedLevel:ea,boatIndex:t,island:eo,islandIndex:V,distanceTraveled:ee};return e_.resources=getBoatResources(e_,l),e_.breakpointResources=getBoatBreakdownResources(e_,l),e_.loot=getBoatLootValue(y,h,d,e_,el),e_.speed=getBoatSpeedValue(el,eo,ea,g,L),e_.maxTime=(null==eo?void 0:eo.distance)/(null===(E=e_.speed)||void 0===E?void 0:E.value)*36e5,e_.timeLeft=((null==eo?void 0:eo.distance)-ee)/(null===(b=e_.speed)||void 0===b?void 0:b.value)*36e5,e_},getBaseSpeed=(e,t,l)=>{var m,u,y,ee,ea,el,eo,e_,ec,em,ed,ep;let ey=null==t?void 0:t.find(e=>{let{linkedDeity:t}=e;return 6===t}),eh=(0,L.kI)(ey,e,6,t),eT=(0,g.OK)(null==e?void 0:e.cards,"Sailing_Speed_(Passive)"),ef=(0,E.mV)(e,"Sailing_Speed"),ev=(0,j.c9)(null==e?void 0:e.lab.labBonuses,8),eg=(0,j.pc)(null==e?void 0:null===(m=e.lab)||void 0===m?void 0:m.jewels,16,ev),eS=(0,b.F4)(e,null,"Sailing",eg),eN=(0,h.om)(null==e?void 0:null===(u=e.alchemy)||void 0===u?void 0:u.bubbles,"kazam","BOATY_BUBBLE",!1),eC=(0,L.HQ)(null==e?void 0:null===(y=e.divinity)||void 0===y?void 0:y.deities,"Goharut"),eR=(0,L.HQ)(null==e?void 0:null===(ee=e.divinity)||void 0===ee?void 0:ee.deities,"Bagur"),eI=(0,L.HQ)(null==e?void 0:null===(ea=e.divinity)||void 0===ea?void 0:ea.deities,"Purrmep"),ew=null!==(ed=null===(el=isArtifactAcquired(l,"10_AD_Tablet"))||void 0===el?void 0:el.bonus)&&void 0!==ed?ed:0,eE=(0,h.iu)(null==e?void 0:null===(eo=e.alchemy)||void 0===eo?void 0:eo.vials,"SailSpd"),eF=null!==(ep=null===(e_=(0,V.Ob)(e,"MSA_Sailing"))||void 0===e_?void 0:e_.bonus)&&void 0!==ep?ep:0,eP=(0,d.pA)(null==e?void 0:e.rift,null==e?void 0:null===(em=e.totalSkillsLevels)||void 0===em?void 0:null===(ec=em.sailing)||void 0===ec?void 0:ec.rank,1),eD=(0,k.U6)(null==e?void 0:e.statues,"StatueG25");return(1+(eh+eT+eN)/125)*(1+eC/100)*(1+eI/100)*(1+(eR+ew+ef+eD+eS+eE+(17*eP+eF))/125)},getCaptain=(e,t,l)=>{var d,y,h,g;let E=String.fromCharCode(65+t),[b,L,k,V,j,ee,ea]=e,el={captainIndex:E,captainType:b,level:V,firstBonusIndex:L,secondBonusIndex:k,firstBonusDescription:null===u.captainsBonuses||void 0===u.captainsBonuses?void 0:null===(d=u.captainsBonuses[L])||void 0===d?void 0:d.bonus,secondBonusDescription:null===u.captainsBonuses||void 0===u.captainsBonuses?void 0:null===(y=u.captainsBonuses[k])||void 0===y?void 0:y.bonus,firstBonusValue:ee,secondBonusValue:ea,exp:(0,m.notateNumber)(Math.floor(j),"Big")},eo=getCaptainDisplayBonus(el,ee),e_=getCaptainDisplayBonus(el,ea);if(el.firstBonus=eo,el.secondBonus=e_,el.firstBonusDescription=null==el?void 0:null===(h=el.firstBonusDescription)||void 0===h?void 0:h.replace("{",eo),el.secondBonusDescription=null==el?void 0:null===(g=el.secondBonusDescription)||void 0===g?void 0:g.replace("{",e_),el.expReq=(0,m.notateNumber)(getCaptainExpReq(el),"Big"),l){let e=2*L+2*k+ee+ea;el.cost=Math.pow(8,1+b)*(1+Math.pow(e,2)/100)}return el},getBoatBreakdownResources=(e,t)=>{let l=[{required:0},{required:0}],m=(null==e?void 0:e.lootLevel)+(8-(null==e?void 0:e.lootLevel)%8),u=(null==e?void 0:e.speedLevel)+(7-(null==e?void 0:e.speedLevel)%7);for(let u=null==e?void 0:e.lootLevel;u[0,1].map(l=>{let m=getBoatUpgradeCostType(null==e?void 0:e.boatIndex,l);return{required:getBoatUpgradeCost(e,l),...(null==t?void 0:t[m])||{}}}),getBoatUpgradeCostType=(e,t)=>0===t?4>e?0:Math.min(30,1+2*(e-4)):2>e?e:5>e?1+2*(e-2):Math.min(30,2*(e-4)),getBoatUpgradeCost=(e,t)=>{let l=getBoatUpgradeCostType(null==e?void 0:e.boatIndex,t),m=0===t?null==e?void 0:e.lootLevel:null==e?void 0:e.speedLevel;return 0===l?Math.round((5+4*m)*Math.pow(1.17-.12*m/(m+200),m)):l%2==1?Math.round((5+2*m)*Math.pow(1.15-.1*m/(m+200),m)):Math.round((2+m)*Math.pow(1.12-.07*m/(m+200),m))},getFinalBoatSpeed=e=>{let{speedLevel:t,captainSpeedBonus:l,baseSpeed:m}=e;return(10+(5+Math.pow(Math.floor(t/7),2))*t)*(1+l/100)*m},getBoatSpeedValue=(e,t,l,m,u)=>{var d,y;let h;let g=0;(null==e?void 0:null===(d=e.firstBonusDescription)||void 0===d?void 0:d.includes("Boat_Speed"))&&(g+=null==e?void 0:e.firstBonus),(null==e?void 0:null===(y=e.secondBonusDescription)||void 0===y?void 0:y.includes("Boat_Speed"))&&(g+=null==e?void 0:e.secondBonus);let E=l+(7-l%7),b=getFinalBoatSpeed({speedLevel:l,captainSpeedBonus:g,baseSpeed:m}),L=getFinalBoatSpeed({speedLevel:l+1,captainSpeedBonus:g,baseSpeed:m});return E!==l+1&&(h=getFinalBoatSpeed({speedLevel:E,captainSpeedBonus:g,baseSpeed:m})),{raw:b,value:t?Math.min(b,(null==t?void 0:t.distance)*60/u):b,nextLevelValue:L,nextBreakpointValue:h}},getFinalBoatLoot=e=>{let{lootLevelMath:t,lootLevel:l,lootPileSigil:m,artifactBonus:u,firstCaptainBonus:d,secondCaptainBonus:y,talentBonus:h}=e;return(5+t*l)*(1+(m+(d+y+u))/100)*h},getBoatLootValue=(e,t,l,m,u)=>{var d,g,E,b;let L;let k=(0,y.A5)(e,3,"Siege_Breaker","UNENDING_LOOT_SEARCH"),V=1+k/100,j=(null==m?void 0:m.lootLevel)+(8-(null==m?void 0:m.lootLevel)%8),ee=2+Math.pow(Math.floor(((null==m?void 0:m.lootLevel)+1)/8),2),ea=2+Math.pow(Math.floor((null==m?void 0:m.lootLevel)/8),2),el=(0,h.Vq)(null==t?void 0:null===(g=t.alchemy)||void 0===g?void 0:null===(d=g.p2w)||void 0===d?void 0:d.sigils,"LOOT_PILE"),eo=getCaptainBonus(1,u,null==u?void 0:u.firstBonusIndex),e_=getCaptainBonus(1,u,null==u?void 0:u.secondBonusIndex),ec=null!==(b=null===(E=isArtifactAcquired(l,"Genie_Lamp"))||void 0===E?void 0:E.bonus)&&void 0!==b?b:0,em=getFinalBoatLoot({lootLevelMath:ea,lootLevel:null==m?void 0:m.lootLevel,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V}),ed=getFinalBoatLoot({lootLevelMath:ee,lootLevel:(null==m?void 0:m.lootLevel)+1,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V});return j!==(null==m?void 0:m.lootLevel)+1&&(L=getFinalBoatLoot({lootLevelMath:2+Math.pow(Math.floor(j/8),2),lootLevel:j,lootPileSigil:el,artifactBonus:ec,firstCaptainBonus:eo,secondCaptainBonus:e_,talentBonus:V})),{value:em,nextLevelValue:ed,nextBreakpointValue:L}},getCaptainExpReq=e=>{let t=9+Math.pow(null==e?void 0:e.level,3),l=Math.pow(1.5,null==e?void 0:e.level);return t*l*Math.pow(1.5,Math.max((null==e?void 0:e.level)-10,0))},getCaptainDisplayBonus=(e,t)=>Math.round((null==e?void 0:e.level)*t*10)/10,getBoatArtifactChance=(e,t,l)=>{var u,d,y;let h=null!==(y=null===(u=isArtifactAcquired(e,"Fauxory_Tusk"))||void 0===u?void 0:u.bonus)&&void 0!==y?y:0,g=(0,ee.du)(null==l?void 0:null===(d=l.breeding)||void 0===d?void 0:d.pets,"Higher_Artifact_Find_Chance"),E=getCaptainBonus(3,t,null==t?void 0:t.firstBonusIndex),b=getCaptainBonus(3,t,null==t?void 0:t.secondBonusIndex);return(0,m.notateNumber)(Math.max(1,1+(h+(E+b)+g)/100),"MultiplierInfo")},getCaptainBonus=(e,t,l)=>l>0?0:l===e?(null==t?void 0:t.level)*(null==t?void 0:t.firstBonusValue):l===e?(null==t?void 0:t.level)*(null==t?void 0:t.secondBonusValue):0,getBoatFrame=e=>e<25?0:e<50?1:e<100?2:e<200?3:e<300?4:5,getLootPile=e=>null==e?void 0:e.map((e,t)=>({amount:e>0?e:0,rawName:"SailT".concat(t)})),getArtifact=(e,t,l,u,h,g)=>{var E,b,L,k,V,j,ee,ea;let el,eo=null==e?void 0:e.baseBonus,e_=null==e?void 0:e.baseBonus,ec=2===t||3===t||4===t,em=2===t?"ancientMultiplier":3===t?"eldritchMultiplier":4===t?"sovereignMultiplier":"baseBonus",ed=null==e?void 0:e.description;if((null==e?void 0:e.name)==="Maneki_Kat"||(null==e?void 0:e.name)==="Ashen_Urn"){let l=(0,d.QV)(h);el="Highest level: ".concat(l),eo=l*(null==e?void 0:e.baseBonus),(null==e?void 0:e.name)==="Ashen_Urn"&&(eo=l>(null==e?void 0:e[em])?(null==e?void 0:e[em])*(null==e?void 0:e.baseBonus):l*(null==e?void 0:e.baseBonus),ed="".concat(ed," Total Bonus: ").concat(ec?eo*t:eo))}else if((null==e?void 0:e.name)==="Ruble_Cuble"||(null==e?void 0:e.name)==="10_AD_Tablet"||(null==e?void 0:e.name)==="Jade_Rock"||(null==e?void 0:e.name)==="Gummy_Orb"){let t=null==g?void 0:null===(E=g.looty)||void 0===E?void 0:E.rawLootedItems,l=(null==e?void 0:e.name)==="10_AD_Tablet"||(null==e?void 0:e.name)==="Gummy_Orb";el="Looted items: ".concat(t);let m=(null==e?void 0:e[em])*Math.floor(Math.max(0,t-500)/10);eo=l&&"baseBonus"!==em?(null==e?void 0:e.baseBonus)*m:m}else if((null==e?void 0:e.name)==="Fauxory_Tusk"||(null==e?void 0:e.name)==="Genie_Lamp"){let t=(null==e?void 0:e.name)==="Genie_Lamp",l=(0,d.fx)(h,"sailing");eo=t?l*(null==e?void 0:e.baseBonus):l,el="Sailing level: ".concat(l)}else if((null==e?void 0:e.name)==="Weatherbook"){let t=(0,d.fx)(h,"gaming");el="Gaming level: ".concat(t),eo=t*(null==e?void 0:e.baseBonus)}else if((null==e?void 0:e.name)==="Triagulon"){let t=null==g?void 0:null===(k=g.cooking)||void 0===k?void 0:null===(L=k.meals)||void 0===L?void 0:null===(b=L[0])||void 0===b?void 0:b.amount;eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(t)}else if((null==e?void 0:e.name)==="Opera_Mask"){let t=null==l?void 0:l[0];eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(t)}else if((null==e?void 0:e.name)==="Fun_Hippoete")eo=(null==e?void 0:e.baseBonus)*(0,m.lavaLog)(null==g?void 0:null===(V=g.construction)||void 0===V?void 0:V.playersBuildRate);else if((null==e?void 0:e.name)==="The_True_Lantern")eo=(null==e?void 0:e.baseBonus)*(null!==(ee=(0,m.lavaLog)(null==g?void 0:null===(j=g.atoms)||void 0===j?void 0:j.particles))&&void 0!==ee?ee:0);else if((null==e?void 0:e.name)==="Gold_Relic"){let t=null==g?void 0:null===(ea=g.accountOptions)||void 0===ea?void 0:ea[125],l=ec?null==e?void 0:e[em]:0;el="Days passed: ".concat(t,". Bonus: ").concat((0,m.notateNumber)(1+t*(2+l)/100,"MultiplierInfo").replace("#",""),"x")}else if((null==e?void 0:e.name)==="Crystal_Steak"){let e=null==h?void 0:h.map(e=>{let{name:t,class:l,stats:m}=e,u=null===y.nl||void 0===y.nl?void 0:y.nl[l];return{name:t,stat:null==m?void 0:m[u]}});ed=ed.replace("_Total_Bonus:_+}%_dmg",""),el=e.map(e=>{let{name:l,stat:m}=e;return{name:l,bonus:(ec?eo*t:eo)*Math.floor(m/100)}})}else if((null==e?void 0:e.name)==="Socrates"){let l=null==h?void 0:h.map(e=>{var t,l,m,u;let{name:d,stats:y}=e;return{name:d,strength:null!==(t=null==y?void 0:y.strength)&&void 0!==t?t:0,agility:null!==(l=null==y?void 0:y.agility)&&void 0!==l?l:0,wisdom:null!==(m=null==y?void 0:y.wisdom)&&void 0!==m?m:0,luck:null!==(u=null==y?void 0:y.luck)&&void 0!==u?u:0}});el=l.map(l=>{let{name:m,strength:u,agility:d,wisdom:y,luck:h}=l,g=1+(ec?(null==e?void 0:e.baseBonus)*t:null==e?void 0:e.baseBonus)/100;return{name:m,strength:Math.floor(g*u),agility:Math.floor(g*d),wisdom:Math.floor(g*y),luck:Math.floor(g*h)}})}return 2===t&&(null==e?void 0:e.ancientFormDescription)==="The_artifact's_main_bonus_is_doubled!"?eo*=2:3===t&&(null==e?void 0:e.eldritchFormDescription)==="The_artifact's_main_bonus_is_tripled!"?eo*=3:4===t&&(null==e?void 0:e.sovereignFormDescription)==="The_artifact's_main_bonus_is_quadrupled!"&&(eo*=4),ed=ed.replace(/{/,e_).replace(/}/,(0,m.kFormatter)(eo,2)).replace(/@/,""),{...e,description:ed,additionalData:el,bonus:eo,acquired:t,rawName:"Arti".concat(u)}},calcTotalBoatLevels=e=>null==e?void 0:e.reduce((e,t)=>{let{level:l}=t;return e+l},0),calcArtifactsAcquired=e=>null==e?void 0:e.reduce((e,t)=>{let{acquired:l}=t;return e+l},0)},32387:function(e,t,l){"use strict";l.d(t,{U:function(){return getSaltLick},W:function(){return getSaltLickBonus}});var m=l(88344),u=l(70473),d=l(30925);let getSaltLick=(e,t)=>{let l=(0,d.tryToParse)(null==e?void 0:e.SaltLick)||(null==e?void 0:e.SaltLick);return null===u.saltLicks||void 0===u.saltLicks?void 0:u.saltLicks.map((e,u)=>{let d=null==l?void 0:l[u],y=(0,m.ju)(t,null==e?void 0:e.name,!0);return{...e,totalAmount:y,level:d}})},getSaltLickBonus=function(e,t){var l,m,u;let y=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=null==e?void 0:e[t];if(!h||0===h)return 0;let g=h.baseBonus*(null!==(l=h.level)&&void 0!==l?l:0);return y?null!==(u=(0,d.round)(g))&&void 0!==u?u:0:g}},64569:function(e,t,l){"use strict";l.d(t,{Xz:function(){return getShrines},mv:function(){return calcShrineLevels},n:function(){return getShrineExpBonus},wt:function(){return getShrineBonus}});var m=l(30925),u=l(70473),d=l(54685),y=l(16727),h=l(20385),g=l(10924),E=l(4056),b=l(30796),L=l(88054),k=l(48832);let getShrines=(e,t)=>{let l=(null==e?void 0:e.ShrineInfo)||(0,m.tryToParse)(null==e?void 0:e.Shrine),u=(null==e?void 0:e.TowerInfo)||(0,m.tryToParse)(null==e?void 0:e.Tower);return parseShrines(l,u,t)},parseShrines=(e,t,l)=>{var m,y,h;let g=null==l?void 0:null===(h=l.lab)||void 0===h?void 0:null===(y=h.labBonuses)||void 0===y?void 0:null===(m=y.find(e=>"Shrine_World_Tour"===e.name))||void 0===m?void 0:m.active,E=null==e?void 0:e.map((e,t)=>{let[,,,m]=e,{baseBonus:y,bonusPerLevel:h}=u.shrines[18+t],g=(0,d.OK)(null==l?void 0:l.cards,"Shrine_Effects_(Passive)");return(1+g/100)*((m-1)*h+y)});return null==e?void 0:e.reduce((e,l,m)=>{let d=18+m,[y,,,h,b]=l,{shrineName:L,desc:k,baseBonus:V,bonusPerLevel:j}=u.shrines[d];return"Unknown"!==L?[...e,{mapId:y,shrineLevel:h,name:L,rawName:"ConTowerB".concat(d),bonus:V+(h-1)*j,progress:b,desc:k,worldTour:g,shrineFactor:null==E?void 0:E[2],shrineTowerValue:null==t?void 0:t[18+m]}]:e},[])},getShrineExpBonus=(e,t)=>{let l=Array(9).fill(0),m={};return null==e||e.forEach(e=>{var u,d,V,j,ee;null==e||e.mapIndex;let ea=(0,h.Ob)(t,"Shrine_Speed")?1:0,el=(0,y.YS)(null==t?void 0:null===(u=t.sailing)||void 0===u?void 0:u.artifacts,"Moai_Head"),eo=0;el&&(eo+=(null==el?void 0:el.acquired)===3?null==el?void 0:el.eldritchMultiplier:(null==el?void 0:el.acquired)===2?(null==el?void 0:el.ancientMultiplier)*2:null==el?void 0:el.baseBonus);let e_=(0,g.pA)(null==t?void 0:t.rift,null==t?void 0:null===(V=t.totalSkillsLevels)||void 0===V?void 0:null===(d=V.construction)||void 0===d?void 0:d.rank,1)||0,ec=(0,E.xV)(null==e?void 0:e.postOffice,"Construction_Container",1),em=(0,g.tE)("Golden_Cheese",e,t),ed=(0,b._X)(null==e?void 0:e.starTalents,null,"SHRINE_ARCHITECT"),ep=(0,L.YG)(null==t?void 0:null===(j=t.alchemy)||void 0===j?void 0:j.vials,null,"ShrineSpd"),ey=(0,k.F)(t,19);null==t||null===(ee=t.shrines)||void 0===ee||ee.forEach((u,d)=>{let{shrineTowerValue:y,shrineFactor:h}=u,g={name:null==e?void 0:e.name,value:0};if(!isGlobalApplicable(t,u,null==e?void 0:e.mapIndex))return g;let E=(1+50*ea/100)*(1+(eo+15*e_)/100)*(1+ey/100)*(1+10*y/100)*(1+(h+(ec+(em+(ed+ep))))/100);l[d]+=E,m={...m,[d]:[...(null==m?void 0:m[d])||[],{name:null==e?void 0:e.name,value:E}]}})}),{total:l,breakdown:m}},isGlobalApplicable=(e,t,l)=>{var m,u,d;let h=(null==e?void 0:null===(m=e.sailing)||void 0===m?void 0:m.artifacts)===!0||Array.isArray(null==e?void 0:null===(u=e.sailing)||void 0===u?void 0:u.artifacts)&&(0,y.YS)(null==e?void 0:null===(d=e.sailing)||void 0===d?void 0:d.artifacts,"Moai_Head"),g=Math.floor((null==t?void 0:t.mapId)/50),E=(null==t?void 0:t.mapId)%50==0;return(null==t?void 0:t.worldTour)&&E&&Math.floor(l/50)===g||!!h},getShrineBonus=(e,t,l,m,u)=>{var h;let g=null==e?void 0:e[t];if(!g)return 0;let E=!0===u||Array.isArray(u)&&(0,y.YS)(u,"Moai_Head"),b=Math.floor((null==g?void 0:g.mapId)/50),L=(null==g?void 0:g.mapId)%50==0,k=l!==(null==g?void 0:g.mapId),V=(null==g?void 0:g.worldTour)&&L&&Math.floor(l/50)===b||!!E;if((null==g?void 0:g.level)===0||k&&!V)return 0;let j=null==m?void 0:m.Chaotic_Chizoar,ee=null!==(h=(0,d.BZ)(j))&&void 0!==h?h:0;return(null==g?void 0:g.bonus)*(1+ee/100)},calcShrineLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{shrineLevel:l}=t;return e+l},0):0}},1972:function(e,t,l){"use strict";l.d(t,{MH:function(){return calcStampCollected},Md:function(){return applyStampsMulti},bL:function(){return calcStampLevels},bW:function(){return updateStamps},fE:function(){return getStampBonus},mV:function(){return getStampsBonusByEffect},t2:function(){return getStamps},tO:function(){return L}});var m=l(30925),u=l(70473),d=l(30796),y=l(88344),h=l(10924),g=l(88054);l(67896);var E=l(8616);let b={0:"combat",1:"skills",2:"misc"},getStamps=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.StampLv)||(null==e?void 0:e.StampLevel),u=(0,m.tryToParse)(null==e?void 0:e.StampLvM)||(null==e?void 0:e.StampLevelMAX);return parseStamps(l,u,t)},parseStamps=(e,t,l)=>{var m;let d=null==e?void 0:e.reduce((e,l,m)=>({...e,[null==b?void 0:b[m]]:Object.keys(l).reduce((e,u,d)=>{var y;return"length"!==u?[...e,{level:parseFloat(l[u]),maxLevel:null==t?void 0:null===(y=t[m])||void 0===y?void 0:y[d]}]:e},[])}),{});return null===(m=Object.entries(d))||void 0===m?void 0:m.reduce((e,t)=>{let[m,d]=t,h=null==d?void 0:d.map((e,t)=>{var d,h;let g=u.stamps[m][t],E=null==g?void 0:null===(d=g.itemReq)||void 0===d?void 0:d[0],b=(0,y.F6)(u.crafts[null==E?void 0:E.name]),L=null==l?void 0:null===(h=l.storage)||void 0===h?void 0:h.reduce((e,t)=>{let{rawName:l,amount:m}=t;return l!==(null==E?void 0:E.rawName)?e:e+(m||0)},0);return{...g,...e,materials:b,ownedMats:L,greenStackOwnedMats:Math.max(0,L-1e7),itemReq:E,category:m}});return{...e,[m]:h}},{})},updateStamps=function(e,t){var l;let d=!(arguments.length>2)||void 0===arguments[2]||arguments[2],y=null==e?void 0:null===(l=e.atoms)||void 0===l?void 0:l.stampReducer,g=Object.values((null==e?void 0:e.stamps)||{}).flat().map(l=>{var m,g,E;let b,L;let k=(0,h.tc)(null===u.items||void 0===u.items?void 0:u.items[null==l?void 0:null===(m=l.itemReq)||void 0===m?void 0:m.rawName],t,e),V=getGoldCost(null==l?void 0:l.level,l,e),j=(null==e?void 0:null===(g=e.currencies)||void 0===g?void 0:g.rawMoney)>=V,ee=getMaterialCost(null==l?void 0:l.level,l,e,y,d);(null==l?void 0:null===(E=l.materials)||void 0===E?void 0:E.length)>0?(b=checkHasMaterials(null==l?void 0:l.materials,ee,e),L=checkHasMaterials(null==l?void 0:l.materials,ee,e,!0)):(b=(null==l?void 0:l.ownedMats)>=ee,L=Math.max(0,(null==l?void 0:l.ownedMats)-1e7)>=ee);let ea=(null==k?void 0:k.maxCapacity)>=ee,el={...l,bestCharacter:k,goldCost:V,materialCost:ee,enoughPlayerStorage:ea,greenStackHasMaterials:L,hasMaterials:b,hasMoney:j},eo=getFutureCosts(el,e,y,d);return{...el,futureCosts:eo}});return(0,m.groupByKey)(g,e=>{let{category:t}=e;return t})},checkHasMaterials=(e,t,l,m)=>null==e?void 0:e.every(e=>{let{itemName:u,type:d,itemQuantity:h}=e;if("Equip"===d)return!0;let g=(0,y.ju)(null==l?void 0:l.storage,u,!0);return m?Math.max(0,g-1e7):g>=h*t}),getFutureCosts=(e,t,l,m)=>{var u,d,y,h,g,E,b,L,k;let V=null==e?void 0:e.maxLevel;for(;getMaterialCost(V,e,t,l,m)<(null==e?void 0:null===(u=e.bestCharacter)||void 0===u?void 0:u.maxCapacity);)V+=null==e?void 0:e.reqItemMultiplicationLevel;let j=(null==t?void 0:null===(h=t.atoms)||void 0===h?void 0:null===(y=h.atoms)||void 0===y?void 0:null===(d=y[0])||void 0===d?void 0:d.baseBonus)*(null==t?void 0:null===(b=t.atoms)||void 0===b?void 0:null===(E=b.atoms)||void 0===E?void 0:null===(g=E[0])||void 0===g?void 0:g.level),ee=(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel)*3,ea=[];for(let u=(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel);u<=ee;u+=null==e?void 0:e.reqItemMultiplicationLevel)for(let d=u===(null==e?void 0:e.level)+(null==e?void 0:e.reqItemMultiplicationLevel)?l:0;d<=90;d=Math.min(90,d+j)){let l,y;let h=getMaterialCost(u-(null==e?void 0:e.reqItemMultiplicationLevel),e,t,d,m);if(90===d){h<(null==e?void 0:null===(k=e.bestCharacter)||void 0===k?void 0:k.maxCapacity)&&(l=u-(null==e?void 0:e.reqItemMultiplicationLevel)===(null==e?void 0:e.level)?h:getMaterialCostToLevel(null==e?void 0:e.level,u,e,t,d,m),y=getGoldCostToLevel(null==e?void 0:e.level,u,e,t),ea.push({...null==e?void 0:e.itemReq,level:u,goldCost:y,materialCost:l,reduction:d}));break}if(h<(null==e?void 0:null===(L=e.bestCharacter)||void 0===L?void 0:L.maxCapacity)){l=u-(null==e?void 0:e.reqItemMultiplicationLevel)===(null==e?void 0:e.level)?h:getMaterialCostToLevel(null==e?void 0:e.level,u,e,t,d,m),y=getGoldCostToLevel(null==e?void 0:e.level,u,e,t),ea.push({...null==e?void 0:e.itemReq,level:u,goldCost:y,materialCost:l,reduction:d});break}if(0===j)break}if(0===ea.length){let u=getMaterialCost(V,e,t,l,m),d=getGoldCost(V,e,t);ea.push({...null==e?void 0:e.itemReq,level:V,goldCost:d,materialCost:u,reduction:l})}return ea},getGoldCostToLevel=(e,t,l,m)=>{let u=getGoldCost(e,l,m);for(let d=e;d{var m,u;let d=(0,g.YG)(null==l?void 0:null===(m=l.alchemy)||void 0===m?void 0:m.vials,"material_cost_for_stamps"),y=null==l?void 0:null===(u=l.bribes)||void 0===u?void 0:u[0],h=(null==y?void 0:y.done)?(null==t?void 0:t.baseCoinCost)*(1-(null==y?void 0:y.value)/100):null==t?void 0:t.baseCoinCost,E=h*Math.pow((null==t?void 0:t.powCoinBase)-e/(e+5*(null==t?void 0:t.reqItemMultiplicationLevel))*.25,e*(10/(null==t?void 0:t.reqItemMultiplicationLevel)))*Math.max(.1,1-d/100);return Math.floor(E)},getMaterialCostToLevel=function(e,t,l,m){let u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,d=arguments.length>5?arguments[5]:void 0,y=0;for(let h=e;h3&&void 0!==arguments[3]?arguments[3]:0,h=arguments.length>4?arguments[4]:void 0,E=(0,g.YG)(null==l?void 0:null===(m=l.alchemy)||void 0===m?void 0:m.vials,"material_cost_for_stamps"),b=(0,g.Vq)(null==l?void 0:null===(d=l.alchemy)||void 0===d?void 0:null===(u=d.p2w)||void 0===u?void 0:u.sigils,"ENVELOPE_PILE");return Math.max(1,(null==t?void 0:t.baseMatCost)*(h?.05:1)*Math.max(.1,1-y/100)*(1/(1+b/100))*Math.pow(null==t?void 0:t.powMatBase,Math.pow(Math.round(e/(null==t?void 0:t.reqItemMultiplicationLevel))-1,.8))*Math.max(.1,1-E/100))},getStampsBonusByEffect=(e,t,l)=>{var m;return(null==e?void 0:e.stamps)&&(null===(m=Object.entries(null==e?void 0:e.stamps))||void 0===m?void 0:m.reduce((m,u)=>{let[d,y]=u,h=null==y?void 0:y.filter(e=>{let{effect:l}=e;return null==l?void 0:l.includes(t)}),g=null==h?void 0:h.reduce((t,m)=>{let{rawName:u}=m;return t+getStampBonus(e,d,u,l)},0);return m+g},0))},getStampBonus=(e,t,l,u)=>{var y,h,g,b,L,k,V;let j=null==e?void 0:null===(h=e.stamps)||void 0===h?void 0:null===(y=h[t])||void 0===y?void 0:y.find(e=>{let{rawName:t}=e;return t===l});if(!j)return 0;let ee=1,ea=0;(null==j?void 0:null===(g=j.stat)||void 0===g?void 0:g.includes("Eff"))&&(ee=(0,d._X)(null==u?void 0:u.starTalents,null,"TOILET_PAPER_POSTAGE")),"misc"!==t&&(ea=(0,E.vq)(e,"Liqorice_Rolle"));let el=(0,E.x5)(e,"Level_Exemption");if((null==j?void 0:j.skillIndex)>0&&!el&&(null==j?void 0:j.reqItemMultiplicationLevel)>1){let e=(null==j?void 0:j.level)*(200/(20*(null==j?void 0:j.reqItemMultiplicationLevel)));if(e>3){let t=null==u?void 0:null===(L=u.skillsInfoArray)||void 0===L?void 0:null===(b=L[null==j?void 0:j.skillIndex])||void 0===b?void 0:b.level,l=3+(e-3)*Math.pow(t/(e-3),.75);l*=20*(null==j?void 0:j.reqItemMultiplicationLevel)/200;let d=Math.floor(Math.min(l,e)),y=Math.min(d,null==j?void 0:j.level);return(null!==(k=(0,m.growth)(null==j?void 0:j.func,y,null==j?void 0:j.x1,null==j?void 0:j.x2,!1))&&void 0!==k?k:0)*((null==j?void 0:j.multiplier)||1)*(ee||1)*(1+ea/100)}}return(null!==(V=(0,m.growth)(null==j?void 0:j.func,null==j?void 0:j.level,null==j?void 0:j.x1,null==j?void 0:j.x2,!1))&&void 0!==V?V:0)*((null==j?void 0:j.multiplier)||1)*(ee||1)*(1+ea/100)},applyStampsMulti=(e,t)=>Object.entries(e).reduce((e,l)=>{let[m,u]=l,d=u;return"misc"!==m&&(d=null==u?void 0:u.map(e=>({...e,multiplier:t}))),{...e,[m]:d}},{}),calcStampLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0)),0):0},calcStampCollected=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+(l>0?1:0)},0)),0):0},L=["Stat_Wallstree_Stamp","SpoOoky_Stamp","Prayday_Stamp","Shiny_Crab_Stamp","Talent_I_Stamp","Talent_V_Stamp","Gear_Stamp"].toSimpleObject()},96707:function(e,t,l){"use strict";l.d(t,{Wv:function(){return getStarSignByEffect},kz:function(){return getStarSigns},o9:function(){return getStarSignBonus},tp:function(){return getConstellations}});var m=l(30925),u=l(70473),d=l(34664),y=l(67896),h=l(5432),g=l(15893);let getStarSigns=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.StarSg)||(null==e?void 0:e.StarSignsUnlocked);return parseStarSigns(t)},getConstellations=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.SSprog)||(null==e?void 0:e.StarSignProg),l=parseConstellations(t);return{constellations:l,rawConstellationsDone:t.reduce((e,t)=>{let[,l]=t;return e+l},0)}},parseStarSigns=e=>null===u.starSigns||void 0===u.starSigns?void 0:u.starSigns.map(t=>{let{starName:l}=t;return{...t,indexedStarName:"".concat(null===d.SS||void 0===d.SS?void 0:d.SS[l]," - ").concat(l),starName:l,unlocked:!!(null==e?void 0:e[l])}},[]),parseConstellations=e=>null==e?void 0:e.reduce((e,t,l)=>{let m=u.constellations[l],[d,y]=t,h=null==m?void 0:m.mapIndex;return null!==h?[...e,{...m,location:u.mapNames[h],completedChars:d,done:!!y}]:e},[]),getStarSignByEffect=(e,t)=>{if((null==e?void 0:e.length)===0)return 0;let l=null==e?void 0:e.flatMap(e=>{let{bonuses:t}=e;return t}).filter(e=>e);return null==l?void 0:l.reduce((e,l)=>{let{effect:m,bonus:u}=l;return m===t?e+u:e},0)},getStarSignBonus=function(e,t,l){var m,u,d,E;let b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],L=(0,y.RB)(null==t?void 0:t.rift,"Infinite_Stars"),k=L?5+(0,h.du)(null==t?void 0:null===(m=t.breeding)||void 0===m?void 0:m.pets,"Infinite_Star_Signs"):0,V=null==t?void 0:null===(u=t.starSigns)||void 0===u?void 0:u.map((l,m)=>{var u,d,y;let h=null==e?void 0:null===(u=e.starSigns)||void 0===u?void 0:u.find(e=>{let{starName:t}=e;return t===(null==l?void 0:l.starName)}),E=m({...e,bonus:(null==e?void 0:e.bonus)>0?(null==e?void 0:e.bonus)*m:null==e?void 0:e.bonus,active:!0,isInfiniteStar:E}))}}return k&&!h&&(null==l?void 0:l.unlocked)&&(l={...l,bonuses:null==l?void 0:null===(y=l.bonuses)||void 0===y?void 0:y.map(e=>({...e,isInfiniteStar:E,bonus:(null==l?void 0:l.starName)==="Gordonius_Major"&&b?(null==e?void 0:e.bonus)*2:null==e?void 0:e.bonus}))}),h||l}),j=null==e?void 0:null===(E=e.skillsInfo)||void 0===E?void 0:null===(d=E.summoning)||void 0===d?void 0:d.level,ee=V.find(e=>{let{starName:t,unlocked:l}=e;return"Seraph_Cosmos"===t&&l}),ea=getStarSignsBonuses(V);return null==ea?void 0:ea.reduce((e,t)=>{let{effect:m,bonus:u,active:d,isInfiniteStar:y}=t;return m.toLowerCase().includes(l.toLowerCase())&&(d||y)?e+(y&&u<0?0:ee?u*Math.min(3,Math.pow(1.1,Math.ceil((j+1)/20))):u):e},0)},getStarSignsBonuses=e=>null==e?void 0:e.map(e=>{let{bonuses:t}=e;return t}).flatMap(e=>e).filter(e=>e)},74861:function(e,t,l){"use strict";l.d(t,{$M:function(){return calcTotalOnyx},U6:function(){return getStatueBonus},Xl:function(){return getStatues},hE:function(){return applyStatuesMulti},ni:function(){return calcStatueLevels}});var m=l(30925),u=l(70473),d=l(30796),y=l(16727);let getStatues=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.StuG)||(null==e?void 0:e.StatueG);return parseStatues(l,t)},parseStatues=(e,t)=>null==e?void 0:e.reduce((e,l,m)=>{var d;let y=2===l,h=null===(d=getHighestLevelStatues(t,m))||void 0===d?void 0:d.StatueLevels,[g,E]=(null==h?void 0:h[m])||[];return(null==h?void 0:h[m])?[...e,{...(null===u.statues||void 0===u.statues?void 0:u.statues[m])||{},rawName:"Statue".concat(y?"O":1===l?"G":"").concat(parseInt(m)+1),level:g,progress:E,onyxStatue:y}]:e},[]).filter(function(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}),getHighestLevelStatues=(e,t)=>e.reduce((e,l)=>{var m,u,d,y;return(null==e?void 0:null===(u=e.StatueLevels)||void 0===u?void 0:null===(m=u[t])||void 0===m?void 0:m[0])>(null==l?void 0:null===(y=l.StatueLevels)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d[0])?e:l}),applyStatuesMulti=(e,t)=>{var l,m;let u=(0,d.A5)(t,3,"Voidwalker","VOODOO_STATUFICATION"),h=1+u/100,g=(0,y.YS)(null==e?void 0:null===(l=e.sailing)||void 0===l?void 0:l.artifacts,"The_Onyx_Lantern");return null==e?void 0:null===(m=e.statues)||void 0===m?void 0:m.map(e=>{var t;return{...e,bonus:null==e?void 0:e.bonus,talentMulti:h,onyxMulti:null!==(t=null==g?void 0:g.bonus)&&void 0!==t?t:0}})},getStatueBonus=(e,t,l)=>{let m=null==e?void 0:e.find(e=>{let{rawName:l}=e;return l===t||l===t.replace("G","O")});if(!m)return 0;let u=1;switch(null==m?void 0:m.name){case"POWER":case"MINING":u+=((0,d._X)(l,2,"SHIELDIEST_STATUES")||(0,d._X)(l,2,"STRONGEST_STATUES"))/100;break;case"OCEANMAN":u+=(0,d._X)(l,2,"STRONGEST_STATUES")/100;break;case"DEFENCE":case"THICC_SKIN":u+=(0,d._X)(l,2,"SHIELDIEST_STATUES")/100;break;case"SPEED":case"ANVIL":u+=((0,d._X)(l,2,"STRAIGHTSHOT_STATUES")||(0,d._X)(l,2,"SHWIFTY_STATUES"))/100;break;case"BULLSEYE":u+=(0,d._X)(l,2,"STRAIGHTSHOT_STATUES")/100;break;case"OL_RELIABLE":u+=(0,d._X)(l,2,"SHWIFTY_STATUES")/100;break;case"EXP":case"LUMBERBOB":u+=((0,d._X)(l,2,"STARING_STATUES")||(0,d._X)(l,2,"STUPENDOUS_STATUES"))/100;break;case"BEHOLDER":u+=(0,d._X)(l,2,"STARING_STATUES")/100;break;case"CAULDRON":u+=(0,d._X)(l,2,"STUPENDOUS_STATUES")/100;break;case"EHEXPEE":case"KACHOW":case"FEASTY":u+=(0,d._X)(l,2,"SKILLIEST_STATUE")/100;break;default:u=1}return(null==m?void 0:m.level)*(null==m?void 0:m.bonus)*u*(null==m?void 0:m.talentMulti)*((null==m?void 0:m.onyxStatue)?2+(null==m?void 0:m.onyxMulti)/100:1)},calcStatueLevels=e=>{var t;return e?null===(t=Object.values(e))||void 0===t?void 0:t.reduce((e,t)=>{let{level:l}=t;return e+l},0):0},calcTotalOnyx=e=>{var t,l;return(null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[69])<2?0:null==e?void 0:null===(l=e.statues)||void 0===l?void 0:l.reduce((e,t)=>{let{onyxStatue:l}=t;return e+(l?1:0)},0)}},23515:function(e,t,l){"use strict";l.d(t,{$v:function(){return getInventory},cF:function(){return getStorage},cR:function(){return calcTotalItemInStorage}});var m=l(30925),u=l(70473),d=l(88344);let getStorage=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"storage",l=(null==e?void 0:e.ChestOrder)||(0,m.tryToParse)(null==e?void 0:e.ChestOrder),u=(null==e?void 0:e.ChestQuantity)||(0,m.tryToParse)(null==e?void 0:e.ChestQuantity),d=(0,m.tryToParse)(null==e?void 0:e.CMm)||(null==e?void 0:e.CMm);return parseStorage(l,u,t,d)},parseStorage=(e,t,l,m)=>getInventory(e,t,l,m),getInventory=(e,t,l,y)=>e.reduce((e,h,g)=>{let E=(0,d.t8)(null===u.items||void 0===u.items?void 0:u.items[h],null==y?void 0:y[g]),b=[1,2,3,4,5,6,7,8].reduce((e,t)=>{var l,m;return(null===u.items||void 0===u.items?void 0:null===(l=u.items[h])||void 0===l?void 0:l["desc_line".concat(t)])?e+"".concat(null===u.items||void 0===u.items?void 0:null===(m=u.items[h])||void 0===m?void 0:m["desc_line".concat(t)]," "):e},""),L={...null===u.items||void 0===u.items?void 0:u.items[h],...E},k="";return(null==L?void 0:L.UQ1txt)&&(k+=null==L?void 0:L.UQ1txt),(null==L?void 0:L.UQ2txt)&&(k+=" ".concat(null==L?void 0:L.UQ2txt)),"LockedInvSpace"!==h&&"Blank"!==h?[...e,{...L,owner:l,name:null==L?void 0:L.displayName,type:null==L?void 0:L.itemType,subType:null==L?void 0:L.Type,rawName:h,amount:parseInt(null==t?void 0:t[g]),misc:(0,m.cleanUnderscore)(k.trim()),description:(0,m.cleanUnderscore)(b.trim())}]:e},[]),calcTotalItemInStorage=(e,t)=>null==e?void 0:e.reduce((e,l)=>{let{rawName:m,amount:u}=l;return m===t?e+u:e},0)},30796:function(e,t,l){"use strict";l.d(t,{A5:function(){return getHighestTalentByClass},Es:function(){return calcTotalStarTalent},J0:function(){return getTalentAddedLevels},L1:function(){return getCharacterByHighestTalent},Nb:function(){return applyTalentAddedLevels},RL:function(){return em},VG:function(){return getFamilyBonusValue},_X:function(){return getTalentBonus},c4:function(){return getBubonicGreenTube},cd:function(){return ec},eZ:function(){return getTalentBonusIfActive},gW:function(){return checkCharClass},gq:function(){return calcTalentMaxLevel},iR:function(){return getHighestMaxLevelTalentByClass},ju:function(){return getActiveBuffs},nl:function(){return e_},o1:function(){return createTalentPage},pV:function(){return eo},xI:function(){return getVoidWalkerTalentEnhancements}});var m=l(30925),u=l(70473),d=l(9339),y=l(10924),h=l(19834),g=l(72973),E=l(79603),b=l(1972),L=l(64605),k=l(11028),V=l(54685),j=l(88054),ee=l(5432),ea=l(29129),el=l(78713);let getTalentBonus=(e,t,l,u,d,y,h)=>{var g,E,b;let L=null!==t?null==e?void 0:null===(g=e[t])||void 0===g?void 0:g.orderedTalents:null==e?void 0:e.orderedTalents,k=null==L?void 0:L.find(e=>{let{name:t}=e;return t===l});if(!k)return 0;let V=null==k?void 0:k.level;return((null==k?void 0:k.level)>0&&(V=d?null==k?void 0:k.maxLevel:null==k?void 0:k.level,V=h&&(null==k?void 0:k.level)>(null==k?void 0:k.maxLevel)?(null==k?void 0:k.maxLevel)+y:y?V-y:V),u)?null!==(E=(0,m.growth)(null==k?void 0:k.funcY,V,null==k?void 0:k.y1,null==k?void 0:k.y2,!1))&&void 0!==E?E:0:null!==(b=(0,m.growth)(null==k?void 0:k.funcX,V,null==k?void 0:k.x1,null==k?void 0:k.x2,!1))&&void 0!==b?b:0},getTalentBonusIfActive=function(e,t){var l;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";return null!==(l=null==e?void 0:e.reduce(function(e){let{name:l,funcX:d,level:y,x1:h,x2:g,funcY:E,y1:b,y2:L}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l===t?"x"===u?(0,m.growth)(d,y,h,g,!1):(0,m.growth)(E,y,b,L,!1):e},0))&&void 0!==l?l:0},eo={Beginner:["Beginner"],Journeyman:["Beginner","Journeyman"],Maestro:["Beginner","Journeyman","Maestro"],Voidwalker:["Beginner","Journeyman","Maestro","Voidwalker"],Warrior:["Rage_Basics","Warrior"],Barbarian:["Rage_Basics","Warrior","Barbarian"],Blood_Berserker:["Rage_Basics","Warrior","Barbarian","Blood_Berserker"],Squire:["Rage_Basics","Warrior","Squire"],Divine_Knight:["Rage_Basics","Warrior","Squire","Divine_Knight"],Archer:["Calm_Basics","Archer"],Bowman:["Calm_Basics","Archer","Bowman"],Siege_Breaker:["Calm_Basics","Archer","Bowman","Siege_Breaker"],Hunter:["Calm_Basics","Archer","Hunter"],Beast_Master:["Calm_Basics","Archer","Hunter","Beast_Master"],Mage:["Savvy_Basics","Mage"],Shaman:["Savvy_Basics","Mage","Shaman"],Bubonic_Conjuror:["Savvy_Basics","Mage","Shaman","Bubonic_Conjuror"],Wizard:["Savvy_Basics","Mage","Wizard"],Elemental_Sorcerer:["Savvy_Basics","Mage","Wizard","Elemental_Sorcerer"]},e_={Beginner:"luck",Journeyman:"luck",Maestro:"luck",Voidwalker:"luck",Warrior:"strength",Barbarian:"strength",Blood_Berserker:"strength",Squire:"strength",Divine_Knight:"strength",Archer:"agility",Bowman:"agility",Siege_Breaker:"agility",Hunter:"agility",Beast_Master:"agility",Mage:"wisdom",Shaman:"wisdom",Bubonic_Conjuror:"wisdom",Wizard:"wisdom",Elemental_Sorcerer:"wisdom"},ec=["Special Talent 1","Special Talent 2","Special Talent 3","Special Talent 4","Special Talent 5"],createTalentPage=(e,t,l,m,d)=>t.reduce((e,t,y)=>{var h,g;let E=null===(h=Object.entries((null===u.talents||void 0===u.talents?void 0:u.talents[t])||{}))||void 0===h?void 0:h.map(e=>{let[,t]=e;return{talentId:t.skillIndex,...t,level:l[t.skillIndex]||0,maxLevel:m[t.skillIndex]||-1}});return d?{...e,talents:{...null==e?void 0:e.talents,orderedTalents:[...(null==e?void 0:null===(g=e.talents)||void 0===g?void 0:g.orderedTalents)||[],...E]},flat:[...(null==e?void 0:e.flat)||[],...E]}:{...e,flat:[...(null==e?void 0:e.flat)||[],...E],talents:{...null==e?void 0:e.talents,[y]:{name:t,id:null===u.classes||void 0===u.classes?void 0:u.classes.indexOf(t),orderedTalents:E}}}},{flat:[],talents:{}}),getActiveBuffs=(e,t)=>{var l;return null==e?void 0:null===(l=e.map(e=>{let[l]=e;return null==t?void 0:t.find(e=>{let{talentId:t}=e;return l===t})}))||void 0===l?void 0:l.filter(e=>e)},getHighestTalentByClass=function(e,t,l,m,u,d){let y=arguments.length>6&&void 0!==arguments[6]&&arguments[6],h=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==h?void 0:h.reduce((e,l)=>{let{talents:h,addedLevels:g}=l,E=getTalentBonus(h,t,m,u,d,!!y&&g+1);return E>e?E:e},0)},getCharacterByHighestTalent=(e,t,l,m,u,d)=>{let y=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==y?void 0:y.reduce((e,l)=>{let{talents:y}=l,h=getTalentBonus(y,t,m,u,d);return h>e?l:e},0)},getHighestMaxLevelTalentByClass=(e,t,l,m)=>{let u=null==e?void 0:e.filter(e=>checkCharClass(null==e?void 0:e.class,l));return null==u?void 0:u.reduce((e,l)=>{var u;let{talents:d}=l,y=null!==t?null==d?void 0:null===(u=d[t])||void 0===u?void 0:u.orderedTalents:null==d?void 0:d.orderedTalents,h=null==y?void 0:y.find(e=>{let{name:t}=e;return t===m});return(null==h?void 0:h.maxLevel)>(null==e?void 0:e.maxLevel)?h:e},{maxLevel:0})},getTalentAddedLevels=(e,t,l,u,E,b,L,k,V)=>{var j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let eT=0,ef;(0,y.fe)(k,0)?eT+=Math.ceil((0,h.kI)(V,k,1)):1===l?eT+=Math.ceil(E):1===u&&(eT+=Math.ceil(b)),ef=[{name:"God Bonus",value:Math.ceil(eT)}];let ev=null==e?void 0:null===(ee=e[3])||void 0===ee?void 0:null===(j=ee.orderedTalents)||void 0===j?void 0:j.find(e=>{let{name:t}=e;return t.includes("SYMBOLS_OF_BEYOND_")}),eg=0;return ev&&(null==ev?void 0:ev.level)>0&&(eT+=eg=null!==(ed=(0,m.growth)(null==ev?void 0:ev.funcX,null==ev?void 0:ev.level,null==ev?void 0:ev.x1,null==ev?void 0:ev.x2,!1))&&void 0!==ed?ed:0),L&&(eT+=Math.floor(L)),(0,d.k6)(null==k?void 0:k.achievements,291)&&(eT+=1),(0,y.fe)(k,1)&&(eT+=null==k?void 0:null===(eh=k.companions)||void 0===eh?void 0:null===(ey=eh.list)||void 0===ey?void 0:null===(ep=ey.at(1))||void 0===ep?void 0:ep.bonus),(null===(ea=k.accountOptions)||void 0===ea?void 0:ea[232])>=3&&(eT+=5),{value:eT+=(0,g.z)(null==k?void 0:null===(el=k.equinox)||void 0===el?void 0:el.upgrades,"Equinox_Symbols"),breakdown:ef=[...ef,{name:"Symbol of Beyond",value:eg},{name:"Family Bonus",value:Math.floor(L)},{name:"Achievement Bonus",value:(0,d.k6)(null==k?void 0:k.achievements,291)?1:0},{name:"Companion Bonus",value:(0,y.fe)(k,1)?null==k?void 0:null===(ec=k.companions)||void 0===ec?void 0:null===(e_=ec.list)||void 0===e_?void 0:null===(eo=e_.at(1))||void 0===eo?void 0:eo.bonus:0},{name:"Equinox Bonus",value:(0,g.z)(null==k?void 0:null===(em=k.equinox)||void 0===em?void 0:em.upgrades,"Equinox_Symbols")},{name:"Ninja mastery",value:5}]}},applyTalentAddedLevels=(e,t,l)=>t?t.map(e=>({...e,level:e.level>=1&&!isTalentExcluded(null==e?void 0:e.skillIndex)?Math.floor(e.level+l):e.level,baseLevel:e.level})):Object.entries(e).reduce((e,t)=>{let[m,u]=t,{orderedTalents:d}=u,y=null==d?void 0:d.map(e=>({...e,level:e.level>=1&&!isTalentExcluded(null==e?void 0:e.skillIndex)?Math.floor(e.level+l):e.level,baseLevel:e.level}));return{...e,[m]:{...u,orderedTalents:y}}},{}),isTalentExcluded=e=>49<=e&&59>=e||149===e||374===e||539===e||505===e||614e&&-1!==t.indexOf("decay")?Math.round(100*e)/100:1>e||"add"===t&&1>m&&100>e||25>e&&"decay"===t?Math.round(10*e)/10:Math.round(e)},getVoidWalkerTalentEnhancements=(e,t,l,m,u)=>{let d=[];if(l>=25&&d.push(42),l>=50&&d.push(318),l>=75&&d.push(497),l>=100&&d.push(79),l>=125&&d.push(146),l>=150&&d.push(362),l>=175&&d.push(43),l>=200&&d.push(536),l>=225&&d.push(165),l>=250&&d.push(35),-1!==d.indexOf(m)){if(42===m||79===m)return!0;if(146===m){var y;let t=null==e?void 0:e.filter(e=>(null==e?void 0:e.class)==="Blood_Berserker"),l=t.at(-1);if(!l)return 1;let m=null==l?void 0:null===(y=l.chow.finished)||void 0===y?void 0:y[1];return Math.pow(1.1,null!=m?m:0)}if(536===m)return 1;if(35===m){let e;let{stats:t}=u||{};e=(null==t?void 0:t.luck)<1e3?(Math.pow((null==t?void 0:t.luck)+1,.37)-1)/30:((null==t?void 0:t.luck)-1e3)/((null==t?void 0:t.luck)+2500)*.8+.3963;let l=getTalentBonus(null==u?void 0:u.talents,3,"LUCKY_CHARMS");return e*(1+l/100)/1.8}}return 0},checkCharClass=(e,t)=>{var l;return null===(l=eo[e])||void 0===l?void 0:l.includes(t)},getBubonicGreenTube=(e,t,l)=>{var m,u,d,y;let h=null==l?void 0:null===(u=l.lab)||void 0===u?void 0:null===(m=u.playersCords)||void 0===m?void 0:m[null==e?void 0:e.playerId],g=null==l?void 0:null===(y=l.lab)||void 0===y?void 0:null===(d=y.playersCords)||void 0===d?void 0:d.filter(e=>{let{class:t}=e;return checkCharClass(t,"Bubonic_Conjuror")});if(!h||(null==g?void 0:g.length)===0)return 0;let E=null==g?void 0:g.some(e=>{let{x:t}=e;return t>(null==h?void 0:h.x)});return E?getHighestTalentByClass(t,3,"Bubonic_Conjuror","GREEN_TUBE"):0},em={32:!0,130:!0,490:!0,25:!0,45:!0,370:!0,145:!0},calcTalentMaxLevel=e=>{let t=e.reduce((e,t)=>{let{flatTalents:l,flatStarTalents:m}=t;return[...l||[],...m||[]].forEach(t=>{let{skillIndex:l,maxLevel:m}=t;(null==e?void 0:e[l])&&!(m>(null==e?void 0:e[l]))||(e[l]=m)}),e},{});return Object.values(t).reduce((e,t)=>e+t,0)},calcTotalStarTalent=(e,t)=>{let l=e.reduce((e,l)=>{var m,h,g,eo,e_,ec,em,ed;let ep=null==l?void 0:null===(m=l.skillsInfoArray)||void 0===m?void 0:m.reduce((e,t,l)=>{let{level:m}=t;return l>0&&l<=9?e+m:e},-3),ey=getTalentBonus(null==l?void 0:l.talents,0,"STAR_PLAYER"),eh=getTalentBonus(null==l?void 0:l.starTalents,null,"STONKS!"),eT=getTalentBonus(null==l?void 0:l.talents,1,"SUPERNOVA_PLAYER"),ef=(0,y.Hx)(null==t?void 0:t.charactersLevels,"Elemental_Sorcerer",!0),ev=(0,E.D)(u.classFamilyBonuses,"_STAR_TAB_TALENT_POINTS",ef);if((null==l?void 0:l.class)==="Elemental_Sorcerer"){ev*=1+getTalentBonus(null==l?void 0:l.talents,3,"THE_FAMILY_GUY")/100;let e=(0,E.q)(u.classFamilyBonuses,"_STAR_TAB_TALENT_POINTS");ev=getFamilyBonusValue(ev,null==e?void 0:e.func,null==e?void 0:e.x1,null==e?void 0:e.x2)}let eg=(0,b.mV)(t,"Talent_Points_for_Star_Tab"),eS=(0,L._r)(null==t?void 0:null===(h=t.guild)||void 0===h?void 0:h.guildBonuses,11),eN=(0,k.Qo)(null==t?void 0:null===(g=t.dungeons)||void 0===g?void 0:g.upgrades,"Talent_Pts"),eC=(0,V.OK)(null==t?void 0:t.cards,"Star_Talent_Pts_(Passive)"),eR=(0,j.Vq)(null==t?void 0:null===(e_=t.alchemy)||void 0===e_?void 0:null===(eo=e_.p2w)||void 0===eo?void 0:eo.sigils,"TWO_STARZ"),eI=(0,d.k6)(null==t?void 0:t.achievements,212),ew=(0,d.k6)(null==t?void 0:t.achievements,289),eE=(0,d.k6)(null==t?void 0:t.achievements,305),eF=(0,ee.du)(null==t?void 0:null===(ec=t.breeding)||void 0===ec?void 0:ec.pets,"Star_Talent_Pts"),eP=(0,ea.k)(null==t?void 0:t.bribes,"Star_Scraper"),eD=(0,el.a)(t,"Fractal"),eA=null==eD?void 0:null===(em=eD.shop)||void 0===em?void 0:em.find(e=>{let{effect:t,unlocked:l}=e;return t.includes("Star_Talent_Pts")&&l}),eL=Math.floor((null==l?void 0:l.level)-1+(ep+ey+((null==t?void 0:null===(ed=t.talentPoints)||void 0===ed?void 0:ed[5])+ev+(eh+(eg+(eT+(Math.floor(eS)+(eN+(eC+(eR+(10*eI+(20*ew+(20*eE+(eF+(eP+100*(eA?1:0))))))))))))))));return{...e,[l.name]:eL}},{});return Math.max(...Object.values(l))}},79184:function(e,t,l){"use strict";l.d(t,{I:function(){return getOwlBonus},Y:function(){return getOwl}});var m=l(70473);let getOwl=(e,t)=>parseOwl(t),u=["Multiplies_all_Feather_generation_by_10x._Multiplicative,_so_extra_powerful!","Boosts_all_of_Orion's_Bonuses_by_double_their_base_amount.","All_upgrades_cost_1%_less_feathers_per_LV_of_Feather_Generation.","Instead_of_double,_all_of_Orion's_Bonuses_are_now_triple.","The_Feather_Cheapener_upgrades_now_give_+2_and_+4_Feathers/sec_each_LV,_respectively.","Forget_triple,_Orion's_Bonuses_are_now_quadruple!","The_upgrade_Feather_Restart_now_gives_a_5x_feather_bonus_instead_of_the_previous_3x.","Quadruple?_Pfft_more_like_Noobruple,_Orion's_Bonuses_are_now_Quintuple_at_big,_that's_5x!","The_cost_of_Feather_Generation_upgrade_now_goes_up_25%_slower.","Orion's_bonuses_are_now_{x_higher_than_they_were_at_first."],parseOwl=e=>{var t,l,d,y,h,g,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed;let ep=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[253],ey=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[263],eh=m.owlData.map((t,l)=>{var u,d,y,h,g,E,b,L;let k=1/(1+10*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[257])/100)*(1/(1+20*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[261])/100))*(1/(1+getMegaFeather(e,2)*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[254])/100))*(null==t?void 0:t.x1),V=0===l?k*(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[254+l])*Math.pow(Math.max(1.05,(null==t?void 0:t.x2)-.025*getMegaFeather(e,8)),null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[254+l]):k*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[254+l]),j=null==e?void 0:null===(b=e.accountOptions)||void 0===b?void 0:b[254+l],ee=null===m.owlData||void 0===m.owlData?void 0:null===(L=m.owlData[l+1])||void 0===L?void 0:L.x3;return{...t,cost:V,level:j,nextLvReq:ee,unlocked:ey>(null==t?void 0:t.x3)}}),eT=null==eh?void 0:eh.findIndex(e=>{let{level:t,x3:l}=e;return ey{var m,u;return{description:t,unlocked:l+1<=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[262]),...9===l?{amount:(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[262])-10,totalBonus:1+eg/100}:{}}});return{upgrades:eh,bonuses:eS,feathers:ep,progress:ey,nextLvReq:ef,megaFeathers:eN,featherRate:ev,restartMulti:Math.pow(3+2*getMegaFeather(e,6),(null==e?void 0:null===(ed=e.accountOptions)||void 0===ed?void 0:ed[258])+1)}},getMegaFeather=(e,t)=>{var l,m;return(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[262])>t?9===t?(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[262])-9:1:0},getOwlBonus=(e,t)=>{var l;return null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.bonus}},78713:function(e,t,l){"use strict";l.d(t,{P:function(){return getIslands},a:function(){return getIsland}});var m=l(30925),u=l(29129),d=l(10924);let y=["Get_as_much_total_stats_as_possible,_STR_AGI_WIS_and_LUK_combined.","Get_as_much_STR_stat_as_you_can.","Get_as_much_AGI_stat_as_you_can.","Get_as_much_WIS_stat_as_you_can.","Get_as_much_LUK_stat_as_you_can.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_beginner","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_warrior.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_archer.","Get_the_highest_DPS_(number_of_digits)_you_can;_but_on_a_mage.","Get_the_highest_Accuracy_stat_you_can.","Get_the_highest_Defence_stat._Tank_mains;_it's_your_moment!","Get_the_highest_Movement_Speed_you_can.","Get_the_highest_Critical_Chance_%_you_can.","Spawn_as_many_Giant_Mobs_this_week_as_you_can.","Get_the_highest_Max_HP_as_possible.","Get_the_highest_Max_MP_as_possible.","Get_as_many_individual_hits_on_the_DPS_Dummy_as_you_can_within_the_timer.","Get_as_much_Mining_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Choppin_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Fishing_Efficiency_(number_of_digits)_as_you_can.","Get_as_much_Catching_Efficiency_(number_of_digits)_as_you_can.","Claim_as_much_Guild_GP_this_week_as_you_can."],h=[{effect:"+{,Base_STR",divider:12},{effect:"+{,Base_AGI",divider:12},{effect:"+{,Base_WIS",divider:12},{effect:"+{,Base_LUK",divider:10},{effect:"+{%,Total_DMG",divider:3},{effect:"+{%,Class_EXP",divider:4},{effect:"+{%,Skill_Eff",divider:5}],g=[{effect:"1_in_100000_chance_for_Trophy_per_hr_of_Nothing_AFK",cost:24},{effect:"1.25x_Dungeon_Credits_and_Flurbos_gained",cost:200},{effect:"-30%_Kitchen_Upgrade_Costs",cost:750},{effect:"1.20x_Chance_to_find_Sailing_Artifacts",cost:2500},{effect:"Dirty_Shovel_digs_up_+25%_more_Gold_Nuggets",cost:1e4},{effect:"+100_Star_Talent_Pts",cost:2e4},{effect:"World_6_Bonus..._I_wonder_what_it_will_be...",cost:4e4},{effect:"World_7_Bonus..._I_wonder_what_it_will_be...",cost:6e4}],getIslands=e=>{var t,l,y,h,g,E,b,L,k,V,j,ee;let ea;let el=null===(t=(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[169])||"")||void 0===t?void 0:t.split(""),eo=null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:null===(y=h[169])||void 0===y?void 0:y.length,e_={0:0,1:8,2:32,3:80,4:200,5:500},ec={0:0,1:15,2:45,3:100,4:200,5:500},em=[{name:"Trash",description:"Trade_garbage_that_washs_up_each_day_for_items",preUnlockCost:4,baseCost:10},{name:"Rando",description:"Guaranteed_Random_Event_once_a_week",preUnlockCost:12,baseCost:12},{name:"Crystal",description:"Fight_daily_giant_crystal_mobs_that_drop_candy",preUnlockCost:20,baseCost:15},{name:"Seasalt",description:"Catch_legendary_fish_for_crafting_World_6_equips",preUnlockCost:28,baseCost:50},{name:"Shimmer",description:"Do_Weekly_Challenges_for_Shimmer_Upgrades",preUnlockCost:40,baseCost:25},{name:"Fractal",description:"Dump_your_time_candy_here_for..._nothing...?",preUnlockCost:52,baseCost:70}].map((t,l)=>({...t,unlocked:(null==el?void 0:el.indexOf(null===m.number2letter||void 0===m.number2letter?void 0:m.number2letter[l]))!==-1,cost:0===eo?t.preUnlockCost+(null==e_?void 0:e_[eo]):t.baseCost+(null==ec?void 0:ec[eo]),...extraIslandDetails(e,l)})),ed=null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[162],ep=(0,u.k)(null==e?void 0:e.bribes,"Bottle_Service"),ey=(0,d.U7)(null==e?void 0:e.bundles,"bun_p")?30:0,eh=null==e?void 0:null===(k=e.quests)||void 0===k?void 0:null===(L=k["Yum-Yum_Desert"])||void 0===L?void 0:null===(b=L.find(e=>{let{name:t}=e;return"Omar_Da_Ogar"===t}))||void 0===b?void 0:null===(E=b.npcQuests)||void 0===E?void 0:E.reduce((e,t)=>{let{completed:l}=t;return e+((null==l?void 0:l.length)>0?1:0)},0),eT=null==e?void 0:null===(V=e.accountOptions)||void 0===V?void 0:V[164],ef=null===(j=e.accountOptions)||void 0===j?void 0:j[160],ev=null===(ee=e.accountOptions)||void 0===ee?void 0:ee[163];ea=14>ef?.25+ef:Math.pow(8*ef,.5);let eg=0===ef?0:Math.round(3*ea*Math.floor(1.01+(.5+(Math.min(ef,70)/100+ev/5))));return{islandsUnlocked:eo,bottles:ed,bottlesPerDay:Math.floor(4*(1+(ep+(10*eT+10*eh+ey))/100)),trashPerDay:Math.round(3.75*Math.floor(1.01+(.5+(.01+ev/5)))),trashPerDaysAfk:eg,numberOfDaysAfk:ef,list:em}},extraIslandDetails=(e,t)=>{var l,u,d,E,b,L,k,V,j,ee,ea;let el={};if(0===t){let t=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[161],m=["data/StampB47","data/StampB32","data/StampA38","data/StampA39","etc/Trash_Currency","etc/Bribe","data/Island1","data/TalentBook1","data/EquipmentNametag6b"],y=["Skelefish Stamp","Amplestample Stamp","Golden Sixes Stamp","Stat Wallstreet Stamp","+20% Garbage Gain","Unlock New Bribe Set","10% Message Bottle Gain","Filthy Damage Special Talent Book","Trash Tuna Nametag"],h=[20,40,80,300,7*Math.pow(1.4,null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[163]),135,25*Math.pow(1.5,null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[164]),450,1500].map((t,l)=>{var u,d;let h=4===l?null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[163]:6===l?null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[164]:null;return{cost:Math.round(t),effect:null==m?void 0:m[l],upgrades:h,name:null==y?void 0:y[l]}});el={trash:t,learnMore:!0,shop:h}}else if(1===t)el={learnMore:!0,shop:[{effect:"5% Loot (".concat(null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[166],")"),cost:Math.round(10*Math.pow(1.5,null==e?void 0:null===(b=e.accountOptions)||void 0===b?void 0:b[166]))},{effect:"3% Double boss (".concat(null==e?void 0:null===(L=e.accountOptions)||void 0===L?void 0:L[167],")"),cost:Math.round(6*Math.pow(1.4,null==e?void 0:null===(k=e.accountOptions)||void 0===k?void 0:k[167]))},{effect:"Star book",cost:200}]};else if(4===t){let t=null==e?void 0:null===(V=e.accountOptions)||void 0===V?void 0:V[183],l=(0,m.notateNumber)(null==e?void 0:null===(j=e.accountOptions)||void 0===j?void 0:j[172]),u=null==e?void 0:null===(ee=e.accountOptions)||void 0===ee?void 0:ee[173],d=null==h?void 0:h.map((t,l)=>{var m,u;let{effect:d,divider:y}=t,h=null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[174+l];return{effect:null==d?void 0:null===(u=d.replace("{",h))||void 0===u?void 0:u.replace(","," "),bonus:h,cost:1+Math.floor(h/y)}});el={shop:d,currentTrial:y[t],bestDpsEver:l,shimmerCurrency:u,learnMore:!0}}else if(5===t){let t=null==e?void 0:null===(ea=e.accountOptions)||void 0===ea?void 0:ea[184];el={hoursAfk:t,shop:null==g?void 0:g.map(e=>({...e,unlocked:t>(null==e?void 0:e.cost)})),learnMore:!0}}return el},getIsland=(e,t)=>{var l,m;return null==e?void 0:null===(m=e.islands)||void 0===m?void 0:null===(l=m.list)||void 0===l?void 0:l.find(e=>{let{name:l}=e;return l===t})}},30183:function(e,t,l){"use strict";l.d(t,{E:function(){return getKangaroo},u:function(){return getKangarooBonus}});var m=l(70473),u=l(30925);let getKangaroo=(e,t)=>parseKangaroo(t),d=["Unlocks_the_first_3_upgrades_in_the_Tar_Pit,_visit_through_top_left_corner","Boosts_all_of_Poppy's_Bonuses_by_1.5x_their_base_amount","Adds_two_more_Reset_Spirals_to_upgrade,_and_gives_+5_Pts_when_Fisheroo_Resetting","Boosts_all_of_Poppy's_Bonuses_by_2x_their_base_amount.","Unlocks_another_3_upgrades_in_the_Tar_Pit,_and_boosts_Tartar_Fish_gain_by_3x","The_Fishing_Buddy_upgrade_now_gives_+50%_Bluefin_caught_and_+50%_Shiny_Speed_per_Lv_past_Lv.5!","Boosts_all_of_Poppy's_Bonuses_by_2.5x_their_base_amount","Unlocks_the_final_2_upgrades_in_the_Tar_Pit,_and_boosts_Tartar_Fish_gain_by_another_3x","Boosts_all_of_Poppy's_Bonuses_by_3x_their_base_amount","Shiny_fishing_is_1%_faster_per_upgrade_LV_of_the_Tasty_Fishbait_upgrade","All_upgrades,_including_Tar_Pit_upgrades,_are_5%_cheaper_per_LV_of_King_Worm_upgrade","Poppy's_bonuses_are_now_{x_higher_than_they_were_at_first"],y=["{x_bluefin_fish_caught","{x_shiny_fishing_speed_and_luck","All_upgrades_are_{x_cheaper","Other_Reset_bonuses_are_{x_higher","{x_Tartar_fish_caught"],parseKangaroo=e=>{var t,l,h,g,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh,eT,ef,ev,eg,eS;let eN=null==e?void 0:null===(t=e.accountOptions)||void 0===t?void 0:t[267],eC=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[280],eR=m.poppyBonuses.map((t,l)=>{var u,d,y,h,g,E,b;let L=0===l?1+(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[268]):1,k=L*(1/(1+10*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[272])/100))*(1/(1+15*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[300])/100))*(1/(1+5*getMegaFish(e,10)*(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[304])/100)),V=k*(1/Math.max(1,getResetBonuses(e,2)))*(null==t?void 0:t.x1)*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[268+l]),j=null==e?void 0:null===(E=e.accountOptions)||void 0===E?void 0:E[268+l],ee=null===m.poppyBonuses||void 0===m.poppyBonuses?void 0:null===(b=m.poppyBonuses[l+1])||void 0===b?void 0:b.x3,ea=formatDescription(e,j,null==t?void 0:t.desc,0,l,m.poppyBonuses);return{...t,cost:V,level:j,nextLvReq:ee,desc:ea,unlocked:eC>(null==t?void 0:t.x3)||0===l}}),eI=null==eR?void 0:eR.findIndex(e=>{let{level:t,x3:l}=e;return eC{var u,d,y,h;let g=1/(1+5*getMegaFish(e,10)*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[304])/100),E=(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[297+l])+g*(null==t?void 0:t.x1)*Math.pow(null==t?void 0:t.x2,null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[297+l]),b=null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[297+l],L=formatDescription(e,b,null==t?void 0:t.desc,1,l,m.poppyTarBonuses);return{...t,cost:E,level:b,desc:L,unlocked:l{var m,u;return{description:t,unlocked:l+1<=(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[279]),...11===l?{amount:(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[279])-12,totalBonus:1+eM/100}:{}}}),eW=y.map((t,l)=>{var m;return{desc:t.replace("{",Math.round(100*getResetBonuses(e,l))/100),level:null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[291+l]}}),eH=getShinyMulti(e,-1);eH=1e3>getShinyMulti(e,-1)?(0,u.notateNumber)(eH,"MultiplierInfo"):1e7>getShinyMulti(e,-1)?(0,u.commaNotation)(eH):(0,u.notateNumber)(eH,"MultiplierInfo");let eK=[0,1,2,3,4,5].map(t=>{var l;let m=null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[281+t],d=getShinyMulti(e,t),y=(10>d?(0,u.notateNumber)(d,"MultiplierInfo"):100>d?""+Math.floor(10*d)/10:""+Math.floor(d)).replace(".00","");return{multi:y,amount:1e4>m?""+Math.round(m):""+(0,u.notateNumber)(m,"Big")}});return{resetBonuses:eW,upgrades:eR,bonuses:eO,fish:eN,progress:eC,nextLvReq:ew,megaFish:ek,fishRate:eP,tarFishRate:eL,tarFishOwned:eA,totalMulti:eH,allMultipliers:eK,tarUpgrades:ex,shinyProgress:eB,shinyRate:eQ,shinyRatePercent:100*Math.max(0,eQ/eG)}},formatDescription=(e,t,l,m,d,y)=>{var h,g,E,b,L;let k=l;return(k=(k=(k=k.replace("{",""+(0,u.commaNotation)((null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[Math.round(268+29*m+d)])*(null===(g=y[d])||void 0===g?void 0:g.x6)))).replace("]",""+Math.round(100+t*(null===(E=y[d])||void 0===E?void 0:E.x6))/100)).replace("~",""+(0,u.notateNumber)(100*(1-1/(1+t*(null===(b=y[d])||void 0===b?void 0:b.x6)/100)),"Small"))).replace("?",""+(0,u.notateNumber)((null===(L=y[d])||void 0===L?void 0:L.x6)*(t/(40+t)),"Small"))},getMegaFish=(e,t)=>{var l,m;return(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[279])>t?11===t?(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[279])-11:1:0},getShinyMulti=(e,t)=>{var l;let m=1;return t<0?m*=getShinyMulti(e,0)*getShinyMulti(e,1)*getShinyMulti(e,2)*getShinyMulti(e,3)*getShinyMulti(e,4)*getShinyMulti(e,5):(0===t&&(m=30),1===t&&(m=50),2===t&&(m=100),3===t&&(m=150),4===t&&(m=250),5===t&&(m=500),1+m*Math.log(Math.max(1,null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[Math.round(281+t)]))/100)},getResetBonuses=(e,t)=>{var l,m,u,d,y,h,g;let E=0===t?1+.4*(null==e?void 0:null===(l=e.accountOptions)||void 0===l?void 0:l[291]):1===t?1+.3*(null==e?void 0:null===(m=e.accountOptions)||void 0===m?void 0:m[292]):2===t?1+.15*(null==e?void 0:null===(u=e.accountOptions)||void 0===u?void 0:u[293]):3===t?1+.04*(null==e?void 0:null===(d=e.accountOptions)||void 0===d?void 0:d[294]):1+.2*(null==e?void 0:null===(y=e.accountOptions)||void 0===y?void 0:y[295]),b=3!==t&&0<(null==e?void 0:null===(h=e.accountOptions)||void 0===h?void 0:h[291+t])?1+.04*(null==e?void 0:null===(g=e.accountOptions)||void 0===g?void 0:g[294]):1;return E*b},getKangarooBonus=(e,t)=>{var l;return null==e?void 0:null===(l=e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.bonus}},48832:function(e,t,l){"use strict";l.d(t,{F:function(){return getVoteBonus},X:function(){return getVoteBallot}});var m=l(72973),u=l(70473);let getVoteBallot=(e,t)=>parseVoteBallot(e,t),parseVoteBallot=(e,t)=>{var l;let{votePercent:d,voteCategories:y}=(null==t?void 0:t.serverVars)||{},[h,...g]=y||[],E=1+(0,m.z)(null==t?void 0:null===(l=t.equinox)||void 0===l?void 0:l.upgrades,"Voter_Rights")/100,b=u.ninjaExtraInfo[38].split(" ").toChunks(3).map((e,t)=>{let l=g.findIndex(e=>e===t);return{...e,icon:"VoteBon".concat(t,".png"),active:l>-1,selected:h===t,percent:(null==d?void 0:d[l])||0,bonus:parseFloat(null==e?void 0:e[1])*E}});return{bonuses:b,voteMulti:E,selectedBonus:null==b?void 0:b[h]}},getVoteBonus=(e,t)=>{var l,m,u,d,y,h;let g=null==e?void 0:null===(u=e.voteBallot)||void 0===u?void 0:null===(m=u.bonuses)||void 0===m?void 0:null===(l=m[t])||void 0===l?void 0:l.selected;return g?null==e?void 0:null===(h=e.voteBallot)||void 0===h?void 0:null===(y=h.bonuses)||void 0===y?void 0:null===(d=y[t])||void 0===d?void 0:d.bonus:0}},67896:function(e,t,l){"use strict";l.d(t,{RB:function(){return isRiftBonusUnlocked},lC:function(){return getConstructMastery},wE:function(){return getRift}});var m=l(30925),u=l(70473),d=l(47212);let getRift=e=>{let t=(0,m.tryToParse)(null==e?void 0:e.Rift)||(null==e?void 0:e.Rift);return parseRift(t)},parseRift=e=>{let[t,l,m]=e||[];return{list:u.riftInfo,currentRift:parseInt(t),currentProgress:l,chars:m}},isRiftBonusUnlocked=(e,t)=>{var l;return null==e?void 0:null===(l=e.list)||void 0===l?void 0:l.find((l,m)=>{let{riftBonus:u}=l;return u===t&&m<=(null==e?void 0:e.currentRift)})},getConstructMastery=(e,t)=>"Ref Spd"===t?e>=(null===d.q5||void 0===d.q5?void 0:d.q5[0])?Math.floor(e/10):0:"Dmg"===t?e>=(null===d.q5||void 0===d.q5?void 0:d.q5[2])?2*Math.floor((e-(null===d.q5||void 0===d.q5?void 0:d.q5[2]))/10):0:"Build Spd"===t&&e>=(null===d.q5||void 0===d.q5?void 0:d.q5[4])?5*Math.floor((e-(null===d.q5||void 0===d.q5?void 0:d.q5[4]))/10):0},77115:function(e,t,l){"use strict";l.d(t,{Ss:function(){return getRanksTotalBonus},UA:function(){return getFarming},YA:function(){return getTotalCrop},af:function(){return getProductDoubler},iz:function(){return getLandRank},nT:function(){return updateFarming}});var m=l(30925),u=l(70473),d=l(8616),y=l(96707),h=l(88054),g=l(15893),E=l(13339),b=l(9339);let getFarming=(e,t)=>{let l=(0,m.tryToParse)(null==e?void 0:e.FarmUpg),u=(0,m.tryToParse)(null==e?void 0:e.FarmPlot),d=(0,m.tryToParse)(null==e?void 0:e.FarmCrop),y=(0,m.tryToParse)(null==e?void 0:e.FarmRank);return parseFarming(l,u,d,y,t)},parseFarming=(e,t,l,m,y)=>{var h,g,E,L,k,V,j,ee;let ea=null==y?void 0:null===(h=y.gemShopPurchases)||void 0===h?void 0:h.find((e,t)=>139===t),el=null==e?void 0:e.slice(2,u.marketInfo.length+2),eo=null==e?void 0:e[1],e_=null==e?void 0:e[19],ec=null===u.marketInfo||void 0===u.marketInfo?void 0:u.marketInfo.map((e,t)=>{var l;let{cropId:m,cropIdIncrement:u,cost:d,costExponent:y,bonusPerLvl:h,maxLvl:g,bonus:E}=e,b=null!==(l=null==el?void 0:el[t])&&void 0!==l?l:0;return{...e,level:b,type:getCropType({index:t,cropId:m,cropIdIncrement:u,level:b}),cost:d*Math.pow(y,b),nextUpgrades:getNextUpgradesReq({index:t,cropId:m,cropIdIncrement:u,level:b,maxLvl:g,cost:d,costExponent:y}),costToMax:calcCostToMax({level:b,maxLvl:g,cost:d,costExponent:y}),baseValue:E.includes("}")?1+b*h/100:b*h}}),[em,ed,ep]=m||[],ey=null==em?void 0:em.reduce((e,t)=>e+t,0),eh=null==ep?void 0:ep.reduce((e,t)=>e+t,0),eT=null===(g=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[37])||void 0===g?void 0:g.split(" "),ef=null===(E=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[34])||void 0===E?void 0:E.split(" "),ev=null===(k=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[36])||void 0===k?void 0:null===(L=k.split(" "))||void 0===L?void 0:L.map(e=>parseFloat(e)),eg=null===(j=null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[35])||void 0===j?void 0:null===(V=j.split(" "))||void 0===V?void 0:V.map((e,t)=>{let l=null==ef?void 0:ef[t],m=null==ev?void 0:ev[t],u=null==ep?void 0:ep[t],d=null==eT?void 0:eT[t];return{name:l,description:e,bonus:4===t||9===t||14===t||19===t?Math.min(m,m*u):1.7*m*u/(u+80),upgradeLevel:u,unlockAt:d}}),eS=null==t?void 0:t.map((e,t)=>{var l;let[m,d,y,h,g,E,b]=e,L=Math.round((null===u.seedInfo||void 0===u.seedInfo?void 0:null===(l=u.seedInfo[m])||void 0===l?void 0:l.cropIdMin)+y),k=null==em?void 0:em[t],V=null==ed?void 0:ed[t];return{rank:k,rankProgress:V,rankRequirement:(7*k+25*Math.floor(k/5)+10)*Math.pow(1.11,k),seedType:m,cropType:L,cropQuantity:g,cropProgress:b,progress:d,growthReq:14400*Math.pow(1.5,m),isLocked:h,currentOG:E,cropRawName:"FarmCrop".concat(L,".png"),seedRawName:"Seed_".concat(m,".png")}}),eN=getMarketBonus(ec,"LAND_PLOTS"),eC=Object.entries(l||{}).reduce((e,t)=>{var l,m;let[d,y]=t,h=u.seedInfo.find(e=>parseFloat(d)>=e.cropIdMin&&parseFloat(d)<=e.cropIdMax);return e+parseFloat(y)*Math.pow(2.5,null!==(l=null==h?void 0:h.seedId)&&void 0!==l?l:0)*Math.pow(1.08,d-(null!==(m=null==h?void 0:h.cropIdMin)&&void 0!==m?m:0))},0),eR=null!==(ee=(0,d.x5)(y,"Deal_Sweetening"))&&void 0!==ee?ee:0,eI=getMarketBonus(ec,"MORE_BEENZ"),ew=(0,b.k6)(null==y?void 0:y.achievements,363);return{plot:eS,crop:{...l,beans:eo},market:ec,cropsFound:Object.keys(l||{}).length,cropsOnVine:Math.floor(1+(eN+20*ea)/100),instaGrow:e_,beanTrade:Math.pow(eC,.5)*(1+eI/100)*(1+(25*eR+5*ew)/100),ranks:eg,totalPoints:ey,usedPoints:eh,totalRanks:null==em?void 0:em.reduce((e,t)=>e+t,0)}},getRanksTotalBonus=(e,t)=>{var l,m,u,d,y,h,g,E,b,L,k,V,j;return 0===t?(1+(null==e?void 0:null===(l=e[3])||void 0===l?void 0:l.bonus)/100)*(1+(null==e?void 0:null===(m=e[10])||void 0===m?void 0:m.bonus)/100)*(1+(null==e?void 0:null===(u=e[15])||void 0===u?void 0:u.bonus)/100):1===t?(null==e?void 0:null===(d=e[8])||void 0===d?void 0:d.bonus)+(null==e?void 0:null===(y=e[17])||void 0===y?void 0:y.bonus):2===t?(null==e?void 0:null===(h=e[6])||void 0===h?void 0:h.bonus)+(null==e?void 0:null===(g=e[13])||void 0===g?void 0:g.bonus):3===t?(null==e?void 0:null===(E=e[7])||void 0===E?void 0:E.bonus)+((null==e?void 0:null===(b=e[11])||void 0===b?void 0:b.bonus)+(null==e?void 0:null===(L=e[18])||void 0===L?void 0:L.bonus)):4===t?(null==e?void 0:null===(k=e[5])||void 0===k?void 0:k.bonus)+((null==e?void 0:null===(V=e[12])||void 0===V?void 0:V.bonus)+(null==e?void 0:null===(j=e[16])||void 0===j?void 0:j.bonus)):1},getCropsWithStockEqualOrGreaterThan=(e,t)=>{var l;return null===(l=Object.values(e))||void 0===l?void 0:l.filter(e=>e>=t).length},getMarketUpgradeBonusValue=(e,t,l)=>{let m=e.find((e,t)=>t===l);if(!m)return 0;switch(l){case 7:return m.level*m.bonusPerLvl;case 9:return getMarketUpgradeBonusValue(e,t,15)*Math.pow(1+m.level*m.bonusPerLvl/100,getCropsWithStockEqualOrGreaterThan(t,200));case 11:return 1+m.level*m.bonusPerLvl/100;case 10:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e3)/100);case 12:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,2500)/100);case 13:return 0;case 14:return getMarketUpgradeBonusValue(e,t,15)*(1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e4)/100);case 15:return 1+m.level*m.bonusPerLvl*getCropsWithStockEqualOrGreaterThan(t,1e5)/100;default:return m.bonus.includes("}")?1+m.level*m.bonusPerLvl/100:m.level*m.bonusPerLvl}},updateFarming=(e,t)=>{var l,m,u,g,L;let k=null==t?void 0:null===(m=t.farming)||void 0===m?void 0:null===(l=m.market)||void 0===l?void 0:l.map((e,l)=>{var m,u;return{...e,value:getMarketUpgradeBonusValue(null==t?void 0:null===(m=t.farming)||void 0===m?void 0:m.market,null==t?void 0:null===(u=t.farming)||void 0===u?void 0:u.crop,l)}}),V=getMarketBonus(k,"NUTRITIOUS_SOIL"),j=getMarketBonus(k,"SPEED_GMO","value"),ee=(0,h.iu)(null==t?void 0:null===(u=t.alchemy)||void 0===u?void 0:u.vials,"6FarmSpd"),ea=(0,E.R)(t,"14400*Math.pow(1.5,e)/el),e_=null==t?void 0:null===(L=t.farming)||void 0===L?void 0:null===(g=L.plot)||void 0===g?void 0:g.map(l=>{var m,u,h,g;let E=getMarketBonus(null==t?void 0:null===(m=t.farming)||void 0===m?void 0:m.market,"OG_FERTILIZER"),L=(0,d.vq)(t,"Taffy_Disc"),k=(0,y.o9)(null==e?void 0:e[0],t,"OG_Chance"),V=(0,b.k6)(null==t?void 0:t.achievements,365),j=Math.pow(.4,(null==l?void 0:l.currentOG)+1)*Math.max(1,E)*(1+L/100)*(1+k/100)*(1+2*(null==t?void 0:null===(g=t.tasks)||void 0===g?void 0:null===(h=g[2])||void 0===h?void 0:null===(u=h[5])||void 0===u?void 0:u[2])/100)*(1+15*V/100),ee=((null==l?void 0:l.growthReq)-(null==l?void 0:l.cropProgress))/el,ea=(null==l?void 0:l.growthReq)/el,eo=Math.min(1e9,Math.max(1,Math.pow(2,null==l?void 0:l.currentOG)));return{...l,nextOGChance:j,growthRate:el,ogMulti:eo,timeLeft:ee,maxTimeLeft:ea}});return{...(null==t?void 0:t.farming)||{},plot:e_,cropDepot:getCropDepotBonuses(t),market:k,maxTimes:eo}},getNextUpgradesReq=e=>{let{index:t,cropId:l,cropIdIncrement:m,level:u,maxLvl:d,cost:y,costExponent:h,isUnique:g=!0}=e,E=new Map,b=0;for(;E.size<4&&u+b{let[t,l]=e;return{type:t,cost:l}})},getCropType=e=>{let{index:t,cropId:l,cropIdIncrement:m,level:u}=e;return 0===t?Math.floor(l+m*(u+(2*Math.floor(u/3)+Math.floor(u/4)))):Math.floor(l+m*u)},getCropDepotBonuses=e=>{var t,l,m,u,y,h,E,b,L;let k=(0,g.c9)(null==e?void 0:null===(t=e.lab)||void 0===t?void 0:t.labBonuses,17),V=(0,g.c9)(null==e?void 0:e.lab.labBonuses,8),j=(0,g.pc)(null==e?void 0:null===(l=e.lab)||void 0===l?void 0:l.jewels,20,V),ee={damage:{name:"DMG",value:0},gamingEvo:{name:"Gaming Evo",value:0},jadeCoin:{name:"Jade Coin",value:0},cookingSpeed:{name:"Meal Spd",value:0},cash:{name:"Cash",value:0},shiny:{name:"Pet Rate",value:0},critters:{name:"Critters",value:0}};return(0,d.x5)(e,"Reinforced_Science_Pencil")&&(ee.damage.value=20*Math.round(null==e?void 0:null===(m=e.farming)||void 0===m?void 0:m.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Pen")&&(ee.gamingEvo.value=Math.pow(1.02,Math.round(null==e?void 0:null===(u=e.farming)||void 0===u?void 0:u.cropsFound))*(1+(k+j)/100)),(0,d.x5)(e,"Science_Marker")&&(ee.jadeCoin.value=8*Math.round(null==e?void 0:null===(y=e.farming)||void 0===y?void 0:y.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Featherpen")&&(ee.cookingSpeed.value=Math.pow(1.1,Math.round(null==e?void 0:null===(h=e.farming)||void 0===h?void 0:h.cropsFound))*(1+(k+j)/100)),(0,d.x5)(e,"Science_Environmentally_Sourced_Pencil")&&(ee.cash.value=15*Math.round(null==e?void 0:null===(E=e.farming)||void 0===E?void 0:E.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Crayon")&&(ee.shiny.value=7*Math.round(null==e?void 0:null===(b=e.farming)||void 0===b?void 0:b.cropsFound)*(1+(k+j)/100)),(0,d.x5)(e,"Science_Paintbrush")&&(ee.critters.value=.1*Math.round(null==e?void 0:null===(L=e.farming)||void 0===L?void 0:L.cropsFound)*(1+(k+j)/100)),ee},getMarketBonus=function(e,t){var l,m;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"baseValue";return null!==(m=null===(l=null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l[u])&&void 0!==m?m:0},getLandRank=(e,t)=>null==e?void 0:e.find(e=>{let{name:l}=e;return l===t}),calcCostToMax=e=>{let{level:t,maxLvl:l,cost:m,costExponent:u}=e,d=0;for(let e=t;enull==e?void 0:e.reduce((e,m)=>{let{seedType:u,cropQuantity:d,cropRawName:y,ogMulti:h,rank:g}=m;if(-1===u)return e;let{productDoubler:E}=getProductDoubler(t),b=getLandRank(l,"Production_Boost"),L=Math.min(100,Math.round(Math.max(1,Math.floor(1+E/100))*(1+getRanksTotalBonus(l,1)/100)*(1+(null==b?void 0:b.bonus)*(null!=g?g:0)/100)));return{...e,[y]:((null==e?void 0:e[y])||0)+d*h*L}},{}),getProductDoubler=e=>{var t;let l=(null==e?void 0:null===(t=e[5])||void 0===t?void 0:t.value)||0;return{productDoubler:l,percent:l%100,multi:Math.max(2,Math.floor(l/100)+1)}}},8616:function(e,t,l){"use strict";l.d(t,{$8:function(){return calcTotalBeanstalkLevel},JL:function(){return getSneaking},vq:function(){return getCharmBonus},x5:function(){return isJadeBonusUnlocked}});var m=l(30925),u=l(70473);let getSneaking=(e,t,l,u)=>{let d=(0,m.tryToParse)(null==e?void 0:e.Ninja);return parseSneaking(d,t,l,u)},d=(null===u.ninjaExtraInfo||void 0===u.ninjaExtraInfo?void 0:u.ninjaExtraInfo[3]).split(" "),parseSneaking=(e,t,l,y)=>{var h,g,E,b,L,k,V;let j=null==e?void 0:null===(h=e[106])||void 0===h?void 0:h.filter(e=>e.includes("NjGem")),ee=Object.entries(u.ninjaEquipment).reduce((e,t)=>{let[l,m]=t;return l.includes("NjGem")?[...e,m]:[]},[]).map((e,t)=>{var l,m;let u=null==j?void 0:j[t],d=null!==(m=null==y?void 0:null===(l=y.accountOptions)||void 0===l?void 0:l[233+t])&&void 0!==m?m:0,h=d<.5?0:getGemstoneBonus({...e,baseValue:d},t,0);return{...e,unlocked:u,baseValue:d,bonus:h}});ee=ee.map((e,t)=>{var l;let m=(null==e?void 0:e.baseValue)<.5?0:getGemstoneBonus(e,t,null==ee?void 0:null===(l=ee[5])||void 0===l?void 0:l.bonus);return{...e,bonus:m}});let ea=null==e?void 0:null===(g=e[102])||void 0===g?void 0:g[9],el=null==e?void 0:null===(E=e[102])||void 0===E?void 0:E[1],eo=null==e?void 0:null===(b=e[102])||void 0===b?void 0:b[2],e_=null==e?void 0:e[103],ec=null==e?void 0:e[104],em=null==e?void 0:e[100],ed=d.reduce((e,t,l)=>{var m,u;let d=(null==y?void 0:null===(m=y.accountOptions)||void 0===m?void 0:m[231])<(null==y?void 0:null===(u=y.accountOptions)||void 0===u?void 0:u[232])?0:parseFloat(t);return e+(d-(null==em?void 0:em[l])<=0?1:0)},1),ep=null===(L=y.accountOptions)||void 0===L?void 0:L[231],ey=null==e?void 0:null===(k=e.slice(0,null==l?void 0:l.length))||void 0===k?void 0:k.map(e=>{let[t,l]=e;return{floor:t,activityInfo:l}}),eh=null===(V=u.ninjaExtraInfo.slice(13,21).map(e=>e.split(" ").toChunks(2)))||void 0===V?void 0:V.map(e=>null==e?void 0:e.map(e=>{let[t,l]=e;return{...u.ninjaEquipment[t],dropChance:l}})),eT=null===u.ninjaUpgrades||void 0===u.ninjaUpgrades?void 0:u.ninjaUpgrades.map((e,t)=>{var l;return{...e,level:null==e_?void 0:e_[t+1],value:(null==e_?void 0:e_[t+1])*(null!==(l=e.modifier)&&void 0!==l?l:1)}}),ef=u.ninjaExtraInfo[24].split(" "),ev=parseNinjaItems(null==e?void 0:e.slice(60,99),!1),eg=getInventoryNinjaItem({sneaking:{inventory:ev}},"Gold_Scroll"),eS=parseNinjaItems(null==e?void 0:e.slice(12,12+(null==l?void 0:l.length)*4),!0),eN=l.map((e,t)=>{var l;return{equipment:null==eS?void 0:null===(l=eS[t])||void 0===l?void 0:l.map(e=>({...e,value:(null==e?void 0:e.value)*(1+eg/100)})),...(null==ey?void 0:ey[t])||[]}}),eC=0,eR=u.jadeUpgrades.map((e,t)=>{let l=!!ea&&(null==ea?void 0:ea.indexOf(null===m.number2letter||void 0===m.number2letter?void 0:m.number2letter[t]))!==-1;return l&&(eC+=1),{...e,originalIndex:t,index:null==ef?void 0:ef.indexOf(t+""),unlocked:l}});eR.sort((e,t)=>e.index-t.index);let eI=eR.map((e,l)=>{let m;if(8===l){var u;let e=null==y?void 0:null===(u=y.looty)||void 0===u?void 0:u.rawLootedItems;m=5*Math.floor(Math.max(0,e-1e3)/10)}return{...e,cost:(300+500*l+Math.pow(l,3))*Math.pow(Math.max(1,t.A_empoExpon),l)*Math.pow(3.07,Math.max(0,l-28)),bonus:m}}),ew=u.pristineCharms.map((t,l)=>{var m;return{...t,unlocked:null==e?void 0:null===(m=e[107])||void 0===m?void 0:m[l],value:(null==t?void 0:t.bonus.includes("}"))?1+(null==t?void 0:t.x3)/100:null==t?void 0:t.x3,baseValue:null==t?void 0:t.x3}});return{jadeEmporium:eI,jadeCoins:el,upgrades:eT,characterEquipments:eS,inventory:ev,players:eN,pristineCharms:ew,dropList:eh,doorsCurrentHp:em,beanstalkData:ec,totalJadeEmporiumUnlocked:eC,unlockedFloors:0===ep?Math.min(12,ed):12,gemStones:ee,lastLooted:eo}},getGemstoneBonus=(e,t,l)=>5==t?(null==e?void 0:e.x3)+(null==e?void 0:e.x5)*((null==e?void 0:e.baseValue)/(1e3+(null==e?void 0:e.baseValue))):((null==e?void 0:e.x3)+(null==e?void 0:e.x5)*((null==e?void 0:e.baseValue)/(1e3+(null==e?void 0:e.baseValue))))*(1+l/100),parseNinjaItems=(e,t)=>{let l=null==e?void 0:e.map(e=>{let[t,l]=e;return{...u.ninjaEquipment[t],level:l}});if(t){var m;return null==l?void 0:null===(m=l.toChunks(4))||void 0===m?void 0:m.map(e=>e.map(e=>({...e,value:getItemValue(e)})))}return null==l?void 0:l.map(e=>({...e,value:getItemValue(e)}))},getItemValue=e=>{let{type:t,level:l,x3:m,x4:u}=e;return 1==t?m*Math.pow(1.23,l):2==t?Math.min(m+u*(l/(l+50)),u):0},getInventoryNinjaItem=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.inventory)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.value},isJadeBonusUnlocked=(e,t)=>{var l,m,u;return null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.jadeEmporium)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l}=e;return l===t}))||void 0===l?void 0:l.unlocked},getCharmBonus=(e,t)=>{var l,m,u,d;return null!==(d=null==e?void 0:null===(u=e.sneaking)||void 0===u?void 0:null===(m=u.pristineCharms)||void 0===m?void 0:null===(l=m.find(e=>{let{name:l,unlocked:m}=e;return l===t&&m}))||void 0===l?void 0:l.baseValue)&&void 0!==d?d:0},calcTotalBeanstalkLevel=e=>null==e?void 0:e.reduce((e,t)=>e+t,0)},13339:function(e,t,l){"use strict";l.d(t,{R:function(){return getWinnerBonus},a:function(){return getSummoning}});var m=l(30925),u=l(70473),d=l(8616),y=l(16727),h=l(9339);let getSummoning=(e,t,l)=>{let u=(0,m.tryToParse)(null==e?void 0:e.Summon);return parseSummoning(u,t,l)},parseSummoning=(e,t,l)=>{var g;let E=null==e?void 0:e[0],b=null==E?void 0:E.reduce((e,t)=>e+t,0),L=null==e?void 0:e[3],k=null==e?void 0:e[1],V=null==e?void 0:e[2],j=["piggo","Wild_Boar","Mallay","Squirrel","Whale","Bunny","Chippy","Cool_Bird","Hedgehog"],ee=["Pet1","Pet2","Pet3","Pet0","Pet4","Pet6","Pet5","Pet10","Pet11"],ea=[[],[],[],[],[],[],[],[]],{familiarsOwned:el}=(null!==(g=null==e?void 0:e[4])&&void 0!==g?g:[]).reduce((e,t,l)=>(e.familiarsOwned+=e.multiplier*t,e.multiplier*=l+3,e),{familiarsOwned:0,multiplier:1}),eo={0:0,1:0,2:0,3:0,4:0,5:0,6:0};ee.forEach((e,t)=>{let l=u.summoningEnemies.find(t=>t.enemyId===e);if(l){let m=getBattleData(e,l,k);ea[0].push({...l,...m,icon:"afk_targets/".concat(null==j?void 0:j[t])})}}),u.deathNote.forEach(e=>{let{rawName:t,world:l}=e,m=u.summoningEnemies.find(e=>e.enemyId===t);if(m){let e=getBattleData(t,m,k);ea[l+1].push({...m,...e})}});let e_=null==k?void 0:k.reduce((e,t)=>{let l=u.summoningEnemies.find(e=>e.enemyId===t);if(l){let t=u.summoningBonuses.find(e=>e.bonusId===l.bonusId);if(t){e[l.bonusId]?e[l.bonusId]+=parseFloat(l.bonusQty):e[l.bonusId]=parseFloat(l.bonusQty);let t=ee.findIndex(e=>l.enemyId===e);if(-1!==t)eo[0]+=1;else{let e=u.deathNote.find(e=>{let{rawName:t}=e;return l.enemyId===t});e&&(eo[e.world+1]+=1)}}}return e},{}),ec=u.summoningBonuses.map(e=>{var l,m,u,g,E;let{bonusId:b,bonus:L}=e,k=null==e_?void 0:e_[b],V=(0,d.vq)(t,"Crystal_Comb"),j=null!==(E=null===(l=(0,y.YS)(null==t?void 0:null===(m=t.sailing)||void 0===m?void 0:m.artifacts,"The_Winz_Lantern"))||void 0===l?void 0:l.bonus)&&void 0!==E?E:0,ee=(0,h.k6)(null==t?void 0:t.achievements,373),ea=(0,h.k6)(null==t?void 0:t.achievements,379),{bonusPerLevel:el,level:eo}=null==t?void 0:null===(g=t.meritsDescriptions)||void 0===g?void 0:null===(u=g[5])||void 0===u?void 0:u[4];return{bonusId:b,bonus:L,value:k?3.5*(null==e_?void 0:e_[b])*(1+V/100)*(1+(j+(Math.min(10,eo*el)+(ee+ea)))/100):0,baseValue:k}}),em=u.summoningUpgrades.map((e,t)=>({...e,originalIndex:t,level:null==E?void 0:E[t],value:(null==E?void 0:E[t])*e.bonusQty}));em=updateTotalBonuses(em=em.map((e,t)=>{let l=em.find(e=>{let{originalIndex:t}=e;return 49===t}),m=em.find(e=>{let{originalIndex:t}=e;return 57===t}),u=1/(1+(null==l?void 0:l.value)/100)*(1/(1+(null==m?void 0:m.value)/100))*(null==e?void 0:e.cost)*Math.pow(null==e?void 0:e.costExponent,null==E?void 0:E[t]);return{...e,totalCost:u}}),eo,l);let ed=getArmyHealth(em,b),ep=getArmyDamage(em,b);return{upgrades:em=(0,m.groupByKey)(em,e=>{let{colour:t}=e;return t}),winnerBonuses:ec,essences:V,totalUpgradesLevels:b,familiarsOwned:el,allBattles:ea,armyHealth:ed,armyDamage:ep,killroyStat:L}},getArmyHealth=(e,t)=>{let l=[1,10,35,37].reduce((t,l)=>{let m=e.find(e=>{let{originalIndex:t}=e;return t===l})||{};return t+(null==m?void 0:m.value)},0),m=e.find(e=>{let{originalIndex:t}=e;return 20===t}),u=e.find(e=>{let{originalIndex:t}=e;return 50===t}),d=e.find(e=>{let{originalIndex:t}=e;return 59===t}),y=e.find(e=>{let{originalIndex:t}=e;return 61===t});return 1*(1+l)*(1+(null==m?void 0:m.value)/100)*(1+((null==u?void 0:u.value)+(null==d?void 0:d.value))/100)*(1+(null==y?void 0:y.value)*Math.max(0,Math.floor(t/100))/100)},getArmyDamage=(e,t)=>{let l=[3,12,21,31].reduce((t,l)=>{let m=e.find(e=>{let{originalIndex:t}=e;return t===l})||{};return t+(null==m?void 0:m.value)},0),m=e.find(e=>{let{originalIndex:t}=e;return 43===t}),u=e.find(e=>{let{originalIndex:t}=e;return 51===t}),d=e.find(e=>{let{originalIndex:t}=e;return 56===t}),y=e.find(e=>{let{originalIndex:t}=e;return 47===t}),h=e.find(e=>{let{originalIndex:t}=e;return 60===t});return 1*(1+l)*(1+(null==m?void 0:m.value)/100)*(1+((null==u?void 0:u.value)+(null==d?void 0:d.value))/100)*(1+(null==y?void 0:y.value)*0/100)*(1+(null==h?void 0:h.value)*Math.max(0,Math.floor(t/100))/100)},getBattleData=(e,t,l)=>{var d;let y="data/mface".concat(null===u.monsters||void 0===u.monsters?void 0:null===(d=u.monsters[e])||void 0===d?void 0:d.MonsterFace),h=null==l?void 0:l.includes(e),{bonus:g,bonusId:E}=u.summoningBonuses.find(e=>e.bonusId===t.bonusId),b=3.5*(null==t?void 0:t.bonusQty),L=g.includes("<")?(0,m.notateNumber)(1+b/100,"MultiplierInfo"):(0,m.notateNumber)(b,"Big"),k={bonusId:E,bonus:g.replace(/[<{]/,L)};return{bonus:k,won:h,icon:y}},getWinnerBonus=(e,t)=>{var l,m,u,d;return null!==(d=null==e?void 0:null===(u=e.summoning)||void 0===u?void 0:null===(m=u.winnerBonuses)||void 0===m?void 0:null===(l=m.find(e=>{let{bonus:l}=e;return l===t}))||void 0===l?void 0:l.value)&&void 0!==d?d:0},updateTotalBonuses=(e,t,l)=>{let m=Object.values(t).reduce((e,t)=>e+t,0),u=e.reduce((e,t)=>{let{level:l}=t;return e+l},0);return e.map(e=>{let d="";switch(e.originalIndex){case 0:d=e.value*m;break;case 11:case 18:d=e.value*t[1];break;case 27:d=e.value*t[2];break;case 38:d=e.value*t[3];break;case 54:d=e.value*t[6];break;case 49:case 57:d=e.value;break;case 30:case 40:case 65:case 66:case 67:case 46:case 52:case 58:var y,h,g;d=e.value*(null!==(g=null==l?void 0:null===(h=l[0])||void 0===h?void 0:null===(y=h.Lv0)||void 0===y?void 0:y[18])&&void 0!==g?g:1);break;case 60:case 61:d=e.value*(u/100);break;case 62:case 63:case 64:d=0}return{...e,totalBonus:d}})}},15265:function(e,t,l){"use strict";l.d(t,{CU:function(){return getTotalizerBonuses},Ew:function(){return getTotems},Qq:function(){return getChargeWithSyphon},T8:function(){return getPlayerWorship},kV:function(){return getClosestWorshiper},w:function(){return getSoulsReward}});var m=l(1972),u=l(30925),d=l(54685),y=l(30796),h=l(4056),g=l(88054),E=l(70473),b=l(8616),L=l(20385);let getTotems=e=>{var t;let l=(0,u.tryToParse)(null==e?void 0:e.TotemInfo)||(null==e?void 0:e.TotemInfo),m=null===E.randomList||void 0===E.randomList?void 0:null===(t=E.randomList[10])||void 0===t?void 0:t.split(" "),d=[26,63,30,107,155,208,259];return null==m?void 0:m.map((e,t)=>{var m,u;let y=null!==(u=null==l?void 0:null===(m=l[0])||void 0===m?void 0:m[t])&&void 0!==u?u:0,h=0===y?0:Math.pow((5+y)/10,2.6),g=null===E.mapNames||void 0===E.mapNames?void 0:E.mapNames[null==d?void 0:d[t]],b=null===E.totems||void 0===E.totems?void 0:E.totems[t];return{...b,name:e,maxWave:y,waveMulti:h,expReward:Math.floor(15*Math.pow(t+1,2)*Math.pow(h,.9))||0,map:g}})},getTotalizerBonuses=e=>{var t,l,m,u,d,y;let h=(0,L.Ob)(e,"MSA_Totalizer"),g=Math.floor((null==e?void 0:null===(t=e.towers)||void 0===t?void 0:t.totalWaves)/10);return{damage:{name:"DMG",value:h&&(null==h?void 0:h.bonus)||0},sailing:{name:"SPD",value:h&&(null===(l=(0,L.Ob)(e,"MSA_Sailing"))||void 0===l?void 0:l.bonus)||0},classExp:{name:"Class XP",value:h&&(null===(m=(0,L.Ob)(e,"MSA_Class_EXP"))||void 0===m?void 0:m.bonus)||0},cookingSpeed:{name:"Meal Spd",value:h&&(null===(u=(0,L.Ob)(e,"MSA_Mealing"))||void 0===u?void 0:u.bonus)||0},bit:{name:"Bit",value:h&&(null===(d=(0,L.Ob)(e,"MSA_Big_Bits"))||void 0===d?void 0:d.bonus)||0},skillExp:{name:"Skill XP",value:h&&(null===(y=(0,L.Ob)(e,"MSA_Skill_EXP"))||void 0===y?void 0:y.bonus)||0},farmingExp:{name:"Farming XP",value:h&&(0,b.x5)(e,"MSA_Expander_I")?g:0},jadeCoin:{name:"Jade Coin",value:h&&(0,b.x5)(e,"MSA_Expander_II")?g:0},essence:{name:"Essence",value:h&&(0,b.x5)(e,"MSA_Expander_III")?g:0}}},getSoulsReward=e=>{let{waveMulti:t,minEfficiency:l,efficiency:m,foodEffect:u}=e;return Math.floor(5*(1+(m>=l?Math.floor(100*Math.pow(m/(10*l),.25)):0)/100)*t*(1+u/100))},getMaxCharge=(e,t)=>{var l,u,E,b,L,k,V;let j=null===y.nl||void 0===y.nl?void 0:y.nl[null==e?void 0:e.class],ee=(0,d.OK)(null==t?void 0:t.cards,"Max_Charge"),ea=(0,h.xV)(null==e?void 0:e.postOffice,"Crate_of_the_Creator",1),el=(0,y.eZ)(null==e?void 0:e.activeBuffs,"CHARGE_SYPHON","y"),eo=(0,m.mV)(t,"Max_Charge",e),e_=(0,g.om)(null==t?void 0:null===(l=t.alchemy)||void 0===l?void 0:l.bubbles,"high-iq","GOSPEL_LEADER",!1,"wisdom"===j),ec=(0,g.y7)(null==e?void 0:e.equippedBubbles,"high-iq","CALL_ME_POPE",t),em=(null==e?void 0:null===(E=e.tools)||void 0===E?void 0:null===(u=E[5])||void 0===u?void 0:u.rawName)!=="Blank"?null==e?void 0:null===(L=e.tools)||void 0===L?void 0:null===(b=L[5])||void 0===b?void 0:b.lvReqToCraft:0;return Math.floor(Math.max(50,ee+ea+(el+(eo+e_*Math.floor((null==e?void 0:null===(V=e.skillsInfo)||void 0===V?void 0:null===(k=V.worship)||void 0===k?void 0:k.level)/10))+Math.round(em)*Math.max(ec,1))))},getChargeRate=(e,t)=>{var l,u,h,E,b,L,k,V,j,ee,ea,el,eo,e_,ec,em,ed,ep,ey,eh;let eT=(null==e?void 0:null===(u=e.tools)||void 0===u?void 0:null===(l=u[5])||void 0===l?void 0:l.rawName)!=="Blank"?null==e?void 0:null===(E=e.tools)||void 0===E?void 0:null===(h=E[5])||void 0===h?void 0:h.Speed:0,ef=(0,d.OK)(null==t?void 0:t.cards,"Charge_Rate"),ev=(0,m.mV)(t,"Charge_Rate_per_Hour",e),eg=(0,y._X)(null==e?void 0:e.talents,2,"NEARBY_OUTLET"),eS=(0,g.y7)(null==e?void 0:e.equippedBubbles,"high-iq","CALL_ME_POPE",t);return eT<3?6/Math.max(5.7+Math.pow(4-eT,2.2)-(.9*Math.pow(null==e?void 0:null===(L=e.skillsInfo)||void 0===L?void 0:null===(b=L.worship)||void 0===b?void 0:b.level,.5)/(Math.pow(null==e?void 0:null===(V=e.skillsInfo)||void 0===V?void 0:null===(k=V.worship)||void 0===k?void 0:k.level,.5)+250)+.6*(null==e?void 0:null===(ee=e.skillsInfo)||void 0===ee?void 0:null===(j=ee.worship)||void 0===j?void 0:j.level)/((null==e?void 0:null===(el=e.skillsInfo)||void 0===el?void 0:null===(ea=el.worship)||void 0===ea?void 0:ea.level)+40)),.57)*Math.max(eS,1)*(1+(ef+ev)/100)*Math.max(eg,1):6/Math.max(5.7-(.2*Math.pow(eT,1.3)+(.9*Math.pow(null==e?void 0:null===(e_=e.skillsInfo)||void 0===e_?void 0:null===(eo=e_.worship)||void 0===eo?void 0:eo.level,.5)/(Math.pow(null==e?void 0:null===(em=e.skillsInfo)||void 0===em?void 0:null===(ec=em.worship)||void 0===ec?void 0:ec.level,.5)+250)+.6*(null==e?void 0:null===(ep=e.skillsInfo)||void 0===ep?void 0:null===(ed=ep.worship)||void 0===ed?void 0:ed.level)/((null==e?void 0:null===(eh=e.skillsInfo)||void 0===eh?void 0:null===(ey=eh.worship)||void 0===ey?void 0:ey.level)+40))),.57)*Math.max(eS,1)*(1+(ef+ev)/100)*Math.max(eg,1)},getPlayerWorship=(e,t,l)=>{let m=getMaxCharge(e,t),d=getChargeRate(e,t),y=new Date().getTime()-e.afkTime,h=Math.min(parseInt(l)+d*(y/1e3/3600),m);return{maxCharge:(0,u.round)(m),chargeRate:(0,u.round)(d),currentCharge:(0,u.round)(h)}},getClosestWorshiper=e=>null==e?void 0:e.reduce((e,t)=>{var l,m,u;let d=((null==t?void 0:null===(l=t.worship)||void 0===l?void 0:l.maxCharge)-(null==t?void 0:null===(m=t.worship)||void 0===m?void 0:m.currentCharge))/(null==t?void 0:null===(u=t.worship)||void 0===u?void 0:u.chargeRate)*36e5;return 0!==d&&d<(null==e?void 0:e.timeLeft)?{character:null==t?void 0:t.name,timeLeft:d}:e},{character:null,timeLeft:1/0}),getChargeWithSyphon=e=>{var t;let l=null==e?void 0:e.reduce((e,t)=>{let{worship:l}=t;return e+((null==l?void 0:l.currentCharge)||0)},0),m=null==e?void 0:e.reduce((e,t)=>{let{worship:l}=t;return e+((null==l?void 0:l.chargeRate)||0)},0),u=(0,y.A5)(e,2,"Wizard","CHARGE_SYPHON","y")||0,d=(0,y.L1)(e,2,"Wizard","CHARGE_SYPHON","y");return{bestWizard:d,totalCharge:l,bestChargeSyphon:u,totalChargeRate:m,timeToOverCharge:new Date().getTime()+(((null==d?void 0:null===(t=d.worship)||void 0===t?void 0:t.maxCharge)||0)+u-l)/m*36e5}}},7650:function(){String.prototype.capitalize=function(){return this?this.charAt(0).toUpperCase()+this.slice(1):""},String.prototype.camelToTitleCase=function(){if(!this)return"";let e=this.replace(/([A-Z0-9"])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},String.prototype.capitalizeAllWords=function(){return this.replace(/\b\w/g,function(e){return e.toUpperCase()})},String.prototype.capitalizeAll=function(){return this?this.split("_").map(e=>e.capitalize()).join("_"):""},String.prototype.firstCharLowerCase=function(){return this.charAt(0).toLowerCase()+this.slice(1)},String.prototype.toCamelCase=function(){return this.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")},Array.prototype.toSimpleObject=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.reduce((t,l)=>({...t,[l]:e}),{})},Array.prototype.toObjectByIndex=function(){return Object.entries(this).reduce((e,t)=>{let[l,m]=t;return{...e,[l]:m}},{})},Array.prototype.toChunks=function(e){return this.reduce((t,l,m)=>{let u=Math.floor(m/e);return t[u]=[].concat(t[u]||[],l),t},[])},Date.prototype.stdTimezoneOffset=function(){let e=new Date(this.getFullYear(),0,1),t=new Date(this.getFullYear(),6,1);return Math.max(e.getTimezoneOffset(),t.getTimezoneOffset())},Date.prototype.isDstObserved=function(){return this.getTimezoneOffset(){let{profile:l,uid:m,leaderboardConsent:u}=e;try{let e=parseProfile(l),d=await fetch("".concat(g,"/profiles"),{method:"POST",body:JSON.stringify({profile:e,uid:m,leaderboardConsent:u}),headers:{"Content-Type":"application/json",Authorization:t}});if((null==d?void 0:d.status)!==200)throw d;return d}catch(e){if(console.error("Error has occurred: ",e),(null==e?void 0:e.status)===429)throw"You have uploaded your profile in the past 4 hours. Please wait until the cooldown is over.";throw(null==e?void 0:e.status)===500||null==e||e.status,"An error has occurred while uploading your profile. Please try again later."}},getProfile=async e=>{let{mainChar:t}=e;try{let e=await fetch("".concat(g,"/profiles/?profile=").concat(t),{method:"GET",headers:{"Content-Type":"application/json"}});if(!e)return null;return await (null==e?void 0:e.json())}catch(e){throw console.error("".concat(m," -> Error has occurred while getting profile for ").concat(t)),e}},fetchLeaderboards=async()=>{try{let e=await fetch("".concat(g,"/leaderboards"),{method:"GET",headers:{"Content-Type":"application/json"}});if(!e)return null;return await (null==e?void 0:e.json())}catch(e){throw console.error("".concat(m," -> Error has occurred while getting leaderboards")),e}},expandLeaderboardInfo=(e,t)=>{var l,m,u,g,E,b,L,k;let V=Math.max(...t.map(l=>{var m;return(null===(m=(0,d.VK)(l,e,t))||void 0===m?void 0:m.dropRate)||0})),j=t.map(l=>(0,y.m)(l,t,e)),ee=Math.max(...j.map(e=>{let{defence:t}=e;return null==t?void 0:t.value})),ea=Math.max(...j.map(e=>{let{accuracy:t}=e;return t})),el=Math.max(...j.map(e=>{let{maxHp:t}=e;return t})),eo=Math.max(...j.map(e=>{let{maxMp:t}=e;return t})),e_=(null==e?void 0:null===(g=e.deathNote)||void 0===g?void 0:null===(u=g[0])||void 0===u?void 0:null===(m=u.mobs)||void 0===m?void 0:null===(l=m[0])||void 0===l?void 0:l.kills)||0,ec=(0,h.NW)(null==e?void 0:null===(E=e.sailing)||void 0===E?void 0:E.boats),em=null==e?void 0:null===(L=e.gaming)||void 0===L?void 0:null===(b=L.logBook)||void 0===b?void 0:b.reduce((e,t)=>{let{unlocked:l}=t;return e+l},0);return{dropRate:withDefault(V),defence:withDefault(ee),accuracy:withDefault(ea),hp:withDefault(el),mp:withDefault(eo),logBook:em,totalShinyLevels:withDefault(null==e?void 0:null===(k=e.breeding)||void 0===k?void 0:k.totalShinyLevels),greenMushroomKills:e_,totalBoats:ec}},withDefault=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return isNaN(e)?t:e},parseProfile=e=>{let t=Object.entries(e.data).reduce((e,t)=>{let[l,m]=t;return e[l]=(0,u.tryToParse)(m),e},{});return{...e,data:t}}},49946:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var m=l(13274),u=l(87462),d=l(71387);function isUnitless(e){return String(parseFloat(e)).length===String(e).length}function getUnit(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(e){return parseFloat(e)}function convertLength(e){return(t,l)=>{let m=getUnit(t);if(m===l)return t;let u=toUnitless(t);"px"!==m&&("em"===m?u=toUnitless(t)*toUnitless(e):"rem"===m&&(u=toUnitless(t)*toUnitless(e)));let d=u;if("px"!==l){if("em"===l)d=u/toUnitless(e);else{if("rem"!==l)return t;d=u/toUnitless(e)}}return parseFloat(d.toFixed(5))+l}}function alignProperty({size:e,grid:t}){let l=e-e%t,m=l+t;return e-l{let u=t+h*l;null!==d&&(u=d(u)),y[`@media (min-width:${l}px)`]={[e]:`${Math.round(1e4*u)/1e4}${m}`}}),y}function responsiveFontSizes(e,t={}){let{breakpoints:l=["sm","md","lg"],disableAlign:m=!1,factor:y=2,variants:h=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,g=(0,u.Z)({},e);g.typography=(0,u.Z)({},g.typography);let E=g.typography,b=convertLength(E.htmlFontSize),L=l.map(e=>g.breakpoints.values[e]);return h.forEach(e=>{let t=E[e],l=parseFloat(b(t.fontSize,"rem"));if(l<=1)return;let{lineHeight:h}=t;if(!isUnitless(h)&&!m)throw Error((0,d.Z)(6));isUnitless(h)||(h=parseFloat(b(h,"rem"))/parseFloat(l));let g=null;m||(g=e=>alignProperty({size:e,grid:fontGrid({pixels:4,lineHeight:h,htmlFontSize:E.htmlFontSize})})),E[e]=(0,u.Z)({},t,responsiveProperty({cssProperty:"fontSize",min:1+(l-1)/y,max:l,unit:"rem",breakpoints:L,transform:g}))}),g}let y=(0,m.Z)({palette:{mode:"dark",multi:"#1073ce",multiLight:"#94baee",background:{default:"#222831",paper:"#222831"}},components:{MuiCardContent:{styleOverrides:{root:{"&:last-child":{padding:16}}}},MuiTooltip:{styleOverrides:{tooltip:{padding:8}}},MuiAppBar:{styleOverrides:{root:{background:"#222831"}}}}});var h=y=responsiveFontSizes(y,{factor:2.5})},32805:function(e,t,l){"use strict";l.d(t,{T:function(){return u},s:function(){return m}});let m="85%",u={PICKAXE:0,HATCHET:1,ROD:2,NET:3,TRAP:4,SKULL:5}},30925:function(e,t,l){"use strict";l.r(t),l.d(t,{cleanUnderscore:function(){return cleanUnderscore},cloneObject:function(){return cloneObject},commaNotation:function(){return commaNotation},constellationIndexes:function(){return constellationIndexes},createArrayOfArrays:function(){return createArrayOfArrays},createIndexedArray:function(){return createIndexedArray},createRange:function(){return createRange},downloadFile:function(){return downloadFile},eventsColors:function(){return L},fillArrayToLength:function(){return fillArrayToLength},fillMissingTalents:function(){return fillMissingTalents},findNameCombination:function(){return findNameCombination},flatten:function(){return flatten},getBitIndex:function(){return getBitIndex},getCoinsArray:function(){return getCoinsArray},getDuration:function(){return getDuration},getNumberWithOrdinal:function(){return getNumberWithOrdinal},getRandomNumbersArray:function(){return getRandomNumbersArray},getRealDateInMs:function(){return getRealDateInMs},getTimeAsDays:function(){return getTimeAsDays},groupByKey:function(){return groupByKey},growth:function(){return growth},handleCopyToClipboard:function(){return handleCopyToClipboard},handleDownload:function(){return handleDownload},isProd:function(){return ee},kFormatter:function(){return kFormatter},lavaLog:function(){return lavaLog},migrateConfig:function(){return migrateConfig},msToDate:function(){return msToDate},notateNumber:function(){return notateNumber},number2letter:function(){return k},numberWithCommas:function(){return numberWithCommas},pascalCase:function(){return pascalCase},prefix:function(){return el},randomFloatBetween:function(){return randomFloatBetween},removeDuplicatesByKey:function(){return removeDuplicatesByKey},round:function(){return round},sections:function(){return j},shouldDisplayDrawer:function(){return shouldDisplayDrawer},splitTime:function(){return splitTime},totalHoursBetweenDates:function(){return totalHoursBetweenDates},tryToParse:function(){return tryToParse},worlds:function(){return V},worldsArray:function(){return ea}});var m=l(40929),u=l(19013),d=l(13882);function getDaysInMonth(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e),l=t.getFullYear(),m=t.getMonth(),y=new Date(0);return y.setFullYear(l,m+1,0),y.setHours(0,0,0,0),y.getDate()}function isLeapYear(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}function getDaysInYear(e){(0,d.Z)(1,arguments);var t=(0,u.Z)(e);return"Invalid Date"===String(new Date(t))?NaN:isLeapYear(t)?366:365}var y=l(24228),h=l(61436),g=l(52196),E=l(72378),b=l.n(E);let downloadFile=(e,t)=>{let l=new Blob([e],{type:"text/json"}),m=document.createElement("a");m.download=t,m.href=window.URL.createObjectURL(l),m.dataset.downloadurl=["text/json",m.download,m.href].join(":");let u=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});m.dispatchEvent(u),m.remove()},getTimeAsDays=e=>Math.ceil(36e5*e/864e5),L={Meteorite:"#f8e8b7",Mega_Grumblo:"#e6b471",Glacial_Guild:"#65b8d6",Snake_Swarm:"#3f9c61",Angry_Frogs:"#f6b5f8"},k=["_","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],tryToParse=e=>{try{return JSON.parse(e)}catch(t){return e}},findNameCombination=(e,t)=>{if(!e)return[];let l=[];function find(t,m){if(""===t){l.push(m);return}for(let l=0;lnull==e?void 0:e.map(e=>(Array.isArray(e)||null!=e&&delete e.length,Object.values(e))),createIndexedArray=e=>{let t=Math.max(...Object.keys(e)),l=[];for(let m=0;m<=t;m++)(null==e?void 0:e[m])?l[m]=null==e?void 0:e[m]:l[m]={};return l},growth=function(e,t,l,m){let u,d=!(arguments.length>4)||void 0===arguments[4]||arguments[4];switch(e){case"add":u=0!==m?((l+m)/m+.5*(t-1))/(l/m)*t*l:t*l;break;case"decay":u=t*l/(t+m);break;case"intervalAdd":u=l+Math.floor(t/m);break;case"decayMulti":u=1+t*l/(t+m);break;case"bigBase":u=l+m*t;break;case"special1":u=100-t*l/(t+m);break;default:u=0}return d?round(u):u},lavaLog=e=>Math.log(Math.max(e,1))/2.303,round=e=>Math.round((e+Number.EPSILON)*100)/100,createRange=(e,t)=>{let l=[];for(let m=e;m<=t;m++)l.push(m);return l},cloneObject=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return e}},cleanUnderscore=e=>{try{var t;if(!e)return"";return null===(t=String(e))||void 0===t?void 0:t.replace(/_/g," ")}catch(t){console.log("Error in cleanUnderscore for ".concat(e),t)}},getNumberWithOrdinal=e=>{let t=["th","st","nd","rd"],l=e%100;return e+(t[(l-20)%10]||t[l]||"th")},kFormatter=function(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(void 0===e)return null;let m=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"},{value:1e15,symbol:"Q"},{value:1e18,symbol:"QQ"}];for(t=m.length-1;t>0&&!(e>=m[t].value);t--);return(e/m[t].value).toFixed(l).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+m[t].symbol};function splitDecimal(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l="-"===e[0];e=e.replace("-","");let m=e.split("."),u=m[0],d=m[1]||"";return{beforeDecimal:u,afterDecimal:d,hasNegation:l,addNegation:l&&t}}function applyThousandSeparator(e,t){let l=e.search(/[1-9]/);return l=-1===l?e.length:l,e.substring(0,l)+e.substring(l,e.length).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}let numberWithCommas=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e=String(e);let l=-1!==e.indexOf("."),{beforeDecimal:m,afterDecimal:u,addNegation:d}=splitDecimal(e);return e=(m=applyThousandSeparator(m,","))+(t&&l&&"."||"")+(t?u:"")},pascalCase=e=>null==e?void 0:e.split(/_/g).map(e=>e.toLowerCase().charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("_"),getCoinsArray=e=>{let t=BigInt(Math.floor(e)).toString(),l=new Map,m=1;for(;t.length>0&&m<15;){if(t.length<2){l.set(m,Number(t)),t="";break}let e=Number(t.slice(-2));l.set(m,e),t=t.slice(0,-2),m+=1}return t.length>0&&l.set(15,Number(t)),0===l.size&&l.set(1,0),Array.from(l=new Map([...l].sort((e,t)=>e[0]-t[0]).reverse()))},getBitIndex=e=>{let t=e,l=0;for(let e=0;e<4;e++)t>1e18&&(t/=1e18,l++);return l},notateNumber=(e,t)=>{if("bits"===t){let t=e;for(let e=0;e<4;e++)t>1e18&&(t/=1e18);return 1e4>t?Math.floor(t):1e5>t?Math.floor(t/100)/10+"K":1e6>t?Math.floor(t/1e3)+"K":1e7>t?Math.floor(t/1e4)/100+"M":1e8>t?Math.floor(t/1e5)/10+"M":1e9>t?Math.floor(t/1e6)+"M":1e10>t?Math.floor(t/1e7)/100+"B":1e11>t?Math.floor(t/1e8)/10+"B":1e12>t?Math.floor(t/1e9)+"B":1e13>t?Math.floor(t/1e10)/100+"T":1e14>t?Math.floor(t/1e11)/10+"T":1e15>t?Math.floor(t/1e12)+"T":1e16>t?Math.floor(t/1e13)/100+"Q":1e17>t?Math.floor(t/1e14)/10+"Q":1e18>t?Math.floor(t/1e15)+"Q":Math.floor(t/Math.pow(10,Math.floor(lavaLog(t)))*100)/100+"E"+Math.floor(lavaLog(t))}return"Whole"===t?1e4>e?""+Math.floor(e):1e6>e?Math.floor(e/1e3)+"K":1e7>e?Math.floor(e/1e5)/10+"M":1e9>e?Math.floor(e/1e6)+"M":1e10>e?Math.floor(e/1e8)/10+"B":Math.floor(e/1e9)+"B":"MultiplierInfo"===t?0==10*e%10?Math.round(e)+".00":0==100*e%10?Math.round(10*e)/10+"0":Math.round(100*e)/100+"":"Micro"===t?10e?"Small"===t?1>e?""+Math.round(100*e)/100:""+Math.round(10*e)/10:"Smallish"===t?10>e?""+Math.round(10*e)/10:""+Math.round(e):"Smaller"===t?10>e?""+Math.round(100*e)/100:""+Math.round(10*e)/10:""+Math.floor(e):1e3>e?""+Math.floor(e):1e4>e?"Bigish"===t?""+Math.floor(e):Math.ceil(e/10)/100+"K":1e5>e?Math.ceil(e/100)/10+"K":1e6>e?Math.ceil(e/1e3)+"K":1e7>e?Math.ceil(e/1e4)/100+"M":1e8>e?Math.ceil(e/1e5)/10+"M":1e10>e?Math.ceil(e/1e6)+"M":1e13>e?Math.ceil(e/1e9)+"B":1e16>e?Math.ceil(e/1e12)+"T":1e19>e?Math.ceil(e/1e15)+"Q":1e22>e?Math.ceil(e/1e18)+"QQ":1e24>e?Math.ceil(e/1e21)+"QQQ":Math.floor(e/Math.pow(10,Math.floor(lavaLog(e)))*100)/100+"E"+Math.floor(lavaLog(e))},commaNotation=e=>{let t="",l=""+Math.round(e),m=Math.floor((l.length-1)/3)+1,u=l.length-3*Math.floor((l.length-1)/3);for(let e=0;e{var t;let l={_:0,a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8,i:9};return null==e?void 0:null===(t=e.split(""))||void 0===t?void 0:t.map(e=>null==l?void 0:l[e]).sort((e,t)=>e-t).map(e=>e+1).join(",")},V={0:"Blunder Hills",1:"Yum Yum Desert",2:"Frostbite Tundra",3:"Hyperion Nebula",4:"Smolderin' Plateau",5:"Spirited Valley"},getDuration=(e,t)=>{if(e>9007199254740992||t>9007199254740992)return{};try{let l=new Date(e),m=new Date(t),u=(0,y.Z)({start:l,end:m});if(null==u?void 0:u.years){let e=getDaysInYear(new Date);u.days=u.days+e*(null==u?void 0:u.years),u.years=0}if(null==u?void 0:u.months){let e=getDaysInMonth(new Date);u.days=u.days+e*(null==u?void 0:u.months),u.months=0}return u}catch(l){return console.error("getDuration -> Error occurred when trying to format date",e,t),{}}},totalHoursBetweenDates=(e,t)=>{try{let l=(0,y.Z)({start:e,end:t}),m=8766*l.years,u=30.44*l.months*24,d=24*l.days;return m+u+d+l.hours}catch(l){return console.error("totalHoursBetweenDates -> Error occurred when trying to format date",e,t),{}}},fillArrayToLength=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[...Array(e)].map((e,m)=>t&&(null==t?void 0:t[m])||l)},splitTime=e=>{let t=e%24,l=Math.floor(t),m=Math.floor(60*(t-l));return"".concat(Math.floor(e/24),"d:").concat(l,"h:").concat(m,"m")},randomFloatBetween=function(e,t){return e<=t?e+Math.random()*(t-e):t+Math.random()*(e-t)},flatten=(e,t)=>(Object.keys(e).forEach(l=>{"object"==typeof e[l]?t=flatten(e[l],t):t[l]=e[l]}),t),j=[{name:"Activity"},{name:"Stats"},{name:"Bags"},{name:"Obols"},{name:"Obols Stats"},{name:"Cards"},{name:"Skills"},{name:"Prayers"},{name:"Talents"},{name:"Equipment"},{name:"Star Signs"},{name:"Post Office"},{name:"Anvil Details"},{name:"Inventory"},{name:"Chips"},{name:"Equipped Bubbles"},{name:"Active Skills CD"}],ee=!0,getRandomNumbersArray=(e,t)=>{let l=[];for(;l.length0&&void 0!==arguments[0]?arguments[0]:"";return g.jt.includes(null==e?void 0:e.split("/").at(1))},getRealDateInMs=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?(0,h.Z)(new Date(e))?(0,m.Z)(e,"dd/MM/yyyy HH:mm:ss"):"".concat(notateNumber(getTimeAsDays(e))," days"):e},msToDate=e=>{let t=String(Math.floor(e/36e5)).padStart(2,"0"),l=String(Math.floor(e%36e5/6e4)).padStart(2,"0"),m=String(Math.floor(e%6e4/1e3)).padStart(2,"0"),u=String(Math.floor(e%1e3)).padStart(3,"0");return e<6e4?"".concat(m,"s:").concat(u,"ms"):"".concat(t,"h:").concat(l,"m:").concat(m,"s")},fillMissingTalents=e=>{let t=e.map(e=>e.talentId),l=Math.min(...t),m=Array.from({length:Math.max(...t)-l+1},(e,t)=>t+l).filter(e=>!t.includes(e)).map(e=>({talentId:e}));return e.concat(m).sort((e,t)=>e.talentId-t.talentId)},removeDuplicatesByKey=(e,t)=>{let l=new Set;return e.filter(e=>{let m=e[t];return!l.has(m)&&(l.add(m),!0)})},groupByKey=(e,t)=>e.reduce(function(e,l){let m=t(l);return e[m]||(e[m]=[]),e[m].push(l),e},{}),migrateConfig=(e,t,l,m,u)=>m!==u&&"account"===e?b()(t,renameSettingInPostOffice(l)):b()(t,l);function renameSettingInPostOffice(e){var t,l,m;return(null==e?void 0:null===(t=e["World 2"])||void 0===t?void 0:t.postOffice)&&(null==e?void 0:null===(l=e["World 2"])||void 0===l?void 0:l.postOffice.options)&&(e["World 2"].postOffice.options=null==e?void 0:null===(m=e["World 2"])||void 0===m?void 0:m.postOffice.options.map(e=>"shields"===e.name?{...e,name:"dailyShipments",category:"dailyShipments"}:e).filter(e=>"postOffice"!==e.name)),e}let handleCopyToClipboard=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{let l=t?JSON.stringify(e,null,2):e;await navigator.clipboard.writeText(l)}catch(e){console.error(e)}},handleDownload=(e,t)=>{let l=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),m=URL.createObjectURL(l),u=document.createElement("a");u.href=m,u.download="".concat(t,".json"),document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(m)},ea=["World 1","World 2","World 3","World 4","World 5","World 6"],el="/"},74044:function(e,t){"use strict";let l={};l._mul=Math.imul;var fc=function(e){this.init(e)};fc.__name__="Rand",fc.hash=function(e,t){return null==t&&(t=5381),e=l._mul(e,-862048943),t^=e=l._mul(e<<15|e>>>17,461845907),t=l._mul(t<<13|t>>>19,5)+-430675100|0,t=l._mul(t^t>>16,-2048144789),(t=l._mul(t^t>>13,-1028477387))^t>>16},fc.inlineHash=function(e,t){return e=l._mul(e,-862048943),t^=e=l._mul(e<<15|e>>>17,461845907),t=l._mul(t<<13|t>>>19,5)+-430675100|0,t=l._mul(t^t>>16,-2048144789),(t=l._mul(t^t>>13,-1028477387))^t>>16},fc.prototype={seed:null,seed2:null,init:function(e){this.seed=e,this.seed2=fc.hash(e),0==this.seed&&(this.seed=1),0==this.seed2&&(this.seed2=1)},random:function(e){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(1073741823&((this.seed<<16)+this.seed2|0))%e},shuffle:function(e){for(var t=e.length,l=0;l>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16);var m=(1073741823&((this.seed<<16)+this.seed2|0))%t;this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16);var u=(1073741823&((this.seed<<16)+this.seed2|0))%t,d=e[m];e[m]=e[u],e[u]=d}},rand:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(1073741823&((this.seed<<16)+this.seed2|0))%10007/10007},srand:function(e){return null==e&&(e=1),this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),((this.seed<<16)+this.seed2|0)%10007/10007*e},int:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),(this.seed<<16)+this.seed2|0},uint:function(){return this.seed=36969*(65535&this.seed)+(this.seed>>16),this.seed2=18e3*(65535&this.seed2)+(this.seed2>>16),1073741823&((this.seed<<16)+this.seed2|0)},__class__:fc},t.Z=fc},70415:function(){},9008:function(e,t,l){e.exports=l(79201)},41664:function(e,t,l){e.exports=l(65170)},11163:function(e,t,l){e.exports=l(59974)},4298:function(e,t,l){e.exports=l(85354)},34155:function(e){var t,l,m,u=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(l){try{return t.call(null,e,0)}catch(l){return t.call(this,e,0)}}}function runClearTimeout(e){if(l===clearTimeout)return clearTimeout(e);if((l===defaultClearTimeout||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{l="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){l=defaultClearTimeout}}();var d=[],y=!1,h=-1;function cleanUpNextTick(){y&&m&&(y=!1,m.length?d=m.concat(d):h=-1,d.length&&drainQueue())}function drainQueue(){if(!y){var e=runTimeout(cleanUpNextTick);y=!0;for(var t=d.length;t;){for(m=d,d=[];++h1)for(var l=1;l=0||(u[l]=e[l]);return u}l.d(t,{Z:function(){return _objectWithoutPropertiesLoose}})},82729:function(e,t,l){"use strict";function _tagged_template_literal(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}l.d(t,{_:function(){return _tagged_template_literal}})},97582:function(e,t,l){"use strict";function __rest(e,t){var l={};for(var m in e)Object.prototype.hasOwnProperty.call(e,m)&&0>t.indexOf(m)&&(l[m]=e[m]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var u=0,m=Object.getOwnPropertySymbols(e);ut.indexOf(m[u])&&Object.prototype.propertyIsEnumerable.call(e,m[u])&&(l[m[u]]=e[m[u]]);return l}l.d(t,{_T:function(){return __rest}})}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return __webpack_exec__(23837),__webpack_exec__(59974)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/account/world-2/killroy-ebe3a724ac68c84d.js b/_next/static/chunks/pages/account/world-2/killroy-ebe3a724ac68c84d.js
new file mode 100644
index 000000000..4f1ab66ca
--- /dev/null
+++ b/_next/static/chunks/pages/account/world-2/killroy-ebe3a724ac68c84d.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6152],{49425:function(t,r,n){"use strict";n.d(r,{Z:function(){return b}});var e=n(63366),a=n(87462),i=n(67294),l=n(86010),o=n(2097),c=n(94780);function useBadge(t){let{badgeContent:r,invisible:n=!1,max:e=99,showZero:a=!1}=t,i=(0,o.Z)({badgeContent:r,max:e}),l=n;!1!==n||0!==r||a||(l=!0);let{badgeContent:c,max:s=e}=l?i:t,d=c&&Number(c)>s?`${s}+`:c;return{badgeContent:c,invisible:l,max:s,displayValue:d}}var s=n(90631),d=n(90948),u=n(71657),g=n(98216),h=n(1588),p=n(34867);function getBadgeUtilityClass(t){return(0,p.Z)("MuiBadge",t)}let m=(0,h.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var x=n(85893);let f=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],useUtilityClasses=t=>{let{color:r,anchorOrigin:n,invisible:e,overlap:a,variant:i,classes:l={}}=t,o={root:["root"],badge:["badge",i,e&&"invisible",`anchorOrigin${(0,g.Z)(n.vertical)}${(0,g.Z)(n.horizontal)}`,`anchorOrigin${(0,g.Z)(n.vertical)}${(0,g.Z)(n.horizontal)}${(0,g.Z)(a)}`,`overlap${(0,g.Z)(a)}`,"default"!==r&&`color${(0,g.Z)(r)}`]};return(0,c.Z)(o,getBadgeUtilityClass,l)},v=(0,d.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,r)=>r.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),j=(0,d.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,r)=>{let{ownerState:n}=t;return[r.badge,r[n.variant],r[`anchorOrigin${(0,g.Z)(n.anchorOrigin.vertical)}${(0,g.Z)(n.anchorOrigin.horizontal)}${(0,g.Z)(n.overlap)}`],"default"!==n.color&&r[`color${(0,g.Z)(n.color)}`],n.invisible&&r.invisible]}})(({theme:t,ownerState:r})=>(0,a.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},"dot"===r.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===r.anchorOrigin.vertical&&"right"===r.anchorOrigin.horizontal&&"rectangular"===r.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===r.anchorOrigin.vertical&&"right"===r.anchorOrigin.horizontal&&"rectangular"===r.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===r.anchorOrigin.vertical&&"left"===r.anchorOrigin.horizontal&&"rectangular"===r.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===r.anchorOrigin.vertical&&"left"===r.anchorOrigin.horizontal&&"rectangular"===r.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===r.anchorOrigin.vertical&&"right"===r.anchorOrigin.horizontal&&"circular"===r.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===r.anchorOrigin.vertical&&"right"===r.anchorOrigin.horizontal&&"circular"===r.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===r.anchorOrigin.vertical&&"left"===r.anchorOrigin.horizontal&&"circular"===r.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===r.anchorOrigin.vertical&&"left"===r.anchorOrigin.horizontal&&"circular"===r.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},r.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})),Z=i.forwardRef(function(t,r){var n,i,c,d,g,h;let p=(0,u.Z)({props:t,name:"MuiBadge"}),{anchorOrigin:m={vertical:"top",horizontal:"right"},className:Z,component:b,components:O={},componentsProps:y={},children:w,overlap:C="rectangular",color:_="default",invisible:B=!1,max:S=99,badgeContent:T,slots:k,slotProps:I,showZero:N=!1,variant:R="standard"}=p,W=(0,e.Z)(p,f),{badgeContent:$,invisible:M,max:z,displayValue:P}=useBadge({max:S,invisible:B,badgeContent:T,showZero:N}),F=(0,o.Z)({anchorOrigin:m,color:_,overlap:C,variant:R,badgeContent:T}),K=M||null==$&&"dot"!==R,{color:U=_,overlap:A=C,anchorOrigin:L=m,variant:E=R}=K?F:p,V="dot"!==E?P:void 0,D=(0,a.Z)({},p,{badgeContent:$,invisible:K,max:z,displayValue:V,showZero:N,anchorOrigin:L,color:U,overlap:A,variant:E}),Y=useUtilityClasses(D),H=null!=(n=null!=(i=null==k?void 0:k.root)?i:O.Root)?n:v,X=null!=(c=null!=(d=null==k?void 0:k.badge)?d:O.Badge)?c:j,q=null!=(g=null==I?void 0:I.root)?g:y.root,G=null!=(h=null==I?void 0:I.badge)?h:y.badge,Q=(0,s.Z)({elementType:H,externalSlotProps:q,externalForwardedProps:W,additionalProps:{ref:r,as:b},ownerState:D,className:(0,l.Z)(null==q?void 0:q.className,Y.root,Z)}),J=(0,s.Z)({elementType:X,externalSlotProps:G,ownerState:D,className:(0,l.Z)(Y.badge,null==G?void 0:G.className)});return(0,x.jsxs)(H,(0,a.Z)({},Q,{children:[w,(0,x.jsx)(X,(0,a.Z)({},J,{children:V}))]}))});var b=Z},2097:function(t,r,n){"use strict";var e=n(67294);r.Z=t=>{let r=e.useRef({});return e.useEffect(()=>{r.current=t}),r.current}},9082:function(t,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/world-2/killroy",function(){return n(61323)}])},30509:function(t,r,n){"use strict";var e=n(85893),a=n(67294),i=n(98396),l=n(11703),o=n(40044);r.Z=t=>{let{tabs:r,children:n,onTabChange:c,forceScroll:s}=t,[d,u]=(0,a.useState)(0),g=(0,i.Z)(t=>t.breakpoints.down("md"),{noSsr:!0}),h=Array.isArray(n)?n:[n];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.Z,{centered:!g||g&&r.length<4,scrollButtons:!0,allowScrollButtonsMobile:!0,sx:{marginBottom:3},variant:g&&r.length>4||s?"scrollable":"standard",value:d,onChange:(t,r)=>{u(r),c&&c(r)},children:null==r?void 0:r.map((t,r)=>(0,e.jsx)(o.Z,{wrapped:!0,label:t},"".concat(t,"-").concat(r)))}),c?n:null==h?void 0:h.map((t,r)=>r===d?t:null)]})}},64885:function(t,r,n){"use strict";n.d(r,{Gr:function(){return MissingData},M5:function(){return x},Wd:function(){return PlayersList},Ye:function(){return CardTitleAndValue},iy:function(){return CardAndBorder},j8:function(){return f},tq:function(){return Breakdown},u3:function(){return TalentTooltip},uQ:function(){return TitleAndValue},wD:function(){return CenteredStack}});var e=n(82729),a=n(85893),i=n(67294),l=n(30925),o=n(51233),c=n(23972),s=n(49425),d=n(66242),u=n(44267),g=n(67720),h=n(61599),p=n(2511),m=n(54685);function _templateObject(){let t=(0,e._)(["\n & .MuiBadge-badge {\n background-color: #d5d5dc;\n color: rgba(0, 0, 0, 0.87);\n }\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,e._)(["\n height: 20px;\n object-fit: contain;\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){let t=(0,e._)(["\n width: 56px;\n height: 72px;\n object-fit: contain;\n opacity: ",";\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){let t=(0,e._)(["\n position: absolute;\n left: 50%;\n top: -3px;\n pointer-events: none;\n transform: translateX(-50%);\n"]);return _templateObject3=function(){return t},t}let x=(0,i.forwardRef)((t,r)=>{let{stat:n,icon:e,img:i,title:s="",...d}=t;return(0,a.jsx)(p.Z,{title:s,children:(0,a.jsxs)(o.Z,{alignItems:"center",...d,ref:r,style:{position:"relative",width:"fit-content"},children:[(0,a.jsx)("img",{...i,src:"".concat(l.prefix,"data/").concat(e,".png"),alt:""}),(0,a.jsx)(c.Z,{variant:"body1",component:"span",children:n})]})})});x.displayName="IconWithText";let TitleAndValue=t=>{let{title:r,value:n,boldTitle:e,titleStyle:i={},valueStyle:l={}}=t;return(0,a.jsxs)(o.Z,{direction:"row",flexWrap:"wrap",alignItems:"center",children:[r?(0,a.jsxs)(c.Z,{sx:i,fontWeight:e?"bold":500,component:"span",children:[r,":\xa0"]}):null,(0,a.jsx)(c.Z,{fontSize:15,component:"span",sx:l,children:n})]})},f=(0,h.Z)(s.Z)(_templateObject()),CardAndBorder=t=>{let{cardName:r,stars:n,cardIndex:e,name:i,variant:o,rawName:c,amount:s,nextLevelReq:d}=t,u="cardSet"===o?"".concat(l.prefix,"data/").concat(c,".png"):"".concat(l.prefix,"data/2Cards").concat(e,".png");return(0,a.jsxs)(a.Fragment,{children:[n>0?(0,a.jsx)(Z,{src:"".concat(l.prefix,"data/CardEquipBorder").concat(n,".png"),alt:""}):null,(0,a.jsx)(p.Z,{title:(0,a.jsx)(CardTooltip,{...t,cardName:"cardSet"===o?i:r,nextLevelReq:d,amount:s}),children:(0,a.jsx)(j,{isCardSet:"cardSet"===o,amount:s,src:u,alt:""})})]})},CardTooltip=t=>{let{displayName:r,effect:n,bonus:e,stars:i,showInfo:s,nextLevelReq:d,amount:u}=t,g=e;return s&&(g=(0,m.BZ)({bonus:e,stars:i})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{fontWeight:"bold",variant:"h6",children:(0,l.cleanUnderscore)(r)}),(0,a.jsx)(c.Z,{children:(0,l.cleanUnderscore)(n.replace("{",g))}),s?(0,a.jsx)(o.Z,{mt:1,direction:"row",gap:1,flexWrap:"wrap",children:[1,2,3,4,5,6].map((t,n)=>(0,a.jsxs)(o.Z,{alignItems:"center",justifyContent:"space-between",children:[0===n?(0,a.jsx)(c.Z,{children:"Base"}):(0,a.jsx)(v,{src:"".concat(l.prefix,"etc/Star").concat(n,".png"),alt:""}),(0,a.jsx)(c.Z,{children:e*(n+1)})]},"".concat(r,"-").concat(n)))}):null,u>=d?(0,a.jsxs)(o.Z,{children:["You've collected ",(0,l.numberWithCommas)(u)," cards"]}):d>0?(0,a.jsxs)(o.Z,{children:["Progress: ",(0,l.numberWithCommas)(u)," / ",(0,l.numberWithCommas)(d)]}):null]})},v=h.Z.img(_templateObject1()),j=h.Z.img(_templateObject2(),t=>{let{amount:r,isCardSet:n}=t;return r||n?1:.5}),Z=h.Z.img(_templateObject3()),TalentTooltip=t=>{let{level:r,funcX:n,x1:e,x2:i,funcY:s,y1:d,y2:u,description:g,name:h,talentId:p}=t,m=r>0?(0,l.growth)(n,r,e,i):0,x=r>0?(0,l.growth)(s,r,d,u):0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,a.jsx)("img",{src:"".concat(l.prefix,"data/UISkillIcon").concat(p,".png"),alt:""}),(0,a.jsx)(c.Z,{fontWeight:"bold",variant:"h6",children:(0,l.cleanUnderscore)(h)})]}),(0,a.jsx)(c.Z,{children:(0,l.cleanUnderscore)(g).replace("{",m).replace("}",x)})]})},PlayersList=t=>{let{players:r,characters:n}=t;return(0,a.jsx)(o.Z,{gap:1,direction:"row",children:r.map(t=>{var r,e;let{index:i}=t;return(0,a.jsx)(p.Z,{title:null==n?void 0:null===(r=n[i])||void 0===r?void 0:r.name,children:(0,a.jsx)("img",{style:{width:24,height:24},src:"".concat(l.prefix,"data/ClassIcons").concat(null==n?void 0:null===(e=n[i])||void 0===e?void 0:e.classIndex,".png"),alt:""})},name+"-head-"+i)})})},MissingData=t=>{let{name:r}=t;return(0,a.jsxs)(c.Z,{variant:"h3",children:["Your account is missing data for ",r]})},CardTitleAndValue=t=>{let{variant:r,raised:n,cardSx:e,imgOnly:i,imgStyle:s,title:g,value:h,children:m,icon:x,tooltipTitle:f,stackProps:v,contentPadding:j}=t;return(0,a.jsx)(p.Z,{title:f||"",children:(0,a.jsx)(d.Z,{variant:r,raised:n,sx:{my:{xs:0,md:3},width:"fit-content",...e},children:(0,a.jsx)(u.Z,{sx:{"&:last-child":j?{p:j}:{}},children:(0,a.jsxs)(o.Z,{sx:{display:v?"flex":"block",...v||{}},children:[g?(0,a.jsx)(c.Z,{sx:{fontSize:14},color:"text.secondary",gutterBottom:!0,children:g}):null,h||i?x?(0,a.jsxs)(o.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,a.jsx)("img",{style:{objectFit:"contain",...s},src:"".concat(l.prefix).concat(x),alt:""}),h?(0,a.jsx)(c.Z,{children:h}):null]}):(0,a.jsx)(c.Z,{children:h}):m]})})})})},Breakdown=t=>{let{breakdown:r,titleStyle:n={},notation:e="Big"}=t;return(0,a.jsx)(a.Fragment,{children:null==r?void 0:r.map((t,r)=>{let{name:i,value:o,title:s}=t;return s?(0,a.jsx)(c.Z,{sx:{fontWeight:500},children:s},"".concat(i,"-").concat(r)):i?(0,a.jsx)(TitleAndValue,{titleStyle:{width:120,...n},title:i,value:isNaN(o)?o:(0,l.notateNumber)(o,e)},"".concat(i,"-").concat(r)):(0,a.jsx)(g.Z,{sx:{my:1,bgcolor:"black"}},"".concat(i,"-").concat(r))})})},CenteredStack=t=>{let{direction:r="row",children:n}=t;return(0,a.jsx)(o.Z,{gap:1,direction:r,alignItems:"center",children:n})}},61323:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return killroy}});var e=n(85893),a=n(2962),i=n(67294),l=n(21480),o=n(51233),c=n(64885),s=n(30925),d=n(10924),u=n(30509),g=n(66242),h=n(44267),p=n(23972),Killroy_Monsters=t=>{var r;let{killroy:n}=t;return(0,e.jsx)(o.Z,{direction:"row",flexWrap:"wrap",gap:1,children:null==n?void 0:null===(r=n.list)||void 0===r?void 0:r.map((t,r)=>{let{rawName:n,world:a,killRoyKills:i,icon:l}=t;return(0,e.jsx)(g.Z,{children:(0,e.jsx)(h.Z,{children:(0,e.jsxs)(o.Z,{alignItems:"center",gap:1,children:[(0,e.jsx)("img",{src:"".concat(s.prefix,"data/").concat(l,".png"),alt:""}),(0,e.jsx)(p.Z,{children:(0,s.notateNumber)(null!=i?i:0,"Big")})]})})},n+r)})})},m=n(40929),x=n(61436),Killroy_Schedule=t=>{let{schedule:r}=t;return(0,e.jsx)(o.Z,{direction:"row",flexWrap:"wrap",gap:1,children:null==r?void 0:r.map((t,r)=>{let{classes:n,date:a,monsters:l}=t;return(0,e.jsx)(g.Z,{sx:{width:330},children:(0,e.jsxs)(h.Z,{children:[(0,e.jsx)(p.Z,{sx:{ml:1,mb:2},children:(0,x.Z)(a)?(0,m.Z)(a,"dd/MM/yyyy HH:mm:ss"):null}),(0,e.jsx)(o.Z,{direction:"row",gap:1,children:n.map((t,n)=>{let{className:a,classIndex:c}=t,d=null==l?void 0:l[n];return(0,e.jsx)(i.Fragment,{children:(0,e.jsx)(g.Z,{variant:"outlined",children:(0,e.jsx)(h.Z,{children:(0,e.jsxs)(o.Z,{alignItems:"center",children:[(0,e.jsxs)(o.Z,{direction:"row",alignItems:"center",children:[(0,e.jsx)("img",{src:"".concat(s.prefix,"data/ClassIcons").concat(c,".png"),alt:""}),(0,e.jsx)("img",{src:"".concat(s.prefix,"data/Mface").concat(d,".png"),alt:""})]}),(0,e.jsx)(p.Z,{children:a})]})})})},"schedule-".concat(r,"-classId-").concat(n))})})]})},"schedule-".concat(r))})})},f=n(67720),Killroy_Upgrades=t=>{var r;let{killroy:n}=t;return(0,e.jsx)(o.Z,{direction:"row",alignItems:"center",flexWrap:"wrap",gap:1,children:null==n?void 0:null===(r=n.upgrades)||void 0===r?void 0:r.map((t,r)=>{let{level:n,description:a,upgrade:i}=t;return(0,e.jsx)(g.Z,{sx:{height:200,width:350},children:(0,e.jsx)(h.Z,{children:(0,e.jsxs)(o.Z,{direction:"row",gap:2,children:[(0,e.jsx)("img",{style:{objectFit:"contain"},src:"".concat(s.prefix,"etc/Killroy_").concat(r,".png"),alt:""}),(0,e.jsxs)(o.Z,{children:[(0,e.jsxs)(p.Z,{children:["Lv. ",n]}),(0,e.jsx)(f.Z,{sx:{my:1}}),(0,e.jsx)(p.Z,{children:i}),(0,e.jsx)(p.Z,{children:a})]})]})})},"upgrade-".concat(r))})})},killroy=()=>{var t;let{state:r}=(0,i.useContext)(l.I),{killroy:n}=(null==r?void 0:r.account)||{deathNote:{}},g=(0,d.NG)(null==r?void 0:r.account,null==r?void 0:r.characters,null==r?void 0:null===(t=r.account)||void 0===t?void 0:t.serverVars);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.PB,{title:"Killroy | Idleon Toolbox",description:"Keep track of kill roy kills progression"}),(0,e.jsxs)(o.Z,{direction:"row",flexWrap:"wrap",gap:1,children:[(0,e.jsx)(c.Ye,{title:"Skulls",value:(0,s.notateNumber)(null==n?void 0:n.skulls),icon:"etc/Killroy_Skull.png"}),(0,e.jsx)(c.Ye,{title:"Total Kills",value:(0,s.notateNumber)(n.totalKills)}),(0,e.jsx)(c.Ye,{title:"Total Damage Multi",value:"".concat(n.totalDamageMulti,"x")})]}),(0,e.jsxs)(u.Z,{tabs:["Schedule","Upgrades","Monsters"],children:[(0,e.jsx)(Killroy_Schedule,{schedule:g}),(0,e.jsx)(Killroy_Upgrades,{killroy:n}),(0,e.jsx)(Killroy_Monsters,{killroy:n})]})]})}}},function(t){t.O(0,[9774,2888,179],function(){return t(t.s=9082)}),_N_E=t.O()}]);
\ No newline at end of file
diff --git a/_next/static/chunks/pages/account/world-4/killroy-prime-8eded84cb5b5862d.js b/_next/static/chunks/pages/account/world-4/killroy-prime-8eded84cb5b5862d.js
deleted file mode 100644
index e44520326..000000000
--- a/_next/static/chunks/pages/account/world-4/killroy-prime-8eded84cb5b5862d.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3873],{49425:function(t,n,r){"use strict";r.d(n,{Z:function(){return b}});var e=r(63366),a=r(87462),i=r(67294),o=r(86010),l=r(2097),c=r(94780);function useBadge(t){let{badgeContent:n,invisible:r=!1,max:e=99,showZero:a=!1}=t,i=(0,l.Z)({badgeContent:n,max:e}),o=r;!1!==r||0!==n||a||(o=!0);let{badgeContent:c,max:s=e}=o?i:t,d=c&&Number(c)>s?`${s}+`:c;return{badgeContent:c,invisible:o,max:s,displayValue:d}}var s=r(90631),d=r(90948),u=r(71657),g=r(98216),h=r(1588),p=r(34867);function getBadgeUtilityClass(t){return(0,p.Z)("MuiBadge",t)}let m=(0,h.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var x=r(85893);let f=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],useUtilityClasses=t=>{let{color:n,anchorOrigin:r,invisible:e,overlap:a,variant:i,classes:o={}}=t,l={root:["root"],badge:["badge",i,e&&"invisible",`anchorOrigin${(0,g.Z)(r.vertical)}${(0,g.Z)(r.horizontal)}`,`anchorOrigin${(0,g.Z)(r.vertical)}${(0,g.Z)(r.horizontal)}${(0,g.Z)(a)}`,`overlap${(0,g.Z)(a)}`,"default"!==n&&`color${(0,g.Z)(n)}`]};return(0,c.Z)(l,getBadgeUtilityClass,o)},v=(0,d.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,n)=>n.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),j=(0,d.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,n)=>{let{ownerState:r}=t;return[n.badge,n[r.variant],n[`anchorOrigin${(0,g.Z)(r.anchorOrigin.vertical)}${(0,g.Z)(r.anchorOrigin.horizontal)}${(0,g.Z)(r.overlap)}`],"default"!==r.color&&n[`color${(0,g.Z)(r.color)}`],r.invisible&&n.invisible]}})(({theme:t,ownerState:n})=>(0,a.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${m.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})),Z=i.forwardRef(function(t,n){var r,i,c,d,g,h;let p=(0,u.Z)({props:t,name:"MuiBadge"}),{anchorOrigin:m={vertical:"top",horizontal:"right"},className:Z,component:b,components:O={},componentsProps:w={},children:y,overlap:C="rectangular",color:B="default",invisible:_=!1,max:T=99,badgeContent:S,slots:I,slotProps:R,showZero:N=!1,variant:W="standard"}=p,$=(0,e.Z)(p,f),{badgeContent:k,invisible:z,max:M,displayValue:P}=useBadge({max:T,invisible:_,badgeContent:S,showZero:N}),F=(0,l.Z)({anchorOrigin:m,color:B,overlap:C,variant:W,badgeContent:S}),A=z||null==k&&"dot"!==W,{color:U=B,overlap:E=C,anchorOrigin:L=m,variant:V=W}=A?F:p,D="dot"!==V?P:void 0,Y=(0,a.Z)({},p,{badgeContent:k,invisible:A,max:M,displayValue:D,showZero:N,anchorOrigin:L,color:U,overlap:E,variant:V}),K=useUtilityClasses(Y),H=null!=(r=null!=(i=null==I?void 0:I.root)?i:O.Root)?r:v,X=null!=(c=null!=(d=null==I?void 0:I.badge)?d:O.Badge)?c:j,q=null!=(g=null==R?void 0:R.root)?g:w.root,G=null!=(h=null==R?void 0:R.badge)?h:w.badge,Q=(0,s.Z)({elementType:H,externalSlotProps:q,externalForwardedProps:$,additionalProps:{ref:n,as:b},ownerState:Y,className:(0,o.Z)(null==q?void 0:q.className,K.root,Z)}),J=(0,s.Z)({elementType:X,externalSlotProps:G,ownerState:Y,className:(0,o.Z)(K.badge,null==G?void 0:G.className)});return(0,x.jsxs)(H,(0,a.Z)({},Q,{children:[y,(0,x.jsx)(X,(0,a.Z)({},J,{children:D}))]}))});var b=Z},2097:function(t,n,r){"use strict";var e=r(67294);n.Z=t=>{let n=e.useRef({});return e.useEffect(()=>{n.current=t}),n.current}},49794:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/world-4/killroy-prime",function(){return r(81306)}])},30509:function(t,n,r){"use strict";var e=r(85893),a=r(67294),i=r(98396),o=r(11703),l=r(40044);n.Z=t=>{let{tabs:n,children:r,onTabChange:c,forceScroll:s}=t,[d,u]=(0,a.useState)(0),g=(0,i.Z)(t=>t.breakpoints.down("md"),{noSsr:!0}),h=Array.isArray(r)?r:[r];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Z,{centered:!g||g&&n.length<4,scrollButtons:!0,allowScrollButtonsMobile:!0,sx:{marginBottom:3},variant:g&&n.length>4||s?"scrollable":"standard",value:d,onChange:(t,n)=>{u(n),c&&c(n)},children:null==n?void 0:n.map((t,n)=>(0,e.jsx)(l.Z,{wrapped:!0,label:t},"".concat(t,"-").concat(n)))}),c?r:null==h?void 0:h.map((t,n)=>n===d?t:null)]})}},64885:function(t,n,r){"use strict";r.d(n,{Gr:function(){return MissingData},M5:function(){return x},Wd:function(){return PlayersList},Ye:function(){return CardTitleAndValue},iy:function(){return CardAndBorder},j8:function(){return f},tq:function(){return Breakdown},u3:function(){return TalentTooltip},uQ:function(){return TitleAndValue},wD:function(){return CenteredStack}});var e=r(82729),a=r(85893),i=r(67294),o=r(30925),l=r(51233),c=r(23972),s=r(49425),d=r(66242),u=r(44267),g=r(67720),h=r(61599),p=r(2511),m=r(54685);function _templateObject(){let t=(0,e._)(["\n & .MuiBadge-badge {\n background-color: #d5d5dc;\n color: rgba(0, 0, 0, 0.87);\n }\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,e._)(["\n height: 20px;\n object-fit: contain;\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){let t=(0,e._)(["\n width: 56px;\n height: 72px;\n object-fit: contain;\n opacity: ",";\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){let t=(0,e._)(["\n position: absolute;\n left: 50%;\n top: -3px;\n pointer-events: none;\n transform: translateX(-50%);\n"]);return _templateObject3=function(){return t},t}let x=(0,i.forwardRef)((t,n)=>{let{stat:r,icon:e,img:i,title:s="",...d}=t;return(0,a.jsx)(p.Z,{title:s,children:(0,a.jsxs)(l.Z,{alignItems:"center",...d,ref:n,style:{position:"relative",width:"fit-content"},children:[(0,a.jsx)("img",{...i,src:"".concat(o.prefix,"data/").concat(e,".png"),alt:""}),(0,a.jsx)(c.Z,{variant:"body1",component:"span",children:r})]})})});x.displayName="IconWithText";let TitleAndValue=t=>{let{title:n,value:r,boldTitle:e,titleStyle:i={},valueStyle:o={}}=t;return(0,a.jsxs)(l.Z,{direction:"row",flexWrap:"wrap",alignItems:"center",children:[n?(0,a.jsxs)(c.Z,{sx:i,fontWeight:e?"bold":500,component:"span",children:[n,":\xa0"]}):null,(0,a.jsx)(c.Z,{fontSize:15,component:"span",sx:o,children:r})]})},f=(0,h.Z)(s.Z)(_templateObject()),CardAndBorder=t=>{let{cardName:n,stars:r,cardIndex:e,name:i,variant:l,rawName:c,amount:s,nextLevelReq:d}=t,u="cardSet"===l?"".concat(o.prefix,"data/").concat(c,".png"):"".concat(o.prefix,"data/2Cards").concat(e,".png");return(0,a.jsxs)(a.Fragment,{children:[r>0?(0,a.jsx)(Z,{src:"".concat(o.prefix,"data/CardEquipBorder").concat(r,".png"),alt:""}):null,(0,a.jsx)(p.Z,{title:(0,a.jsx)(CardTooltip,{...t,cardName:"cardSet"===l?i:n,nextLevelReq:d,amount:s}),children:(0,a.jsx)(j,{isCardSet:"cardSet"===l,amount:s,src:u,alt:""})})]})},CardTooltip=t=>{let{displayName:n,effect:r,bonus:e,stars:i,showInfo:s,nextLevelReq:d,amount:u}=t,g=e;return s&&(g=(0,m.BZ)({bonus:e,stars:i})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{fontWeight:"bold",variant:"h6",children:(0,o.cleanUnderscore)(n)}),(0,a.jsx)(c.Z,{children:(0,o.cleanUnderscore)(r.replace("{",g))}),s?(0,a.jsx)(l.Z,{mt:1,direction:"row",gap:1,flexWrap:"wrap",children:[1,2,3,4,5,6].map((t,r)=>(0,a.jsxs)(l.Z,{alignItems:"center",justifyContent:"space-between",children:[0===r?(0,a.jsx)(c.Z,{children:"Base"}):(0,a.jsx)(v,{src:"".concat(o.prefix,"etc/Star").concat(r,".png"),alt:""}),(0,a.jsx)(c.Z,{children:e*(r+1)})]},"".concat(n,"-").concat(r)))}):null,u>=d?(0,a.jsxs)(l.Z,{children:["You've collected ",(0,o.numberWithCommas)(u)," cards"]}):d>0?(0,a.jsxs)(l.Z,{children:["Progress: ",(0,o.numberWithCommas)(u)," / ",(0,o.numberWithCommas)(d)]}):null]})},v=h.Z.img(_templateObject1()),j=h.Z.img(_templateObject2(),t=>{let{amount:n,isCardSet:r}=t;return n||r?1:.5}),Z=h.Z.img(_templateObject3()),TalentTooltip=t=>{let{level:n,funcX:r,x1:e,x2:i,funcY:s,y1:d,y2:u,description:g,name:h,talentId:p}=t,m=n>0?(0,o.growth)(r,n,e,i):0,x=n>0?(0,o.growth)(s,n,d,u):0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,a.jsx)("img",{src:"".concat(o.prefix,"data/UISkillIcon").concat(p,".png"),alt:""}),(0,a.jsx)(c.Z,{fontWeight:"bold",variant:"h6",children:(0,o.cleanUnderscore)(h)})]}),(0,a.jsx)(c.Z,{children:(0,o.cleanUnderscore)(g).replace("{",m).replace("}",x)})]})},PlayersList=t=>{let{players:n,characters:r}=t;return(0,a.jsx)(l.Z,{gap:1,direction:"row",children:n.map(t=>{var n,e;let{index:i}=t;return(0,a.jsx)(p.Z,{title:null==r?void 0:null===(n=r[i])||void 0===n?void 0:n.name,children:(0,a.jsx)("img",{style:{width:24,height:24},src:"".concat(o.prefix,"data/ClassIcons").concat(null==r?void 0:null===(e=r[i])||void 0===e?void 0:e.classIndex,".png"),alt:""})},name+"-head-"+i)})})},MissingData=t=>{let{name:n}=t;return(0,a.jsxs)(c.Z,{variant:"h3",children:["Your account is missing data for ",n]})},CardTitleAndValue=t=>{let{variant:n,raised:r,cardSx:e,imgOnly:i,imgStyle:s,title:g,value:h,children:m,icon:x,tooltipTitle:f,stackProps:v,contentPadding:j}=t;return(0,a.jsx)(p.Z,{title:f||"",children:(0,a.jsx)(d.Z,{variant:n,raised:r,sx:{my:{xs:0,md:3},width:"fit-content",...e},children:(0,a.jsx)(u.Z,{sx:{"&:last-child":j?{p:j}:{}},children:(0,a.jsxs)(l.Z,{sx:{display:v?"flex":"block",...v||{}},children:[g?(0,a.jsx)(c.Z,{sx:{fontSize:14},color:"text.secondary",gutterBottom:!0,children:g}):null,h||i?x?(0,a.jsxs)(l.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,a.jsx)("img",{style:{objectFit:"contain",...s},src:"".concat(o.prefix).concat(x),alt:""}),h?(0,a.jsx)(c.Z,{children:h}):null]}):(0,a.jsx)(c.Z,{children:h}):m]})})})})},Breakdown=t=>{let{breakdown:n,titleStyle:r={},notation:e="Big"}=t;return(0,a.jsx)(a.Fragment,{children:null==n?void 0:n.map((t,n)=>{let{name:i,value:l,title:s}=t;return s?(0,a.jsx)(c.Z,{sx:{fontWeight:500},children:s},"".concat(i,"-").concat(n)):i?(0,a.jsx)(TitleAndValue,{titleStyle:{width:120,...r},title:i,value:isNaN(l)?l:(0,o.notateNumber)(l,e)},"".concat(i,"-").concat(n)):(0,a.jsx)(g.Z,{sx:{my:1,bgcolor:"black"}},"".concat(i,"-").concat(n))})})},CenteredStack=t=>{let{direction:n="row",children:r}=t;return(0,a.jsx)(l.Z,{gap:1,direction:n,alignItems:"center",children:r})}},81306:function(t,n,r){"use strict";r.r(n);var e=r(85893),a=r(2962),i=r(67294),o=r(21480),l=r(51233),c=r(66242),s=r(44267),d=r(23972),u=r(64885),g=r(30925),h=r(10924),p=r(30509),m=r(40929),x=r(61436);n.default=()=>{var t,n;let{state:r}=(0,i.useContext)(o.I),{killroy:f}=(null==r?void 0:r.account)||{deathNote:{}},v=(0,h.NG)(null==r?void 0:r.account,null==r?void 0:r.characters,null==r?void 0:null===(t=r.account)||void 0===t?void 0:t.serverVars);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.PB,{title:"Killroy | Idleon Toolbox",description:"Keep track of kill roy kills progression"}),(0,e.jsxs)(l.Z,{direction:"row",flexWrap:"wrap",gap:1,children:[(0,e.jsx)(u.Ye,{title:"Total Kills",value:(0,g.notateNumber)(f.totalKills)}),(0,e.jsx)(u.Ye,{title:"Total Damage Multi",value:"".concat(f.totalDamageMulti,"x")})]}),(0,e.jsxs)(p.Z,{tabs:["Monsters","Schedule"],children:[(0,e.jsx)(l.Z,{direction:"row",flexWrap:"wrap",gap:1,children:null==f?void 0:null===(n=f.list)||void 0===n?void 0:n.map((t,n)=>{let{rawName:r,world:a,killRoyKills:i,icon:o}=t;return(0,e.jsx)(c.Z,{children:(0,e.jsx)(s.Z,{children:(0,e.jsxs)(l.Z,{alignItems:"center",gap:1,children:[(0,e.jsx)("img",{src:"".concat(g.prefix,"data/").concat(o,".png"),alt:""}),(0,e.jsx)(d.Z,{children:(0,g.notateNumber)(null!=i?i:0,"Big")})]})})},r+n)})}),(0,e.jsx)(l.Z,{direction:"row",flexWrap:"wrap",gap:1,children:null==v?void 0:v.map((t,n)=>{let{classes:r,date:a,monsters:o}=t;return(0,e.jsx)(c.Z,{sx:{width:330},children:(0,e.jsxs)(s.Z,{children:[(0,e.jsx)(d.Z,{sx:{ml:1,mb:2},children:(0,x.Z)(a)?(0,m.Z)(a,"dd/MM/yyyy HH:mm:ss"):null}),(0,e.jsx)(l.Z,{direction:"row",gap:1,children:r.map((t,r)=>{let{className:a,classIndex:u}=t,h=null==o?void 0:o[r];return(0,e.jsx)(i.Fragment,{children:(0,e.jsx)(c.Z,{variant:"outlined",children:(0,e.jsx)(s.Z,{children:(0,e.jsxs)(l.Z,{alignItems:"center",children:[(0,e.jsxs)(l.Z,{direction:"row",alignItems:"center",children:[(0,e.jsx)("img",{src:"".concat(g.prefix,"data/ClassIcons").concat(u,".png"),alt:""}),(0,e.jsx)("img",{src:"".concat(g.prefix,"data/Mface").concat(h,".png"),alt:""})]}),(0,e.jsx)(d.Z,{children:a})]})})})},"schedule-".concat(n,"-classId-").concat(r))})})]})},"schedule-".concat(n))})})]})]})}}},function(t){t.O(0,[9774,2888,179],function(){return t(t.s=49794)}),_N_E=t.O()}]);
\ No newline at end of file
diff --git a/account/misc/apocalypses.html b/account/misc/apocalypses.html
index a7e8f5def..7ec2ec265 100644
--- a/account/misc/apocalypses.html
+++ b/account/misc/apocalypses.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/constellations.html b/account/misc/constellations.html
index adefdb138..9a930187c 100644
--- a/account/misc/constellations.html
+++ b/account/misc/constellations.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/dungeons.html b/account/misc/dungeons.html
index 2a95e9f0d..2f8350c91 100644
--- a/account/misc/dungeons.html
+++ b/account/misc/dungeons.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/general.html b/account/misc/general.html
index bc842dabe..0c284224e 100644
--- a/account/misc/general.html
+++ b/account/misc/general.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/guild.html b/account/misc/guild.html
index c51fe8883..2afb2d217 100644
--- a/account/misc/guild.html
+++ b/account/misc/guild.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/quests.html b/account/misc/quests.html
index d74e3d882..a77485be1 100644
--- a/account/misc/quests.html
+++ b/account/misc/quests.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/random-events.html b/account/misc/random-events.html
index 748bd75df..05bed2bee 100644
--- a/account/misc/random-events.html
+++ b/account/misc/random-events.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/misc/storage.html b/account/misc/storage.html
index 8e3de9b9c..8267626df 100644
--- a/account/misc/storage.html
+++ b/account/misc/storage.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/premium-currency/companions.html b/account/premium-currency/companions.html
index fd43e7538..576513db5 100644
--- a/account/premium-currency/companions.html
+++ b/account/premium-currency/companions.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/premium-currency/gem-shop.html b/account/premium-currency/gem-shop.html
index c4e67859b..f4ec398ce 100644
--- a/account/premium-currency/gem-shop.html
+++ b/account/premium-currency/gem-shop.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/task-board/achievements.html b/account/task-board/achievements.html
index c914e7ac1..5874eb0db 100644
--- a/account/task-board/achievements.html
+++ b/account/task-board/achievements.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/task-board/merits.html b/account/task-board/merits.html
index 90d1395fa..44d228d36 100644
--- a/account/task-board/merits.html
+++ b/account/task-board/merits.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/task-board/tasks.html b/account/task-board/tasks.html
index 45e22e108..1e146ae0d 100644
--- a/account/task-board/tasks.html
+++ b/account/task-board/tasks.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/anvil.html b/account/world-1/anvil.html
index 9c3e571a5..56d71afa8 100644
--- a/account/world-1/anvil.html
+++ b/account/world-1/anvil.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/bribes.html b/account/world-1/bribes.html
index b699aec35..92d045c53 100644
--- a/account/world-1/bribes.html
+++ b/account/world-1/bribes.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/forge.html b/account/world-1/forge.html
index b383b1a0b..d342e4c08 100644
--- a/account/world-1/forge.html
+++ b/account/world-1/forge.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/old-stamps.html b/account/world-1/old-stamps.html
index bd6e0b7ee..c91e2f2cf 100644
--- a/account/world-1/old-stamps.html
+++ b/account/world-1/old-stamps.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/owl.html b/account/world-1/owl.html
index b23525b51..6ecf2460b 100644
--- a/account/world-1/owl.html
+++ b/account/world-1/owl.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-1/stamps.html b/account/world-1/stamps.html
index 191d65e62..97c87f325 100644
--- a/account/world-1/stamps.html
+++ b/account/world-1/stamps.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/arcade-shop.html b/account/world-2/arcade-shop.html
index 66390fd74..8d9c4ea1b 100644
--- a/account/world-2/arcade-shop.html
+++ b/account/world-2/arcade-shop.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/bubbles.html b/account/world-2/bubbles.html
index 7b4880a9b..41266b78d 100644
--- a/account/world-2/bubbles.html
+++ b/account/world-2/bubbles.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/cauldrons.html b/account/world-2/cauldrons.html
index 26a129556..fa78fba45 100644
--- a/account/world-2/cauldrons.html
+++ b/account/world-2/cauldrons.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/islands.html b/account/world-2/islands.html
index db01b931d..e44024f3b 100644
--- a/account/world-2/islands.html
+++ b/account/world-2/islands.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/kangaroo.html b/account/world-2/kangaroo.html
index 74f4333fd..1445e2f79 100644
--- a/account/world-2/kangaroo.html
+++ b/account/world-2/kangaroo.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/killroy.html b/account/world-2/killroy.html
new file mode 100644
index 000000000..6ae5a61d5
--- /dev/null
+++ b/account/world-2/killroy.html
@@ -0,0 +1 @@
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/old-bubbles.html b/account/world-2/old-bubbles.html
index 4f8e08f1f..0e0cad0c2 100644
--- a/account/world-2/old-bubbles.html
+++ b/account/world-2/old-bubbles.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/sigils.html b/account/world-2/sigils.html
index b432c89f1..d78192a81 100644
--- a/account/world-2/sigils.html
+++ b/account/world-2/sigils.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/vials.html b/account/world-2/vials.html
index 5549d2f56..5d2f49c2f 100644
--- a/account/world-2/vials.html
+++ b/account/world-2/vials.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/vote-ballot.html b/account/world-2/vote-ballot.html
index ca31dccd4..7382a9f38 100644
--- a/account/world-2/vote-ballot.html
+++ b/account/world-2/vote-ballot.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-2/weekly-bosses.html b/account/world-2/weekly-bosses.html
index 3e11a43a3..9d7d87d9f 100644
--- a/account/world-2/weekly-bosses.html
+++ b/account/world-2/weekly-bosses.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/atom-collider.html b/account/world-3/atom-collider.html
index e8f6783af..3aea5dd73 100644
--- a/account/world-3/atom-collider.html
+++ b/account/world-3/atom-collider.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/buildings.html b/account/world-3/buildings.html
index c95c76610..2c8040f83 100644
--- a/account/world-3/buildings.html
+++ b/account/world-3/buildings.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/construction.html b/account/world-3/construction.html
index ee3ff8aa9..c86c67e7e 100644
--- a/account/world-3/construction.html
+++ b/account/world-3/construction.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/death-note.html b/account/world-3/death-note.html
index 32bb84cfe..6177135f3 100644
--- a/account/world-3/death-note.html
+++ b/account/world-3/death-note.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/equinox.html b/account/world-3/equinox.html
index 445a3cbbb..eaa551991 100644
--- a/account/world-3/equinox.html
+++ b/account/world-3/equinox.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/prayers.html b/account/world-3/prayers.html
index 47ff412c8..89eeb1930 100644
--- a/account/world-3/prayers.html
+++ b/account/world-3/prayers.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/printer.html b/account/world-3/printer.html
index 7329784cc..56e9233ff 100644
--- a/account/world-3/printer.html
+++ b/account/world-3/printer.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/refinery.html b/account/world-3/refinery.html
index b37fbd509..e982fe46e 100644
--- a/account/world-3/refinery.html
+++ b/account/world-3/refinery.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/salt-lick.html b/account/world-3/salt-lick.html
index 90bae274d..8cbb439e2 100644
--- a/account/world-3/salt-lick.html
+++ b/account/world-3/salt-lick.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/traps.html b/account/world-3/traps.html
index 011fd4f97..f9e998b67 100644
--- a/account/world-3/traps.html
+++ b/account/world-3/traps.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-3/worship.html b/account/world-3/worship.html
index ab06cdbf2..dc3e6973a 100644
--- a/account/world-3/worship.html
+++ b/account/world-3/worship.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/breeding.html b/account/world-4/breeding.html
index 4804409e7..e2dd0938d 100644
--- a/account/world-4/breeding.html
+++ b/account/world-4/breeding.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/cooking.html b/account/world-4/cooking.html
index 04e26c3dc..a9e7a4e08 100644
--- a/account/world-4/cooking.html
+++ b/account/world-4/cooking.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/killroy-prime.html b/account/world-4/killroy-prime.html
deleted file mode 100644
index a6ab31343..000000000
--- a/account/world-4/killroy-prime.html
+++ /dev/null
@@ -1 +0,0 @@
-Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/laboratory.html b/account/world-4/laboratory.html
index cd89bc1f1..565d38ede 100644
--- a/account/world-4/laboratory.html
+++ b/account/world-4/laboratory.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/rift.html b/account/world-4/rift.html
index e1b1c738f..c8d9ce9c5 100644
--- a/account/world-4/rift.html
+++ b/account/world-4/rift.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-4/tome.html b/account/world-4/tome.html
index 2c6ce9279..16b05c478 100644
--- a/account/world-4/tome.html
+++ b/account/world-4/tome.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-5/divinity.html b/account/world-5/divinity.html
index 7336f78a3..e48389bb8 100644
--- a/account/world-5/divinity.html
+++ b/account/world-5/divinity.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-5/gaming.html b/account/world-5/gaming.html
index a530725be..1f997bb15 100644
--- a/account/world-5/gaming.html
+++ b/account/world-5/gaming.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-5/sailing.html b/account/world-5/sailing.html
index ef462d985..19a36b712 100644
--- a/account/world-5/sailing.html
+++ b/account/world-5/sailing.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-5/slab.html b/account/world-5/slab.html
index e3deff2e1..72584ac7a 100644
--- a/account/world-5/slab.html
+++ b/account/world-5/slab.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-6/beanstalk.html b/account/world-6/beanstalk.html
index 301f615db..734828d1d 100644
--- a/account/world-6/beanstalk.html
+++ b/account/world-6/beanstalk.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-6/farming.html b/account/world-6/farming.html
index 202a5c622..9573af16d 100644
--- a/account/world-6/farming.html
+++ b/account/world-6/farming.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-6/sneaking.html b/account/world-6/sneaking.html
index 8cdbb8c99..7685b6c44 100644
--- a/account/world-6/sneaking.html
+++ b/account/world-6/sneaking.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/account/world-6/summoning.html b/account/world-6/summoning.html
index 513c45acb..1afdb8deb 100644
--- a/account/world-6/summoning.html
+++ b/account/world-6/summoning.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/characters.html b/characters.html
index 839d8de7f..1897af48a 100644
--- a/characters.html
+++ b/characters.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/dashboard.html b/dashboard.html
index 208f7d9da..30509a66b 100644
--- a/dashboard.html
+++ b/dashboard.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/data.html b/data.html
index cc66df098..23d1696c7 100644
--- a/data.html
+++ b/data.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/etc/Killroy_0.png b/etc/Killroy_0.png
new file mode 100644
index 000000000..56e37c5c4
Binary files /dev/null and b/etc/Killroy_0.png differ
diff --git a/etc/Killroy_1.png b/etc/Killroy_1.png
new file mode 100644
index 000000000..25296bd41
Binary files /dev/null and b/etc/Killroy_1.png differ
diff --git a/etc/Killroy_2.png b/etc/Killroy_2.png
new file mode 100644
index 000000000..28e4b777f
Binary files /dev/null and b/etc/Killroy_2.png differ
diff --git a/etc/Killroy_3.png b/etc/Killroy_3.png
new file mode 100644
index 000000000..e1cd5af80
Binary files /dev/null and b/etc/Killroy_3.png differ
diff --git a/etc/Killroy_4.png b/etc/Killroy_4.png
new file mode 100644
index 000000000..08c30ee84
Binary files /dev/null and b/etc/Killroy_4.png differ
diff --git a/etc/Killroy_5.png b/etc/Killroy_5.png
new file mode 100644
index 000000000..6028e1f45
Binary files /dev/null and b/etc/Killroy_5.png differ
diff --git a/etc/Killroy_Skull.png b/etc/Killroy_Skull.png
new file mode 100644
index 000000000..2f8261c00
Binary files /dev/null and b/etc/Killroy_Skull.png differ
diff --git a/guilds.html b/guilds.html
index 256ce41aa..c7ea31396 100644
--- a/guilds.html
+++ b/guilds.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/index.html b/index.html
index a69bed799..8d6b909df 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/leaderboards.html b/leaderboards.html
index fae9be9bd..7215a8542 100644
--- a/leaderboards.html
+++ b/leaderboards.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/patch-notes.html b/patch-notes.html
index 1d6b70052..c89d275f0 100644
--- a/patch-notes.html
+++ b/patch-notes.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools.html b/tools.html
index 572263c9a..1eb28feab 100644
--- a/tools.html
+++ b/tools.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/active-exp-calculator.html b/tools/active-exp-calculator.html
index 3c22b83f3..20accf0d5 100644
--- a/tools/active-exp-calculator.html
+++ b/tools/active-exp-calculator.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/builds.html b/tools/builds.html
index 22a43fd5a..f0b86d123 100644
--- a/tools/builds.html
+++ b/tools/builds.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/card-search.html b/tools/card-search.html
index 374cb6367..ff9f61a26 100644
--- a/tools/card-search.html
+++ b/tools/card-search.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/god-planner.html b/tools/god-planner.html
index a3cf300f6..c6d0605c8 100644
--- a/tools/god-planner.html
+++ b/tools/god-planner.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/guaranteed-drop-calculator.html b/tools/guaranteed-drop-calculator.html
index a5bbd0c63..675fc41e7 100644
--- a/tools/guaranteed-drop-calculator.html
+++ b/tools/guaranteed-drop-calculator.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/item-browser.html b/tools/item-browser.html
index fc0e1b531..92bf4f215 100644
--- a/tools/item-browser.html
+++ b/tools/item-browser.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/item-planner.html b/tools/item-planner.html
index 6dae099b2..4a9d2c183 100644
--- a/tools/item-planner.html
+++ b/tools/item-planner.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file
diff --git a/tools/material-tracker.html b/tools/material-tracker.html
index 1b00f3131..a4c50b778 100644
--- a/tools/material-tracker.html
+++ b/tools/material-tracker.html
@@ -1 +1 @@
-Idleon Toolbox
\ No newline at end of file
+Idleon Toolbox
\ No newline at end of file