{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.object.values.js","webpack:///./node_modules/core-js/modules/es.array.flat-map.js","webpack:///./node_modules/core-js/modules/es.array.unscopables.flat-map.js","webpack:///./src/store/tracker/items/kh2.ts","webpack:///./src/store/tracker/util.ts"],"names":["$","$values","values","target","stat","O","flattenIntoArray","toObject","toLength","aFunction","arraySpeciesCreate","proto","flatMap","callbackfn","A","this","sourceLen","length","arguments","undefined","addToUnscopables","items","data","secondary","map","i","total","category","c","cls","secondaryTotal","secondaryMax","group","preloadNums","Object","item","numbers","filter","num","forEach","image","Image","src"],"mappings":"qGAAA,IAAIA,EAAI,EAAQ,QACZC,EAAU,EAAQ,QAAgCC,OAItDF,EAAE,CAAEG,OAAQ,SAAUC,MAAM,GAAQ,CAClCF,OAAQ,SAAgBG,GACtB,OAAOJ,EAAQI,O,oCCNnB,IAAIL,EAAI,EAAQ,QACZM,EAAmB,EAAQ,QAC3BC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAY,EAAQ,QACpBC,EAAqB,EAAQ,QAIjCV,EAAE,CAAEG,OAAQ,QAASQ,OAAO,GAAQ,CAClCC,QAAS,SAAiBC,GACxB,IAEIC,EAFAT,EAAIE,EAASQ,MACbC,EAAYR,EAASH,EAAEY,QAK3B,OAHAR,EAAUI,GACVC,EAAIJ,EAAmBL,EAAG,GAC1BS,EAAEG,OAASX,EAAiBQ,EAAGT,EAAGA,EAAGW,EAAW,EAAG,EAAGH,EAAYK,UAAUD,OAAS,EAAIC,UAAU,QAAKC,GACjGL,M,uBChBX,IAAIM,EAAmB,EAAQ,QAG/BA,EAAiB,Y,qKCDJC,EAAK,4EAEhB,iCAAkC,eAAM,CACtCC,KAAM,QACNC,UAAW,CAAC,iBAAkB,WAAY,gBAAiB,YAAYC,KACrE,SAAAC,GAAC,wCAA+BA,QAGpC,uBAAwB,eAAK,CAC3BC,MAAO,EACPJ,KAAM,OACNC,UAAW,CAAC,mBAAoB,aAAc,SAAU,uBA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,UAAW,oBAC7B,CAAC,eAAgB,CAAEA,UAAW,oBAC9B,CAAC,cAAe,CAAEA,UAAW,qBAC7B,CAAC,eAAgB,CAAEA,UAAW,uBAC9B,CAAC,cAAe,CAAEA,UAAW,iBAE/B,eAAK,CACHG,MAAO,EACPI,eAAgB,EAChBC,cAAc,EACdF,IAAK,QACLF,SAAU,YAKX,eACD,CAAC,aAAc,iBAAkB,iBACjC,eAAM,CAAEJ,UAAW,iBAElB,eAAS,CAAC,aAAc,gBAAiB,gBAAiB,mBAG1D,eACD,CAAC,yBAA0B,gBAAiB,iBAAkB,qBAC9D,eAAK,CAAEG,MAAO,EAAGM,MAAO,SAAUL,SAAU,cAlM9B,IAsMhB,uBAAwB,eAAK,CAAED,MAAO,GAAIC,SAAU,YACpD,sBAAuB,eAAK,CAAEA,SAAU,WACrC,eACD,CAAC,eAAgB,aAAc,eAAeH,KAAI,SAAAC,GAAC,+BAAsBA,MACzE,mBAIJ,eAAYJ,I,0HC/MCY,EAAc,SAACZ,GAAD,OACzBa,OAAOhC,OAAOmB,GACXT,SAAQ,SAAAuB,GAAI,OAAIA,EAAKC,WACrBC,QAAO,SAAAC,GAAG,YAAYnB,IAARmB,KACdC,SAAQ,SAAAD,GAEP,IAAME,EAAQ,IAAIC,MAClBD,EAAME,IAAN,mCAAwCJ,EAAxC","file":"js/chunk-3b51cef5.8532ba2c.js","sourcesContent":["var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar aFunction = require('../internals/a-function');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n","import { CHEST, Items, mapItems } from \"../state\";\nimport { item, levels, magic, proof, world } from \"../factories\";\nimport { preloadNums } from \"../util\";\n\nexport const items: Items = {\n // Worlds\n \"worlds/simulated_twilight_town\": world({\n data: \"roxas\",\n secondary: [\"twilight_thorn\", \"struggle\", \"computer_room\", \"pod_room\"].map(\n i => `simulated_twilight_town/${i}`,\n ),\n }),\n \"worlds/twilight_town\": item({\n total: 3,\n data: \"axel\",\n secondary: [\"mysterious_tower\", \"berserkers\", \"mickey\", \"betwixt_and_between\"].map(\n i => `twilight_town/${i}`,\n ),\n category: \"worlds\",\n }),\n \"worlds/hollow_bastion\": item({\n total: 2,\n data: \"demyx\",\n secondary: [\n CHEST,\n ...[\"bailey\", \"ansem's_study\", \"dancers\", \"demyx_story\", \"1000_heartless\", \"sephiroth\"].map(\n i => `hollow_bastion/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/cavern_of_remembrance\": world({\n secondary: [\"depths\", \"mining_area\", \"engine_chamber\", \"transport\"].map(\n i => `cavern_of_remembrance/${i}`,\n ),\n }),\n \"worlds/land_of_dragons\": item({\n total: 2,\n data: \"xigbar\",\n secondary: [\n CHEST,\n ...[\"village_cave\", \"summit\", \"shan_yu\", \"snipers\", \"storm_rider\"].map(\n i => `land_of_dragons/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/beast's_castle\": item({\n total: 2,\n data: \"xaldin\",\n secondary: [\n CHEST,\n ...[\"thresholder\", \"beast\", \"dark_thorn\", \"dragoons\", \"xaldin_story\"].map(\n i => `beast's_castle/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/olympus_coliseum\": item({\n total: 2,\n data: \"zexion\",\n secondary: [\n CHEST,\n ...[\n \"cerberus\",\n \"the_lock\",\n \"hydra\",\n \"hades\",\n \"pain_panic_cup\",\n \"cerberus_cup\",\n \"titan_cup\",\n \"goddess_cup\",\n \"hades_cup\",\n ].map(c => `olympus_coliseum/${c}`),\n ],\n category: \"worlds\",\n }),\n \"worlds/disney_castle\": item({\n data: \"marluxia\",\n secondary: [CHEST, ...[\"minnie\", \"lingering_will\"].map(i => `disney_castle/${i}`)],\n category: \"worlds\",\n }),\n \"worlds/timeless_river\": world({\n secondary: [CHEST, ...[\"old_pete\", \"windows_of_time\", \"pete\"].map(i => `timeless_river/${i}`)],\n }),\n \"worlds/port_royal\": item({\n total: 2,\n data: \"luxord\",\n secondary: [\n CHEST,\n ...[\"town\", \"isla_de_muerta\", \"barbossa\", \"gamblers\", \"grim_reaper\"].map(\n i => `port_royal/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/agrabah\": item({\n total: 2,\n data: \"lexaeus\",\n secondary: [\n CHEST,\n ...[\"abu\", \"chasm_of_challenges\", \"elemental_lords\", \"magic_switches\", \"jafar\"].map(\n i => `agrabah/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/halloween_town\": item({\n total: 2,\n data: \"vexen\",\n secondary: [\n CHEST,\n ...[\"candy_cane_lane\", \"prison_keeper\", \"oogie_boogie\", \"presents\", \"experiment\"].map(\n i => `halloween_town/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/pride_lands\": item({\n total: 2,\n data: \"saix\",\n secondary: [CHEST, ...[\"oasis\", \"scar\", \"groundshaker\"].map(i => `pride_lands/${i}`)],\n category: \"worlds\",\n }),\n \"worlds/space_paranoids\": item({\n total: 2,\n data: \"larxene\",\n secondary: [\n CHEST,\n ...[\"dataspace\", \"hostile_program\", \"solar_sailer\", \"master_control_program\"].map(\n i => `space_paranoids/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/the_world_that_never_was\": item({\n data: \"xemnas\",\n secondary: [\n CHEST,\n ...[\"roxas\", \"xigbar\", \"luxord\", \"saix\", \"kingdom_hearts\"].map(\n i => `the_world_that_never_was/${i}`,\n ),\n ],\n category: \"worlds\",\n }),\n \"worlds/atlantica\": item({\n total: 6,\n secondary: [\"song\", \"ursula\", \"concert\"].map(i => `atlantica/${i}`),\n cls: \"atlantica\",\n category: \"worlds\",\n }),\n \"worlds/100_acre_wood\": item({\n total: 6,\n secondary: \"100_acre_wood/torn_pages\",\n secondaryTotal: 5,\n cls: \"hundred_acre\",\n category: \"worlds\",\n }),\n \"worlds/underdrome_cups\": item({\n total: 5,\n secondary: [\"pain_panic_cup\", \"cerberus_cup\", \"titan_cup\", \"goddess_cup\", \"hades_cup\"].map(\n c => `olympus_coliseum/${c}`,\n ),\n category: \"cups\",\n }),\n \"worlds/replica_data\": item({ total: 13, category: \"data\" }),\n\n // Level\n \"other/sora's_level\": levels(),\n\n // Drives\n ...mapItems(\n [\n [\"drive/valor\", { secondary: \"other/high_jump\" }],\n [\"drive/wisdom\", { secondary: \"other/quick_run\" }],\n [\"drive/limit\", { secondary: \"other/dodge_roll\" }],\n [\"drive/master\", { secondary: \"other/aerial_dodge\" }],\n [\"drive/final\", { secondary: \"other/glide\" }],\n ],\n item({\n total: 7,\n secondaryTotal: 3,\n secondaryMax: true,\n cls: \"drive\",\n category: \"forms\",\n }),\n ),\n\n // Magic\n ...mapItems(\n [\"magic/fire\", \"magic/blizzard\", \"magic/thunder\"],\n magic({ secondary: \"other/duck\" }),\n ),\n ...mapItems([\"magic/cure\", \"magic/reflect\", \"magic/magnet\"], magic()),\n\n // Summons\n ...mapItems(\n [\"summons/chicken_little\", \"summons/genie\", \"summons/stitch\", \"summons/peter_pan\"],\n item({ total: 7, group: \"summon\", category: \"summons\" }),\n ),\n\n // Other\n \"other/secret_reports\": item({ total: 13, category: \"reports\" }),\n \"other/promise_charm\": item({ category: \"charm\" }),\n ...mapItems(\n [\"nonexistence\", \"connection\", \"tranquility\"].map(i => `other/proof_of_${i}`),\n proof(),\n ),\n};\n\npreloadNums(items);\n","import { Items } from \"./state\";\n\n/** Find all numbers used in the state and preload the images for them */\nexport const preloadNums = (items: Items) =>\n Object.values(items)\n .flatMap(item => item.numbers)\n .filter(num => num !== undefined)\n .forEach(num => {\n // Apparently creating an image object like this loads it even if it's not added to the page\n const image = new Image();\n image.src = `/img/progression/numbers/${num}.webp`;\n });\n"],"sourceRoot":""}