{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/scripts/utilities.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/scripts/utilities.js","mtime":1704429000211},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIF9yZWdlbmVyYXRvclJ1bnRpbWUgPSByZXF1aXJlKCIvaG9tZS9jbWlzcy9KZW5raW5zL3dvcmtzcGFjZS9tYXBpbnRlZ3JhdGVkdnVlci9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9yZWdlbmVyYXRvclJ1bnRpbWUuanMiKS5kZWZhdWx0Owp2YXIgX2FzeW5jVG9HZW5lcmF0b3IgPSByZXF1aXJlKCIvaG9tZS9jbWlzcy9KZW5raW5zL3dvcmtzcGFjZS9tYXBpbnRlZ3JhdGVkdnVlci9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3luY1RvR2VuZXJhdG9yLmpzIikuZGVmYXVsdDsKcmVxdWlyZSgiY29yZS1qcy9tb2R1bGVzL2VzLmFycmF5Lml0ZXJhdG9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gogICAgICAgICAgZW50cnkgPSB7fTsKICAgICAgICAgIGlmICghKHR5cGUgPT09ICJBQyIpKSB7CiAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSA1OwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIH0KICAgICAgICAgIGVudHJ5ID0gewogICAgICAgICAgICByZXNvdXJjZTogIlJhdCIsCiAgICAgICAgICAgIHR5cGU6ICJNdWx0aUZsYXRtYXAiLAogICAgICAgICAgICBtb2RlOiAibWFpbiIsCiAgICAgICAgICAgIHN0YXRlOiB1bmRlZmluZWQsCiAgICAgICAgICAgIGxhYmVsOiAiIiwKICAgICAgICAgICAgZGlzY292ZXJJZDogdW5kZWZpbmVkCiAgICAgICAgICB9OwogICAgICAgICAgX2NvbnRleHQubmV4dCA9IDE0OwogICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSA1OgogICAgICAgICAgaWYgKCEodHlwZSA9PT0gIkZDIikpIHsKICAgICAgICAgICAgX2NvbnRleHQubmV4dCA9IDk7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgfQogICAgICAgICAgZW50cnkgPSB7CiAgICAgICAgICAgIHJlc291cmNlOiAiRnVuY3Rpb25hbENvbm5lY3Rpdml0eSIsCiAgICAgICAgICAgIHR5cGU6ICJGbGF0bWFwIiwKICAgICAgICAgICAgbW9kZTogIm1haW4iLAogICAgICAgICAgICBzdGF0ZTogdW5kZWZpbmVkLAogICAgICAgICAgICBsYWJlbDogIkZ1bmN0aW9uYWwiLAogICAgICAgICAgICBkaXNjb3ZlcklkOiB1bmRlZmluZWQKICAgICAgICAgIH07CiAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTQ7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIDk6CiAgICAgICAgICBpZiAoISh0eXBlID09PSAiM0QiKSkgewogICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTQ7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgfQogICAgICAgICAgX2NvbnRleHQubmV4dCA9IDEyOwogICAgICAgICAgcmV0dXJuIGdldEJvZHlTY2FmZm9sZEluZm8oc3BhcmNBcGksICJodW1hbiIpOwogICAgICAgIGNhc2UgMTI6CiAgICAgICAgICBkYXRhID0gX2NvbnRleHQuc2VudDsKICAgICAgICAgIGVudHJ5ID0gewogICAgICAgICAgICByZXNvdXJjZTogZGF0YS51cmwsCiAgICAgICAgICAgIHR5cGU6ICJTY2FmZm9sZCIsCiAgICAgICAgICAgIG1vZGU6ICJtYWluIiwKICAgICAgICAgICAgc3RhdGU6IHVuZGVmaW5lZCwKICAgICAgICAgICAgbGFiZWw6ICJIdW1hbiIsCiAgICAgICAgICAgIGRpc2NvdmVySWQ6IGRhdGEuZGF0YXNldEluZm8uZGlzY292ZXJJZCwKICAgICAgICAgICAgY29udGV4dENhcmRVcmw6IGRhdGEuZGF0YXNldEluZm8uY29udGV4dENhcmRVcmwsCiAgICAgICAgICAgIHMzdXJpOiBkYXRhLmRhdGFzZXRJbmZvLnMzdXJpLAogICAgICAgICAgICB2ZXJzaW9uOiBkYXRhLmRhdGFzZXRJbmZvLnZlcnNpb24sCiAgICAgICAgICAgIGlzQm9keVNjYWZmb2xkOiB0cnVlCiAgICAgICAgICB9OwogICAgICAgIGNhc2UgMTQ6CiAgICAgICAgICByZXR1cm4gX2NvbnRleHQuYWJydXB0KCJyZXR1cm4iLCBlbnRyeSk7CiAgICAgICAgY2FzZSAxNToKICAgICAgICBjYXNlICJlbmQiOgogICAgICAgICAgcmV0dXJuIF9jb250ZXh0LnN0b3AoKTsKICAgICAgfQogICAgfSwgX2NhbGxlZSk7CiAgfSkpOwogIHJldHVybiBmdW5jdGlvbiBnZXROZXdNYXBFbnRyeShfeCwgX3gyKSB7CiAgICByZXR1cm4gX3JlZi5hcHBseSh0aGlzLCBhcmd1bWVudHMpOwogIH07Cn0oKTsKCi8qCiAqIEluaXRpYWwgc3RhdGUgZm9yIHRoZSBzcGxpdCBmbG93CiAqLwp2YXIgaW5pdGlhbFN0YXRlID0gLyojX19QVVJFX18qL2Z1bmN0aW9uICgpIHsKICB2YXIgX3JlZjIgPSBfYXN5bmNUb0dlbmVyYXRvciggLyojX19QVVJFX18qL19yZWdlbmVyYXRvclJ1bnRpbWUoKS5tYXJrKGZ1bmN0aW9uIF9jYWxsZWUyKHR5cGUsIHNwYXJjQXBpKSB7CiAgICB2YXIgc3RhdGUsIGRhdGE7CiAgICByZXR1cm4gX3JlZ2VuZXJhdG9yUnVudGltZSgpLndyYXAoZnVuY3Rpb24gX2NhbGxlZTIkKF9jb250ZXh0MikgewogICAgICB3aGlsZSAoMSkgc3dpdGNoIChfY29udGV4dDIucHJldiA9IF9jb250ZXh0Mi5uZXh0KSB7CiAgICAgICAgY2FzZSAwOgogICAgICAgICAgc3RhdGUgPSBpbml0aWFsRGVmYXVsdFN0YXRlKCk7CiAgICAgICAgICBpZiAoISh0eXBlID09PSAiRkMiKSkgewogICAgICAgICAgICBfY29udGV4dDIubmV4dCA9IDc7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgfQogICAgICAgICAgc3RhdGUuZW50cmllc1swXS5yZXNvdXJjZSA9ICJGdW5jdGlvbmFsQ29ubmVjdGl2aXR5IjsKICAgICAgICAgIHN0YXRlLmVudHJpZXNbMF0udHlwZSA9ICJGbGF0bWFwIjsKICAgICAgICAgIHN0YXRlLmVudHJpZXNbMF0ubGFiZWwgPSAiRnVuY3Rpb25hbCI7CiAgICAgICAgICBfY29udGV4dDIubmV4dCA9IDE4OwogICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSA3OgogICAgICAgICAgaWYgKCEodHlwZSA9PT0gIldob2xlQm9keSIpKSB7CiAgICAgICAgICAgIF9jb250ZXh0Mi5uZXh0ID0gMTg7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgfQogICAgICAgICAgX2NvbnRleHQyLm5leHQgPSAxMDsKICAgICAgICAgIHJldHVybiBnZXRCb2R5U2NhZmZvbGRJbmZvKHNwYXJjQ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4gdGVybS5jaGFyQXQoMCkudG9VcHBlckNhc2UoKSArIHRlcm0uc2xpY2UoMSk7CiAgcmV0dXJuIHRlcm07Cn07CgovKgogKiBQcm92aWRlIGEgbGlzdCBvZiBhdmFpbGFibGUgc3BlY2llcyBmb3IgdGhlIGZsYXRtYXAKICovCnZhciBhdmFpbGFibGVTcGVjaWVzID0gZnVuY3Rpb24gYXZhaWxhYmxlU3BlY2llcygpIHsKICByZXR1cm4gewogICAgIkh1bWFuIEZlbWFsZSI6IHsKICAgICAgdGF4bzogIk5DQklUYXhvbjo5NjA2IiwKICAgICAgYmlvbG9naWNhbFNleDogIlBBVE86MDAwMDM4MyIsCiAgICAgIGljb25DbGFzczogIm1hcGljb24taWNvbl9odW1hbiIsCiAgICAgIGRpc3BsYXlMYXRlc3RDaGFuZ2VzOiB0cnVlLAogICAgICBkaXNwbGF5V2FybmluZzogdHJ1ZQogICAgfSwKICAgICJIdW1hbiBNYWxlIjogewogICAgICB0YXhvOiAiTkNCSVRheG9uOjk2MDYiLAogICAgICBiaW9sb2dpY2FsU2V4OiAiUEFUTzowMDAwMzg0IiwKICAgICAgaWNvbkNsYXNzOiAibWFwaWNvbi1pY29uX2h1bWFuIiwKICAgICAgZGlzcGxheUxhdGVzdENoYW5nZXM6IHRydWUsCiAgICAgIGRpc3BsYXlXYXJuaW5nOiB0cnVlCiAgICB9LAogICAgIlJhdCI6IHsKICAgICAgdGF4bzogIk5DQklUYXhvbjoxMDExNCIsCiAgICAgIGljb25DbGFzczogIm1hcGljb24taWNvbl9yYXQiLAogICAgICBkaXNwbGF5TGF0ZXN0Q2hhbmdlczogdHJ1ZSwKICAgICAgZGlzcGxheVdhcm5pbmc6IHRydWUKICAgIH0sCiAgICAiTW91c2UiOiB7CiAgICAgIHRheG86ICJOQ0JJVGF4b246MTAwOTAiLAogICAgICBpY29uQ2xhc3M6ICJtYXBpY29uLWljb25fbW91c2UiLAogICAgICBkaXNwbGF5TGF0ZXN0Q2hhbmdlczogdHJ1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BkYXRhc2V0SW5mbyA9IHVuZGVmaW5lZDsKICAgICAgICAgIF9jb250ZXh0My5uZXh0ID0gNDsKICAgICAgICAgIHJldHVybiBmZXRjaCgiIi5jb25jYXQoc3BhcmNBcGksICJnZXRfYm9keV9zY2FmZm9sZF9pbmZvLyIpLmNvbmNhdChzcGVjaWVzKSk7CiAgICAgICAgY2FzZSA0OgogICAgICAgICAgcmVzcG9uc2UgPSBfY29udGV4dDMuc2VudDsKICAgICAgICAgIGlmICghcmVzcG9uc2Uub2spIHsKICAgICAgICAgICAgX2NvbnRleHQzLm5leHQgPSAxNTsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICB9CiAgICAgICAgICBfY29udGV4dDMubmV4dCA9IDg7CiAgICAgICAgICByZXR1cm4gcmVzcG9uc2UuanNvbigpOwogICAgICAgIGNhc2UgODoKICAgICAgICAgIGRhdGEgPSBfY29udGV4dDMuc2VudDsKICAgICAgICAgIC8vQ29uc3RydWN0IHRoZSB1cmwgZW5kcG9pbnQgZm9yIGRvd25sb2FkaW5nIHRoZSBzY2FmZm9sZAogICAgICAgICAgYnVja2V0SW5mbyA9IGV4dHJhY3RTM0J1Y2tldE5hbWVBbmRQcmVmaXgoZGF0YS5zM3VyaSk7CiAgICAgICAgICB1cmwgPSAiIi5jb25jYXQoc3BhcmNBcGksICJzMy1yZXNvdXJjZS8iKS5jb25jYXQoYnVja2V0SW5mby5zM1ByZWZpeCwgImZpbGVzLyIpLmNvbmNhdChkYXRhLnBhdGgsICI/czNCdWNrZXROYW1lPSIpLmNvbmNhdChidWNrZXRJbmZvLnMzQnVja2V0KTsKICAgICAgICAgIGNvbnRleHRDYXJkVXJsID0gIiIuY29uY2F0KHNwYXJjQXBpLCAiczMtcmVzb3VyY2UvIikuY29uY2F0KGJ1Y2tldEluZm8uczNQcmVmaXgsICJmaWxlcy8iKS5jb25jYXQoZGF0YS5jb250ZXh0aW5mbywgIj9zM0J1Y2tldE5hbWU9IikuY29uY2F0KGJ1Y2tldEluZm8uczNCdWNrZXQpOwogICAgICAgICAgZGF0YXNldEluZm8gPSB7CiAgICAgICAgICAgIHMzdXJpOiBkYXRhLnMzdXJpLAogICAgICAgICAgICBjb250ZXh0Q2FyZFVybDogY29udGV4dENhcmRVcmwsCiAgICAgICAgICAgIGRpc2NvdmVySWQ6IGRhdGEuaWQsCiAgICAgICAgICAgIHZlcnNpb246IGRhdGEudmVyc2lvbgogICAgICAgICAgfTsKICAgICAgICAgIF9jb250ZXh0My5uZXh0ID0gMTY7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIDE1OgogICAgICAgICAgLy9Vc2UgZGVmYXVsdCB1cmwgaWYgZGF0YSBpcyBub3QgZm91bmQgZm9yIGFueSByZWFzb24KICAgICAgICAgIGlmIChzcGVjaWVzID09PSAicmF0IikgewogICAgICAgICAgICB1cmwgPSAiaHR0cHM6Ly9tYXBjb3JlLWJ1Y2tldDEuczMudXMtd2VzdC0yLmFtYXpvbmF3cy5jb20vV2hvbGVCb2R5LzMxLU1heS0yMDIxL3JhdEJvZHkvcmF0Qm9keV9zeW5jbWFwX21ldGFkYXRhLmpzb24iOwogICAgICAgICAgfSBlbHNlIGlmIChzcGVjaWVzID09PSAiaHVtYW4iKSB7CiAgICAgICAgICAgIHVybCA9ICJodHRwczovL21hcGNvcmUtYnVja2V0MS5zMy51cy13ZXN0LTIuYW1hem9uYXdzLmNvbS9XaG9sZUJvZHkvMjctNC0yMy1odW1hbi9odW1hbl9ib2R5X21ldGFkYXRhLmpzb24iOwogICAgICAgICAgfQogICAgICAgIGNhc2UgMTY6CiAgICAgICAgICByZXR1cm4gX2NvbnRleHQzLmFicnVwdCgicmV0dXJuIiwgewogICAgICAgICAgICB1cmw6IHVybCwKICAgICAgICAgICAgZGF0YXNldEluZm86IGRhdGFzZXRJbmZvCiAgICAgICAgICB9KTsKICAgICAgICBjYXNlIDE3OgogICAgICAgIGNhc2UgImVuZCI6CiAgICAgICAgICByZXR1cm4gX2NvbnRleHQzLnN0b3AoKTsKICAgICAgfQogICAgfSwgX2NhbGxlZTMpOwogIH0pKTsKICByZXR1cm4gZnVuY3Rpb24gZ2V0Qm9keVNjYWZmb2xkSW5mbyhfeDUsIF94NikgewogICAgcmV0dXJuIF9yZWYzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7CiAgfTsKfSgpOwpleHBvcnRzLmF2YWlsYWJsZVNwZWNpZXMgPSBhdmFpbGFibGVTcGVjaWVzOwpleHBvcnRzLmNhcGl0YWxpc2UgPSBjYXBpdGFsaXNlOwpleHBvcnRzLmZpbmRTcGVjaWVzS2V5ID0gZmluZFNwZWNpZXNLZXk7CmV4cG9ydHMuaW5pdGlhbFN0YXRlID0gaW5pdGlhbFN0YXRlOwpleHBvcnRzLmluaXRpYWxEZWZhdWx0U3RhdGUgPSBpbml0aWFsRGVmYXVsdFN0YXRlOwpleHBvcnRzLmdldEJvZHlTY2FmZm9sZEluZm8gPSBnZXRCb2R5U2NhZmZvbGRJbmZvOwpleHBvcnRzLmdldE5ld01hcEVudHJ5ID0gZ2V0TmV3TWFwRW50cnk7"},{"version":3,"names":["initialDefaultState","entries","resource","type","mode","id","state","undefined","label","discoverId","getNewMapEntry","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","sparcApi","entry","data","wrap","_callee$","_context","prev","next","getBodyScaffoldInfo","sent","url","datasetInfo","contextCardUrl","s3uri","version","isBodyScaffold","abrupt","stop","_x","_x2","apply","arguments","initialState","_ref2","_callee2","_callee2$","_context2","_x3","_x4","capitalise","term","charAt","toUpperCase","slice","availableSpecies","taxo","biologicalSex","iconClass","displayLatestChanges","displayWarning","findSpeciesKey","condition","list","key","extractS3BucketNameAndPrefix","uri","substring","split","s3Bucket","n","indexOf","s3Prefix","_ref3","_callee3","species","response","bucketInfo","_callee3$","_context3","fetch","concat","ok","json","path","contextinfo","_x5","_x6","exports"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/scripts/utilities.js"],"sourcesContent":["const initialDefaultState = () => {\n return {\n entries: [\n {\n resource: \"Rat\",\n type: \"MultiFlatmap\",\n mode: \"main\",\n id: 1,\n state: undefined,\n label: \"\",\n discoverId: undefined\n }\n ],\n };\n}\n\nconst getNewMapEntry = async (type, sparcApi) => {\n let entry = { };\n if (type === \"AC\") {\n entry = {\n resource: \"Rat\",\n type: \"MultiFlatmap\",\n mode: \"main\",\n state: undefined,\n label: \"\",\n discoverId: undefined\n };\n } else if (type === \"FC\") {\n entry = {\n resource: \"FunctionalConnectivity\",\n type: \"Flatmap\",\n mode: \"main\",\n state: undefined,\n label: \"Functional\",\n discoverId: undefined\n }\n } else if (type === \"3D\") {\n const data = await getBodyScaffoldInfo(sparcApi, \"human\");\n entry = {\n resource: data.url,\n type: \"Scaffold\",\n mode: \"main\",\n state: undefined,\n label: \"Human\",\n discoverId: data.datasetInfo.discoverId,\n contextCardUrl: data.datasetInfo.contextCardUrl,\n s3uri: data.datasetInfo.s3uri,\n version: data.datasetInfo.version,\n isBodyScaffold: true,\n };\n }\n\n return entry;\n}\n\n/*\n * Initial state for the split flow\n */\nconst initialState = async (type, sparcApi) => {\n const state = initialDefaultState();\n if (type === \"FC\") {\n state.entries[0].resource = \"FunctionalConnectivity\";\n state.entries[0].type = \"Flatmap\";\n state.entries[0].label = \"Functional\";\n } else if (type === \"WholeBody\") {\n const data = await getBodyScaffoldInfo(sparcApi, \"human\");\n state.entries[0].resource = data.url;\n state.entries[0].contextCardUrl = data.datasetInfo.contextCardUrl;\n state.entries[0].discoverId = data.datasetInfo.discoverId,\n state.entries[0].s3uri = data.datasetInfo.s3uri;\n state.entries[0].version = data.datasetInfo.version;\n state.entries[0].type = \"Scaffold\";\n state.entries[0].label = \"Human\";\n state.entries[0].isBodyScaffold = true;\n }\n\n return state;\n}\n\nconst capitalise = term => {\n if (term)\n return term.charAt(0).toUpperCase() + term.slice(1);\n return term;\n};\n\n/*\n * Provide a list of available species for the flatmap\n */\nconst availableSpecies = () => {\n return {\n \"Human Female\": { taxo: \"NCBITaxon:9606\", biologicalSex: \"PATO:0000383\", iconClass: \"mapicon-icon_human\", displayLatestChanges: true, displayWarning: true },\n \"Human Male\": { taxo: \"NCBITaxon:9606\", biologicalSex: \"PATO:0000384\", iconClass: \"mapicon-icon_human\", displayLatestChanges: true, displayWarning: true },\n \"Rat\": { taxo: \"NCBITaxon:10114\", iconClass: \"mapicon-icon_rat\", displayLatestChanges: true, displayWarning: true },\n \"Mouse\": { taxo: \"NCBITaxon:10090\", iconClass: \"mapicon-icon_mouse\", displayLatestChanges: true, displayWarning: true },\n \"Pig\": { taxo: \"NCBITaxon:9823\", iconClass: \"mapicon-icon_pig\", displayLatestChanges: true, displayWarning: true },\n \"Cat\": { taxo: \"NCBITaxon:9685\", iconClass: \"mapicon-icon_cat\", displayLatestChanges: true, displayWarning: true },\n }\n}\n\n/*\n * Look for the key in availableSpecies with the provided condition\n */\nconst findSpeciesKey = condition => {\n if (condition) {\n const list = availableSpecies();\n for (let key in list) {\n if (condition.taxo === list[key].taxo) {\n if (condition.biologicalSex && list[key].biologicalSex) {\n if (condition.biologicalSex === list[key].biologicalSex)\n return key;\n } else {\n return key;\n }\n }\n }\n }\n return \"\";\n}\n\nconst extractS3BucketNameAndPrefix = uri => {\n if (uri) {\n const substring = uri.split(\"//\")[1];\n if (substring) {\n const s3Bucket = substring.split(\"/\")[0];\n const n = substring.indexOf('/');\n const s3Prefix = substring.substring(n + 1);\n return {\n s3Bucket,\n s3Prefix\n };\n }\n }\n return undefined\n}\n\nconst getBodyScaffoldInfo = async (sparcApi, species) => {\n //Get body scaffold information\n let url = \"\";\n let datasetInfo = undefined;\n const response = await fetch(`${sparcApi}get_body_scaffold_info/${species}`);\n if (response.ok) {\n const data = await response.json();\n //Construct the url endpoint for downloading the scaffold\n const bucketInfo = extractS3BucketNameAndPrefix(data.s3uri);\n url = `${sparcApi}s3-resource/${bucketInfo.s3Prefix}files/${data.path}?s3BucketName=${bucketInfo.s3Bucket}`;\n const contextCardUrl = `${sparcApi}s3-resource/${bucketInfo.s3Prefix}files/${data.contextinfo}?s3BucketName=${bucketInfo.s3Bucket}`;\n datasetInfo = {\n s3uri: data.s3uri,\n contextCardUrl,\n discoverId: data.id,\n version: data.version,\n };\n } else {\n //Use default url if data is not found for any reason\n if (species === \"rat\") {\n url = \"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json\";\n } else if (species === \"human\") {\n url = \"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/27-4-23-human/human_body_metadata.json\";\n }\n }\n\n return {url, datasetInfo};\n}\n\nexports.availableSpecies = availableSpecies;\nexports.capitalise = capitalise;\nexports.findSpeciesKey = findSpeciesKey;\nexports.initialState = initialState;\nexports.initialDefaultState = initialDefaultState;\nexports.getBodyScaffoldInfo = getBodyScaffoldInfo;\nexports.getNewMapEntry = getNewMapEntry;\n"],"mappings":";;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EAChC,OAAO;IACLC,OAAO,EAAE,CACP;MACEC,QAAQ,EAAE,KAAK;MACfC,IAAI,EAAE,cAAc;MACpBC,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE,CAAC;MACLC,KAAK,EAAEC,SAAS;MAChBC,KAAK,EAAE,EAAE;MACTC,UAAU,EAAEF;IACd,CAAC;EAEL,CAAC;AACH,CAAC;AAED,IAAMG,cAAc;EAAA,IAAAC,IAAA,GAAAC,iBAAA,eAAAC,mBAAA,GAAAC,IAAA,CAAG,SAAAC,QAAOZ,IAAI,EAAEa,QAAQ;IAAA,IAAAC,KAAA,EAAAC,IAAA;IAAA,OAAAL,mBAAA,GAAAM,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UACtCN,KAAK,GAAG,CAAE,CAAC;UAAA,MACXd,IAAI,KAAK,IAAI;YAAAkB,QAAA,CAAAE,IAA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