diff --git a/_maps/map_files/Delta/Lavaland.dmm b/_maps/map_files/Delta/Lavaland.dmm index c309f799672..7afe3337090 100644 --- a/_maps/map_files/Delta/Lavaland.dmm +++ b/_maps/map_files/Delta/Lavaland.dmm @@ -900,6 +900,9 @@ /obj/item/reagent_containers/iv_bag/bloodsynthetic/nitrogenis, /obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, /obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, +/obj/structure/closet/fishingrodcabinet{ + pixel_x = 32 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -3462,14 +3465,6 @@ pixel_x = -2; pixel_y = -1 }, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, /obj/structure/cable{ icon_state = "0-2" }, @@ -7736,6 +7731,10 @@ /obj/effect/decal/warning_stripes/yellow/partial{ dir = 1 }, +/obj/item/gps/ruin{ + pixel_y = 32; + gpstag = "OUTPOST" + }, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "brown" diff --git a/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_althland_facility.dmm b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_althland_facility.dmm new file mode 100644 index 00000000000..f4721a32889 --- /dev/null +++ b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_althland_facility.dmm @@ -0,0 +1,3139 @@ +//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE +"ab" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"an" = ( +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"ap" = ( +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"aq" = ( +/obj/structure/window/reinforced, +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"aD" = ( +/obj/machinery/computer{ + name = "Broken Computer"; + desc = "A computer long since rendered non-functional due to lack of maintenance. Spitting out error messages." + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"ba" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"bD" = ( +/obj/structure/disposalpipe/segment{ + dir = 8; + icon_state = "pipe-c" + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"bJ" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"bK" = ( +/obj/machinery/atmospherics/pipe/simple/hidden{ + dir = 1 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"bV" = ( +/obj/machinery/light_construct/small{ + dir = 8 + }, +/obj/machinery/vending/assist, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"cd" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/machinery/portable_atmospherics/scrubber, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"cg" = ( +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"cp" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/decal/cleanable/glass, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"dB" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"dJ" = ( +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"dQ" = ( +/obj/structure/closet/crate/secure/loot, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"eX" = ( +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"fj" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/broken, +/obj/structure/disposalpipe/broken{ + dir = 1 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"fE" = ( +/obj/structure/window/reinforced, +/obj/machinery/mineral/unloading_machine{ + dir = 1; + icon_state = "unloader-corner"; + input_dir = 2; + output_dir = 1 + }, +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"fF" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/remains/human, +/obj/item/clothing/under/rank/miner, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"fG" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"fI" = ( +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"fU" = ( +/obj/machinery/atmospherics/unary/tank/oxygen_agent_b, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"gD" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"hd" = ( +/obj/structure/ore_box, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"iv" = ( +/obj/machinery/portable_atmospherics/pump, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"iP" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/item/bedsheet, +/obj/structure/bed, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"iT" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/obj/item/stack/sheet/metal/fifty, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"iW" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"jl" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"jz" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"jM" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"jO" = ( +/obj/effect/decal/cleanable/dirt, +/obj/item/chair{ + dir = 4 + }, +/obj/structure/sign/poster/contraband/red_rum{ + pixel_y = 31 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"jQ" = ( +/obj/structure/lattice/catwalk/fireproof, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/lavaland/surface/outdoors) +"kf" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/broken{ + dir = 1 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"kq" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/light_construct/small{ + dir = 1 + }, +/obj/structure/sign/atmosplaque{ + name = "\improper Althland facility plaque"; + desc = "A ruined and partially melted plaque bears words that are now faded and rusted, with some letters missing entirely. It reads: Est...ished by the Althland Mining...ration. In recog...on of the brave...who dared...harness...fiery heart...this world. May the...of our labor...shine as brightly...as the molten rivers...beneath our feet. The date of the facility's establishment at the bottom is obliterated, and the signatures of any founding miners are completely lost to time."; + pixel_y = 29 + }, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"kt" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"ky" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"kz" = ( +/obj/effect/spawner/random_spawners/wall_rusted_maybe, +/turf/simulated/wall/r_wall, +/area/lavaland/surface/outdoors) +"kK" = ( +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"kQ" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"li" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"mP" = ( +/obj/structure/girder, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"nN" = ( +/obj/machinery/atmospherics/binary/pump{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"nO" = ( +/obj/structure/disposalpipe/segment{ + dir = 4; + icon_state = "pipe-c" + }, +/obj/effect/turf_decal/stripes/white/line{ + dir = 1 + }, +/obj/effect/decal/cleanable/glass, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"nW" = ( +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/lavaland/surface/outdoors) +"oq" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/item/storage/box/donkpockets, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"os" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"oz" = ( +/turf/simulated/wall/r_wall, +/area/ruin/unpowered) +"oL" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"oQ" = ( +/obj/structure/disposalpipe/segment, +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"oZ" = ( +/obj/effect/decal/cleanable/dirt, +/obj/item/mounted/frame/apc_frame{ + pixel_y = 31 + }, +/obj/item/clothing/under/rank/miner, +/obj/effect/decal/remains/human, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"pk" = ( +/obj/machinery/power/terminal{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"pn" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/remains/human, +/obj/item/clothing/under/rank/miner, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"po" = ( +/obj/structure/door_assembly/door_assembly_ext, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"pA" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/grille, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"pE" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/item/pickaxe, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"qi" = ( +/obj/structure/door_assembly/door_assembly_mhatch, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"qu" = ( +/obj/structure/window/reinforced, +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/obj/item/stack/ore/bluespace_crystal{ + pixel_y = 4; + pixel_x = 4 + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"rD" = ( +/obj/structure/door_assembly/door_assembly_mhatch, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"rE" = ( +/obj/effect/turf_decal/caution/stand_clear/white, +/obj/effect/turf_decal/box/white, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"sp" = ( +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"sD" = ( +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"tE" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/item/reagent_containers/food/drinks/cans/beer{ + pixel_x = -2; + pixel_y = 10 + }, +/obj/item/reagent_containers/food/drinks/cans/beer{ + pixel_x = 7; + pixel_y = 5 + }, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"tL" = ( +/obj/structure/window/reinforced, +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/obj/item/stack/sheet/mineral/silver, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"tQ" = ( +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"tT" = ( +/obj/machinery/atmospherics/pipe/simple/hidden{ + dir = 1 + }, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"uh" = ( +/obj/structure/disposalpipe/trunk{ + dir = 1 + }, +/obj/machinery/light_construct/small, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"uq" = ( +/obj/effect/decal/warning_stripes/white, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"uw" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/door_assembly/door_assembly_ext, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"uA" = ( +/obj/structure/closet/crate, +/obj/item/clothing/mask/gas/explorer, +/obj/item/clothing/shoes/workboots/mining, +/obj/item/clothing/shoes/workboots/mining, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"uL" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"uM" = ( +/obj/structure/lattice/fireproof, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/lavaland/surface/outdoors) +"vs" = ( +/obj/effect/decal/cleanable/glass, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"vt" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"vz" = ( +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"vF" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"wn" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"wL" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/door_assembly/door_assembly_ext, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"xh" = ( +/obj/structure/closet/crate, +/obj/item/tank/internals/emergency_oxygen/double, +/obj/item/storage/box/donkpockets, +/obj/item/storage/box/donkpockets, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"xl" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/item/stack/sheet/metal/fifty, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"xu" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/machinery/atmospherics/pipe/simple/hidden{ + dir = 9 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"xH" = ( +/obj/effect/spawner/random_spawners/wall_rusted_maybe, +/turf/simulated/wall/r_wall, +/area/ruin/unpowered) +"xS" = ( +/turf/simulated/mineral/random/volcanic/hard, +/area/lavaland/surface/outdoors) +"xV" = ( +/obj/structure/disposalpipe/broken, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"yg" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/broken{ + dir = 4 + }, +/obj/structure/disposalpipe/broken{ + dir = 8 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"yL" = ( +/obj/structure/door_assembly/door_assembly_ext, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"yX" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/item/clothing/under/rank/miner, +/obj/structure/sign/poster/contraband/syndicate_recruitment{ + pixel_y = 32 + }, +/obj/effect/decal/remains/human, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"yZ" = ( +/obj/structure/disposalpipe/segment{ + dir = 2; + icon_state = "pipe-c" + }, +/obj/item/stack/ore/plasma, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"zf" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"zt" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/machinery/door/airlock/maintenance_hatch, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"zy" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"zK" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Ao" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/item/rack_parts, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"At" = ( +/obj/machinery/door/airlock/maintenance_hatch, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"AV" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment{ + dir = 8; + icon_state = "pipe-c" + }, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Bb" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"By" = ( +/obj/structure/disposalpipe/segment{ + dir = 1; + icon_state = "pipe-c" + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"BK" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/structure/marker_beacon, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Cd" = ( +/obj/machinery/portable_atmospherics/canister/air, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Cf" = ( +/obj/structure/disposalpipe/trunk, +/obj/machinery/disposal, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Cl" = ( +/obj/structure/disposalpipe/segment{ + dir = 8; + icon_state = "pipe-c" + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"CD" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/door_assembly/door_assembly_mhatch, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"CF" = ( +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"CQ" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/machinery/atmospherics/pipe/manifold/hidden, +/obj/machinery/light_construct/small, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Dt" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/vending/chinese, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Dw" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Ex" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"EJ" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"EP" = ( +/obj/structure/door_assembly/door_assembly_ext, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Hc" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Hq" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"HN" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/segment{ + dir = 1; + icon_state = "pipe-c" + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"HS" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"HW" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/item/mounted/frame/apc_frame{ + pixel_y = 31 + }, +/obj/structure/closet/crate/secure/loot, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Ij" = ( +/obj/item/stack/ore/plasma, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"It" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/marker_beacon, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"IC" = ( +/obj/structure/disposalpipe/sortjunction/reversed{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Jc" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Jd" = ( +/obj/machinery/constructable_frame/machine_frame, +/obj/item/stack/cable_coil, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Ji" = ( +/obj/machinery/power/terminal{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Jq" = ( +/obj/machinery/portable_atmospherics/canister/air, +/obj/machinery/light_construct/small{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"JF" = ( +/obj/machinery/vending/cigarette, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"JJ" = ( +/obj/item/pickaxe, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"KH" = ( +/obj/machinery/conveyor/west{ + dir = 5 + }, +/obj/structure/plasticflaps, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Li" = ( +/mob/living/simple_animal/hostile/asteroid/goliath/beast/random, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Lq" = ( +/obj/item/chair, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"LJ" = ( +/obj/machinery/mech_bay_recharge_port, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Me" = ( +/obj/structure/disposalpipe/segment, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Mi" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/trunk, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Mw" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/segment{ + dir = 2; + icon_state = "pipe-c" + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"ME" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"MZ" = ( +/obj/machinery/light_construct/small, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Nt" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"NJ" = ( +/obj/machinery/power/smes, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"NM" = ( +/obj/effect/decal/cleanable/dirt, +/obj/item/tank/internals/oxygen, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Or" = ( +/obj/structure/closet/crate/secure/loot, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Ow" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/machinery/light_construct/small, +/obj/item/storage/belt/mining/alt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"OU" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Pj" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/remains/human, +/obj/item/clothing/under/rank/miner, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Pm" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Po" = ( +/obj/structure/grille, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Pz" = ( +/obj/structure/sign/poster/official/air2{ + pixel_y = -32 + }, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"PA" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/item/clothing/under/rank/miner, +/obj/machinery/light_construct/small, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"PS" = ( +/obj/item/mounted/frame/apc_frame{ + pixel_y = 31 + }, +/obj/structure/ore_box, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Qm" = ( +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"QN" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/door_assembly/door_assembly_ext, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Rq" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/landmark/tiles/damageturf, +/obj/structure/disposalpipe/segment{ + dir = 1; + icon_state = "pipe-c" + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"RR" = ( +/obj/structure/ore_box, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"RS" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/item/clothing/shoes/workboots/mining, +/mob/living/simple_animal/hostile/asteroid/hivelord/legion, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Sx" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"SD" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"SO" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/sortjunction{ + dir = 1 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"SU" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"TT" = ( +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Ud" = ( +/obj/structure/girder, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Up" = ( +/obj/structure/disposalpipe/trunk, +/obj/machinery/disposal, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Uu" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/remains/human, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Uy" = ( +/obj/machinery/mech_bay_recharge_port, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"VK" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"VQ" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/broken{ + dir = 4 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"VU" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/glass, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Wd" = ( +/obj/machinery/mineral/processing_unit_console{ + pixel_y = 28 + }, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Wp" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Wr" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/disposalpipe/broken{ + dir = 8 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"WT" = ( +/obj/effect/turf_decal/caution/stand_clear/white, +/obj/effect/turf_decal/box/white, +/obj/structure/mecha_wreckage/ripley, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Xd" = ( +/obj/machinery/computer{ + name = "Broken Computer"; + desc = "A computer long since rendered non-functional due to lack of maintenance. Spitting out error messages." + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"XZ" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"Zb" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/glass, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"ZF" = ( +/obj/item/stack/sheet/mineral/gold{ + pixel_y = -8; + pixel_x = -7 + }, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"ZJ" = ( +/obj/structure/grille, +/obj/item/shard, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"ZS" = ( +/obj/structure/door_assembly/door_assembly_ext, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"ZW" = ( +/obj/structure/window/reinforced, +/obj/machinery/mineral/processing_unit{ + dir = 1; + input_dir = 2; + output_dir = 1 + }, +/obj/machinery/conveyor{ + dir = 8; + id = "mining_internal" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) +"ZZ" = ( +/obj/item/t_scanner/adv_mining_scanner, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/unpowered) + +(1,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +"} +(2,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +ap +ap +xS +xS +xS +xS +xS +ap +xS +xS +xS +xS +ap +ap +ap +ap +Bb +ap +ap +ap +xS +xS +xS +xS +xS +xS +xS +"} +(3,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +nW +ap +xS +xS +xS +xS +ap +ap +ap +nW +ap +ap +ap +ap +ap +eX +eX +ZJ +sp +uM +nW +xS +xS +xS +xS +xS +xS +"} +(4,1,1) = {" +xS +xS +xS +ap +ap +nW +nW +nW +ap +ap +ap +ap +ap +ap +ap +nW +nW +ap +xS +xS +ap +Bb +yL +kK +ba +ZJ +uM +nW +nW +nW +ap +xS +xS +xS +"} +(5,1,1) = {" +xS +xS +xS +ap +ap +nW +nW +Mi +li +HN +xH +xH +xH +xH +xH +nW +nW +ap +ap +xS +ap +ap +xH +xH +po +xH +xH +xH +xH +xH +ap +ap +xS +xS +"} +(6,1,1) = {" +xS +xS +xS +xS +ap +nW +ap +xS +xS +yg +xH +RR +ZF +RR +xH +ap +nW +nW +nW +ap +ap +ap +xH +Uy +vs +LJ +bV +Jd +NJ +xH +ap +ap +ap +xS +"} +(7,1,1) = {" +xS +xS +xS +xS +ap +nW +nW +xS +xS +Mw +oQ +os +Me +Rq +xH +ap +ap +nW +nW +kz +ap +ap +xH +rE +Jc +WT +kt +Ji +pk +xH +ap +ap +xS +xS +"} +(8,1,1) = {" +xS +xS +xS +ap +ap +nW +xS +xS +ap +ap +xH +xH +xH +zt +xH +ap +ap +jQ +jQ +jQ +ap +ap +xH +aD +vt +dQ +uA +Or +ZZ +xH +ap +ap +xS +xS +"} +(9,1,1) = {" +xS +xS +xS +ap +nW +nW +ap +ap +ap +uM +xH +KH +nO +bD +xH +ap +ap +jQ +jQ +jQ +ap +ap +xH +xH +uM +zy +Li +dJ +bJ +mP +ap +ap +ap +xS +"} +(10,1,1) = {" +xS +xS +ap +nW +nW +nW +ap +ap +nW +uM +uM +aq +pE +xH +xH +xH +ap +xH +nW +nW +ap +ap +ap +uM +uM +oz +HW +xh +kt +mP +ap +ap +xS +xS +"} +(11,1,1) = {" +xS +xS +ap +uM +xH +nW +ap +ap +nW +nW +cg +tL +IC +jM +ky +ky +SO +li +kf +nW +nW +nW +nW +nW +nW +uM +xV +zf +By +xH +nW +ap +xS +xS +"} +(12,1,1) = {" +xS +xS +ap +nW +uM +nW +ap +nW +nW +nW +pA +tQ +cp +xH +xH +xH +oL +ap +ap +nW +nW +nW +nW +uM +xH +nW +uM +Ao +Pm +xH +nW +nW +xS +xS +"} +(13,1,1) = {" +xS +xS +ap +ap +nW +nW +ap +nW +nW +nW +xH +ZW +jl +hd +xH +ap +oL +uw +ap +nW +nW +uM +xH +uM +xH +Cd +Jq +Up +Cl +xH +nW +nW +ap +xS +"} +(14,1,1) = {" +xS +xS +ap +ap +nW +nW +ap +ap +nW +nW +xH +qu +jl +MZ +xH +ap +oL +ap +ap +ap +nW +nW +nW +nW +xH +xH +xH +xH +rD +xH +nW +nW +ap +xS +"} +(15,1,1) = {" +xS +ap +ap +ap +nW +nW +xS +ap +ap +nW +xH +aq +ab +hd +xH +ap +oL +ap +ap +ap +ap +nW +nW +nW +nW +xH +Xd +bJ +vF +xH +nW +ap +ap +xS +"} +(16,1,1) = {" +xS +xS +ap +ap +nW +nW +ap +ap +ap +nW +xH +fE +gD +Ij +xH +ap +Wr +ap +ap +ap +ap +nW +nW +nW +nW +xH +Xd +Jc +nN +xH +nW +nW +ap +xS +"} +(17,1,1) = {" +xS +xS +xS +ap +nW +nW +ap +xS +xS +ap +xH +uq +ME +JJ +xH +ap +ap +ap +ap +ap +ap +ap +nW +nW +nW +xH +fU +bK +CQ +xH +nW +nW +ap +xS +"} +(18,1,1) = {" +xS +xS +xS +ap +nW +nW +ap +xS +xS +ap +xH +Wd +ME +Pz +xH +ap +ap +ap +ap +ap +ap +ap +nW +nW +nW +xH +fU +tT +xu +uM +nW +ap +ap +xS +"} +(19,1,1) = {" +xS +xS +xS +ap +nW +nW +ap +ap +ap +ap +oz +PS +yZ +uh +xH +ap +VQ +ap +ap +ap +ap +ap +nW +nW +nW +xH +iv +cd +uM +nW +nW +kz +ap +xS +"} +(20,1,1) = {" +xS +xS +ap +ap +nW +nW +ap +ap +ap +ap +xH +xH +xH +xH +xH +ap +oL +ap +ap +ap +ap +ap +nW +nW +nW +xH +xH +xH +uM +nW +nW +ap +ap +xS +"} +(21,1,1) = {" +xS +xS +ap +ap +uM +nW +nW +nW +xS +ap +ap +ap +ap +ap +ap +ap +Mw +fj +li +HN +ap +ap +nW +nW +nW +nW +nW +nW +nW +xH +uM +nW +ap +xS +"} +(22,1,1) = {" +xS +xS +ap +ap +xH +uM +nW +nW +nW +nW +ap +ap +ap +ap +ap +ap +ap +ap +xH +wL +xH +ap +nW +nW +nW +nW +nW +nW +nW +nW +nW +ap +ap +xS +"} +(23,1,1) = {" +xS +ap +ap +ap +ap +ap +nW +nW +nW +xH +nW +nW +nW +ap +ap +ap +ap +ap +xH +dB +xH +nW +nW +nW +nW +nW +nW +nW +nW +nW +ap +ap +ap +xS +"} +(24,1,1) = {" +xS +ap +ap +ap +ap +nW +ap +nW +nW +nW +nW +uM +nW +nW +nW +xH +xH +SU +xH +QN +xH +ZJ +SD +xH +uM +zK +uM +uM +xH +nW +ap +Hq +ap +xS +"} +(25,1,1) = {" +xS +xS +xS +ap +ap +nW +nW +xH +nW +nW +uM +uM +xH +uM +nW +xH +Cf +VU +Hc +AV +xH +uM +uM +Zb +fG +VK +fG +VK +BK +nW +nW +nW +ap +xS +"} +(26,1,1) = {" +xS +xS +xS +ap +ap +nW +CF +xH +xH +xH +xH +uM +nW +xH +xH +xH +xH +jO +oq +kQ +xH +nW +Pj +fG +uM +uM +pn +fG +uM +nW +nW +nW +ap +xS +"} +(27,1,1) = {" +xS +xS +xS +ap +nW +CF +CF +xH +RS +Ow +xH +uM +fG +xH +iP +PA +xH +kq +tE +kQ +ZS +zK +Wp +VK +nW +nW +TT +nW +uM +nW +nW +nW +ap +xS +"} +(28,1,1) = {" +xS +xS +ap +ap +nW +nW +nW +xH +yX +Sx +xH +iT +uM +xH +NM +vz +xH +oZ +Lq +dJ +xH +fF +fG +Uu +nW +fG +fG +fG +uM +nW +nW +ap +ap +xS +"} +(29,1,1) = {" +xS +xS +ap +ap +kK +nW +nW +xH +xH +qi +xH +xH +Ud +xH +xH +At +xH +HS +EJ +iW +xH +uM +nW +It +uL +nW +fG +nW +uM +nW +nW +nW +ap +xS +"} +(30,1,1) = {" +xS +xS +ap +ap +CF +nW +nW +nW +mP +Dw +OU +Ex +XZ +OU +Dw +EJ +CD +Nt +dJ +EJ +xH +nW +wn +xH +uM +uM +uM +uM +xH +nW +nW +ap +ap +xS +"} +(31,1,1) = {" +xS +xS +ap +ap +ap +CF +nW +CF +xH +xH +mP +mP +xH +xH +xH +xH +xH +JF +Dt +jz +xH +nW +nW +nW +nW +nW +nW +nW +nW +nW +ap +ap +ap +xS +"} +(32,1,1) = {" +xS +xS +xS +ap +ap +nW +nW +nW +nW +nW +nW +nW +uM +uM +uM +uM +xH +xH +xH +EP +xH +nW +ap +ap +ap +nW +nW +nW +nW +nW +ap +ap +ap +xS +"} +(33,1,1) = {" +xS +xS +xS +xS +ap +ap +ap +nW +nW +nW +nW +nW +nW +nW +xH +nW +nW +nW +Qm +kK +Po +nW +ap +xS +xS +ap +ap +ap +ap +ap +ap +ap +ap +xS +"} +(34,1,1) = {" +xS +xS +xS +xS +ap +ap +ap +ap +ap +ap +ap +nW +nW +nW +nW +nW +nW +nW +ZJ +sD +an +ap +ap +xS +xS +xS +ap +ap +ap +ap +xS +xS +xS +xS +"} +(35,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +ap +ap +ap +ap +ap +ap +ap +nW +nW +nW +nW +fI +xl +Po +ap +ap +ap +xS +ap +ap +ap +xS +xS +xS +xS +xS +xS +"} +(36,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +ap +ap +ap +ap +ap +ap +ap +ap +ap +ap +ap +ap +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +"} +(37,1,1) = {" +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +ap +ap +ap +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +xS +"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_nest.dmm b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_nest.dmm index 3933f97402d..55f62c1d9fe 100644 --- a/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_nest.dmm +++ b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_nest.dmm @@ -6,21 +6,21 @@ /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/item/reagent_containers/food/snacks/monstermeat/spidereggs, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "c" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/miner/explorer, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "d" = ( -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "e" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/item/reagent_containers/food/snacks/monstermeat/spidereggs, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "f" = ( /turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, @@ -30,33 +30,28 @@ /obj/structure/spider/terrorweb/queen/builder, /obj/item/pickaxe/drill/diamonddrill, /obj/effect/mob_spawn/human/corpse/damaged, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "h" = ( /obj/effect/turf_decal/sand/plating, /obj/effect/turf_decal/sand/plating, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "i" = ( /obj/effect/mob_spawn/human/miner/explorer, /obj/item/twohanded/fireaxe/boneaxe, /obj/item/clothing/suit/armor/bone, -/turf/simulated/floor/plating/asteroid/basalt/lava, -/area/ruin/unpowered) -"j" = ( -/obj/effect/spawner/lootdrop/marrow_weaver, -/obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "k" = ( /obj/item/kitchen/knife/combat/survival/bone, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "l" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/cocoon, /obj/effect/spawner/lootdrop/marrow_weaver, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "m" = ( /turf/simulated/mineral/random/volcanic/hard, @@ -64,146 +59,138 @@ "n" = ( /obj/effect/turf_decal/sand/plating, /obj/effect/spawner/lootdrop/marrow_weaver, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "o" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/mime/corpse, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "p" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/item/storage/firstaid/regular, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "q" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/table, /obj/item/twohanded/spear/bonespear, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "r" = ( /obj/item/storage/firstaid/toxin, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "s" = ( /turf/simulated/wall/mineral/sandstone, /area/ruin/unpowered) "t" = ( /obj/effect/spawner/lootdrop/marrow_weaver, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "u" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/doctor, /obj/item/gun/projectile/shotgun/boltaction, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "v" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/miner/explorer, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "w" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/item/gun/energy/kinetic_accelerator, /obj/item/borg/upgrade/modkit/trigger_guard, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "x" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/doctor, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "y" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/item/kitchen/knife/combat, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "z" = ( /obj/effect/spawner/lootdrop/marrow_weaver, /obj/effect/mob_spawn/human/miner/explorer, -/turf/simulated/floor/plating/asteroid/basalt/lava, -/area/ruin/unpowered) -"A" = ( -/obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "B" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/cocoon, /obj/effect/mob_spawn/human/corpse/spacebattle/security, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "C" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/cocoon, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "D" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/bed, /obj/effect/mob_spawn/human/miner/explorer, -/turf/simulated/floor/plating/asteroid/basalt/lava, -/area/ruin/unpowered) -"E" = ( -/obj/effect/turf_decal/sand/plating, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "F" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "G" = ( /obj/effect/turf_decal/sand/plating, /obj/effect/mob_spawn/human/corpse/spacebattle/security, /obj/item/gun/projectile/revolver/doublebarrel, /obj/item/melee/classic_baton, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "H" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/item/tank/internals/emergency_oxygen/double, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "I" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/cocoon, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "J" = ( /obj/effect/turf_decal/sand/plating, /obj/effect/spawner/lootdrop/marrow_weaver, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/mob_spawn/human/mime/corpse, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "K" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "L" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/cocoon, /obj/effect/mob_spawn/human/corpse/damaged, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "M" = ( /obj/effect/turf_decal/sand/plating, /obj/structure/table, /obj/item/stack/sheet/animalhide/weaver_chitin, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "N" = ( /turf/simulated/floor/plating/lava/smooth/lava_land_surface, @@ -222,12 +209,12 @@ "R" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/item/storage/firstaid/toxin, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "S" = ( /obj/effect/turf_decal/sand/plating, /obj/item/flashlight/flare/torch, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "T" = ( /turf/template_noop, @@ -240,18 +227,18 @@ "V" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/effect/spawner/lootdrop/marrow_weaver, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "W" = ( /obj/effect/turf_decal/sand/plating, /obj/effect/spawner/lootdrop/marrow_weaver, /obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "X" = ( /obj/structure/spider/terrorweb/queen/builder, /obj/structure/spider/terrorweb/queen/builder, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) "Y" = ( /obj/effect/turf_decal/sand/plating, @@ -261,7 +248,7 @@ /obj/effect/turf_decal/sand/plating, /obj/structure/spider/terrorweb/queen/builder, /obj/effect/spawner/lootdrop/marrow_weaver, -/turf/simulated/floor/plating/asteroid/basalt/lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, /area/ruin/unpowered) (1,1,1) = {" @@ -469,8 +456,8 @@ a a a a -A -A +O +O a a a @@ -507,9 +494,9 @@ a a W d -A +O W -E +Y a a a @@ -539,15 +526,15 @@ x s m m -j +U a -A -A +O +O i m m d -A +O a a a @@ -584,7 +571,7 @@ m m m m -A +O a s q @@ -606,9 +593,9 @@ a a s n -E -E -E +Y +Y +Y C s m @@ -620,12 +607,12 @@ m m m d -A +O F a s -E -E +Y +Y s a a @@ -642,9 +629,9 @@ N a a s -E +Y n -E +Y n F s @@ -662,7 +649,7 @@ W a s D -E +Y s a f @@ -679,27 +666,27 @@ N N a s -E +Y S -E +Y C Z F s -A +O d d F F d -A +O m m d a a s -E +Y s a f @@ -718,7 +705,7 @@ a s a n -E +Y a g s @@ -726,17 +713,17 @@ m m m d -E +Y H F -A +O s d d -A +O a -j -E +U +Y a a a @@ -755,25 +742,25 @@ a a s a -A +d s s m m m -A -j -s +O +U +d m -A +O d d -A +O m W F -A -A +O +O I s a @@ -792,7 +779,7 @@ a a a a -E +Y t m m @@ -805,11 +792,11 @@ m m d z -E +Y m m e -A +O d a a @@ -830,18 +817,18 @@ a a I d -E +Y m s -A -A -E -A -A +O +O +Y +O +O m m m -A +O m m m @@ -870,23 +857,23 @@ d C m m -A -j +O +U m m d -A +O W F -A +O s m m m F -A +O F -A +O s Y P @@ -903,7 +890,7 @@ N a a a -A +O m m n @@ -911,13 +898,13 @@ d m m m -A +O I m d -A -A -A +O +O +O F m d @@ -947,21 +934,21 @@ F r s c -j -A +U +O m m e v m -A +O t d d m m d -E +Y P P P @@ -975,13 +962,13 @@ f N a a -A +O V -E +Y m -A +O X -A +O F d d @@ -992,12 +979,12 @@ t m m m -E -A +Y +O I m -j -A +U +O s P P @@ -1022,7 +1009,7 @@ t m m d -A +O m m d @@ -1031,8 +1018,8 @@ m m m m -A -A +O +O d a a @@ -1049,9 +1036,9 @@ N N a a -A +O a -A +O m m m @@ -1059,11 +1046,11 @@ d d m m -A +O C s d -A +O m s m @@ -1088,10 +1075,10 @@ N a l a -E -E -E -A +Y +Y +Y +O F d d @@ -1101,7 +1088,7 @@ m d d K -A +O W m m @@ -1132,15 +1119,15 @@ V s d p -A +O m m m m -A +O d d -A +O d d a @@ -1163,20 +1150,20 @@ a t d F -A -A +O +O d d m I m m -A +O t d -E +Y +d d -s m d F @@ -1199,10 +1186,10 @@ a w d k -E +Y F s -a +d d m m @@ -1212,13 +1199,13 @@ X m s m -A +O m m -A +O s -j -A +U +O a a N @@ -1234,7 +1221,7 @@ N a V h -E +Y t k d @@ -1242,17 +1229,17 @@ d W d m -A -A +O +O d d m n m -A -E +O +Y I -j +U a G s @@ -1276,17 +1263,17 @@ d d d d -a -E -j -A +d +Y +U +O a s -A +O d -A -A -A +O +O +O d a a @@ -1320,9 +1307,9 @@ a a a F -A +O m -A +O s a a @@ -1359,7 +1346,7 @@ P P s m -A +O N a a diff --git a/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_pirateship.dmm b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_pirateship.dmm new file mode 100644 index 00000000000..d5ccf4b7d1c --- /dev/null +++ b/_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_pirateship.dmm @@ -0,0 +1,5143 @@ +//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE +"ap" = ( +/obj/machinery/atmospherics/unary/tank/air, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"aw" = ( +/obj/item/stack/ore/glass/basalt{ + amount = 15; + pixel_x = -6; + pixel_y = -8 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"aL" = ( +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"aO" = ( +/obj/structure/disposalpipe/broken, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/powered/pirateship) +"br" = ( +/obj/machinery/power/terminal, +/obj/machinery/power/apc/worn_out{ + cell_type = 0; + dir = 8; + pixel_x = -24 + }, +/obj/effect/decal/cleanable/glass{ + pixel_x = 16; + pixel_y = 3 + }, +/obj/item/trash/candy{ + pixel_x = -5; + pixel_y = 9 + }, +/obj/item/trash/can{ + pixel_x = -8; + pixel_y = -2 + }, +/obj/structure/cable/yellow{ + d2 = 4; + icon_state = "0-4" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"by" = ( +/obj/structure/shuttle/engine/platform{ + dir = 1 + }, +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 1 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"bK" = ( +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/powered/pirateship) +"bS" = ( +/obj/effect/turf_decal/number/number_1{ + dir = 4 + }, +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/lavaland/surface/outdoors) +"ca" = ( +/obj/structure/cable/cyan{ + icon_state = "6-8" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"cy" = ( +/obj/structure/foamedmetal, +/turf/simulated/floor/plating/metalfoam/iron, +/area/ruin/powered/pirateship) +"cX" = ( +/turf/template_noop, +/area/template_noop) +"cZ" = ( +/obj/item/stack/sheet/mineral/plastitanium{ + amount = 7; + pixel_y = -1; + pixel_x = -5 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"do" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"dy" = ( +/obj/machinery/suit_storage_unit/pirate, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"dT" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"eb" = ( +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/powered/pirateship) +"em" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 38; + pixel_x = -13 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"es" = ( +/obj/effect/decal/warning_stripes/west, +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"eE" = ( +/obj/structure/spider/stickyweb, +/obj/item/flashlight/flare/glowstick/random, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"eG" = ( +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/ruin/powered/pirateship) +"eO" = ( +/obj/machinery/processor, +/obj/structure/window/reinforced{ + layer = 4.3 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"eT" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"fm" = ( +/obj/structure/flora/rock/lava3, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"fy" = ( +/obj/effect/mob_spawn/human/corpse/pirate/ranged, +/obj/structure/closet/coffin, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"fC" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + id_tag = "pcarrier_windows"; + dir = 1 + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"fH" = ( +/obj/item/reagent_containers/food/drinks/bottle/jagermeister{ + pixel_x = 19; + pixel_y = -2 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"fR" = ( +/obj/structure/flora/ausbushes/fernybush/hell, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"fW" = ( +/obj/structure/railing{ + dir = 1 + }, +/obj/item/twohanded/required/kirbyplants, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gi" = ( +/obj/item/trash/tapetrash, +/obj/structure/closet/walllocker/emerglocker/east, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gk" = ( +/obj/effect/decal/cleanable/dust, +/obj/item/stack/sheet/metal{ + amount = 10; + pixel_x = -13; + pixel_y = -13 + }, +/obj/item/stack/sheet/metal{ + amount = 10; + pixel_y = 8 + }, +/turf/simulated/floor/plasteel/grimy{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gl" = ( +/obj/structure/window/reinforced{ + dir = 4 + }, +/obj/structure/closet/crate/freezer, +/obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, +/obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, +/obj/machinery/iv_drip{ + layer = 3.5 + }, +/obj/machinery/atmospherics/unary/vent_pump{ + pixel_x = 4 + }, +/obj/structure/sign/redcross{ + pixel_y = 32 + }, +/obj/item/storage/firstaid/regular, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gu" = ( +/obj/effect/decal/warning_stripes/west, +/obj/effect/decal/cleanable/dust, +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"gC" = ( +/obj/structure/railing, +/obj/effect/decal/warning_stripes/south{ + color = "1F1F1F" + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/suit_storage_unit/pirate, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gJ" = ( +/obj/effect/decal/warning_stripes/north, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"gL" = ( +/obj/structure/flora/rock/basalt3, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"gQ" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"gR" = ( +/mob/living/simple_animal/hostile/asteroid/goliath/beast, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"gV" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"gW" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/cable/white{ + icon_state = "1-2" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"hu" = ( +/obj/structure/table/reinforced, +/obj/structure/railing{ + dir = 4 + }, +/obj/item/paper_bin{ + pixel_x = 4; + pixel_y = 14 + }, +/obj/machinery/recharger{ + pixel_x = -6; + pixel_y = 9 + }, +/obj/machinery/door_control{ + pixel_x = -7; + pixel_y = -3; + name = "Window Lockdown"; + id = "pcarrier_windows" + }, +/obj/machinery/door_control{ + pixel_y = -3; + pixel_x = 4; + name = "Bridge lockdown"; + id = "pcarrier_bridge" + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + pixel_x = 4 + }, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"hE" = ( +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"hM" = ( +/obj/effect/decal/warning_stripes/north, +/obj/machinery/power/smes{ + charge = 1e+006 + }, +/obj/effect/decal/cleanable/cobweb, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"hT" = ( +/obj/structure/railing{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable/orange{ + icon_state = "9-10" + }, +/turf/simulated/floor/plasteel/stairs{ + color = "4d4d4d"; + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"hW" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "4-9" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"iv" = ( +/obj/structure/foamedmetal, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/powered/pirateship) +"ix" = ( +/obj/structure/grille, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"iN" = ( +/obj/effect/decal/warning_stripes/north, +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 8; + pixel_y = 3; + pixel_x = -1 + }, +/obj/machinery/power/port_gen/pacman, +/obj/structure/cable{ + d2 = 2; + icon_state = "0-2" + }, +/obj/effect/decal/warning_stripes/southeastcorner, +/obj/effect/decal/cleanable/cobweb2, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"iX" = ( +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 4; + pixel_y = 3 + }, +/obj/machinery/mineral/ore_redemption, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"jc" = ( +/obj/structure/cable/cyan{ + icon_state = "4-8" + }, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"jj" = ( +/obj/effect/decal/cleanable/glass{ + pixel_x = -12 + }, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"jm" = ( +/obj/effect/decal/fakelattice, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"jn" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 1; + pixel_x = 19 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"jt" = ( +/obj/effect/decal/cleanable/glass{ + pixel_y = 5; + pixel_x = -16 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"jx" = ( +/obj/structure/cable/yellow{ + icon_state = "1-4" + }, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"jB" = ( +/obj/structure/flora/rock/lava1, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"jK" = ( +/obj/structure/railing, +/obj/machinery/constructable_frame/machine_frame, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"jP" = ( +/obj/item/storage/backpack/duffel/syndie, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"jY" = ( +/obj/structure/grille/broken, +/obj/effect/decal/fakelattice, +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"kj" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 35; + pixel_x = -15 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"kr" = ( +/obj/effect/turf_decal/siding/wood{ + dir = 10 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/wood/fancy/oak{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"kA" = ( +/obj/structure/railing{ + dir = 5 + }, +/obj/structure/statue/sandstone/assistant, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"kF" = ( +/obj/item/clothing/shoes/jackboots, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"kI" = ( +/obj/item/clothing/head/bandana, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"kQ" = ( +/obj/effect/decal/warning_stripes/east, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"kT" = ( +/obj/structure/table, +/obj/structure/grille/broken, +/obj/machinery/cell_charger{ + pixel_y = 4; + pixel_x = -1 + }, +/obj/item/stock_parts/cell/high{ + pixel_y = 7; + pixel_x = 3 + }, +/turf/simulated/floor/plasteel/dark, +/area/ruin/powered/pirateship) +"kV" = ( +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"lc" = ( +/obj/structure/spider/stickyweb, +/obj/structure/mirror{ + pixel_y = 32 + }, +/obj/effect/decal/cleanable/vomit, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ll" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = 11 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"ls" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"lB" = ( +/obj/machinery/constructable_frame/machine_frame, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"lU" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + dir = 8; + id_tag = "pcarrier_windows" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"lY" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"mb" = ( +/obj/machinery/power/terminal, +/obj/structure/cable/yellow{ + d2 = 4; + icon_state = "0-4" + }, +/obj/structure/cable/orange{ + icon_state = "4-5" + }, +/obj/machinery/power/apc/worn_out{ + cell_type = 0; + dir = 8; + pixel_x = -24 + }, +/obj/effect/decal/cleanable/glass{ + pixel_x = 16; + pixel_y = 3 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + pixel_x = 4 + }, +/obj/effect/decal/warning_stripes/northwestcorner, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"md" = ( +/obj/structure/bonfire, +/obj/effect/decal/cleanable/blood/tracks{ + dir = 4 + }, +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"mm" = ( +/obj/structure/railing, +/obj/machinery/constructable_frame/machine_frame, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"mA" = ( +/obj/machinery/constructable_frame/machine_frame, +/obj/machinery/light/small, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"mC" = ( +/obj/structure/railing{ + dir = 9 + }, +/obj/structure/statue/sandstone/assistant, +/obj/structure/sign/poster/contraband/random{ + pixel_y = -32 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"mY" = ( +/obj/item/clothing/under/pirate, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"nc" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/effect/decal/cleanable/dust, +/obj/structure/cable/white{ + icon_state = "1-2" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ng" = ( +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-10" + }, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-6" + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nh" = ( +/obj/item/stack/rods/ten{ + pixel_x = 7; + pixel_y = -15 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"nl" = ( +/obj/structure/chair/comfy/black, +/obj/effect/mob_spawn/human/corpse/pirate/ranged, +/obj/effect/decal/cleanable/blood/old, +/obj/item/reagent_containers/food/drinks/bottle/rum{ + pixel_y = -14; + pixel_x = 16 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"nt" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/machinery/light{ + dir = 1 + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nx" = ( +/obj/structure/computerframe, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"nz" = ( +/obj/structure/mopbucket/full, +/obj/effect/decal/warning_stripes/west, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nD" = ( +/obj/machinery/power/emitter{ + anchored = 1; + dir = 1; + state = 2 + }, +/obj/structure/cable/yellow{ + d2 = 2; + icon_state = "0-2" + }, +/obj/structure/railing, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nE" = ( +/obj/machinery/vending/snack, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-9" + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nF" = ( +/obj/structure/cable/yellow{ + icon_state = "1-4" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + pixel_x = 4 + }, +/obj/effect/decal/warning_stripes/west, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nL" = ( +/obj/machinery/door/poddoor/shutters{ + dir = 2 + }, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"nM" = ( +/obj/structure/grille, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"nT" = ( +/obj/item/reagent_containers/food/snacks/goliath_steak{ + pixel_y = -7; + pixel_x = -7 + }, +/obj/item/reagent_containers/food/snacks/goliath_steak{ + pixel_y = 4; + pixel_x = 6 + }, +/obj/item/reagent_containers/food/snacks/goliath_steak{ + pixel_y = 14; + pixel_x = -4 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"ob" = ( +/obj/effect/turf_decal/siding/wood{ + dir = 4 + }, +/obj/effect/turf_decal/siding/wood/corner{ + dir = 8 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/wood/fancy/oak{ + icon_state = "fancy-wood-oak-broken5"; + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"oi" = ( +/turf/simulated/wall/mineral/plastitanium, +/area/lavaland/surface/outdoors) +"oq" = ( +/obj/structure/cable/orange{ + icon_state = "2-6" + }, +/obj/structure/cable/yellow{ + icon_state = "8-10" + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"oE" = ( +/obj/item/trash/syndi_cakes{ + pixel_x = -6; + pixel_y = -7 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"oG" = ( +/obj/effect/decal/cleanable/glass{ + pixel_x = -12 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"oL" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/item/storage/toolbox/mechanical{ + pixel_x = 3; + pixel_y = 9 + }, +/obj/structure/cable/white{ + icon_state = "1-2" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"oT" = ( +/obj/structure/railing/corner{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable/orange{ + icon_state = "2-10" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"pi" = ( +/obj/machinery/power/apc/worn_out{ + cell_type = 0; + dir = 8; + pixel_x = -24 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/stairs{ + color = "493116"; + temperature = 300; + nitrogen = 23; + oxygen = 14 + }, +/area/ruin/powered/pirateship) +"po" = ( +/obj/effect/decal/cleanable/blood/old, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"pB" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"pY" = ( +/obj/structure/flora/rock/basalt4, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"qd" = ( +/obj/effect/decal/warning_stripes/north, +/obj/effect/decal/warning_stripes/north, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"qk" = ( +/obj/structure/flora/ash/cacti, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"qC" = ( +/obj/effect/decal/cleanable/blood/tracks{ + dir = 4 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"qF" = ( +/obj/structure/railing{ + dir = 1 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"qH" = ( +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"qP" = ( +/obj/effect/turf_decal/siding/wood{ + dir = 4 + }, +/obj/effect/turf_decal/siding/wood{ + dir = 1 + }, +/obj/effect/decal/cleanable/dust, +/obj/structure/closet/secure_closet/personal/cabinet, +/obj/item/clothing/under/sailordress, +/obj/item/clothing/under/pirate_rags, +/turf/simulated/floor/wood/fancy/oak{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"rq" = ( +/obj/structure/cable/yellow{ + icon_state = "1-4" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 6 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 6 + }, +/obj/item/radio{ + pixel_x = -7 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ru" = ( +/obj/item/trash/chips, +/obj/structure/cable/yellow{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"rE" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"rF" = ( +/obj/structure/railing{ + dir = 1 + }, +/obj/structure/cable/orange{ + icon_state = "4-6" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"su" = ( +/obj/structure/grille/broken, +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"sw" = ( +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"sG" = ( +/obj/item/stack/sheet/mineral/plastitanium{ + amount = 7; + pixel_y = 10; + pixel_x = -6 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"sR" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"sU" = ( +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ts" = ( +/obj/structure/closet/crate/secure/loot, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"tv" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = -13 + }, +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"ur" = ( +/obj/machinery/door/airlock/external/glass, +/turf/simulated/floor/plating, +/area/ruin/powered/pirateship) +"uS" = ( +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"vg" = ( +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 1 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"vH" = ( +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 4 + }, +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 1 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"vW" = ( +/obj/machinery/atmospherics/unary/vent_scrubber{ + dir = 4; + on = 1 + }, +/obj/structure/cable/yellow{ + icon_state = "2-4" + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"wp" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/effect/decal/cleanable/dust, +/obj/structure/cable/orange{ + icon_state = "1-2" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"wN" = ( +/obj/structure/flora/ausbushes/ywflowers/hell, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"wO" = ( +/obj/effect/decal/warning_stripes/northwest, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"wS" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 1 + }, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"wX" = ( +/obj/effect/decal/cleanable/dust, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/cable/yellow{ + d1 = 4; + d2 = 8; + icon_state = "6-8" + }, +/obj/item/clothing/suit/hgpirate, +/turf/simulated/floor/plasteel/grimy{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"xa" = ( +/obj/effect/decal/cleanable/dirt, +/obj/effect/decal/cleanable/dust, +/obj/item/trash/broken_ashtray{ + name = "trash" + }, +/obj/item/stack/cable_coil{ + amount = 3; + pixel_x = 7; + pixel_y = -5 + }, +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"xb" = ( +/obj/effect/turf_decal/number{ + dir = 4 + }, +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/lavaland/surface/outdoors) +"xd" = ( +/obj/structure/flora/firebush, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"xj" = ( +/obj/item/stack/rods/ten, +/obj/item/stack/sheet/metal, +/obj/effect/decal/fakelattice, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"xt" = ( +/obj/machinery/light/small{ + dir = 4 + }, +/obj/item/trash/waffles{ + pixel_y = -3; + pixel_x = 5 + }, +/obj/item/trash/fried_vox{ + pixel_y = 7 + }, +/obj/effect/decal/cleanable/shreds, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"xz" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"xQ" = ( +/obj/structure/flora/ash/cacti, +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"xT" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/obj/item/clothing/shoes/jackboots, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"yd" = ( +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3"; + tag = "icon-heater (NORTH)" + }, +/obj/machinery/atmospherics/pipe/manifold/visible, +/obj/structure/window/reinforced{ + dir = 1 + }, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + dir = 4 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"yg" = ( +/obj/structure/table/reinforced, +/obj/structure/railing{ + dir = 4 + }, +/obj/item/extinguisher{ + pixel_y = 5; + pixel_x = 7 + }, +/obj/item/ammo_casing/shotgun/buckshot{ + pixel_x = -5; + pixel_y = 2 + }, +/obj/item/ammo_casing/shotgun/buckshot{ + pixel_x = -5; + pixel_y = 6 + }, +/obj/item/ammo_casing/shotgun/buckshot{ + pixel_x = -5; + pixel_y = 10 + }, +/obj/item/ammo_casing/shotgun/buckshot{ + pixel_x = -5; + pixel_y = -5 + }, +/obj/item/ammo_casing/shotgun/buckshot{ + pixel_x = -5; + pixel_y = -2 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"yA" = ( +/obj/effect/decal/warning_stripes/east, +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"yP" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"ze" = ( +/obj/effect/turf_decal/siding/wood{ + dir = 4 + }, +/obj/effect/turf_decal/siding/wood{ + dir = 65 + }, +/obj/effect/turf_decal/siding/wood{ + dir = 8 + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dust, +/obj/structure/railing/wooden{ + dir = 8 + }, +/obj/structure/railing/wooden/cornerr, +/obj/item/radio/off{ + pixel_x = -5; + pixel_y = 12 + }, +/obj/item/flashlight/lantern{ + pixel_x = 8; + pixel_y = 10 + }, +/turf/simulated/floor/wood/fancy/oak{ + icon_state = "fancy-wood-oak-broken5"; + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"zt" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/effect/mapping_helpers/no_lava, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"zM" = ( +/obj/structure/grille/broken, +/obj/effect/decal/cleanable/glass{ + pixel_x = -12 + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"zP" = ( +/obj/structure/flora/ash/cacti, +/obj/effect/mapping_helpers/no_lava, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"zW" = ( +/obj/effect/decal/warning_stripes/yellow, +/obj/structure/closet/crate/engineering, +/obj/item/stack/cable_coil/blue, +/obj/item/apc_electronics, +/obj/item/apc_electronics, +/obj/item/apc_electronics, +/obj/item/firelock_electronics, +/obj/item/firelock_electronics, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"zY" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Af" = ( +/obj/structure/flora/ausbushes/hell, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"At" = ( +/obj/item/storage/toolbox/electrical{ + pixel_x = -3; + pixel_y = 7 + }, +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 4; + pixel_y = -4; + pixel_x = -2 + }, +/obj/structure/table/reinforced, +/obj/structure/cable{ + d2 = 4; + icon_state = "0-4" + }, +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"AY" = ( +/obj/machinery/computer{ + desc = "A computer long since rendered non-functional due to lack of maintenance. Spitting out error messages."; + dir = 1; + name = "Broken Computer" + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/light/small, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"Bd" = ( +/obj/effect/decal/warning_stripes/northwest, +/obj/machinery/light/small{ + dir = 4 + }, +/obj/item/mounted/frame/apc_frame, +/obj/item/mounted/frame/alarm_frame, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Bw" = ( +/obj/structure/sign/poster/contraband/random{ + pixel_x = -32 + }, +/obj/structure/table/reinforced, +/obj/item/storage/toolbox/surgery{ + pixel_y = -6 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"BC" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "5-9" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/yellow{ + d2 = 2; + icon_state = "0-2" + }, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"BI" = ( +/obj/structure/bed/sandstone, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"BK" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20 + }, +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"BO" = ( +/obj/structure/noticeboard, +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/ruin/powered/pirateship) +"Ce" = ( +/obj/structure/cable/yellow{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/door/airlock/highsecurity, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark, +/area/ruin/powered/pirateship) +"Cs" = ( +/obj/structure/cable/yellow{ + icon_state = "8-10" + }, +/obj/structure/cable/yellow{ + d1 = 2; + d2 = 8; + icon_state = "2-8" + }, +/obj/structure/cable/yellow{ + d1 = 2; + d2 = 8; + icon_state = "6-8" + }, +/obj/machinery/atmospherics/unary/vent_pump{ + pixel_x = -3 + }, +/obj/item/mounted/frame/light_fixture{ + dir = 1; + pixel_y = 12 + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Cu" = ( +/obj/effect/decal/warning_stripes/west{ + color = "1F1F1F" + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"CI" = ( +/obj/effect/decal/warning_stripes/yellow, +/obj/structure/rack, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"CX" = ( +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3_side_inv"; + tag = "icon-heater (NORTH)" + }, +/obj/machinery/power/terminal{ + dir = 1 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"DD" = ( +/obj/effect/decal/fakelattice, +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"DG" = ( +/obj/structure/computerframe, +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"DK" = ( +/obj/structure/closet/body_bag, +/obj/effect/mob_spawn/human/corpse/pirate, +/obj/effect/decal/warning_stripes/west, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"DN" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/effect/decal/cleanable/dust, +/obj/machinery/door/airlock/glass, +/obj/structure/cable/white{ + icon_state = "1-2" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"DO" = ( +/obj/structure/shuttle/engine/large, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"DY" = ( +/obj/effect/turf_decal/siding/wood{ + dir = 8 + }, +/obj/effect/turf_decal/siding/wood{ + dir = 1 + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/cryopod, +/turf/simulated/floor/wood/fancy/oak{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"DZ" = ( +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Eh" = ( +/obj/machinery/suit_storage_unit/industrial/pirate_leader, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ep" = ( +/obj/structure/bed/roller, +/obj/item/clothing/gloves/color/latex/nitrile, +/obj/item/reagent_containers/syringe/epinephrine{ + pixel_y = -6 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ez" = ( +/obj/effect/decal/warning_stripes/north, +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3_side"; + tag = "icon-heater (NORTH)" + }, +/obj/machinery/power/terminal{ + dir = 1 + }, +/obj/machinery/door/window/northright{ + name = "Engine Access" + }, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"EE" = ( +/obj/effect/decal/cleanable/blood/tracks, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"EN" = ( +/turf/simulated/mineral/random/volcanic/hard, +/area/lavaland/surface/outdoors) +"EQ" = ( +/obj/machinery/power/terminal, +/obj/structure/cable/yellow{ + icon_state = "0-9" + }, +/obj/effect/decal/cleanable/glass{ + pixel_x = -13; + pixel_y = 7 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"EW" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/blue{ + icon_state = "4-8" + }, +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"EZ" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = -15 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Ff" = ( +/obj/structure/table, +/obj/machinery/kitchen_machine/microwave{ + pixel_x = -1; + pixel_y = 7 + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Fm" = ( +/obj/structure/flora/ash/tall_shroom, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"FC" = ( +/obj/structure/sign/poster/contraband/random{ + pixel_x = -32 + }, +/obj/structure/curtain/open/shower, +/obj/item/soap/deluxe, +/obj/item/bikehorn/rubberducky, +/obj/machinery/shower{ + dir = 1; + layer = 5; + pixel_y = -5 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"FK" = ( +/obj/structure/flora/ausbushes/sparsegrass/hell, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"FV" = ( +/obj/effect/decal/cleanable/dust, +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 1; + pixel_x = -3 + }, +/obj/item/chair{ + pixel_y = -5 + }, +/turf/simulated/floor/plasteel/grimy{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Gb" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/blue{ + icon_state = "4-8" + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Gj" = ( +/obj/machinery/computer{ + desc = "A computer long since rendered non-functional due to lack of maintenance. Spitting out error messages."; + dir = 1; + name = "Broken Computer" + }, +/obj/item/dice/d2, +/obj/structure/cable{ + icon_state = "0-8" + }, +/obj/item/radio/intercom{ + pixel_x = 28; + pixel_y = -2 + }, +/obj/effect/decal/cleanable/dust, +/obj/machinery/light/small{ + dir = 4; + pixel_y = 8 + }, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"Gw" = ( +/obj/effect/decal/warning_stripes/north, +/obj/machinery/atmospherics/pipe/manifold/visible, +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3"; + tag = "icon-heater (NORTH)" + }, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"Gz" = ( +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/lavaland/surface/outdoors) +"GM" = ( +/obj/structure/flora/ash/stem_shroom, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Hl" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Hx" = ( +/obj/item/stack/ore/gold{ + pixel_x = -3; + pixel_y = 8 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"HS" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"HZ" = ( +/obj/effect/spawner/lootdrop/maintenance/double, +/obj/structure/closet/crate, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Ia" = ( +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ik" = ( +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2; + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers{ + dir = 5 + }, +/obj/item/healthanalyzer/advanced, +/obj/item/reagent_containers/glass/bottle/charcoal{ + pixel_x = -9; + pixel_y = 11 + }, +/obj/item/storage/pill_bottle/painkillers{ + pixel_x = 7; + pixel_y = 5 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"IG" = ( +/obj/effect/decal/warning_stripes/southwest{ + color = "1F1F1F" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"IZ" = ( +/obj/effect/decal/warning_stripes/south, +/obj/structure/cable/cyan{ + icon_state = "6-9" + }, +/obj/structure/cable/blue{ + icon_state = "6-8" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ja" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/item/sensor_device{ + pixel_x = -9; + pixel_y = -2 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Jb" = ( +/obj/structure/barricade/wooden, +/obj/effect/decal/cleanable/blood/tracks, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Jf" = ( +/obj/structure/dispenser/oxygen, +/obj/effect/decal/warning_stripes/southwest, +/obj/machinery/light/small{ + dir = 4 + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ju" = ( +/obj/item/kitchen/knife{ + pixel_x = 8; + pixel_y = 10 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"JM" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 + }, +/obj/effect/decal/cleanable/blood/gibs/robot/down, +/obj/item/light/tube/large, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"JQ" = ( +/obj/effect/mapping_helpers/no_lava, +/obj/structure/flora/ausbushes/ywflowers/hell, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Kb" = ( +/obj/machinery/computer{ + desc = "A computer long since rendered non-functional due to lack of maintenance. Spitting out error messages."; + dir = 1; + name = "Broken Computer" + }, +/obj/item/holder/parrot{ + name = "pepper" + }, +/obj/item/radio/intercom{ + pixel_x = 28; + pixel_y = -2 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"Kl" = ( +/obj/structure/railing{ + dir = 8 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/stairs{ + color = "4d4d4d"; + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ky" = ( +/obj/effect/decal/warning_stripes/east, +/obj/effect/decal/cleanable/glass, +/obj/effect/landmark/tiles/burnturf, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"KA" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 38 + }, +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 38; + pixel_x = -13 + }, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"KD" = ( +/obj/effect/decal/cleanable/dust, +/obj/machinery/disco, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"KE" = ( +/obj/structure/grille/broken, +/obj/structure/flora/ash/leaf_shroom, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"KH" = ( +/obj/structure/ore_box, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"La" = ( +/obj/structure/flora/ausbushes/fullgrass/hell, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Lg" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = -10 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Lq" = ( +/obj/structure/chair/comfy/shuttle{ + dir = 8 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"LM" = ( +/obj/structure/grille, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"LQ" = ( +/obj/structure/flora/ash/cacti, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"LZ" = ( +/obj/structure/cable/yellow{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/item/gps{ + pixel_x = -9; + pixel_y = 6 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 9 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"Mc" = ( +/obj/item/clothing/suit/hooded/goliath{ + pixel_y = -6; + pixel_x = -8 + }, +/obj/effect/decal/cleanable/blood/old, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Md" = ( +/obj/effect/decal/warning_stripes/yellow/partial, +/obj/effect/decal/warning_stripes/arrow{ + color = "EDCBFF" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"MC" = ( +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"MP" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 1; + pixel_x = 19 + }, +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = -13 + }, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"MV" = ( +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Nc" = ( +/obj/structure/railing/corner{ + dir = 1 + }, +/obj/structure/cable/pink{ + icon_state = "5-8" + }, +/obj/item/stack/sheet/metal{ + amount = 10; + pixel_x = -13; + pixel_y = -13 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ng" = ( +/obj/structure/table/reinforced, +/obj/item/reagent_containers/food/pill/zoom{ + pixel_y = -3; + pixel_x = 4 + }, +/obj/item/trash/spentcasing{ + pixel_x = 7; + pixel_y = 7 + }, +/obj/item/trash/spentcasing{ + pixel_x = -5; + pixel_y = 2 + }, +/obj/item/trash/spentcasing{ + pixel_x = -7; + pixel_y = 9 + }, +/obj/item/reagent_containers/food/pill/zoom{ + pixel_y = -3; + pixel_x = -8 + }, +/obj/machinery/light_switch{ + pixel_x = 22; + pixel_y = 10 + }, +/obj/machinery/status_display{ + pixel_y = -32 + }, +/turf/simulated/floor/engine, +/area/ruin/powered/pirateship) +"Nt" = ( +/obj/effect/decal/warning_stripes/yellow, +/obj/item/extinguisher{ + pixel_y = 5; + pixel_x = 7 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"NH" = ( +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 4; + pixel_y = -4; + pixel_x = -2 + }, +/obj/item/reagent_containers/syringe{ + pixel_y = -11 + }, +/obj/item/reagent_containers/glass/bottle/morphine{ + pixel_x = -10; + pixel_y = -7 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"NW" = ( +/obj/item/stack/rods/ten{ + pixel_x = 9; + pixel_y = -13 + }, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Oo" = ( +/obj/structure/rack, +/obj/structure/railing, +/obj/machinery/power/apc/worn_out{ + cell_type = 0; + dir = 8; + pixel_x = -24 + }, +/obj/effect/decal/warning_stripes/south, +/obj/structure/cable/blue{ + icon_state = "4-8" + }, +/obj/item/pickaxe/drill{ + pixel_y = 1; + pixel_x = -1 + }, +/obj/effect/decal/cleanable/dust, +/obj/item/pickaxe/drill{ + pixel_y = -4 + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ot" = ( +/obj/structure/spider/stickyweb, +/obj/structure/toilet, +/obj/structure/curtain/open/shower/security, +/obj/structure/spider/cocoon, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ow" = ( +/obj/effect/decal/warning_stripes/east, +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"OA" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 9 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 9 + }, +/obj/structure/extinguisher_cabinet{ + pixel_x = 28 + }, +/obj/structure/closet/crate/trashcart, +/obj/item/trash/tastybread, +/obj/item/trash/syndi_cakes, +/obj/item/trash/sosjerky, +/obj/item/trash/raisins, +/obj/item/trash/pistachios, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"OE" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/structure/closet/hydrant{ + pixel_x = -32 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"OI" = ( +/obj/item/reagent_containers/food/drinks/bottle/absinthe/premium{ + pixel_x = -5; + pixel_y = -6 + }, +/obj/structure/fermenting_barrel{ + pixel_y = 3; + pixel_x = 8 + }, +/obj/item/reagent_containers/food/drinks/bottle/absinthe/premium{ + pixel_x = 3; + pixel_y = -10 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Pf" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + dir = 8; + id_tag = "pcarrier_windows" + }, +/turf/simulated/floor/plating, +/area/ruin/powered/pirateship) +"Py" = ( +/obj/machinery/power/terminal, +/obj/machinery/atmospherics/binary/dp_vent_pump{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + dir = 9; + pixel_x = -2 + }, +/obj/structure/cable/green{ + icon_state = "0-8" + }, +/obj/effect/decal/warning_stripes/northeastcorner, +/obj/structure/closet/walllocker/emerglocker/east, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"PA" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/blue{ + icon_state = "4-8" + }, +/obj/structure/cable/orange{ + icon_state = "5-9" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"PT" = ( +/obj/machinery/atmospherics/binary/pump, +/obj/structure/cable/yellow{ + icon_state = "1-8" + }, +/obj/effect/decal/cleanable/glass{ + pixel_x = -9; + pixel_y = 12 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"PX" = ( +/obj/item/stack/rods/ten{ + pixel_x = 1; + pixel_y = 9 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"PY" = ( +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 8 + }, +/obj/structure/window/plasmareinforced{ + color = 000000; + dir = 1 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"Qa" = ( +/obj/item/clothing/suit/pirate_brown, +/obj/effect/decal/fakelattice, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Qz" = ( +/obj/structure/window/reinforced{ + dir = 4 + }, +/obj/structure/rack, +/obj/item/storage/pill_bottle/random_drug_bottle{ + pixel_y = 3; + pixel_x = -6 + }, +/obj/item/storage/pill_bottle/random_drug_bottle{ + pixel_y = -2; + pixel_x = 6 + }, +/obj/item/storage/pill_bottle/random_drug_bottle, +/obj/machinery/vending/wallmed{ + pixel_y = -30 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"QD" = ( +/obj/structure/table, +/obj/machinery/light/small{ + dir = 4 + }, +/obj/effect/decal/cleanable/dust, +/obj/item/reagent_containers/food/drinks/bottle/rum{ + pixel_x = -7; + pixel_y = 9 + }, +/obj/item/reagent_containers/food/drinks/bottle/rum{ + pixel_y = 9; + pixel_x = 5 + }, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"QL" = ( +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"QT" = ( +/obj/machinery/atmospherics/unary/vent_pump{ + dir = 4; + pixel_y = -4 + }, +/obj/structure/cable/green{ + icon_state = "1-6" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"QU" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/manifold/visible/supply{ + dir = 4; + pixel_x = -2 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/item/newspaper{ + pixel_x = -4; + pixel_y = -2 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"QV" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/machinery/door/airlock/external/glass, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"QY" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/effect/decal/cleanable/dust, +/obj/structure/cable/yellow{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ro" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Ry" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/manifold/visible/supply{ + dir = 4; + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/manifold/visible/scrubbers{ + dir = 4 + }, +/obj/item/storage/pill_bottle/happy{ + pixel_x = -11; + pixel_y = -4 + }, +/obj/effect/decal/cleanable/dust, +/obj/item/reagent_containers/food/pill/rum{ + pixel_x = 12; + pixel_y = -8 + }, +/obj/item/reagent_containers/food/pill/rum{ + pixel_x = 5; + pixel_y = -4 + }, +/obj/item/reagent_containers/food/pill/rum{ + pixel_x = -3; + pixel_y = -6 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"RJ" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + id_tag = "pcarrier_windows" + }, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"RZ" = ( +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Sd" = ( +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3_side"; + tag = "icon-heater (NORTH)" + }, +/obj/machinery/power/terminal{ + dir = 1 + }, +/obj/machinery/door/window/northright{ + name = "Engine Access" + }, +/obj/machinery/atmospherics/pipe/cap/visible/supply{ + dir = 1; + pixel_x = 3 + }, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + dir = 9; + pixel_x = 1 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Sz" = ( +/obj/effect/decal/cleanable/blood/tracks, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"SH" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 20; + pixel_x = 10 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Tl" = ( +/obj/effect/decal/cleanable/dust, +/obj/item/clothing/under/pirate, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Tr" = ( +/obj/item/trash/broken_ashtray{ + name = "trash"; + pixel_x = -6; + pixel_y = -10 + }, +/obj/item/stack/cable_coil/blue{ + amount = 1 + }, +/obj/effect/decal/fakelattice, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"TD" = ( +/obj/structure/computerframe, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"TP" = ( +/obj/effect/mob_spawn/human/corpse/pirate/ranged, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Ua" = ( +/obj/machinery/door/airlock/hatch, +/obj/structure/barricade/wooden/crude, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Uf" = ( +/obj/structure/flora/ausbushes/fernybush/hell, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Uk" = ( +/obj/structure/sign/cargo, +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/ruin/powered/pirateship) +"Uq" = ( +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 8 + }, +/obj/effect/decal/cleanable/dust, +/obj/structure/cable/orange{ + icon_state = "1-2" + }, +/obj/structure/cable/yellow{ + icon_state = "2-4" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"UD" = ( +/obj/machinery/smartfridge/secure/medbay/organ{ + name = "smart organ storage"; + req_access = null + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"UG" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"UI" = ( +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"UW" = ( +/obj/machinery/light/small{ + dir = 4 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/powered/pirateship) +"Vm" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Vq" = ( +/obj/effect/spawner/lootdrop/maintenance/double, +/obj/structure/closet/crate, +/obj/item/clothing/neck/cloak/quartermaster, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Vx" = ( +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 1 + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 1 + }, +/obj/structure/cable/white{ + icon_state = "2-8" + }, +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dust, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Vz" = ( +/obj/item/stack/medical/bruise_pack{ + pixel_x = -11; + pixel_y = 12 + }, +/obj/effect/decal/warning_stripes/west, +/obj/item/mop{ + pixel_y = -17; + pixel_x = -6 + }, +/obj/item/reagent_containers/glass/bucket{ + pixel_y = -7; + pixel_x = -9 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"VX" = ( +/turf/simulated/wall/mineral/plastitanium, +/area/ruin/powered/pirateship) +"VY" = ( +/obj/effect/decal/cleanable/dust, +/obj/effect/landmark/tiles/damageturf, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) +"Wc" = ( +/obj/structure/cable/blue{ + icon_state = "4-8" + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply, +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, +/obj/structure/cable/orange{ + icon_state = "1-8" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ws" = ( +/obj/structure/flora/ash/leaf_shroom, +/obj/effect/decal/cleanable/dust, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"WC" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/structure/cable/yellow{ + d1 = 1; + d2 = 2; + icon_state = "1-5" + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"WM" = ( +/obj/structure/flora/rock/lava1, +/obj/structure/flora/ausbushes/fullgrass/hell, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"WT" = ( +/obj/structure/barricade/wooden, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"WV" = ( +/obj/effect/decal/warning_stripes/north, +/obj/structure/shuttle/engine/heater{ + icon_state = "heater3x3_side_inv"; + tag = "icon-heater (NORTH)" + }, +/obj/machinery/power/terminal{ + dir = 1 + }, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"WX" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/effect/decal/warning_stripes/north, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers{ + dir = 5 + }, +/obj/item/stack/sheet/mineral/plasma{ + amount = 5; + pixel_x = 5; + pixel_y = 4 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"WZ" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters, +/turf/simulated/floor/plating, +/area/ruin/powered/pirateship) +"Xk" = ( +/obj/item/reagent_containers/food/condiment/rice, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Xo" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/machinery/door/airlock/glass, +/turf/simulated/floor/pod/dark, +/area/ruin/powered/pirateship) +"XA" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/item/stack/sheet/metal{ + amount = 20; + pixel_x = -5; + pixel_y = 5 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"XF" = ( +/obj/effect/decal/cleanable/blood/drip{ + pixel_y = 38; + pixel_x = -13 + }, +/turf/simulated/floor/engine{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"XJ" = ( +/obj/effect/landmark/tiles/burnturf, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plating, +/area/lavaland/surface/outdoors) +"XL" = ( +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/lavaland/surface/outdoors) +"XR" = ( +/obj/item/stack/rods/ten{ + pixel_x = -6; + pixel_y = 7 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"XV" = ( +/obj/item/cigbutt/cigarbutt{ + pixel_y = 10; + pixel_x = 9 + }, +/obj/effect/decal/cleanable/blood/tracks, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Yj" = ( +/obj/machinery/atmospherics/pipe/simple/visible/yellow, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2 + }, +/obj/machinery/atmospherics/pipe/simple/visible/scrubbers, +/obj/item/stack/medical/ointment{ + pixel_x = -8; + pixel_y = -9 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"Ym" = ( +/obj/item/stack/rods/ten{ + pixel_y = 15; + pixel_x = 4 + }, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"Yt" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + dir = 8 + }, +/turf/simulated/floor/plating, +/area/ruin/powered/pirateship) +"Yw" = ( +/obj/machinery/atmospherics/binary/pump, +/obj/machinery/atmospherics/pipe/simple/visible/supply{ + pixel_x = -2; + dir = 5 + }, +/obj/structure/cable/green{ + icon_state = "1-4" + }, +/obj/structure/cable/green{ + icon_state = "1-8" + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"YH" = ( +/obj/structure/cable{ + icon_state = "1-8" + }, +/obj/effect/decal/warning_stripes/east, +/obj/item/stack/sheet/mineral/plasma{ + amount = 5; + pixel_x = -2; + pixel_y = 4 + }, +/turf/simulated/floor/pod/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"YV" = ( +/obj/structure/flora/ash/leaf_shroom, +/obj/effect/mapping_helpers/no_lava, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/lavaland/surface/outdoors) +"YY" = ( +/obj/item/stack/ore/gold{ + pixel_y = -7; + pixel_x = -10 + }, +/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface, +/area/ruin/unpowered/safe_cave) +"Zm" = ( +/obj/structure/lattice/catwalk/fireproof, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/lavaland/surface/outdoors) +"Zw" = ( +/obj/machinery/constructable_frame/machine_frame, +/obj/item/mounted/frame/firealarm{ + pixel_y = -8 + }, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor/plasteel/dark{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ZL" = ( +/obj/effect/decal/warning_stripes/west{ + color = "1F1F1F" + }, +/turf/simulated/floor/mineral/plastitanium{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/ruin/powered/pirateship) +"ZT" = ( +/obj/effect/spawner/window/shuttle/gray, +/obj/machinery/door/poddoor/shutters{ + dir = 2; + id_tag = "pcarrier_bridge" + }, +/turf/simulated/floor/plating, +/area/ruin/powered/pirateship) +"ZV" = ( +/obj/effect/landmark/tiles/damageturf, +/obj/effect/decal/cleanable/dust, +/turf/simulated/floor{ + nitrogen = 23; + oxygen = 14; + temperature = 300 + }, +/area/lavaland/surface/outdoors) + +(1,1,1) = {" +cX +cX +cX +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +cX +cX +QL +QL +QL +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +cX +cX +"} +(2,1,1) = {" +cX +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +oi +QL +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +EN +EN +QL +YV +QL +EN +EN +cX +cX +cX +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +cX +"} +(3,1,1) = {" +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +jB +wO +QL +QL +xb +xb +bS +Gz +EN +EN +EN +EN +EN +EN +EN +QL +QL +QL +EN +EN +EN +EN +cX +EN +EN +EN +EN +EN +EN +EN +EN +LQ +LQ +LQ +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +"} +(4,1,1) = {" +cX +cX +cX +cX +cX +EN +EN +EN +EN +Mc +nT +EN +qk +gJ +yP +yP +es +QL +DZ +gu +QL +EN +EN +EN +EN +EN +QL +QL +QL +QL +QL +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +LQ +uS +gR +uS +LQ +EN +EN +EN +EN +cX +cX +cX +cX +cX +"} +(5,1,1) = {" +cX +cX +cX +cX +EN +EN +EN +uS +TP +md +uS +WT +QL +qd +QL +QL +DD +xQ +QL +MV +QL +QL +QL +gL +EN +QL +XL +XL +XL +pY +sR +QL +EN +EN +EN +EN +EN +EN +EN +uS +uS +uS +uS +uS +uS +uS +LQ +EN +EN +EN +EN +cX +cX +cX +cX +cX +"} +(6,1,1) = {" +cX +cX +cX +cX +EN +EN +EN +EN +uS +qC +Sz +Jb +EE +EE +po +QL +QL +QL +yP +yP +yP +QL +sR +QL +QL +XL +XL +XL +XL +XL +XL +QL +QL +QL +sR +QL +QL +QL +YV +uS +uS +uS +uS +gR +uS +LQ +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +"} +(7,1,1) = {" +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +QL +QL +yP +QL +QL +QL +QL +yP +zP +QL +QL +XL +XL +XL +XL +XL +XL +sR +QL +QL +QL +QL +QL +QL +QL +LQ +EN +EN +LQ +LQ +LQ +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +"} +(8,1,1) = {" +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +QL +Uf +XL +XL +XJ +xz +QL +QL +sR +sR +yP +sG +ZV +QL +La +XL +XL +XL +QL +YV +XL +XL +XL +fm +QL +QL +La +XL +XL +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +"} +(9,1,1) = {" +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +QL +XL +XL +XL +yA +Ow +nM +zY +Hl +DD +ZV +DD +xz +xz +HS +QL +QL +QL +QL +XL +XL +XL +XL +XL +XL +XL +XL +XL +XL +XL +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +"} +(10,1,1) = {" +cX +cX +cX +EN +EN +EN +EN +EN +uS +uS +EN +EN +Uf +XL +XL +XL +XL +XL +XL +Ky +kQ +yP +yP +yP +DD +jt +nM +QL +QL +dT +QL +oi +XL +VX +eG +eG +eG +RJ +eG +VX +XL +XL +XL +QL +QL +QL +QL +QL +EN +EN +EN +EN +EN +cX +cX +cX +"} +(11,1,1) = {" +cX +cX +EN +EN +EN +EN +ts +kV +uS +ts +EN +EN +XL +XL +XL +XL +XL +XL +XL +QL +QL +sR +QL +QL +QL +QL +Ws +cZ +QL +QL +PX +sR +eG +eG +lc +FC +eG +UD +Bw +eG +VX +QL +QL +QL +VX +eG +QL +GM +QL +QL +EN +EN +EN +cX +cX +cX +"} +(12,1,1) = {" +cX +EN +EN +EN +EN +HZ +Hx +ts +uS +Ro +uS +uS +XL +XL +EN +EN +XL +XL +XL +JQ +QL +QL +QL +pY +QL +QL +QL +yP +rE +dT +LM +QL +eG +Ot +eE +xt +eG +Ep +NH +mA +eG +eG +eG +eG +eG +PY +DO +QL +fm +QL +EN +EN +EN +cX +cX +cX +"} +(13,1,1) = {" +cX +EN +EN +EN +Vq +YY +uS +uS +Ro +kV +BK +jn +XL +XL +EN +EN +EN +XL +XL +XL +sR +QL +QL +QL +QL +QL +QL +Ju +DD +NW +jY +qH +eG +eG +Ua +eG +eG +gl +Ik +Qz +eG +hM +At +br +CX +vg +QL +QL +QL +QL +QL +EN +EN +EN +cX +cX +"} +(14,1,1) = {" +cX +EN +EN +EN +nl +XV +Sz +kV +SH +EZ +ll +em +XL +XL +XL +EN +jP +XL +XL +XL +KE +eG +eG +WZ +WZ +eG +Xk +UI +yP +DD +DD +yP +WC +Xo +XA +OE +UG +Ja +Ry +Yj +QV +WX +QU +Yw +yd +by +QL +QL +QL +QL +Fm +QL +EN +EN +cX +cX +"} +(15,1,1) = {" +cX +EN +EN +EN +fH +uS +uS +uS +uS +Lg +kj +tv +XL +XL +XL +XL +DZ +XL +XL +XL +hE +hE +hE +nD +jx +eG +Ff +QD +eO +lB +BC +ng +Zw +eG +jK +Bd +DK +Vz +nz +Jf +eG +iN +YH +Py +Sd +vg +DO +QL +fm +XL +QL +QL +EN +EN +EN +cX +"} +(16,1,1) = {" +cX +EN +EN +EN +OI +BI +BI +uS +uS +uS +uS +EN +XL +XL +XL +XL +XL +XL +XL +VX +eG +eG +eG +eG +jc +eG +eG +eG +eG +Cs +Vm +sU +nE +eG +eG +eG +lU +lU +lU +eG +eG +eG +ur +eG +eG +vH +sR +QL +XL +XL +XL +XL +QL +EN +EN +cX +"} +(17,1,1) = {" +cX +cX +EN +EN +EN +EN +EN +fy +fy +EN +EN +EN +XL +XL +XL +XL +XL +XL +XL +ix +ix +VX +eG +zW +ca +Oo +DG +TD +Uk +rF +hW +mC +eG +VX +XL +XL +XL +XL +XL +XL +XL +QL +QL +QL +VX +eG +QL +QL +XL +XL +XL +XL +QL +EN +EN +cX +"} +(18,1,1) = {" +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +XL +XL +XL +XL +XL +XL +XL +Ia +MP +XF +nL +Md +KH +IZ +vW +QT +Kl +Nc +PA +fW +fC +XL +XL +XL +XL +XL +XL +XL +XL +XL +QL +QL +GM +QL +sR +QL +XL +XL +XL +XL +XL +EN +EN +cX +"} +(19,1,1) = {" +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +La +XL +XL +XL +XL +XL +XL +aw +KA +wS +ls +Md +oG +aO +bK +JM +hT +oT +Wc +fW +fC +XL +XL +XL +XL +XL +XL +XL +XL +XL +QL +QL +QL +QL +QL +sR +QL +XL +XL +XL +XL +EN +EN +cX +"} +(20,1,1) = {" +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +La +XL +XL +XL +XL +XL +XL +aL +VX +eG +Nt +lY +eb +UW +CI +BO +qF +Gb +kA +eG +VX +XL +XL +XL +XL +XL +XL +XL +XL +QL +QL +QL +QL +QL +QL +QL +jB +XL +XL +XL +EN +EN +cX +"} +(21,1,1) = {" +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +XL +XL +Zm +Zm +Zm +VX +eG +eG +eG +eG +eT +eG +eG +eG +eG +nt +EW +iX +kT +eG +eG +eG +RJ +su +RJ +XL +XL +WM +QL +QL +QL +QL +GM +QL +QL +QL +XL +XL +Fm +EN +EN +cX +"} +(22,1,1) = {" +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +XL +XL +XL +XL +XL +cy +gV +hE +hE +mm +jj +eG +ZL +Cu +IG +sw +Vx +gW +oL +DN +nc +wp +wp +Uq +wp +XL +La +QL +QL +GM +QL +QL +QL +QL +QL +QL +QL +XL +QL +EN +EN +EN +"} +(23,1,1) = {" +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +La +XL +XL +XL +XL +cy +cy +cy +eG +Yt +zM +eG +dy +Eh +gC +rq +OA +eG +eG +eG +eG +eG +eG +QY +eG +QL +QL +QL +sR +sR +QL +QL +QL +QL +QL +QL +QL +jB +QL +EN +EN +EN +"} +(24,1,1) = {" +EN +EN +EN +EN +EN +EN +MC +EN +EN +EN +EN +EN +EN +EN +QL +La +XL +XL +XL +XL +XL +iv +iv +XL +XL +VX +eG +eG +eG +Ce +eG +eG +DY +kr +pi +do +Tl +wX +FV +jm +xj +gQ +QL +QL +QL +QL +QL +QL +GM +QL +QL +QL +QL +EN +EN +EN +"} +(25,1,1) = {" +EN +EN +EN +EN +EN +MC +MC +MC +EN +EN +EN +EN +EN +EN +EN +QL +La +XL +XL +XL +XL +XL +XL +XL +XL +XL +XL +eG +hu +LZ +yg +eG +qP +ob +ze +KD +kF +gk +QL +kI +Qa +jm +RZ +QL +sR +QL +QL +VX +eG +QL +QL +QL +EN +EN +EN +EN +"} +(26,1,1) = {" +EN +EN +EN +EN +EN +MC +MC +MC +MC +Af +EN +EN +EN +EN +EN +EN +QL +QL +Uf +XL +XL +XL +XL +XL +XL +XL +XL +ZT +nx +ru +AY +eG +eG +Pf +eG +jm +mY +QL +xT +Ym +pB +VY +jm +xa +QL +ur +eG +eG +PY +DO +QL +EN +EN +EN +EN +EN +"} +(27,1,1) = {" +EN +EN +EN +EN +EN +EN +MC +MC +uS +uS +uS +uS +uS +uS +uS +uS +QL +QL +QL +Uf +XL +XL +XL +XL +XL +XL +XL +ZT +Lq +oE +Ng +eG +VX +QL +QL +QL +qk +QL +QL +XR +QL +xz +VY +nh +QL +nF +mb +WV +vg +QL +QL +EN +EN +EN +EN +cX +"} +(28,1,1) = {" +cX +EN +EN +EN +EN +EN +MC +xd +uS +uS +fR +uS +uS +uS +uS +uS +QL +QL +QL +QL +QL +EN +QL +QL +XL +XL +QL +ZT +Kb +Gj +eG +VX +QL +QL +QL +QL +QL +sR +sR +zt +mY +QL +jm +Tr +do +oq +PT +Gw +by +QL +EN +EN +EN +EN +cX +cX +"} +(29,1,1) = {" +cX +EN +EN +EN +EN +EN +uS +uS +uS +uS +uS +uS +wN +uS +uS +Af +EN +EN +EN +EN +EN +EN +EN +pY +QL +QL +QL +VX +eG +eG +VX +QL +QL +QL +QL +QL +QL +sR +QL +QL +QL +QL +QL +eG +ap +gi +EQ +Ez +vg +DO +EN +EN +EN +EN +cX +cX +"} +(30,1,1) = {" +cX +cX +EN +EN +EN +EN +EN +EN +EN +FK +uS +uS +uS +uS +FK +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +QL +QL +QL +QL +QL +QL +YV +QL +QL +sR +sR +sR +QL +qk +sR +QL +eG +eG +eG +eG +eG +vH +QL +EN +EN +cX +cX +cX +cX +"} +(31,1,1) = {" +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +QL +QL +QL +QL +QL +QL +YV +QL +QL +QL +QL +QL +eG +VX +EN +EN +EN +VX +eG +EN +EN +cX +cX +cX +cX +cX +"} +(32,1,1) = {" +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +QL +QL +QL +QL +QL +QL +QL +QL +QL +QL +QL +VX +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +"} +(33,1,1) = {" +cX +cX +cX +cX +cX +cX +cX +cX +EN +EN +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +cX +QL +QL +QL +QL +QL +QL +QL +QL +QL +QL +EN +EN +EN +EN +EN +EN +EN +cX +cX +cX +cX +cX +cX +cX +"} diff --git a/_maps/map_files/cerestation/Lavaland.dmm b/_maps/map_files/cerestation/Lavaland.dmm index 3cf9addac6a..957a2a29488 100644 --- a/_maps/map_files/cerestation/Lavaland.dmm +++ b/_maps/map_files/cerestation/Lavaland.dmm @@ -1602,16 +1602,6 @@ pixel_x = -2; pixel_y = -1 }, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, /turf/simulated/floor/plasteel{ icon_state = "brown" }, @@ -5841,6 +5831,9 @@ }, /area/mine/necropolis) "Kw" = ( +/obj/structure/closet/fishingrodcabinet{ + pixel_y = 32 + }, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "whiteblue"; @@ -7300,6 +7293,13 @@ /obj/machinery/tcomms/relay/mining, /turf/simulated/floor/plasteel/dark, /area/mine/maintenance) +"XJ" = ( +/obj/item/gps/ruin{ + pixel_y = 32; + gpstag = "OUTPOST" + }, +/turf/simulated/floor/plasteel, +/area/mine/production) "XN" = ( /obj/structure/stone_tile/slab, /obj/item/clockwork/clockgolem_remains, @@ -64588,7 +64588,7 @@ fO zo Oe TH -Oe +XJ Oe bq lC diff --git a/_maps/map_files/generic/CentComm.dmm b/_maps/map_files/generic/CentComm.dmm index 4893a6d8a88..91177bbf5cf 100644 --- a/_maps/map_files/generic/CentComm.dmm +++ b/_maps/map_files/generic/CentComm.dmm @@ -7705,10 +7705,6 @@ /obj/machinery/computer/syndie_supplycomp, /turf/simulated/floor/carpet, /area/syndicate_mothership/control) -"dVt" = ( -/obj/item/flag/nt, -/turf/simulated/floor/wood, -/area/centcom/specops) "dVZ" = ( /obj/effect/mapping_helpers/light{ light_power = 3 @@ -18524,6 +18520,9 @@ icon_state = "dark" }, /area/shuttle/administration) +"jLF" = ( +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/ruin/space/bubblegum_arena) "jLG" = ( /obj/structure/chair/comfy/shuttle, /turf/simulated/floor/shuttle, @@ -19886,6 +19885,8 @@ icon_state = "darkfull" }, /area/syndicate_mothership/jail) +"kzA" = ( +) "kzB" = ( /obj/structure/closet/secure_closet/freezer/kitchen, /obj/item/reagent_containers/food/condiment/flour, @@ -28456,6 +28457,9 @@ "odZ" = ( /turf/simulated/floor/wood, /area/centcom/evac) +"oeb" = ( +/turf/simulated/floor/indestructible/necropolis, +/area/ruin/space/bubblegum_arena) "oeH" = ( /obj/structure/closet/crate/can, /turf/simulated/floor/plasteel{ @@ -30521,6 +30525,10 @@ icon_state = "seadeep" }, /area/centcom/evac) +"oYK" = ( +/obj/structure/stone_tile/slab/burnt, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/ruin/space/bubblegum_arena) "oZd" = ( /obj/machinery/vending/wallmed/syndicate{ pixel_y = 32 @@ -38241,6 +38249,10 @@ }, /turf/simulated/floor/wood, /area/centcom/specops) +"sKc" = ( +/obj/structure/stone_tile/slab/cracked, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/ruin/space/bubblegum_arena) "sKd" = ( /obj/machinery/light{ dir = 8 @@ -40149,6 +40161,9 @@ /obj/item/reagent_containers/food/snacks/hotdog, /turf/simulated/floor/wood, /area/centcom/specops) +"tBa" = ( +/turf/simulated/wall/indestructible/necropolis, +/area/ruin/space/bubblegum_arena) "tBb" = ( /obj/structure/closet/secure_closet/security, /obj/item/clothing/mask/balaclava, @@ -40523,6 +40538,10 @@ icon_state = "dark" }, /area/syndicate_mothership/control) +"tJq" = ( +/obj/effect/landmark/spawner/bubblegum_arena, +/turf/simulated/floor/indestructible/necropolis, +/area/ruin/space/bubblegum_arena) "tJC" = ( /obj/machinery/light/small{ dir = 4 @@ -45883,6 +45902,12 @@ icon_state = "navybluecorners" }, /area/centcom/specops) +"whW" = ( +/obj/structure/stone_tile/surrounding/burnt, +/obj/structure/stone_tile/center/burnt, +/obj/effect/landmark/spawner/bubblegum, +/turf/simulated/floor/plating/lava/smooth/lava_land_surface, +/area/ruin/space/bubblegum_arena) "wid" = ( /obj/machinery/atmospherics/pipe/simple/visible{ dir = 4 @@ -96315,7 +96340,7 @@ tmQ qsJ vcj pLN -dVt +aoB kRE oIc oIc @@ -96950,39 +96975,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa mVX pNM mVX @@ -97078,7 +97103,7 @@ gcZ abk nAN bNp -dVt +aoB daM oIc oIc @@ -97207,39 +97232,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -97464,39 +97489,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +jLF +jLF +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +jLF +jLF +jLF +oeb +tBa mVX pNM mVX @@ -97721,39 +97746,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -97978,39 +98003,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -98235,39 +98260,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -98365,9 +98390,9 @@ nAN nAN nAN nAN -dVt +aoB fCV -dVt +aoB mPp rFY vIY @@ -98492,39 +98517,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -98749,39 +98774,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -99006,39 +99031,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -99263,39 +99288,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -99520,39 +99545,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -99777,39 +99802,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -99879,7 +99904,7 @@ afP aQn anK afP -dVt +aoB pFy fcv nWU @@ -100034,39 +100059,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -100291,39 +100316,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -100548,39 +100573,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oYK +oYK +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +tBa mVX pNM mVX @@ -100805,39 +100830,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +sKc +sKc +oYK +oYK +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -100907,7 +100932,7 @@ scN xpp dIs afP -dVt +aoB qMf fls fnW @@ -101062,39 +101087,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +sKc +sKc +sKc +whW +oYK +oYK +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -101319,39 +101344,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +sKc +sKc +sKc +sKc +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +tBa mVX pNM mVX @@ -101576,39 +101601,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oYK +oYK +sKc +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -101833,39 +101858,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oYK +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -102090,39 +102115,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -102347,39 +102372,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -102604,39 +102629,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +tBa mVX pNM mVX @@ -102861,39 +102886,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -103118,39 +103143,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -103375,39 +103400,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -103632,39 +103657,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -103889,39 +103914,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -104146,39 +104171,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tJq +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -104403,39 +104428,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +oeb +tBa mVX pNM mVX @@ -104660,39 +104685,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +jLF +jLF +jLF +jLF +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +jLF +jLF +jLF +jLF +oeb +tBa mVX pNM mVX @@ -104917,39 +104942,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +oeb +tBa mVX pNM mVX @@ -105174,39 +105199,39 @@ mVX mVX mVX mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX -mVX +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa +tBa mVX pNM mVX @@ -105808,7 +105833,7 @@ mCQ ruu gjP asI -dVt +kzA vxR wrh fAg diff --git a/_maps/map_files/generic/Lavaland.dmm b/_maps/map_files/generic/Lavaland.dmm index 02377be3f69..1fd1c316beb 100644 --- a/_maps/map_files/generic/Lavaland.dmm +++ b/_maps/map_files/generic/Lavaland.dmm @@ -794,6 +794,10 @@ /area/mine/eva) "bW" = ( /obj/structure/ore_box, +/obj/item/gps/ruin{ + pixel_y = 32; + gpstag = "OUTPOST" + }, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "purplecorner" @@ -1515,6 +1519,9 @@ /obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, /obj/item/reagent_containers/iv_bag/bloodsynthetic/nitrogenis, /obj/item/reagent_containers/iv_bag/bloodsynthetic/nitrogenis, +/obj/structure/closet/fishingrodcabinet{ + pixel_x = -32 + }, /turf/simulated/floor/plasteel/white, /area/mine/living_quarters) "dC" = ( @@ -5444,14 +5451,6 @@ pixel_x = -2; pixel_y = -1 }, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, -/obj/item/gps/mining, /turf/simulated/floor/plasteel, /area/mine/eva) "BF" = ( diff --git a/code/__DEFINES/dcs/signals.dm b/code/__DEFINES/dcs/signals.dm index c242a61efbf..582cd1be063 100644 --- a/code/__DEFINES/dcs/signals.dm +++ b/code/__DEFINES/dcs/signals.dm @@ -442,6 +442,9 @@ #define COMSIG_HOSTILE_ATTACKINGTARGET "hostile_attackingtarget" #define COMPONENT_HOSTILE_NO_ATTACK (1<<0) +/// Called when a /mob/living/simple_animal/hostile fines a new target: (atom/source, give_target) +#define COMSIG_HOSTILE_FOUND_TARGET "comsig_hostile_found_target" + // /obj signals ///from base of obj/deconstruct(): (disassembled) diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index b04e0213f55..944c79a8bb7 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -523,3 +523,6 @@ /// This isnt in client_defines due to scoping issues #define DEFAULT_CLIENT_VIEWSIZE "17x15" + +///Sleep check QDEL. Like sleep check death, but checks deleting. Good for non mobs. +#define SLEEP_CHECK_QDEL(X) sleep(X); if(QDELETED(src)) return; diff --git a/code/__DEFINES/sound.dm b/code/__DEFINES/sound.dm index 0353945618f..3af1dcd2b00 100644 --- a/code/__DEFINES/sound.dm +++ b/code/__DEFINES/sound.dm @@ -11,11 +11,12 @@ #define CHANNEL_JUSTICAR_ARK 1015 #define CHANNEL_TTS_LOCAL 1014 #define CHANNEL_TTS_RADIO 1013 +#define CHANNEL_BOSS_MUSIC 1012 //THIS SHOULD ALWAYS BE THE LOWEST ONE! //KEEP IT UPDATED -#define CHANNEL_HIGHEST_AVAILABLE 1012 +#define CHANNEL_HIGHEST_AVAILABLE 1011 #define MAX_INSTRUMENT_CHANNELS (128 * 6) diff --git a/code/__DEFINES/status_effects.dm b/code/__DEFINES/status_effects.dm index aafd1584fef..0556d84a51a 100644 --- a/code/__DEFINES/status_effects.dm +++ b/code/__DEFINES/status_effects.dm @@ -41,6 +41,8 @@ #define STATUS_EFFECT_HOPE /datum/status_effect/hope // Healing that scales when injured (but not in deep crit), and nice messages to keep the hope +#define STATUS_EFFECT_DRAGON_STRENGTH /datum/status_effect/dragon_strength //similar to hope, but less powerfull. + /// Rapid burn/brute/oxy/blood healing from the changeling ability #define STATUS_EFFECT_FLESHMEND /datum/status_effect/fleshmend @@ -90,6 +92,10 @@ #define STATUS_EFFECT_MARK_PREY /datum/status_effect/mark_prey +#define STATUS_EFFECT_BUBBLEGUM_CURSE /datum/status_effect/bubblegum_curse //Bleeding. Damage over time. Fog. And, of course, a suprise for people that try to run away. + +#define STATUS_EFFECT_DASH /datum/status_effect/dash // Grants the ability to dash, expiring after a few seconds + //#define STATUS_EFFECT_NECROPOLIS_CURSE /datum/status_effect/necropolis_curse //#define CURSE_BLINDING 1 //makes the edges of the target's screen obscured //#define CURSE_SPAWNING 2 //spawns creatures that attack the target only diff --git a/code/__HELPERS/filters.dm b/code/__HELPERS/filters.dm index 2d4d4b01e3e..f20b7346cb8 100644 --- a/code/__HELPERS/filters.dm +++ b/code/__HELPERS/filters.dm @@ -318,3 +318,7 @@ GLOBAL_LIST_INIT(master_filter_info, list( filter = in_atom.get_filter("wibbly-[i]") animate(filter) in_atom.remove_filter("wibbly-[i]") + +/// Used to create rays on an item. Make sure to "remove_filter("rays")" when done with it +/atom/proc/ray_filter_helper(_priority = 1, _size = 40, _color = "#FFFFFF", _factor = 6, _density = 20, _y = 0) + add_filter(name = "ray", priority = _priority, params = list(type = "rays", size = _size, color = _color , factor = _factor, density = _density, y = _y)) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index ad68a23efe2..40b7d1848dc 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1599,17 +1599,21 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) y = t_center.y + c_dist - 1 x = t_center.x + c_dist + var/list/temp_list_one = list() for(y in t_center.y-c_dist to y) T = locate(x,y,t_center.z) if(T) - L += T + temp_list_one += T + L += reverselist(temp_list_one) y = t_center.y - c_dist x = t_center.x + c_dist - 1 + var/list/temp_list_two = list() for(x in t_center.x-c_dist to x) T = locate(x,y,t_center.z) if(T) - L += T + temp_list_two += T + L += reverselist(temp_list_two) y = t_center.y - c_dist + 1 x = t_center.x - c_dist @@ -2063,6 +2067,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) return "TTS Local" if(CHANNEL_TTS_RADIO) return "TTS Radio" + if(CHANNEL_BOSS_MUSIC) + return "Boss Music" /proc/get_compass_dir(atom/start, atom/end) //get_dir() only considers an object to be north/south/east/west if there is zero deviation. This uses rounding instead. // Ported from CM-SS13 if(!start || !end) diff --git a/code/_globalvars/lists/objects.dm b/code/_globalvars/lists/objects.dm index a577f8043ce..f2cb1c94d46 100644 --- a/code/_globalvars/lists/objects.dm +++ b/code/_globalvars/lists/objects.dm @@ -48,6 +48,7 @@ GLOBAL_LIST_INIT(poi_list, list()) //list of points of interest for observe/ GLOBAL_LIST_INIT(active_jammers, list()) // List of active radio jammers GLOBAL_LIST_EMPTY(ladders) GLOBAL_LIST_EMPTY(mirrors) //list of all mirrors and mirror shields. +GLOBAL_LIST_EMPTY(anvils) //for use in founding world anvil GLOBAL_LIST_INIT(active_diseases, list()) //List of Active disease in all mobs; purely for quick referencing. diff --git a/code/_onclick/hud/fullscreen.dm b/code/_onclick/hud/fullscreen.dm index 20c8bf7b2d6..852b4ab8c3f 100644 --- a/code/_onclick/hud/fullscreen.dm +++ b/code/_onclick/hud/fullscreen.dm @@ -152,6 +152,11 @@ blend_mode = BLEND_ADD show_when_dead = TRUE +/obj/screen/fullscreen/fog + icon = 'icons/mob/screen_fog.dmi' + icon_state = "fog" + color = "#FF0000" + #undef FULLSCREEN_LAYER #undef BLIND_LAYER #undef CRIT_LAYER diff --git a/code/controllers/subsystem/weather.dm b/code/controllers/subsystem/weather.dm index f94de1a9bb1..00256564fb0 100644 --- a/code/controllers/subsystem/weather.dm +++ b/code/controllers/subsystem/weather.dm @@ -3,7 +3,7 @@ #define WIND_DOWN_STAGE 3 #define END_STAGE 4 -//Used for all kinds of weather, ex. lavaland ash storms. +/// Used for all kinds of weather, ex. lavaland ash storms. SUBSYSTEM_DEF(weather) name = "Weather" flags = SS_BACKGROUND diff --git a/code/datums/beam.dm b/code/datums/beam.dm index 76e292a4b29..90218fc1138 100644 --- a/code/datums/beam.dm +++ b/code/datums/beam.dm @@ -143,8 +143,39 @@ ..() A.ex_act(1) +/obj/effect/ebeam/vetus/Destroy() + for(var/mob/living/M in get_turf(src)) + M.electrocute_act(20, "the giant arc", safety = TRUE) + return ..() /atom/proc/Beam(atom/BeamTarget,icon_state="b_beam",icon='icons/effects/beam.dmi',time=50, maxdistance=10,beam_type=/obj/effect/ebeam,beam_sleep_time=3) var/datum/beam/newbeam = new(src,BeamTarget,icon,icon_state,time,maxdistance,beam_type,beam_sleep_time) INVOKE_ASYNC(newbeam, TYPE_PROC_REF(/datum/beam, Start)) return newbeam + +/obj/effect/ebeam/disintegration_telegraph + alpha = 100 + layer = ON_EDGED_TURF_LAYER + +/obj/effect/ebeam/disintegration + layer = ON_EDGED_TURF_LAYER + +/obj/effect/ebeam/disintegration/Crossed(atom/A, oldloc) + ..() + if(!isliving(A)) + return + var/mob/living/L = A + var/damage = 50 + if(L.stat == DEAD) + visible_message("[L] is disintegrated by the beam!") + L.dust() + if(isliving(owner.origin)) + var/mob/living/O = owner.origin + if(faction_check(O.faction, L.faction, FALSE)) + return + damage = 70 - ((O.health / O.maxHealth) * 20) + playsound(L,'sound/weapons/sear.ogg', 50, TRUE, -4) + to_chat(L, "You're struck by a disintegration laser!") + var/limb_to_hit = L.get_organ(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG)) + var/armor = L.run_armor_check(limb_to_hit, LASER) + L.apply_damage(damage, BURN, limb_to_hit, armor) diff --git a/code/datums/components/boss_music.dm b/code/datums/components/boss_music.dm new file mode 100644 index 00000000000..85af91c4d5e --- /dev/null +++ b/code/datums/components/boss_music.dm @@ -0,0 +1,70 @@ +/** + * Attaches to a hostile simplemob and plays that music while they have a target. + */ +/datum/component/boss_music + ///The music track we will play to players. + var/boss_track + ///How long the track is, used to clear players out when the music is supposed to end. + var/track_duration + + ///List of all mobs listening to the boss music currently. Cleared on Destroy or after `track_duration`. + var/list/players_listening_uids = list() + ///List of callback timers, used to clear out mobs listening to boss music after `track_duration`. + var/list/music_callbacks = list() + +/datum/component/boss_music/Initialize(boss_track, track_duration) + . = ..() + if(!ishostile(parent)) + return COMPONENT_INCOMPATIBLE + src.boss_track = boss_track + src.track_duration = track_duration + +/datum/component/boss_music/Destroy(force, silent) + . = ..() + for(var/callback in music_callbacks) + deltimer(callback) + music_callbacks = null + + for(var/player_refs in players_listening_uids) + clear_target(player_refs) + players_listening_uids = null + +/datum/component/boss_music/RegisterWithParent() + . = ..() + RegisterSignal(parent, COMSIG_HOSTILE_FOUND_TARGET, PROC_REF(on_target_found)) + +/datum/component/boss_music/UnregisterFromParent() + UnregisterSignal(parent, COMSIG_HOSTILE_FOUND_TARGET) + return ..() + +///Handles giving the boss music to a new target the fauna has recieved. +///Keeps track of them to not repeatedly overwrite its own track. +/datum/component/boss_music/proc/on_target_found(atom/source, mob/new_target) + SIGNAL_HANDLER + if(QDELETED(source) || !istype(new_target)) + return + + var/target_uid = new_target.UID() + if(target_uid in players_listening_uids) + return + + players_listening_uids += target_uid + RegisterSignal(new_target, COMSIG_MOB_DEATH, PROC_REF(on_mob_death)) + music_callbacks += addtimer(CALLBACK(src, PROC_REF(clear_target), target_uid), track_duration, TIMER_STOPPABLE) + new_target.playsound_local(new_target, boss_track, 200, FALSE, channel = CHANNEL_BOSS_MUSIC, pressure_affected = FALSE, use_reverb = FALSE) + +///Called when a mob listening to boss music dies- ends their music early. +/datum/component/boss_music/proc/on_mob_death(mob/living/source) + SIGNAL_HANDLER + var/target_uid = source.UID() + clear_target(target_uid) + +///Removes `old_target` from the list of players listening, and stops their music if it is still playing. +///This allows them to have music played again if they re-enter combat with this fauna. +/datum/component/boss_music/proc/clear_target(incoming_uid) + players_listening_uids -= incoming_uid + + var/mob/old_target = locateUID(incoming_uid) + if(old_target) + UnregisterSignal(old_target, COMSIG_MOB_DEATH) + old_target.stop_sound_channel(CHANNEL_BOSS_MUSIC) diff --git a/code/datums/ruins/lavaland.dm b/code/datums/ruins/lavaland.dm index 1bc18a5381b..9c463b4dccf 100644 --- a/code/datums/ruins/lavaland.dm +++ b/code/datums/ruins/lavaland.dm @@ -286,9 +286,27 @@ allow_duplicates = FALSE /datum/map_template/ruin/lavaland/weaver_nest - name = "Marrow Weaver nest" + name = "Marrow Weaver Nest" id = "marrownest" description = "A huge den of terrifyingly dangerous spiders along with their victims." suffix = "lavaland_surface_nest.dmm" cost = 10 allow_duplicates = FALSE + +/datum/map_template/ruin/lavaland/pirateship + name = "Wrecked Starwalker" + id = "pirateship" + description = "An old derelict pirate cruiser, now only a shadow of its former self." + suffix = "lavaland_surface_pirateship.dmm" + cost = 20 //huge + allow_duplicates = FALSE + +/* +/datum/map_template/ruin/lavaland/althland_facility + name = "Althland Facility" + id = "althlandfacility" + description = "Nanotrasen wasn't the only one company interested in plasma. Lavaland Filled with old derelict mining operations." + suffix = "lavaland_surface_althland_facility.dmm" + cost = 10 + allow_duplicates = FALSE +*/ diff --git a/code/datums/status_effects/buffs.dm b/code/datums/status_effects/buffs.dm index a0216a50fc1..7fe6aa94214 100644 --- a/code/datums/status_effects/buffs.dm +++ b/code/datums/status_effects/buffs.dm @@ -224,7 +224,7 @@ if(ishuman(owner)) var/mob/living/carbon/human/H = owner H.bodytemperature = H.dna.species.body_temperature - if(is_mining_level(H.z)) + if(is_mining_level(H.z) || istype(get_area(H), /area/ruin/space/bubblegum_arena)) for(var/thing in H.bodyparts) var/obj/item/organ/external/E = thing E.internal_bleeding = FALSE @@ -565,3 +565,59 @@ icon = 'icons/mob/actions/actions.dmi' icon_state = "blood_rush_status" +/datum/status_effect/dragon_strength //less powerfull than hope, but works the same way + id = "dragon strength" + duration = -1 + tick_interval = 3 SECONDS + status_type = STATUS_EFFECT_UNIQUE + alert_type = null + +/datum/status_effect/dragon_strength/tick() + if(owner.stat == DEAD || owner.health <= HEALTH_THRESHOLD_DEAD) // No dead healing, or healing in dead crit + return + if(owner.health > 30) + if(prob(2)) + war_message() + return + var/heal_multiplier = min(3, ((40 - owner.health) / 50 + 1)) // 1 hp at 40 health, 2 at -10, 3 at -60 + owner.adjustBruteLoss(-heal_multiplier * 0.5) + owner.adjustFireLoss(-heal_multiplier * 0.5) + owner.adjustOxyLoss(-heal_multiplier) + if(prob(5)) + hope_message() + +/datum/status_effect/dragon_strength/proc/hope_message() + var/list/hope_messages = list("You are filled with [pick("determination", "strength", "robustness", "power")].", + "Your most pleasant memories flash through your mind.", + "You can't give up, keep going!", + "Pull yourself together!", + "You are the strongest hunter, you can handle it!", + "Don't forget how you got this amulet, hunter!", + "All these persons are not nearly as powerful as you!", + "You ARE robust, don't you dare die now!", + "Some stupid scars can't stop you!", + "You still have monsters to kill, don't die!") + to_chat(owner, "[pick(hope_messages)]") + +/datum/status_effect/dragon_strength/proc/war_message() + var/list/war_messages = list("You feel incredible strength in your heart.", + "You feel a pleasant smell of human blood.", + "You feel envious glances.", + "You want to kill someone.", + "All your glorious battles flash through your memory.", + "No one can conquer you.", + "You can feel fire in your soul.", + "Don't forget how you got this amulet, hunter.") + to_chat(owner, "[pick(war_messages)]") + +/obj/screen/alert/status_effect/dash + name = "Dash" + desc = "You have the ability to dash!" + icon = 'icons/mob/actions/actions.dmi' + icon_state = "genetic_jump" + +/datum/status_effect/dash + id = "dash" + duration = 5 SECONDS + tick_interval = 0 + alert_type = /obj/screen/alert/status_effect/dash diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 6449952184b..3eb20b163c7 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -874,3 +874,140 @@ M.faction = tamer.faction to_chat(tamer, span_notice("[M] is now friendly after exposure to the flowers!")) . = ..() + +/datum/status_effect/bubblegum_curse + id = "bubblegum curse" + alert_type = /obj/screen/alert/status_effect/bubblegum_curse + duration = -1 //Kill it. There is no other option. + tick_interval = 1 SECONDS + /// The damage the status effect does per tick. + var/damage = 0.75 + var/source_UID + /// Are we starting the process to check if the person has still gotten out of range of bubble / crossed zlvls. + var/coward_checking = FALSE + +/datum/status_effect/bubblegum_curse/on_creation(mob/living/new_owner, mob/living/source) + . = ..() + source_UID = source.UID() + owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 1) + +/datum/status_effect/bubblegum_curse/tick() + var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) + if(!attacker || attacker.loc == null) + qdel(src) + return + if(attacker.health <= attacker.maxHealth / 2) + owner.clear_fullscreen("Bubblegum") + owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 2) + if(!coward_checking) + if(owner.z != attacker.z) + addtimer(CALLBACK(src, PROC_REF(onstation_coward_callback)), 12 SECONDS) + coward_checking = TRUE + else if(get_dist(attacker, owner) >= 25) + addtimer(CALLBACK(src, PROC_REF(runaway_coward_callback)), 12 SECONDS) + coward_checking = TRUE + + owner.apply_damage(damage, BRUTE) + if(ishuman(owner)) + var/mob/living/carbon/human/H = owner + H.bleed(0.33) + if(prob(5)) + to_chat(owner, "[pick("You feel your sins crawling on your back.", "You felt your sins weighing on your neck.", "You feel your blood pulsing inside you.", "YOU'LL NEVER ESCAPE ME", "YOU'LL DIE FOR INSULTING ME LIKE THIS")]") + +/datum/status_effect/bubblegum_curse/on_remove() + owner.clear_fullscreen("Bubblegum") + +/datum/status_effect/bubblegum_curse/proc/onstation_coward_callback() + coward_checking = FALSE + var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) + if(owner.z != attacker.z) + to_chat(owner, "YOU CHALLENGE ME LIKE THIS... AND YOU RUN WITH YOUR FALSE MAGICS?") + else + return + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "REALLY?") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "SUCH INSOLENCE!") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "SO PATHETIC...") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "...SO FOOLISH!") + get_over_here() + +/datum/status_effect/bubblegum_curse/proc/runaway_coward_callback() + coward_checking = FALSE + var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) + if(get_dist(attacker, owner) >= 25) + to_chat(owner, "My my, you can run FAST.") + else + return + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "I thought you wanted a true fight?") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "Perhaps I was mistaken.") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "You are a coward who does not want a fight...") + SLEEP_CHECK_QDEL(2 SECONDS) + to_chat(owner, "...BUT I WANT YOU DEAD!") + get_over_here() + +/datum/status_effect/bubblegum_curse/proc/get_over_here() + var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) + if(!attacker) + return //Let's not nullspace + if(attacker.loc == null) + return //Extra emergency safety. + var/turf/TA = get_turf(owner) + owner.Immobilize(3 SECONDS) + new /obj/effect/decal/cleanable/blood/bubblegum(TA) + new /obj/effect/temp_visual/bubblegum_hands/rightsmack(TA) + sleep(6) + var/turf/TB = get_turf(owner) + to_chat(owner, "[attacker] rends you!") + playsound(TB, attacker.attack_sound, 100, TRUE, -1) + owner.adjustBruteLoss(10) + new /obj/effect/decal/cleanable/blood/bubblegum(TB) + new /obj/effect/temp_visual/bubblegum_hands/leftsmack(TB) + sleep(6) + var/turf/TC = get_turf(owner) + to_chat(owner, "[attacker] rends you!") + playsound(TC, attacker.attack_sound, 100, TRUE, -1) + owner.adjustBruteLoss(10) + new /obj/effect/decal/cleanable/blood/bubblegum(TC) + new /obj/effect/temp_visual/bubblegum_hands/rightsmack(TC) + sleep(6) + var/turf/TD = get_turf(owner) + to_chat(owner, "[attacker] rends you!") + playsound(TD, attacker.attack_sound, 100, TRUE, -1) + owner.adjustBruteLoss(10) + new /obj/effect/temp_visual/bubblegum_hands/leftpaw(TD) + new /obj/effect/temp_visual/bubblegum_hands/leftthumb(TD) + sleep(8) + to_chat(owner, "[attacker] drags you through the blood!") + playsound(TD, 'sound/misc/enter_blood.ogg', 100, TRUE, -1) + var/turf/targetturf = get_step(attacker, attacker.dir) + owner.forceMove(targetturf) + playsound(targetturf, 'sound/misc/exit_blood.ogg', 100, TRUE, -1) + addtimer(CALLBACK(attacker, TYPE_PROC_REF(/mob/living/simple_animal/hostile/megafauna/bubblegum, FindTarget), list(owner), 1), 2) + +/obj/screen/alert/status_effect/bubblegum_curse + name = "I SEE YOU" + desc = "YOUR SOUL WILL BE MINE FOR YOUR INSOLENCE" + icon_state = "bubblegumjumpscare" + +/obj/screen/alert/status_effect/bubblegum_curse/Initialize(mapload) + . = ..() + START_PROCESSING(SSobj, src) + + +/obj/screen/alert/status_effect/bubblegum_curse/Destroy() + STOP_PROCESSING(SSobj, src) + return ..() + + +/obj/screen/alert/status_effect/bubblegum_curse/process() + var/new_filter = isnull(get_filter("ray")) + ray_filter_helper(1, 40,"#ce3030", 6, 20) + if(new_filter) + animate(get_filter("ray"), offset = 10, time = 10 SECONDS, loop = -1) + animate(offset = 0, time = 10 SECONDS) diff --git a/code/datums/status_effects/gas.dm b/code/datums/status_effects/gas.dm index 351203462ab..cde1e2097e5 100644 --- a/code/datums/status_effects/gas.dm +++ b/code/datums/status_effects/gas.dm @@ -42,5 +42,5 @@ UnregisterSignal(owner, COMSIG_LIVING_RESIST) /datum/status_effect/freon/watcher - duration = 8 + duration = 15 can_melt = FALSE diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 2d348e22357..3c10dc248bd 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -239,7 +239,16 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) reference = "KPM" item = /obj/item/borg/upgrade/modkit/indoors cost = 4 //you need two for full damage, so total of 8 for maximum damage - job = list("Shaft Miner") + job = list("Shaft Miner", "Quartermaster") + +/datum/uplink_item/jobspecific/mining_charge_hacker + name = "Mining Charge Hacker" + desc = "Looks and functions like an advanced mining scanner, but allows mining charges to be placed anywhere and destroy more than rocks. \ + Use it on a mining charge to override its safeties. Reduces explosive power of mining charges due to the modification of their internals." + reference = "MCH" + item = /obj/item/t_scanner/adv_mining_scanner/syndicate + cost = 4 + job = list("Shaft Miner", "Quartermaster") //Chef /datum/uplink_item/jobspecific/specialsauce diff --git a/code/game/area/areas/ruins/lavaland.dm b/code/game/area/areas/ruins/lavaland.dm index 1a5856ed014..b1fe29dc906 100644 --- a/code/game/area/areas/ruins/lavaland.dm +++ b/code/game/area/areas/ruins/lavaland.dm @@ -101,3 +101,12 @@ // This area exists so that lavaland ruins dont overwrite the baseturfs on regular space ruins /area/ruin/unpowered/misc_lavaruin + +//'safe' caves +/area/ruin/unpowered/safe_cave + icon_state = "dk_yellow" + +// pirate ship +/area/ruin/powered/pirateship + name = "Crashed Pirate Ship" + icon_state = "green" diff --git a/code/game/area/ss13_areas.dm b/code/game/area/ss13_areas.dm index 0f00b473784..3556d80ceb8 100644 --- a/code/game/area/ss13_areas.dm +++ b/code/game/area/ss13_areas.dm @@ -2929,6 +2929,9 @@ GLOBAL_LIST_INIT(the_station_areas, list( /area/turret_protected/ai, )) +//space area +/area/ruin/space/bubblegum_arena + name = "Bubblegum Arena" //// Special event areas diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 69a5c23be0f..297cfc90270 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -330,6 +330,7 @@ for(var/item in src) // Notify contents of Z-transition. This can be overridden if we know the items contents do not care. var/atom/movable/AM = item AM.onTransitZ(old_z,new_z) + SEND_SIGNAL(src, COMSIG_MOVABLE_Z_CHANGED) /mob/living/forceMove(atom/destination) if(buckled) diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index ab7edc257ce..89de9fdf567 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -4,7 +4,7 @@ desc = "An industrial \"U-Stor-It Storage\" unit designed to accommodate all types of spacesuits. \ Its onboard equipment also allows the user to decontaminate the contents through a UV-ray purging cycle." icon = 'icons/obj/machines/suit_storage.dmi' - icon_state = "close" + icon_state = "classic" anchored = TRUE density = TRUE max_integrity = 250 @@ -126,6 +126,7 @@ name = "mining suit storage unit" suit_type = /obj/item/clothing/suit/hooded/explorer mask_type = /obj/item/clothing/mask/gas/explorer + storage_type = /obj/item/gps/mining req_access = list(ACCESS_MINING_STATION) /obj/machinery/suit_storage_unit/cmo @@ -277,26 +278,26 @@ if(uv) if(uv_super) - add_overlay("super") + add_overlay("[icon_state]_super") else if(occupant) - add_overlay("uvhuman") + add_overlay("[icon_state]_uvhuman") else - add_overlay("uv") + add_overlay("[icon_state]_uv") else if(state_open) if(stat & BROKEN) - add_overlay("broken") + add_overlay("[icon_state]_broken") else - add_overlay("open") + add_overlay("[icon_state]_open") if(suit) - add_overlay("suit") + add_overlay("[icon_state]_suit") if(helmet) - add_overlay("helm") + add_overlay("[icon_state]_helm") if(storage) - add_overlay("storage") + add_overlay("[icon_state]_storage") else if(occupant) - add_overlay("human") + add_overlay("[icon_state]_human") if(!locked) - add_overlay("unlocked") + add_overlay("[icon_state]_unlocked") /obj/machinery/suit_storage_unit/attackby(obj/item/I, mob/user, params) if(shocked) @@ -332,7 +333,7 @@ if(shocked && !(stat & NOPOWER)) if(shock(user, 100)) return - default_deconstruction_screwdriver(user, "panel", "close", I) + default_deconstruction_screwdriver(user, "[icon_state]_panel", "[initial(icon_state)]", I) /obj/machinery/suit_storage_unit/proc/store_item(obj/item/I, mob/user) . = FALSE @@ -746,3 +747,21 @@ to_chat(user, span_warning("You burn the locking mechanism, unlocking it forever.")) do_sparks(5, 0, loc) playsound(loc, "sparks", 50, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) + +//pirate ssu +/obj/machinery/suit_storage_unit/industrial + name = "industrial suit storage unit" + desc = "An industrial unit made to hold and decontaminate irradiated equipment. It comes with a built-in UV cauterization mechanism. A small warning label advises that organic matter should not be placed into the unit." + icon_state = "industrial" + +/obj/machinery/suit_storage_unit/pirate + suit_type = /obj/item/clothing/suit/space/eva/pirate + helmet_type = /obj/item/clothing/head/helmet/space/eva/pirate + mask_type = /obj/item/clothing/mask/gas + storage_type = /obj/item/tank/internals/oxygen + +/obj/machinery/suit_storage_unit/industrial/pirate_leader + suit_type = /obj/item/clothing/suit/space/eva/pirate/leader + helmet_type = /obj/item/clothing/head/helmet/space/eva/pirate/leader + mask_type = /obj/item/clothing/mask/gas + storage_type = /obj/item/tank/internals/oxygen diff --git a/code/game/objects/effects/decals/Cleanable/misc.dm b/code/game/objects/effects/decals/Cleanable/misc.dm index cef1f9c62a6..ba18af078a6 100644 --- a/code/game/objects/effects/decals/Cleanable/misc.dm +++ b/code/game/objects/effects/decals/Cleanable/misc.dm @@ -227,3 +227,13 @@ icon_state = "xfloor1" random_icon_states = list("xfloor1", "xfloor2", "xfloor3", "xfloor4", "xfloor5", "xfloor6", "xfloor7") anchored = TRUE + +/obj/effect/decal/cleanable/glass + name = "tiny shards" + desc = "Back to sand." + icon = 'icons/obj/shards.dmi' + icon_state = "tiny" + anchored = TRUE + +/obj/effect/decal/cleanable/glass/plasma + icon_state = "plasmatiny" diff --git a/code/game/objects/effects/decals/misc.dm b/code/game/objects/effects/decals/misc.dm index 75c02c51f2e..ea49b353e56 100644 --- a/code/game/objects/effects/decals/misc.dm +++ b/code/game/objects/effects/decals/misc.dm @@ -74,3 +74,10 @@ /obj/effect/decal/ants/ComponentInitialize() . = ..() AddComponent(/datum/component/caltrop, 5, 5, 100, CALTROP_BYPASS_WALKERS, list("Kidan", "Wryn")) + +/obj/effect/decal/fakelattice + name = "lattice" + desc = "A lightweight support lattice." + icon = 'icons/obj/smooth_structures/lattice.dmi' + icon_state = "lattice" + density = FALSE diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm index 755020304fe..a0da2fa3d56 100644 --- a/code/game/objects/effects/landmarks.dm +++ b/code/game/objects/effects/landmarks.dm @@ -685,3 +685,14 @@ /obj/effect/landmark/battle_mob_point name = "Nanomob Battle Avatar Spawn Point" +/obj/effect/landmark/spawner/bubblegum_arena + name = "bubblegum_arena_human" + icon_state = "awaystart" + +/obj/effect/landmark/spawner/bubblegum + name = "bubblegum_arena_bubblegum" + icon_state = "bubblegumjumpscare" + +/obj/effect/landmark/spawner/bubblegum_exit + name = "bubblegum_arena_exit" + icon_state = "bubblegumjumpscare" diff --git a/code/game/objects/effects/spawners/lootdrop.dm b/code/game/objects/effects/spawners/lootdrop.dm index 60554071d70..cf4b411d004 100644 --- a/code/game/objects/effects/spawners/lootdrop.dm +++ b/code/game/objects/effects/spawners/lootdrop.dm @@ -472,4 +472,5 @@ lootdoubles = 0 lootcount = 1 loot = list(/mob/living/simple_animal/hostile/asteroid/marrowweaver = 40, - "" = 60) + /mob/living/simple_animal/hostile/asteroid/marrowweaver/frost = 20, + "" = 40) diff --git a/code/game/objects/items/gems.dm b/code/game/objects/items/gems.dm index 5fd39d5d1dd..2c0952cc8d9 100644 --- a/code/game/objects/items/gems.dm +++ b/code/game/objects/items/gems.dm @@ -22,6 +22,11 @@ var/image/shine_overlay //shows this overlay when not scanned + ///Can you use this gem to make a necklace? + var/insertable = TRUE + ///Can you make simple jewelry with it? + var/simple = FALSE + /obj/item/gem/Initialize() . = ..() shine_overlay = image(icon = 'icons/obj/lavaland/gems.dmi',icon_state = "shine") @@ -68,57 +73,161 @@ to_chat(user, span_notice("You can't seem to cut [src].")) return TRUE +//goldgrub gem /obj/item/gem/rupee name = "\improper ruperium crystal" - desc = "A radioactive, crystalline compound rarely found in the goldgrubs. While able to be cut into sheets of uranium, the mineral's true value is in its resonating, humming properties, often sought out by musicians to work into their gem-encrusted instruments." + desc = "A radioactive, crystalline compound rarely found in the goldgrubs. While able to be cut into sheets of uranium, the mineral's true value is in its resonating, humming properties." icon_state = "rupee" - materials = list(MAT_URANIUM = 20000) - sheet_type = /obj/item/stack/sheet/mineral/uranium{amount = 10} - point_value = 800 - sell_multiplier = 3 + materials = list(MAT_URANIUM = 60000) + sheet_type = /obj/item/stack/sheet/mineral/uranium{amount = 30} + point_value = 500 + var/damaged = FALSE + var/pulse = "rupee_pulse" + sell_multiplier = 2 + +/obj/item/gem/rupee/Initialize() + AddComponent(/datum/component/radioactivity, \ + rad_per_cycle = 10, \ + rad_cycle = 3 SECONDS, \ + rad_cycle_radius = 5 \ + ) + ADD_TRAIT(src, TRAIT_BLOCK_RADIATION, src) + . = ..() + +/obj/item/gem/rupee/examine(mob/user) + . = ..() + if(!damaged) + . += "You could use something sharp to damage crystal." + else + . += "The crystal glows strongly!" +/obj/item/gem/rupee/attackby(obj/item/W, mob/user, params) + ..() + if(is_sharp(W) && !damaged) + to_chat(user, span_notice("You started damaging the crystal. You have the feeling that's it's not a good idea...")) + if(!do_after(user, 5 SECONDS, FALSE, src)) + to_chat(user, span_notice("You decide not to die from radiation.")) + return + to_chat(user, span_warning("You make a crack in the crystal! Your head hurts...")) + var/mob/living/carbon/human/H = user + H.apply_effect(50, IRRADIATE) + damaged = TRUE + src.icon_state = "broken_rupee" + REMOVE_TRAIT(src, TRAIT_BLOCK_RADIATION, src) + +//magmawing watcher gem /obj/item/gem/magma name = "\improper calcified auric" desc = "A hot, lightly glowing mineral born from the inner workings of magmawing watchers. It is most commonly smelted down into deposits of pure gold." icon_state = "magma" - materials = list(MAT_GOLD = 50000) - sheet_type = /obj/item/stack/sheet/mineral/gold{amount = 25} + materials = list(MAT_GOLD = 100000) + sheet_type = /obj/item/stack/sheet/mineral/gold{amount = 50} point_value = 700 //there is no magmawing tendrills, silly me - sell_multiplier = 4.5 + sell_multiplier = 2 light_range = 4 light_power = 2 light_color = "#ff7b00" + var/hot = TRUE + +/obj/item/gem/magma/examine(mob/user) + . = ..() + if(!hot) + . += "The diamond feels cold to the touch." + else + . += "The crystal is very hot to touch! It seems you can warm up you squeeze it" + +/obj/item/gem/magma/attack_self(mob/user) + . = ..() + var/mob/living/carbon/human/H = user + if(!hot) + to_chat(H, span_notice("You are pressing [src] to your breast, but it's too cold for now..")) + return + to_chat(H, span_notice("You are pressing [src] to your breast and a strong heat passes through your body!")) + H.custom_emote(1, "прижимает кристалл к груди.") //HRP style + H.adjust_bodytemperature(60) + light_range = 0 + light_power = 0 + light_color = null + update_light() + hot = FALSE + addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), 15 SECONDS) + +/obj/item/gem/magma/proc/reset_cooldown() + hot = TRUE + light_range = initial(light_range) + light_power = initial(light_power) + light_color = initial(light_color) + update_light() +//icewing watcher gem /obj/item/gem/fdiamond name = "\improper frost diamond" desc = "A unique diamond that is produced within icewing watchers. It looks like it can be cut into smaller sheets of diamond ore." icon_state = "diamond" - materials = list(MAT_DIAMOND = 30000) - sheet_type = /obj/item/stack/sheet/mineral/diamond{amount = 15} - point_value = 1200 - sell_multiplier = 6 + materials = list(MAT_DIAMOND = 60000) + sheet_type = /obj/item/stack/sheet/mineral/diamond{amount = 30} + point_value = 700 + light_range = 4 + light_power = 2 + light_color = "#62cad5" + var/cold = TRUE + sell_multiplier = 2 + +/obj/item/gem/fdiamond/examine(mob/user) + . = ..() + if(!cold) + . += "The diamond feels warm to the touch." + else + . += "The crystal is very cold to touch! It seems you can cool if you squeeze it" + +/obj/item/gem/fdiamond/attack_self(mob/user) + . = ..() + var/mob/living/carbon/human/H = user + if(!cold) + to_chat(H, span_notice("You are pressing [src] to your breast, but it's too warm for now..")) + return + to_chat(H, span_notice("You are pressing [src] to your breast and a strong cold passes through your body!")) + H.custom_emote(1, "прижимает алмаз к груди.") //HRP style + H.adjust_bodytemperature(-60) + light_range = 0 + light_power = 0 + light_color = null + update_light() + cold = FALSE + addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), 15 SECONDS) +/obj/item/gem/fdiamond/proc/reset_cooldown() + cold = TRUE + light_range = initial(light_range) + light_power = initial(light_power) + light_color = initial(light_color) + update_light() + +//blood-drunk miner gem /obj/item/gem/phoron name = "\improper stabilized baroxuldium" desc = "A soft, glowing crystal only found in the deepest veins of plasma. It looks like it could be destructively analyzed to extract the condensed materials within." icon_state = "phoron" materials = list(MAT_PLASMA = 80000) sheet_type = /obj/item/stack/sheet/mineral/plasma{amount = 40} - point_value = 2400 - sell_multiplier = 8 + origin_tech = "materials=6;plasmatech=6" + point_value = 1000 + sell_multiplier = 3 light_range = 4 light_power = 4 light_color = "#62326a" +//hierophant gem /obj/item/gem/purple name = "\improper densified dilithium" desc = "A strange mass of dilithium which pulses to a steady rhythm. Its strange surface exudes a unique radio signal detectable by GPS." icon_state = "purple" - point_value = 2600 - sell_multiplier = 9 + point_value = 1200 + sell_multiplier = 4 light_range = 4 light_power = 2 - light_color = "#b714cc" + light_color = "#cc47a6" + resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF var/obj/item/gps/internal @@ -126,55 +235,131 @@ . = ..() internal = new /obj/item/gps/internal/purple(src) +/obj/item/gem/purple/Destroy(force) + if(force) + . = ..() + else + return QDEL_HINT_LETMELIVE + /obj/item/gps/internal/purple icon_state = null gpstag = "Harmonic Signal" desc = "It's ringing." invisibility = 100 -/obj/item/gem/amber +//drake gem +/obj/item/gem/amber //all cool effects in the necklace, not here. Also this works as fuel for Anvil name = "\improper draconic amber" - desc = "A brittle, strange mineral that forms when an ash drake's blood hardens after death. Cherished by gemcutters for its faint glow and unique, soft warmth. Poacher tales whisper of the dragon's strength being bestowed to one that wears a necklace of this amber, though such rumors are fictitious." + desc = "A brittle, strange mineral that forms when an ash drake's blood hardens after death. Cherished by gemcutters for its faint glow and unique, soft warmth. Poacher tales whisper of the dragon's strength being bestowed to one that wears a necklace of this amber." icon_state = "amber" - point_value = 2600 - sell_multiplier = 12 + point_value = 1400 + sell_multiplier = 5 light_range = 4 light_power = 4 light_color = "#FFBF00" +//colossus gem /obj/item/gem/void name = "\improper null crystal" desc = "A shard of stellar, crystallized energy. These strange objects occasionally appear spontaneously in areas where the bluespace fabric is largely unstable. Its surface gives a light jolt to those who touch it." icon_state ="void" - point_value = 2400 - sell_multiplier = 11 + point_value = 1600 + sell_multiplier = 6 light_range = 4 light_power = 2 light_color = "#4785a4" + var/blink_range = 6 + var/cooldown = FALSE + var/cooldown_time = 40 SECONDS +/obj/item/gem/void/examine(mob/user) + . = ..() + if(!cooldown) + . += "The crystall is glowing!" + + +/obj/item/gem/void/attack_self(mob/user) + if(cooldown) + to_chat(user, span_warning("The crystal is still. Perhaps you should wait a little longer.")) + return + var/mob/living/carbon/human/H = user + teleport(H) + H.visible_message("[H] squeezes the crystal in [H.p_their()] hands!") + cooldown = TRUE + addtimer(CALLBACK(src, PROC_REF(reset_cooldown)),cooldown_time) + +/obj/item/gem/void/proc/teleport(mob/living/L) + if(!is_teleport_allowed(L.z)) + src.visible_message("[src] begin rapidly vibrating.") + return + do_teleport(L, get_turf(L), blink_range, asoundin = 'sound/effects/phasein.ogg') + +/obj/item/gem/void/proc/reset_cooldown() + cooldown = FALSE + +//bubblegum gem. Can be used for antags to get some active blood or TK. /obj/item/gem/bloodstone name = "\improper ichorium" desc = "A weird, sticky substance, known to coalesce in the presence of otherwordly phenomena. While shunned by most spiritual groups, this gemstone has unique ties to the occult which find it handsomely valued by mysterious patrons." icon_state = "red" - point_value = 3000 - sell_multiplier = 15 + point_value = 1800 + sell_multiplier = 7 light_range = 4 light_power = 6 - light_color = "#800000" + light_color = "#ac0606" + var/used = FALSE + var/blood = 50 + var/charges = 2 + +/obj/item/gem/bloodstone/examine(mob/user) + . = ..() + if(isvampire(user) && !used) + . += "You can smell human blood coming from the bloodstone." + if(user.mind.has_antag_datum(/datum/antagonist/traitor)) + . += "You have a feeling, that you could you this gem to charge your uplink." + +/obj/item/gem/bloodstone/attack_self(mob/user) + var/datum/antagonist/vampire/vampire = user.mind.has_antag_datum(/datum/antagonist/vampire) + if(vampire && !used) + user.visible_message(span_warning("[user] forcefully squeezes [src] in his hands!"), \ + span_notice("You squeeze [src] in your hands.")) + if(!do_after_once(user, 10 SECONDS, target = user, attempt_cancel_message = "You relax your grip on [src]")) + return + user.visible_message(span_warning("[user] begins to absorb the liquid contents of the crystal!"), \ + span_notice("You absorb the contents of [src]. The energy from the crystal saturates your body.")) + vampire.bloodusable += blood + used = TRUE + light_range = 3 + light_power = 2 + light_color = "#ac2626" + update_light() + +/obj/item/gem/bloodstone/afterattack(obj/item/I, mob/user, proximity) + if(!proximity) + return + if(istype(I) && I.hidden_uplink && I.hidden_uplink.active) + I.hidden_uplink.uses += charges + qdel(src) + to_chat(user, "You slot [src] into [I] and charge its internal uplink.") + + +//vetus gem /obj/item/gem/data name = "\improper bluespace data crystal" desc = "A large bluespace crystal, etched internally with nano-circuits, it seemingly draws power from nowhere." icon_state = "data" - materials = list(MAT_BLUESPACE = 24000) - sheet_type = /obj/item/stack/sheet/bluespace_crystal{amount = 12} + materials = list(MAT_BLUESPACE = 48000) + sheet_type = /obj/item/stack/sheet/bluespace_crystal{amount = 24} origin_tech = "materials=6;bluespace=7" //uh-oh light_range = 4 - light_power = 8 - light_color = "#0004ff" - point_value = 2500 - sell_multiplier = 18 + light_power = 6 + light_color = "#4245f3" + point_value = 2000 + insertable = FALSE + sell_multiplier = 10 +//mining gems /obj/item/gem/random name = "random gem" icon_state = "ruby" @@ -191,23 +376,27 @@ /obj/item/gem/ruby name = "\improper ruby" icon_state = "ruby" - point_value = 150 - sell_multiplier = 0.75 + point_value = 100 + simple = TRUE + sell_multiplier = 0.5 /obj/item/gem/sapphire name = "\improper sapphire" icon_state = "sapphire" - point_value = 150 - sell_multiplier = 0.75 + point_value = 100 + simple = TRUE + sell_multiplier = 0.5 /obj/item/gem/emerald name = "\improper emerald" icon_state = "emerald" - point_value = 150 - sell_multiplier = 0.75 + point_value = 100 + simple = TRUE + sell_multiplier = 0.5 /obj/item/gem/topaz name = "\improper topaz" icon_state = "topaz" - point_value = 150 - sell_multiplier = 0.75 + point_value = 100 + simple = TRUE + sell_multiplier = 0.5 diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 38f69b7d767..1f27b003f14 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -105,7 +105,10 @@ desc = "A card used to provide ID and determine access across the station." icon_state = "id" item_state = "card-id" - var/mining_points = 0 //For redeeming at mining equipment lockers + /// For redeeming at mining equipment lockers + var/mining_points = 0 + /// Total mining points for the Shift. + var/total_mining_points = 0 var/list/access = list() var/registered_name = "Unknown" // The name registered_name on the card slot_flags = SLOT_ID @@ -170,7 +173,7 @@ user.visible_message("[user] shows you: [bicon(src)] [src.name]. The assignment on the card: [src.assignment]",\ "You flash your ID card: [bicon(src)] [src.name]. The assignment on the card: [src.assignment]") if(mining_points) - to_chat(user, "There's [mining_points] mining equipment redemption points loaded onto this card.") + to_chat(user, "There's [mining_points] Mining Points loaded onto this card. This card has earned [total_mining_points] Mining Points this Shift!") src.add_fingerprint(user) return @@ -316,6 +319,7 @@ data["account"] = associated_account_number data["owner"] = registered_name data["mining"] = mining_points + data["total_mining"] = total_mining_points return data /obj/item/card/id/deserialize(list/data) @@ -329,6 +333,7 @@ associated_account_number = data["account"] registered_name = data["owner"] mining_points = data["mining"] + total_mining_points = data["total_mining"] // We'd need to use icon serialization(b64) to save the photo, and I don't feel like i UpdateName() RebuildHTML() diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm index 74982752422..5eda546d44a 100644 --- a/code/game/objects/items/weapons/cigs.dm +++ b/code/game/objects/items/weapons/cigs.dm @@ -102,6 +102,13 @@ LIGHTERS ARE IN LIGHTERS.DM if(L.lit) light("After some fiddling, [user] manages to light [user.p_their()] [name] with [L].") + else if(istype(I, /obj/item/match/unathi)) + var/obj/item/match/unathi/U = I + if(U.lit) + playsound(user.loc, 'sound/effects/unathiignite.ogg', 40, FALSE) + light("[user] spits fire at [user.p_their()] [name], igniting it.") + U.matchburnout() + else if(istype(I, /obj/item/match)) var/obj/item/match/M = I if(M.lit) diff --git a/code/game/objects/items/weapons/lighters.dm b/code/game/objects/items/weapons/lighters.dm index 9093ef2317b..1f80433ceaa 100644 --- a/code/game/objects/items/weapons/lighters.dm +++ b/code/game/objects/items/weapons/lighters.dm @@ -319,7 +319,18 @@ if(M == user) cig.attackby(src, user) else - cig.light("[user] holds [src] out for [M], and lights [cig].") + if(istype(src, /obj/item/match/unathi)) + if(prob(50)) + cig.light("[user] spits fire at [M], lighting [cig] and nearly burning [user.p_their()] face!") + matchburnout() + else + cig.light("[user] spits fire at [M], burning [user.p_their()] face and lighting [cig] in the process.") + var/obj/item/organ/external/head/affecting = M.get_organ("head") + affecting.receive_damage(0, 5) + M.UpdateDamageIcon() + playsound(user.loc, 'sound/effects/unathiignite.ogg', 40, FALSE) + else + cig.light("[user] holds [src] out for [M], and lights [cig].") else ..() @@ -343,3 +354,28 @@ /obj/item/match/firebrand/New() ..() matchignite() + +/obj/item/match/unathi + name = "small blaze" + desc = "A little flame of your own, currently located dangerously in your mouth." + icon_state = "match_unathi" + attack_verb = null + force = 0 + flags = DROPDEL | ABSTRACT + origin_tech = null + lit = TRUE + w_class = WEIGHT_CLASS_BULKY //to prevent it going to pockets + +/obj/item/match/unathi/Initialize(mapload) + . = ..() + START_PROCESSING(SSobj, src) + +/obj/item/match/unathi/matchburnout() + if(!lit) + return + lit = FALSE //to avoid a qdel loop + qdel(src) + +/obj/item/match/unathi/Destroy() + . = ..() + STOP_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index f6a864e8e0b..bbee41721b4 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1013,6 +1013,29 @@ new /obj/item/clothing/shoes/jackboots(src) new /obj/item/clothing/gloves/combat(src) new /obj/item/storage/backpack/security(src) +/obj/item/storage/box/a357 + name = "ammo box (.357)" + desc = "A box of ammo?" + icon_state = "357OLD" + icon = 'icons/obj/weapons/ammo.dmi' + display_contents_with_number = TRUE + can_hold = list(/obj/item/ammo_casing/a357) + storage_slots = 20 + max_combined_w_class = 20 + +/obj/item/storage/box/a357/populate_contents() + for(var/I in 1 to 20) + new /obj/item/ammo_casing/a357(src) + +/obj/item/storage/box/hardmode_box + name = "box of HRD-MDE project box" + desc = "Contains everything needed to get yourself killed for a medal." + +/obj/item/storage/box/hardmode_box/populate_contents() + for(var/I in 1 to 7) + new /obj/item/grenade/megafauna_hardmode(src) + new /obj/item/storage/lockbox/medal/hardmode_box(src) + new /obj/item/paper/hardmode(src) #undef NODESIGN #undef NANOTRASEN diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index eb149dc4b4d..de61504223d 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -150,3 +150,35 @@ /obj/item/storage/lockbox/research/mantis/populate_contents() new /obj/item/organ/internal/cyberimp/arm/toolset/mantisblade/shellguard(src) new /obj/item/organ/internal/cyberimp/arm/toolset/mantisblade/shellguard/l(src) + +/obj/item/storage/lockbox/medal/hardmode_box + name = "\improper HRD-MDE program medal box" + desc = "A locked box used to store medals of pride. Use a fauna research disk on the box to transmit the data and print a medal." + req_access = list(ACCESS_MINING) //No grubby assistant hands on my hard earned medals + can_hold = list(/obj/item/clothing/accessory, /obj/item/coin) //Whoops almost gave miners boxes that could store 12 legion cores. Scoped to accessory if they want to store neclaces or hope or something in there. Or a coin collection. + var/list/completed_fauna = list() + var/number_of_megafauna = 7 //Increase this if new megafauna are added. + +/obj/item/storage/lockbox/medal/hardmode_box/Initialize(mapload) + . = ..() + number_of_megafauna = length(subtypesof(/obj/item/disk/fauna_research)) + + +/obj/item/storage/lockbox/medal/hardmode_box/populate_contents() + return + +/obj/item/storage/lockbox/medal/hardmode_box/attackby(obj/item/W, mob/user, params) + if(istype(W, /obj/item/disk/fauna_research)) + var/obj/item/disk/fauna_research/disky = W + var/obj/item/pride = new disky.output(get_turf(src)) + to_chat(user, "[src] accepts [disky], and prints out [pride]!") + qdel(disky) + if(!is_type_in_list(pride, completed_fauna)) + completed_fauna += pride.type + if(length(completed_fauna) == number_of_megafauna) + to_chat(user, "[src] prints out a very fancy medal!") + var/obj/item/accomplishment = new /obj/item/clothing/accessory/medal/gold/heroism/hardmode_full(get_turf(src)) + user.put_in_hands(accomplishment) + user.put_in_hands(pride) + return + return ..() diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 3d70e98a7e2..b054745c36b 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -996,3 +996,26 @@ used = FALSE flags &= ~NODROP atom_say("Internal plasma canisters recharged. Gloves sufficiently cooled") + +/obj/item/twohanded/fishingrod + name = "ol' reliable" + desc = "Hey! I caught a miner!" + icon_state = "fishing_rod0" + item_state = "" + w_class = WEIGHT_CLASS_SMALL + var/w_class_on = WEIGHT_CLASS_BULKY + +/obj/item/twohanded/fishingrod/wield() + w_class = w_class_on + item_state = "fishing_rod" + +/obj/item/twohanded/fishingrod/unwield() + w_class = initial(w_class) + item_state = "" + +/obj/item/twohanded/fishingrod/update_icon() + if(wielded) + icon_state = "fishing_rod[wielded]" + else + icon_state = "fishing_rod0" + ..() diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index 1d90d5cc65c..a744e895114 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -106,19 +106,20 @@ item_state = "basalt_katana" force = 30 block_chance = 30 - - var/fauna_damage_bonus = 40 - var/fauna_damage_type = BRUTE - -/obj/item/katana/basalt/afterattack(atom/target, mob/user, proximity) + var/faction_bonus_force = 30 + var/nemesis_factions = list("mining", "boss") + +/obj/item/katana/basalt/attack(mob/living/target, mob/living/carbon/human/user) + var/nemesis_faction = FALSE + if(LAZYLEN(nemesis_factions)) + for(var/F in target.faction) + if(F in nemesis_factions) + nemesis_faction = TRUE + force += faction_bonus_force + break . = ..() - if(!proximity) - return - if(isliving(target)) - var/mob/living/L = target - if(ismegafauna(L) || istype(L, /mob/living/simple_animal/hostile/asteroid)) - L.apply_damage(fauna_damage_bonus,fauna_damage_type) - playsound(L, 'sound/weapons/sear.ogg', 100, 1) + if(nemesis_faction) + force -= faction_bonus_force /obj/item/harpoon name = "harpoon" diff --git a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm index 0be3d9f6c0f..24c4b4ad905 100644 --- a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm +++ b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm @@ -230,3 +230,51 @@ else QDEL_NULL(fireaxe) return ..() + +//mining "fireaxe" +/obj/structure/closet/fishingrodcabinet + name = "fishing cabinet" + desc = "There is a small label that reads \"Fo* Em**gen*y u*e *nly\". All the other text is scratched out and replaced with various fish weights." + icon = 'icons/obj/closet.dmi' + icon_state = "fishingrod" + var/obj/item/twohanded/fishingrod/olreliable //what the fuck? + +/obj/structure/closet/fishingrodcabinet/Initialize() + . = ..() + if(!olreliable) + olreliable = new(src) + update_icon() + +/obj/structure/closet/fishingrodcabinet/update_icon() + . = ..() + cut_overlays() + if(olreliable) + add_overlay("rod") + +/obj/structure/closet/fishingrodcabinet/attackby(var/obj/item/O as obj, var/mob/living/user as mob) + if(istype(O, /obj/item/twohanded/fishingrod)) + var/obj/item/twohanded/fishingrod/R = O + if(R.wielded) + to_chat(user, "Unwield \the [R] first.") + return + if(!user.drop_item_ground(R)) + to_chat(user, "\The [R] stays stuck to your hands!") + return + add_fingerprint(user) + olreliable = R + contents += R + to_chat(user, "You place \the [R] back in the [name].") + update_icon() + + + +/obj/structure/closet/fishingrodcabinet/attack_hand(mob/user as mob) + if(olreliable) + add_fingerprint(user) + olreliable.forceMove_turf() + user.put_in_hands(olreliable, ignore_anim = FALSE) + to_chat(user, "You take \the [olreliable] from the [src].") + olreliable = null + + add_fingerprint(user) + update_icon() diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm index 07a718e1e50..889edc878f8 100644 --- a/code/game/objects/structures/flora.dm +++ b/code/game/objects/structures/flora.dm @@ -496,3 +496,103 @@ /obj/structure/flora/rock/pile/largejungle/Initialize(mapload) . = ..() icon_state = "[initial(icon_state)][rand(1,3)]" + + +//hellflora from shiptest +/obj/structure/flora/firebush + name = "flaming bush" + desc = "A bush being consumed by flames. Maybe it'll rise from its ashes like a phoenix?" + icon = 'icons/obj/flora/hellflora.dmi' + icon_state = "hell_bush" + density = FALSE + light_color = "#e08300" + light_power = 2 + light_range = 3 + resistance_flags = LAVA_PROOF + +/obj/structure/flora/ausbushes/fullgrass/hell + name = "thick hellish grass" + desc = "A thick patch of grass tinted red." + icon = 'icons/obj/flora/hellflora.dmi' + light_range = 2 + light_power = 3 + resistance_flags = LAVA_PROOF + gender = PLURAL + +/obj/structure/flora/ausbushes/fullgrass/hell/Initialize() + . = ..() + icon_state = "fullgrass_[rand(1, 3)]" + light_color = pick("#e87800", "#780606") + +/obj/structure/flora/ausbushes/sparsegrass/hell + name = "sparse hellish grass" + desc = "A sparse patch of grass tinted red." + icon = 'icons/obj/flora/hellflora.dmi' + light_range = 2 + light_power = 3 + resistance_flags = LAVA_PROOF + gender = PLURAL + +/obj/structure/flora/ausbushes/sparsegrass/hell/Initialize() + . = ..() + icon_state = "sparsegrass_[rand(1, 3)]" + light_color = pick("#e87800", "#780606") + +/obj/structure/flora/ausbushes/grassybush/hell + name = "crimson bush" + desc = "A crimson bush, native to lava planets." + icon = 'icons/obj/flora/hellflora.dmi' + light_color = "#c70404" + light_range = 2 + light_power = 3 + resistance_flags = LAVA_PROOF + +/obj/structure/flora/ausbushes/hell + name = "smouldering bush" + desc = "Some kind of orange plant that appears to be slowly burning." + icon = 'icons/obj/flora/hellflora.dmi' + light_range = 2 + light_power = 1 + resistance_flags = LAVA_PROOF + +/obj/structure/flora/ausbushes/hell/Initialize() + . = ..() + if(icon_state == "firstbush_1") + icon_state = "firstbush_[rand(1, 4)]" + light_color = pick("#e87800", "#780606") + +/obj/structure/flora/ausbushes/fernybush/hell + name = "hellish fern" + desc = "Some kind of orange fern." + icon = 'icons/obj/flora/hellflora.dmi' + light_range = 2 + light_power = 1 + resistance_flags = LAVA_PROOF + +/obj/structure/flora/ausbushes/fernybush/hell/Initialize() + . = ..() + icon_state = "fernybush_[rand(1, 3)]" + light_color = pick("#e87800", "#780606") + +/obj/structure/flora/ausbushes/genericbush/hell + name = "hellish bush" + desc = "A small crimson bush." + icon = 'icons/obj/flora/hellflora.dmi' + light_range = 2 + light_power = 2 + resistance_flags = LAVA_PROOF + +/obj/structure/flora/ausbushes/genericbush/hell/Initialize() + . = ..() + icon_state = "genericbush_[rand(1, 4)]" + light_color = pick("#e87800", "#780606") + +/obj/structure/flora/ausbushes/ywflowers/hell + name = "lavablossom" + desc = "Some red and orange flowers. They appear to be faintly glowing." + icon = 'icons/obj/flora/hellflora.dmi' + light_color = "#aba507" + light_power = 3 + light_range = 2 + resistance_flags = LAVA_PROOF + gender = PLURAL diff --git a/code/game/objects/structures/lavaland/necropolis_tendril.dm b/code/game/objects/structures/lavaland/necropolis_tendril.dm index de5a76595f8..d05715ad5da 100644 --- a/code/game/objects/structures/lavaland/necropolis_tendril.dm +++ b/code/game/objects/structures/lavaland/necropolis_tendril.dm @@ -8,20 +8,57 @@ faction = list("mining") max_mobs = 3 - max_integrity = 250 - mob_types = list(/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/tendril) + max_integrity = 300 + mob_types = list(/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/tendril = 90, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing/tendril = 5, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/magmawing/tendril = 5 + ) move_resist = INFINITY // just killing it tears a massive hole in the ground, let's not move it anchored = TRUE resistance_flags = FIRE_PROOF | LAVA_PROOF var/obj/effect/light_emitter/tendril/emitted_light + scanner_taggable = TRUE + mob_gps_id = "WT" + spawner_gps_id = "Necropolis Tendril" /obj/structure/spawner/lavaland/goliath mob_types = list(/mob/living/simple_animal/hostile/asteroid/goliath/beast/tendril) + mob_gps_id = "GL" /obj/structure/spawner/lavaland/legion mob_types = list(/mob/living/simple_animal/hostile/asteroid/hivelord/legion/tendril) + spawn_time = 400 // say no to core farming + mob_gps_id = "LG" + +/obj/structure/spawner/lavaland/random_threat + max_integrity = 400 + mob_types = list( + /mob/living/simple_animal/hostile/asteroid/goliath/beast/tendril = 27, + /mob/living/simple_animal/hostile/asteroid/hivelord/legion/tendril = 26, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/tendril = 26, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing/tendril = 1, + /mob/living/simple_animal/hostile/asteroid/marrowweaver/tendril = 20 + ) + max_mobs = 5 + spawn_time = 250 //they spawn a little faster + mob_gps_id = "RND" + +/obj/structure/spawner/lavaland/random_threat/dangerous //rare + max_integrity = 500 + mob_types = list( + /mob/living/simple_animal/hostile/asteroid/goliath/beast/tendril = 17, + /mob/living/simple_animal/hostile/asteroid/hivelord/legion/tendril = 15, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/tendril = 18, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing/tendril = 12, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/magmawing/tendril = 12, + /mob/living/simple_animal/hostile/asteroid/marrowweaver/tendril = 12, + /mob/living/simple_animal/hostile/asteroid/marrowweaver/frost/tendril = 14 + ) + mob_gps_id = "CHAOS" + max_mobs = 7 + spawn_time = 150 GLOBAL_LIST_INIT(tendrils, list()) diff --git a/code/game/objects/structures/spawner.dm b/code/game/objects/structures/spawner.dm index 08f2e4e50f3..c0f880e53dd 100644 --- a/code/game/objects/structures/spawner.dm +++ b/code/game/objects/structures/spawner.dm @@ -14,6 +14,29 @@ var/spawn_text = "emerges from" var/faction = list("hostile") var/spawner_type = /datum/component/spawner + /// Is this spawner taggable with something? + var/scanner_taggable = FALSE + /// If this spawner's taggable, what can we tag it with? + var/static/list/scanner_types = list(/obj/item/mining_scanner, /obj/item/t_scanner/adv_mining_scanner) + /// If this spawner's taggable, what's the text we use to describe what we can tag it with? + var/scanner_descriptor = "mining analyzer" + /// Has this spawner been tagged/analyzed by a mining scanner? + var/gps_tagged = FALSE + /// A short identifier for the mob it spawns. Keep around 3 characters or less? + var/mob_gps_id = "???" + /// A short identifier for what kind of spawner it is, for use in putting together its GPS tag. + var/spawner_gps_id = "Creature Nest" + /// A complete identifier. Generated on tag (if tagged), used for its examine. + var/assigned_tag + +/obj/structure/spawner/examine(mob/user) + . = ..() + if(!scanner_taggable) + return + if(gps_tagged) + . += span_notice("A holotag's been attached, projecting \"[assigned_tag]\".") + else + . += span_notice("It looks like you could probably scan and tag it with a [scanner_descriptor].") /obj/structure/spawner/Initialize(mapload) . = ..() @@ -24,6 +47,30 @@ return ..() +/obj/structure/spawner/attackby(obj/item/item, mob/user, params) + if(scanner_taggable && is_type_in_list(item, scanner_types)) + gps_tag(user) + +/// Tag the spawner, prefixing its GPS entry with an identifier - or giving it one, if nonexistent. +/obj/structure/spawner/proc/gps_tag(mob/user) + if(gps_tagged) + to_chat(user, span_warning("[src] already has a holotag attached!")) + return + to_chat(user, span_notice("You affix a holotag to [src].")) + playsound(src, 'sound/machines/twobeep.ogg', 50) + gps_tagged = TRUE + assigned_tag = "\[[mob_gps_id]-[rand(100,999)]\] " + spawner_gps_id + var/obj/item/gps/internal = new /obj/item/gps/internal/tendril(src) + if(internal) + internal.gpstag = assigned_tag + + +/obj/item/gps/internal/tendril + icon_state = null + gpstag = "Null Signal" + desc = "Holotag to a tendrill." + invisibility = 100 + /obj/structure/spawner/syndicate name = "warp beacon" icon = 'icons/obj/device.dmi' @@ -31,6 +78,8 @@ spawn_text = "warps in from" mob_types = list(/mob/living/simple_animal/hostile/syndicate/ranged) faction = list(ROLE_SYNDICATE) + mob_gps_id = "SYN" // syndicate + spawner_gps_id = "Hostile Warp Beacon" /obj/structure/spawner/skeleton name = "bone pit" @@ -43,6 +92,8 @@ mob_types = list(/mob/living/simple_animal/hostile/skeleton) spawn_text = "climbs out of" faction = list("undead") + mob_gps_id = "SKL" // skeletons + spawner_gps_id = "Bone Pit" /obj/structure/spawner/clown name = "Laughing Larry" @@ -55,6 +106,8 @@ mob_types = list(/mob/living/simple_animal/hostile/retaliate/clown) spawn_text = "climbs out of" faction = list("clown") + mob_gps_id = "???" // clowns + spawner_gps_id = "Clown Planet Distortion" /obj/structure/spawner/mining name = "monster den" @@ -71,21 +124,25 @@ name = "goldgrub den" desc = "A den housing a nest of goldgrubs, annoying but arguably much better than anything else you'll find in a nest." mob_types = list(/mob/living/simple_animal/hostile/asteroid/goldgrub) + mob_gps_id = "GG" /obj/structure/spawner/mining/goliath name = "goliath den" desc = "A den housing a nest of goliaths, oh god why?" mob_types = list(/mob/living/simple_animal/hostile/asteroid/goliath) + mob_gps_id = "GL" /obj/structure/spawner/mining/hivelord name = "hivelord den" desc = "A den housing a nest of hivelords." mob_types = list(/mob/living/simple_animal/hostile/asteroid/hivelord) + mob_gps_id = "HL" /obj/structure/spawner/mining/basilisk name = "basilisk den" desc = "A den housing a nest of basilisks, bring a coat." mob_types = list(/mob/living/simple_animal/hostile/asteroid/basilisk) + mob_gps_id = "BK" /obj/structure/spawner/headcrab name = "headcrab nest" @@ -98,3 +155,4 @@ mob_types = list(/mob/living/simple_animal/hostile/headcrab, /mob/living/simple_animal/hostile/headcrab/fast, /mob/living/simple_animal/hostile/headcrab/poison) spawn_text = "crawls out of" faction = list("hostile") + mob_gps_id = "HC" diff --git a/code/game/turfs/simulated/floor/asteroid.dm b/code/game/turfs/simulated/floor/asteroid.dm index 948a16a0118..712462c0ce8 100644 --- a/code/game/turfs/simulated/floor/asteroid.dm +++ b/code/game/turfs/simulated/floor/asteroid.dm @@ -184,11 +184,18 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me has_data = TRUE /turf/simulated/floor/plating/asteroid/airless/cave/volcanic - mob_spawn_list = list(/mob/living/simple_animal/hostile/asteroid/goliath/beast/random = 50, /obj/structure/spawner/lavaland/goliath = 3, - /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/random = 40, /obj/structure/spawner/lavaland = 2, - /mob/living/simple_animal/hostile/asteroid/hivelord/legion/random = 30, /obj/structure/spawner/lavaland/legion = 3, - SPAWN_MEGAFAUNA = 6, /mob/living/simple_animal/hostile/asteroid/goldgrub = 10, - /mob/living/simple_animal/hostile/asteroid/marrowweaver/dangerous = 35) + mob_spawn_list = list(/mob/living/simple_animal/hostile/asteroid/goliath/beast/random = 50, + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/random = 40, + /mob/living/simple_animal/hostile/asteroid/hivelord/legion/random = 30, + SPAWN_MEGAFAUNA = 6, + /mob/living/simple_animal/hostile/asteroid/goldgrub = 15, + /mob/living/simple_animal/hostile/asteroid/marrowweaver/dangerous/random = 30, + /obj/structure/spawner/lavaland = 2, + /obj/structure/spawner/lavaland/legion = 2, + /obj/structure/spawner/lavaland/goliath = 2, + /obj/structure/spawner/lavaland/random_threat = 3, + /obj/structure/spawner/lavaland/random_threat/dangerous = 1 + ) data_having_type = /turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data turf_type = /turf/simulated/floor/plating/asteroid/basalt/lava_land_surface @@ -205,7 +212,7 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me if (!megafauna_spawn_list) megafauna_spawn_list = GLOB.megafauna_spawn_list if (!flora_spawn_list) - flora_spawn_list = list(/obj/structure/flora/ash/leaf_shroom = 2 , /obj/structure/flora/ash/cap_shroom = 2 , /obj/structure/flora/ash/stem_shroom = 2 , /obj/structure/flora/ash/cacti = 1, /obj/structure/flora/ash/tall_shroom = 2) + flora_spawn_list = list(/obj/structure/flora/ash/leaf_shroom = 2 , /obj/structure/flora/ash/cap_shroom = 2 , /obj/structure/flora/ash/stem_shroom = 2 , /obj/structure/flora/ash/cacti = 1, /obj/structure/flora/ash/tall_shroom = 2, /obj/structure/flora/ash/fireblossom = 2) . = ..() if(!has_data) produce_tunnel_from_data() diff --git a/code/game/turfs/simulated/floor/chasm.dm b/code/game/turfs/simulated/floor/chasm.dm index e63843d9ff1..e2318607181 100644 --- a/code/game/turfs/simulated/floor/chasm.dm +++ b/code/game/turfs/simulated/floor/chasm.dm @@ -98,6 +98,34 @@ playsound(src, 'sound/weapons/genhit.ogg', 50, 1) to_chat(user, span_notice("Вы установили мостик.")) new /obj/structure/lattice/catwalk/fireproof(src) + if(istype(C, /obj/item/twohanded/fishingrod)) + var/obj/item/twohanded/fishingrod/rod = C + if(!rod.wielded) + to_chat(user, span_warning("You need to wield the rod in both hands before you can fish in the chasm!")) + return + user.visible_message(span_warning("[user] throws a fishing rod into the chasm and tries to catch something!"), + span_notice("You started to fishing."), + span_notice("You hear the sound of a fishing rod.")) + playsound(rod, 'sound/effects/fishing_rod_throw.ogg', 30) + if(do_after(user, 6 SECONDS, target = src)) + if(!rod.wielded) + return + var/atom/parent = src + var/list/fishing_contents = parent.GetAllContents() + if(!length(fishing_contents)) + to_chat(user, span_warning("There's nothing here!")) + return + var/found = FALSE + for(var/mob/M in fishing_contents) + M.forceMove(get_turf(user)) + UnregisterSignal(M, COMSIG_LIVING_REVIVE) + found = TRUE + if(found) + to_chat(user, span_warning("You reel in something!")) + playsound(rod, 'sound/effects/fishing_rod_catch.ogg', 30) + else + to_chat(user, span_warning("There's nothing here!")) + return /turf/simulated/floor/chasm/is_safe() if(find_safeties() && ..()) @@ -154,8 +182,18 @@ L.adjustBruteLoss(30) falling_atoms -= AM +/turf/simulated/floor/chasm/straight_down + var/obj/effect/abstract/chasm_storage/storage + /turf/simulated/floor/chasm/straight_down/Initialize() ..() + var/found_storage = FALSE + for(var/obj/effect/abstract/chasm_storage/C in contents) + storage = C + found_storage = TRUE + break + if(!found_storage) + storage = new /obj/effect/abstract/chasm_storage(src) drop_x = x drop_y = y drop_z = z - 1 @@ -206,18 +244,90 @@ if(isrobot(AM)) var/mob/living/silicon/robot/S = AM qdel(S.mmi) + qdel(AM) + return falling_atoms -= AM - qdel(AM) + if(istype(AM, /obj/item/grenade/jaunter_grenade)) + AM.forceMove(storage) + return + + if(isliving(AM)) + if(!storage) + storage = new(get_turf(src)) + + if(storage.contains(AM)) + return + + AM.alpha = oldalpha + AM.color = oldcolor + AM.transform = oldtransform - if(AM && !QDELETED(AM)) //It's indestructible + if(!AM.forceMove(storage)) + visible_message(span_boldwarning("[src] spits out [AM]!")) + AM.throw_at(get_edge_target_turf(src, pick(GLOB.alldirs)), rand(1, 10), rand(1, 10)) + + + var/mob/living/fallen_mob = AM + if(fallen_mob.stat != DEAD) + fallen_mob.death(TRUE) + fallen_mob.notransform = FALSE + fallen_mob.apply_damage(1000) + + else + qdel(AM) + + + if(!isliving(AM) && AM && !QDELETED(AM)) //It's indestructible and not human visible_message(span_boldwarning("[src] spits out the [AM]!")) AM.alpha = oldalpha AM.color = oldcolor AM.transform = oldtransform AM.throw_at(get_edge_target_turf(src,pick(GLOB.alldirs)),rand(1, 10),rand(1, 10)) +/obj/effect/abstract/chasm_storage + name = "chasm depths" + desc = "The bottom of a hole. You shouldn't be able to interact with this." + anchored = TRUE + mouse_opacity = MOUSE_OPACITY_TRANSPARENT + +/obj/effect/abstract/chasm_storage/Entered(atom/movable/arrived) + . = ..() + if(isliving(arrived)) + RegisterSignal(arrived, COMSIG_LIVING_REVIVE, PROC_REF(on_revive)) + +/obj/effect/abstract/chasm_storage/Exited(atom/movable/gone) + . = ..() + if(isliving(gone)) + UnregisterSignal(gone, COMSIG_LIVING_REVIVE) + +#define CHASM_TRAIT "chasm trait" +/** + * Called if something comes back to life inside the pit. Expected sources are badmins and changelings. + * Ethereals should take enough damage to be smashed and not revive. + * Arguments + * escapee - Lucky guy who just came back to life at the bottom of a hole. + */ + +/obj/effect/abstract/chasm_storage/proc/on_revive(mob/living/escapee) + SIGNAL_HANDLER + var/turf/ourturf = get_turf(src) + if(istype(ourturf, /turf/simulated/floor/chasm/straight_down/lava_land_surface)) + ourturf.visible_message(span_boldwarning("After a long climb, [escapee] leaps out of [ourturf]!")) + else + playsound(ourturf, 'sound/effects/bang.ogg', 50, TRUE) + ourturf.visible_message(span_boldwarning("[escapee] busts through [ourturf], leaping out of the chasm below!")) + ourturf.ChangeTurf(ourturf.baseturf) + escapee.flying = TRUE + escapee.forceMove(ourturf) + escapee.throw_at(get_edge_target_turf(ourturf, pick(GLOB.alldirs)), rand(2, 10), rand(2, 10)) + escapee.flying = FALSE + escapee.Sleeping(20 SECONDS) + UnregisterSignal(escapee, COMSIG_LIVING_REVIVE) + +#undef CHASM_TRAIT + /turf/simulated/floor/chasm/straight_down/lava_land_surface/normal_air oxygen = MOLES_O2STANDARD nitrogen = MOLES_N2STANDARD diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index 911ae718d9b..48416cb4248 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -431,8 +431,8 @@ else if(istype(I, /obj/item/pickaxe/drill/jackhammer)) to_chat(user, span_notice("You begin to disintegrates the wall.")) - - if(do_after(user, isdiamond ? 600 * I.toolspeed * gettoolspeedmod(user) : 300 * I.toolspeed * gettoolspeedmod(user), target = src)) // Jackhammer has 0.1 toolspeed, so 60/30 + var/obj/item/pickaxe/drill/jackhammer/jh = I + if(do_after(user, isdiamond ? 600 * jh.wall_toolspeed * gettoolspeedmod(user) : 300 * jh.wall_toolspeed * gettoolspeedmod(user), target = src)) // Jackhammer has 0.1 toolspeed, so 60/30 to_chat(user, span_notice("Your [I.name] disintegrates the reinforced plating.")) dismantle_wall() visible_message(span_warning("[user] disintegrates [src]!"),span_warning("You hear the grinding of metal.")) diff --git a/code/game/turfs/simulated/walls_reinforced.dm b/code/game/turfs/simulated/walls_reinforced.dm index bfb1f176889..6739b559b77 100644 --- a/code/game/turfs/simulated/walls_reinforced.dm +++ b/code/game/turfs/simulated/walls_reinforced.dm @@ -213,8 +213,8 @@ if(istype(I, /obj/item/pickaxe/drill/jackhammer)) to_chat(user, span_notice("You begin to disintegrate the wall...")) - - if(do_after(user, 1000 * I.toolspeed * gettoolspeedmod(user), target = src)) // Jackhammer has 0.1 toolspeed, so 100 + var/obj/item/pickaxe/drill/jackhammer/jh = I + if(do_after(user, 1000 * jh.wall_toolspeed * gettoolspeedmod(user), target = src)) // Jackhammer has 0.1 toolspeed, so 100 to_chat(user, span_notice("Your sonic jackhammer disintegrates the reinforced plating.")) dismantle_wall() return TRUE diff --git a/code/modules/awaymissions/mission_code/blackmarketpackers.dm b/code/modules/awaymissions/mission_code/blackmarketpackers.dm index 992094d376e..37f1ef8b212 100644 --- a/code/modules/awaymissions/mission_code/blackmarketpackers.dm +++ b/code/modules/awaymissions/mission_code/blackmarketpackers.dm @@ -222,3 +222,4 @@ mob_types = list(/mob/living/simple_animal/hostile/poison/giant_spider, /mob/living/simple_animal/hostile/poison/giant_spider/hunter) spawn_text = "crawls out of" faction = list("spiders") + mob_gps_id = "SPD" diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index bb58df1d4aa..0b5066caab2 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -220,6 +220,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts "1018" = 100, // CHANNEL_AMBIENCE "1014" = 50, // CHANNEL_TTS_LOCAL "1013" = 20, // CHANNEL_TTS_RADIO + "1012" = 100 // CHANNEL_BOSS_MUSIC ) /// The volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming. var/volume_mixer_saving = null diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm index 94968d3bd54..a8525be2633 100644 --- a/code/modules/clothing/gloves/color.dm +++ b/code/modules/clothing/gloves/color.dm @@ -124,7 +124,7 @@ desc = "Rudimentary gloves that aid in carrying." icon_state = "goligloves" item_state = "goligloves" - armor = list("melee" = 10, "bullet" = 5, "laser" = 5, "energy" = 5, "bomb" = 0, "bio" = 0, "rad" = 20, "fire" = 50, "acid" = 50) + armor = list("melee" = 20, "bullet" = 10, "laser" = 10, "energy" = 5, "bomb" = 0, "bio" = 0, "rad" = 20, "fire" = 50, "acid" = 50) can_be_cut = FALSE /obj/item/clothing/gloves/color/orange diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm index 8e88d6a1b44..fa4d2e41b9d 100644 --- a/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/code/modules/clothing/spacesuits/miscellaneous.dm @@ -411,3 +411,54 @@ "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/suit.dmi', "Vox" = 'icons/mob/clothing/species/vox/suit.dmi') sprite_sheets_obj = null + +//pirate-themed stuff +/obj/item/clothing/suit/space/eva/pirate + name = "pirate EVA suit" + icon_state = "pirate_armor" + item_state = "s_suit" + desc = "A lightweight pirate-themed EVA suit designed to protect from vacuum and those nasty lasers flying from the victims of pirate raid." + armor = list(melee = 10, bullet = 5, laser = 30, energy = 25, bomb = 0, bio = 100, rad = 20, fire = 50, acid = 65) + sprite_sheets = list( + "Unathi" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Ash Walker" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Ash Walker Shaman" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Draconid" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Tajaran" = 'icons/mob/clothing/species/tajaran/suit.dmi', + "Skrell" = 'icons/mob/clothing/species/skrell/suit.dmi', + "Vox" = 'icons/mob/clothing/species/vox/suit.dmi', + "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/suit.dmi', + "Drask" = 'icons/mob/clothing/species/drask/suit.dmi' + ) + +/obj/item/clothing/head/helmet/space/eva/pirate + name = "pirate EVA helmet" + icon_state = "pirate_armor" + item_state = "s_helmet" + desc = "A lightweight pirate-themed space helmet with white skull on it designed to protect from vacuum and those nasty lasers flying from the victims of pirate raid." + flags_inv = HIDEMASK|HIDEHEADSETS|HIDEGLASSES|HIDENAME + armor = list(melee = 10, bullet = 5, laser = 30, energy = 25, bomb = 0, bio = 100, rad = 20, fire = 50, acid = 65) + flash_protect = 2 + sprite_sheets = list( + "Unathi" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Ash Walker" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Ash Walker Shaman" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Draconid" = 'icons/mob/clothing/species/unathi/suit.dmi', + "Tajaran" = 'icons/mob/clothing/species/tajaran/suit.dmi', + "Skrell" = 'icons/mob/clothing/species/skrell/suit.dmi', + "Vox" = 'icons/mob/clothing/species/vox/suit.dmi', + "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/suit.dmi', + "Drask" = 'icons/mob/clothing/species/drask/suit.dmi' + ) + +/obj/item/clothing/suit/space/eva/pirate/leader + name = "pirate leader EVA suit" + icon_state = "leader_armor" + desc = "A lightweight pirate-themed EVA suit designed to protect from vacuum and those nasty lasers flying from the victims of pirate raid. This one has a red markings." + armor = list(melee = 15, bullet = 10, laser = 35, energy = 30, bomb = 0, bio = 100, rad = 20, fire = 50, acid = 65) + +/obj/item/clothing/head/helmet/space/eva/pirate/leader + name = "pirate leader EVA helmet" + icon_state = "leader_armor" + desc = "A lightweight pirate-themed space helmet with red skull on it designed to protect from vacuum and those nasty lasers flying from the victims of pirate raid." + armor = list(melee = 15, bullet = 10, laser = 35, energy = 30, bomb = 0, bio = 100, rad = 20, fire = 50, acid = 65) diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index ed5a7c2072f..b5bb98f74ab 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -214,6 +214,7 @@ /obj/item/clothing/accessory/medal/gold/heroism name = "medal of exceptional heroism" desc = "An extremely rare golden medal awarded only by CentComm. To recieve such a medal is the highest honor and as such, very few exist." + icon_state = "ion" // SILVER (awarded by Captain) @@ -266,8 +267,74 @@ desc = "A rarely-awarded medal for those who sacrifice themselves in the line of duty to save their fellow crew." icon_state = "bronze_heart" +// Plasma, from NT research departments. For now, used by the HRD-MDE project for the moderate 2 fauna, drake and hierophant. +/obj/item/clothing/accessory/medal/plasma + name = "plasma medal" + desc = "An eccentric medal made of plasma." + icon_state = "plasma" + item_color = "plasma" + materials = list(MAT_PLASMA = 1000) +/obj/item/clothing/accessory/medal/plasma/temperature_expose(datum/gas_mixture/air, temperature, volume) + ..() + if(temperature > T0C + 200) + burn_up() + +/obj/item/clothing/accessory/medal/plasma/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay) + . = ..() + burn_up() + +/obj/item/clothing/accessory/medal/plasma/proc/burn_up() + var/turf/simulated/T = get_turf(src) + if(istype(T)) + T.atmos_spawn_air(LINDA_SPAWN_HEAT | LINDA_SPAWN_TOXINS | LINDA_SPAWN_OXYGEN, 10) //Technically twice as much plasma as it should spawn but a little more never hurt anyone. + visible_message("[src] bursts into flame!") + qdel(src) + +// Alloy, for the vetus speculator, or abductors I guess. + +/obj/item/clothing/accessory/medal/alloy + name = "alloy medal" + desc = "An eccentric medal made of some strange alloy." + icon_state = "alloy" + item_color = "alloy" + materials = list(MAT_METAL = 500, MAT_PLASMA = 500) + +// Mostly mining medals past here + +/obj/item/clothing/accessory/medal/gold/bubblegum + name = "bubblegum HRD-MDE award" + desc = "An award which represents magnificant contributions to the HRD-MDE project in the form of analysing Bubblegum, and the related blood space." + +/obj/item/clothing/accessory/medal/gold/heroism/hardmode_full //Kill every hardmode boss. In a shift. Good luck. + name = "medal of incredible dedication" + desc = "An extremely rare golden medal awarded only by CentComm. This medal was issued for miners who went above and beyond for the HRD-MDE project. Engraved on it is the phrase 'mori quam foedari'..." + +/obj/item/clothing/accessory/medal/silver/colossus + name = "colossus HRD-MDE award" + desc = "An award which represents major contributions to the HRD-MDE project in the form of analysing a colossus." + +/obj/item/clothing/accessory/medal/silver/legion + name = "legion HRD-MDE award" + desc = "An award which represents major contributions to the HRD-MDE project in the form of analysing the Legion." + +/obj/item/clothing/accessory/medal/blood_drunk + name = "blood drunk HRD-MDE award" + desc = "A award which represents minor contributions to the HRD-MDE project in the form of analysing the blood drunk miner." + +/obj/item/clothing/accessory/medal/plasma/hierophant + name = "hierophant HRD-MDE award" + desc = "An award which represents moderate contributions to the HRD-MDE project in the form of analysing the Hierophant." + + +/obj/item/clothing/accessory/medal/plasma/ash_drake + name = "ash drake HRD-MDE award" + desc = "An award which represents moderate contributions to the HRD-MDE project in the form of analysing an ash drake." + +/obj/item/clothing/accessory/medal/alloy/vetus + name = "vetus speculator HRD-MDE award" + desc = "An award which represents major contributions to the HRD-MDE project in the form of analysing the Vetus Speculator." /* Holobadges are worn on the belt or neck, and can be used to show that the holder is an authorized diff --git a/code/modules/clothing/under/accessories/jewelry.dm b/code/modules/clothing/under/accessories/jewelry.dm new file mode 100644 index 00000000000..40ed73df7c0 --- /dev/null +++ b/code/modules/clothing/under/accessories/jewelry.dm @@ -0,0 +1,178 @@ +//craftable jewelry + +/obj/item/clothing/accessory/necklace/gem + name = "gem necklace" + desc = "A simple necklace with a slot for gem." + icon = 'icons/obj/clothing/jewelry.dmi' + icon_state = "gem_necklace" + item_state = "gem_necklace" + slot_flags = SLOT_NECK | SLOT_TIE //trust me, I am 100% triplechecked this + allow_duplicates = FALSE + var/gem = null + icon_override = 'icons/mob/clothing/jewelry.dmi' + var/dragon_power = FALSE //user get additional bonuses for using draconic amber + var/necklace_light = FALSE //some lighting stuff + + +/obj/item/clothing/accessory/necklace/gem/examine(mob/user) + . = ..() + if(!gem) + . += "It looks like there is no gem inside!" + if(dragon_power) + . += "The necklace feels warm to touch." + +/obj/item/clothing/accessory/necklace/gem/attackby(obj/item/gem/I, mob/user, params) + . = ..() + if(istype(I, /obj/item/gem) && !I.insertable) + to_chat(user, span_notice("You have no idea how to insert [I] into necklace.")) + return + if(istype(I, /obj/item/gem) && I.insertable && !gem) + I.light_range = 0 + I.light_power = 0 + I.light_color = null + user.drop_transfer_item_to_loc(I, src) + //generic gems + if(istype(I, /obj/item/gem/ruby)) + name = "ruby necklace" + icon_state = "ruby_necklace" + if(istype(I, /obj/item/gem/sapphire)) + name = "sapphire necklace" + icon_state = "sapphire_necklace" + if(istype(I, /obj/item/gem/emerald)) + name = "emerald necklace" + icon_state = "emerald_necklace" + if(istype(I, /obj/item/gem/topaz)) + name = "topaz necklace" + icon_state = "topaz_necklace" + //fauna gems + if(istype(I, /obj/item/gem/rupee)) + name = "ruperium necklace" + icon_state = "rupee_necklace" + if(istype(I, /obj/item/gem/magma)) + name = "auric necklace" + icon_state = "magma_necklace" + light_range = 3 + light_power = 2 + light_color = "#ff7b00" + if(istype(I, /obj/item/gem/fdiamond)) + name = "diamond necklace" + icon_state = "diamond_necklace" + light_range = 3 + light_power = 2 + light_color = "#62cad5" + //megafauna gems + if(istype(I, /obj/item/gem/void)) + name = "null necklace" + icon_state = "void_necklace" + light_range = 3 + light_power = 2 + light_color = "#4785a4" + if(istype(I, /obj/item/gem/bloodstone)) + name = "ichorium necklace" + icon_state = "red_necklace" + light_range = 4 + light_power = 2 + light_color = "#800000" + if(istype(I, /obj/item/gem/purple)) + name = "dilithium necklace" + icon_state = "purple_necklace" + light_range = 3 + light_power = 2 + light_color = "#b90586" + resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF + if(istype(I, /obj/item/gem/phoron)) + name = "baroxuldium necklace" + icon_state = "phoron_necklace" + light_range = 3 + light_power = 2 + light_color = "#7d0692" + if(istype(I, /obj/item/gem/amber)) + name = "draconic necklace" + icon_state = "amber_necklace" + light_range = 3 + light_power = 2 + light_color = "#FFBF00" + dragon_power = TRUE + gem = I + to_chat(user, span_notice("You carefully insert [I] into necklace.")) + update_light() + +/obj/item/clothing/accessory/necklace/gem/on_attached(obj/item/clothing/under/S, mob/user) + . = ..() + if(isliving(user) && dragon_power) + var/mob/living/M = user + M.apply_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + +/obj/item/clothing/accessory/necklace/gem/on_removed(mob/user) + . = ..() + if(isliving(user) && dragon_power) + var/mob/living/M = user + M.remove_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + +/obj/item/clothing/accessory/necklace/gem/attached_unequip() + if(isliving(usr) && dragon_power) + var/mob/living/M = usr + M.remove_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + return ..() + +/obj/item/clothing/accessory/necklace/gem/attached_equip() + if(isliving(usr) && dragon_power) + var/mob/living/M = usr + M.apply_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + return ..() + +/obj/item/clothing/accessory/necklace/gem/equipped(mob/user, slot, initial) + . = ..() + if(isliving(user) && dragon_power && slot == slot_neck) + var/mob/living/M = user + M.apply_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + +/obj/item/clothing/accessory/necklace/gem/dropped(mob/user) + . = ..() + var/mob/living/M = user + if(isliving(user) && dragon_power && M.get_item_by_slot(slot_neck) == src) + M.remove_status_effect(STATUS_EFFECT_DRAGON_STRENGTH) + +//bracers +/obj/item/clothing/gloves/jewelry_bracers + name = "gem bracers" + desc = "A simple golden bracers with a slot for gems." + icon = 'icons/obj/clothing/jewelry.dmi' + icon_state = "gem_bracers" + item_state = "gem_bracers" + icon_override = 'icons/mob/clothing/jewelry.dmi' + var/gem = null + transfer_prints = TRUE + cold_protection = HANDS + +/obj/item/clothing/gloves/jewelry_bracers/examine(mob/user) + . = ..() + if(!gem) + . += "It looks like there is no gem inside!" + +/obj/item/clothing/gloves/jewelry_bracers/attackby(obj/item/gem/I, mob/user, params) + . = ..() + if(istype(I, /obj/item/gem) && !I.simple) + to_chat(user, span_notice("You have no idea how to insert [I] into bracers.")) + return + if(istype(I, /obj/item/gem) && I.simple && !gem) + user.drop_transfer_item_to_loc(I, src) + if(istype(I, /obj/item/gem/ruby)) + name = "ruby bracers" + icon_state = "ruby_bracers" + item_state = "ruby_bracers" + if(istype(I, /obj/item/gem/sapphire)) + name = "sapphire bracers" + icon_state = "sapphire_bracers" + item_state = "sapphire_bracers" + if(istype(I, /obj/item/gem/emerald)) + name = "emerald bracers" + icon_state = "emerald_bracers" + item_state = "emerald_bracers" + if(istype(I, /obj/item/gem/topaz)) + name = "topaz bracers" + icon_state = "topaz_bracers" + item_state = "topaz_bracers" + gem = I + to_chat(user, span_notice("You carefully insert [I] into necklace.")) + user.update_inv_gloves() diff --git a/code/modules/crafting/tailoring.dm b/code/modules/crafting/tailoring.dm index 095a519fcd4..66dc241599d 100644 --- a/code/modules/crafting/tailoring.dm +++ b/code/modules/crafting/tailoring.dm @@ -350,3 +350,18 @@ /obj/item/assembly/voice = 1, /obj/item/stack/cable_coil = 5) category = CAT_CLOTHING + +/datum/crafting_recipe/gem_necklace + name = "Gem Necklace" + result = list(/obj/item/clothing/accessory/necklace/gem) + time = 60 + reqs = list(/obj/item/stack/sheet/mineral/gold = 10, + /obj/item/stack/sheet/leather = 1) + category = CAT_CLOTHING + +/datum/crafting_recipe/gem_bracers + name = "Gem Bracers" + result = list(/obj/item/clothing/gloves/jewelry_bracers) + time = 70 + reqs = list(/obj/item/stack/sheet/mineral/gold = 20) + category = CAT_CLOTHING diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index 139e748b88a..61a18857e3e 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -290,6 +290,10 @@ name = "Purple Bioluminescence" glow_color = "#b434df" +/datum/plant_gene/trait/glow/yellow + name = "Yellow Bioluminescence" + glow_color = "#FFFF66" + /datum/plant_gene/trait/glow/shadow //makes plant emit slightly purple shadows //adds -potency*rate light power to products diff --git a/code/modules/mining/equipment/explorer_gear.dm b/code/modules/mining/equipment/explorer_gear.dm index c9f3cbea615..b297b2d8677 100644 --- a/code/modules/mining/equipment/explorer_gear.dm +++ b/code/modules/mining/equipment/explorer_gear.dm @@ -178,7 +178,7 @@ /obj/item/clothing/suit/hooded/pathfinder name = "pathfinder cloak" desc = "A thick cloak woven from sinew and hides, designed to protect its wearer from hazardous weather." - allowed = list(/obj/item/flashlight, /obj/item/tank, /obj/item/resonator, /obj/item/mining_scanner, /obj/item/t_scanner/adv_mining_scanner, /obj/item/gun/energy/kinetic_accelerator, /obj/item/pickaxe, /obj/item/twohanded/kinetic_crusher, /obj/item/hierophant_club, /obj/item/twohanded/fireaxe) + allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/pickaxe, /obj/item/twohanded/spear, /obj/item/organ/internal/regenerative_core/legion, /obj/item/kitchen/knife/combat/survival, /obj/item/twohanded/kinetic_crusher, /obj/item/hierophant_club, /obj/item/twohanded/fireaxe/boneaxe) icon_state = "pathcloak" item_state = "pathcloak" armor = list("melee" = 35, "bullet" = 35, "laser" = 35, "energy" = 35, "bomb" = 50, "bio" = 100, "rad" = 50, "fire" = 50, "acid" = 50) diff --git a/code/modules/mining/equipment/hardmode_grenade.dm b/code/modules/mining/equipment/hardmode_grenade.dm new file mode 100644 index 00000000000..522c7cc864e --- /dev/null +++ b/code/modules/mining/equipment/hardmode_grenade.dm @@ -0,0 +1,78 @@ +/obj/item/grenade/megafauna_hardmode + name = "\improper HRD-MDE Scanning Grenade" + desc = "An advanced grenade that releases nanomachines, which enter nearby megafauna. This will enrage them greatly, but allows nanotrasen to fully research their abilities." + icon_state = "enrager" + item_state = "grenade" + +/obj/item/grenade/megafauna_hardmode/prime() + update_mob() + playsound(loc, 'sound/effects/empulse.ogg', 50, TRUE) + for(var/mob/living/simple_animal/hostile/megafauna/M in range(7, src)) + M.enrage() + visible_message("[M] begins to wake up as the nanomachines enter them, it looks pissed!") + qdel(src) + +/obj/item/paper/hardmode + name = "Инструкции по использованию гранаты типа \"HRD-MDE\"" //no joke on russian, uh-oh + icon_state = "paper" + info = {" Добро пожаловать в исследовательскую программу НТ \"HRD-MDE\""
+
+ Данный инструктаж расскажет вам об основах использования экспериментальных научно-исследовательских гранатах.
+
+ При использовании, данные гранаты выпускают облако практически безопасных* для человеческого организма наномашин, которые, при соприкосновении с фауной, позволяют пристально изучить строение их тела при жизни. Мы будем использовать эти данные для создания новых товаров широкого потребления, и для этого нам понадобится ваша помощь!
+
+ Нам необходимо изучить фауну в своей полной, всеобъемлющей силе, пока в них находятся наномашины, поэтому вам необходимо будет с ними сразиться. Предупреждаем, что этот тип наномашин вызывает сильное раздражение у агрессию у фауны, а так же вводит в их тела боевой коктейль военного образца, заставляющий их тела работать на ранее невиданных мощностях."
+
+ Мы работаем с очень огрниченным бюджетом, однако мы предоставим вам оплату за участие в программе: вы получите до 0.01% прибыли** от продажи всех товаров, полученных в результате этого исследования, а так же медали, демонстрирующие ваше стремление к идеалам НТ и продвижение науки вперед. +

+ *НТ не несет ответственности за возможные последствия при контакте нанитов с кожей.
+
**95% средств, полученных вами за участие в эксперименте, будет изъято в счёт погашения долга за перелёт на шаттле Харон, проживание на станциях НТ и страхование жизни класса А-5.
+
Учавствуя в данном эксперименте, вы отказываетесь от всех прав на получение компенсации в случае смерть на рабочем месте.
+"} + +/obj/item/disk/fauna_research + name = "empty HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Seems empty?" + icon_state = "holodisk" + var/obj/item/clothing/accessory/medal/output + +/obj/item/disk/fauna_research/Initialize(mapload) + . = ..() + for(var/obj/structure/closet/C in get_turf(src)) + forceMove(C) + return + +/obj/item/disk/fauna_research/blood_drunk_miner + name = "blood drunk HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the dash and resistance of the blood drunk miner." + output = /obj/item/clothing/accessory/medal/blood_drunk + +/obj/item/disk/fauna_research/hierophant + name = "\improper Hierophant HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the energy manipulation and material composition of the Hierophant." + output = /obj/item/clothing/accessory/medal/plasma/hierophant + +/obj/item/disk/fauna_research/ash_drake + name = "ash drake HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the fire production methods and rapid regeneration of the ash drakes." + output = /obj/item/clothing/accessory/medal/plasma/ash_drake + +/obj/item/disk/fauna_research/vetus + name = "\improper Vetus Speculator HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the anomaly manipulation and computing processes of the Vetus Speculator." + output = /obj/item/clothing/accessory/medal/alloy/vetus + +/obj/item/disk/fauna_research/colossus + name = "colossus HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the powerful voice and A-T field of the colossi." + output = /obj/item/clothing/accessory/medal/silver/colossus + +/obj/item/disk/fauna_research/legion + name = "\improper Legion HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the endless regeneration and disintegration laser of the Legion." + output = /obj/item/clothing/accessory/medal/silver/legion + +/obj/item/disk/fauna_research/bubblegum + name = "\improper Bubblegum HRD-MDE project disk" + desc = "A disk used by the HRD-MDE project. Contains data on the bloodcrawling and \[REDACTED\] of Bubblegum." //I hate this so much + output = /obj/item/clothing/accessory/medal/gold/bubblegum diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm index fd0c4ccab1b..c97378f3429 100644 --- a/code/modules/mining/equipment/kinetic_crusher.dm +++ b/code/modules/mining/equipment/kinetic_crusher.dm @@ -92,6 +92,14 @@ . = ..() if(!wielded) return + if(user.has_status_effect(STATUS_EFFECT_DASH) && user.a_intent == INTENT_HELP) + if(user.throw_at(target, range = 3, speed = 3, spin = FALSE, diagonals_first = TRUE)) + playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1) + user.visible_message("[user] dashes!") + else + to_chat(user, "Something prevents you from dashing!") + user.remove_status_effect(STATUS_EFFECT_DASH) + return if(!proximity_flag && charged)//Mark a target, or mine a tile. var/turf/proj_turf = user.loc if(!isturf(proj_turf)) @@ -456,7 +464,7 @@ C.monster_damage_boost = FALSE add_attack_logs(user, target, "fired a chaser at", src) - +//vetus /obj/item/crusher_trophy/adaptive_intelligence_core name = "adaptive intelligence core" desc = "Seems to be one of the cores from a massive robot. Suitable as a trophy for a kinetic crusher." @@ -477,6 +485,20 @@ if(.) H.adaptive_damage_bonus -= bonus_value +//legion + +/obj/item/crusher_trophy/empowered_legion_skull + name = "empowered legion skull" + desc = "A powerful looking skull with glowing red eyes." + icon_state = "ashen_skull" + denied_type = /obj/item/crusher_trophy/empowered_legion_skull + +/obj/item/crusher_trophy/empowered_legion_skull/effect_desc() + return "mark detonation grants the ability to dash a short distance on help intent" + +/obj/item/crusher_trophy/empowered_legion_skull/on_mark_detonation(mob/living/target, mob/living/user) + user.apply_status_effect(STATUS_EFFECT_DASH) + //Magmite Crusher /obj/item/twohanded/kinetic_crusher/mega diff --git a/code/modules/mining/equipment/mineral_scanner.dm b/code/modules/mining/equipment/mineral_scanner.dm index 92972ad8d8a..008cd1f1de0 100644 --- a/code/modules/mining/equipment/mineral_scanner.dm +++ b/code/modules/mining/equipment/mineral_scanner.dm @@ -25,7 +25,7 @@ return if(current_cooldown <= world.time) current_cooldown = world.time + cooldown - mineral_scan_pulse(get_turf(user)) + mineral_scan_pulse(get_turf(user), 5) if(speaker) playsound(src, pick(soundone, soundtwo), 35) diff --git a/code/modules/mining/equipment/mining_charges.dm b/code/modules/mining/equipment/mining_charges.dm index 4309e5c01bc..7471c91932a 100644 --- a/code/modules/mining/equipment/mining_charges.dm +++ b/code/modules/mining/equipment/mining_charges.dm @@ -7,6 +7,12 @@ det_time = 5 var/smoke_amount = 3 var/boom_sizes = list(2,3,5) + var/hacked = FALSE + +/obj/item/grenade/plastic/miningcharge/examine(mob/user) + . = ..() + if(hacked) + . += "Its wiring is haphazardly changed." /obj/item/grenade/plastic/miningcharge/Initialize() . = ..() @@ -17,13 +23,16 @@ nadeassembly.attack_self(user) /obj/item/grenade/plastic/miningcharge/afterattack(atom/movable/AM, mob/user, flag) - if(ismineralturf(AM)) - if(isancientturf(AM)) + if(ismineralturf(AM) || hacked) + if(isancientturf(AM) && !hacked) visible_message("This rock appears to be resistant to all mining tools except pickaxes!") return ..() /obj/item/grenade/plastic/miningcharge/prime() + if(hacked) //explosion + explode() + return var/turf/simulated/mineral/location = get_turf(target) var/datum/effect_system/smoke_spread/S = new S.set_up(smoke_amount,0,location,null) @@ -50,6 +59,32 @@ to_chat(C, span_warning("You are knocked down by the power of the mining charge!")) qdel(src) +/obj/item/grenade/plastic/miningcharge/proc/explode() //c4 code + var/turf/location + if(target) + if(!QDELETED(target)) + if(istype(target, /turf/)) + location = get_turf(target) + else + location = get_atom_on_turf(target) + target.overlays -= image_overlay + else + location = get_atom_on_turf(src) + if(location) + explosion(location, boom_sizes[1], boom_sizes[2], boom_sizes[3], cause = src) + location.ex_act(2, target) + if(istype(target, /mob)) + var/mob/M = target + M.gib() + qdel(src) + + +/obj/item/grenade/plastic/miningcharge/proc/override_safety() + hacked = TRUE + boom_sizes[1] = round(boom_sizes[1]/3) //lesser - 0, normal - 0, mega - 1; c4 - 0 + boom_sizes[2] = round(boom_sizes[2]/3) //lesser - 0, normal - 1, mega - 2; c4 - 0 + boom_sizes[3] = round(boom_sizes[3]/1.5)//lesser - 2, normal - 3, mega - 5; c4 - 3 + /obj/item/grenade/plastic/miningcharge/deconstruct(disassembled = TRUE) //no gibbing a miner with pda bombs if(!QDELETED(src)) qdel(src) @@ -75,4 +110,23 @@ new /obj/item/grenade/plastic/miningcharge(src) +//MINING CHARGE HACKER +/obj/item/t_scanner/adv_mining_scanner/syndicate + var/charges = 6 + description_antag = "This scanner has an extra port for overriding mining charge safeties." +/obj/item/t_scanner/adv_mining_scanner/syndicate/afterattack(atom/target, mob/user, proximity_flag, click_parameters) + if(istype(target,/obj/item/grenade/plastic/miningcharge)) + var/obj/item/grenade/plastic/miningcharge/charge = target + if(charge.hacked) + to_chat(user, span_notice("[src] is already overridden!")) + return + if(charges <= 0) + to_chat(user, span_notice("Its overriding function is depleted.")) + return + charge.override_safety() + visible_message(span_warning("Sparks fly out of [src]!"), span_notice("You override [src], disabling its safeties.")) + playsound(src, "sparks", 50, 1) + charges-- + if(charges <= 0) + to_chat(user ,span_warning("[src]'s internal battery for overriding mining charges has run dry!")) diff --git a/code/modules/mining/equipment/mining_tools.dm b/code/modules/mining/equipment/mining_tools.dm index 65e60307bf1..2be3b6b2037 100644 --- a/code/modules/mining/equipment/mining_tools.dm +++ b/code/modules/mining/equipment/mining_tools.dm @@ -19,7 +19,7 @@ embedded_ignore_throwspeed_threshold = TRUE var/excavation_amount = 100 usesound = 'sound/effects/picaxe1.ogg' - toolspeed = 1 + toolspeed = 0.8 /obj/item/pickaxe/proc/playDigSound() playsound(src, pick(digsound),20,1) @@ -50,7 +50,7 @@ item_state = "spickaxe" belt_icon = "silver-plated pickaxe" origin_tech = "materials=3;engineering=4" - toolspeed = 0.5 //mines faster than a normal pickaxe, bought from mining vendor + toolspeed = 0.4 //mines faster than a normal pickaxe, bought from mining vendor desc = "A silver-plated pickaxe that mines slightly faster than standard-issue." force = 17 @@ -60,7 +60,7 @@ item_state = "gpickaxe" belt_icon = "golden pickaxe" origin_tech = "materials=4;engineering=4" - toolspeed = 0.4 + toolspeed = 0.3 desc = "A gold-plated pickaxe that mines faster than standard-issue." force = 18 @@ -70,7 +70,7 @@ item_state = "dpickaxe" belt_icon = "diamond-tipped pickaxe" origin_tech = "materials=5;engineering=4" - toolspeed = 0.3 + toolspeed = 0.2 desc = "A pickaxe with a diamond pick head. Extremely robust at cracking rock walls and digging up dirt." force = 19 @@ -79,7 +79,7 @@ icon_state = "handdrill" item_state = "jackhammer" digsound = list('sound/weapons/drill.ogg') - toolspeed = 0.6 //available from roundstart, faster than a pickaxe. + toolspeed = 0.4 //available from roundstart, faster than a pickaxe. hitsound = 'sound/weapons/drill.ogg' usesound = 'sound/weapons/drill.ogg' origin_tech = "materials=2;powerstorage=2;engineering=3" @@ -95,12 +95,12 @@ icon_state = "diamonddrill" origin_tech = "materials=6;powerstorage=4;engineering=4" desc = "Yours is the drill that will pierce the heavens!" - toolspeed = 0.2 + toolspeed = 0.1 /obj/item/pickaxe/drill/cyborg/diamond //This is the BORG version! name = "diamond-tipped cyborg mining drill" //To inherit the NODROP flag, and easier to change borg specific drill mechanics. icon_state = "diamonddrill" - toolspeed = 0.2 + toolspeed = 0.1 /obj/item/pickaxe/drill/jackhammer name = "sonic jackhammer" @@ -111,7 +111,8 @@ hitsound = 'sound/weapons/sonic_jackhammer.ogg' usesound = 'sound/weapons/sonic_jackhammer.ogg' desc = "Cracks rocks with sonic blasts, and doubles as a demolition power tool for smashing walls." - toolspeed = 0.1 //the epitome of powertools. extremely fast mining, laughs at puny walls + toolspeed = 0.0 //the epitome of powertools, literally instant + var/wall_toolspeed = 0.1 //instant wall breaking is bad. /obj/item/shovel name = "shovel" @@ -128,7 +129,7 @@ origin_tech = "materials=2;engineering=2" attack_verb = list("bashed", "bludgeoned", "thrashed", "whacked") usesound = 'sound/effects/shovel_dig.ogg' - toolspeed = 1 + toolspeed = 0.8 /obj/item/shovel/spade name = "spade" diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index d875509bd74..b9e07ad0b70 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -135,3 +135,133 @@ /obj/item/organ/internal/regenerative_core/legion/preserved(implanted = 0) ..() desc = "[src] has been stabilized. It is preserved, allowing you to use it to heal completely without danger of decay." + +/************************Legion tumor********************/ + +/obj/item/organ/internal/legion_tumour + name = "legion tumour" + desc = "A mass of pulsing flesh and dark tendrils, containing the power to regenerate flesh at a terrible cost." + slot = "parasite_egg" + icon_state = "legion_remains" + parent_organ = "chest" + /// What stage of growth the corruption has reached. + var/stage = 0 + /// We apply this status effect periodically or when used on someone + var/applied_status = /datum/status_effect/regenerative_core + /// How long have we been in this stage? + var/elapsed_time = 0 SECONDS + /// How long does it take to advance one stage? + var/growth_time = 80 SECONDS // Long enough that if you go back to lavaland without realising it you're not totally fucked + /// What kind of mob will we transform into? + var/spawn_type = /mob/living/simple_animal/hostile/asteroid/hivelord/legion + /// Spooky sounds to play as you start to turn + var/static/list/spooky_sounds = list( + 'sound/voice/lowHiss1.ogg', + 'sound/voice/lowHiss2.ogg', + 'sound/voice/lowHiss3.ogg', + 'sound/voice/lowHiss4.ogg', + ) + +/obj/item/organ/internal/legion_tumour/remove(mob/living/carbon/egg_owner, special) + . = ..() + stage = 0 + elapsed_time = 0 + +/obj/item/organ/internal/legion_tumour/attack(mob/living/target, mob/living/user, params) + if(try_apply(target, user)) + qdel(src) + return + return ..() + +/// Smear it on someone like a regen core, why not. Make sure they're alive though. +/obj/item/organ/internal/legion_tumour/proc/try_apply(mob/living/target, mob/user) + if(ishuman(target)) + var/mob/living/carbon/human/H = target + if(H.stat == DEAD) + to_chat(user, "[src] is useless on the dead.") + return + if(H != user) + H.visible_message("[user] forces [H] to apply [src]... Black tendrils entangle and reinforce [H.p_them()]!") + SSblackbox.record_feedback("nested tally", "hivelord_core", 1, list("[type]", "used", "other")) + else + to_chat(user, "You start to smear [src] on yourself. Disgusting tendrils hold you together and allow you to keep moving, but for how long?") + SSblackbox.record_feedback("nested tally", "hivelord_core", 1, list("[type]", "used", "self")) + H.apply_status_effect(STATUS_EFFECT_REGENERATIVE_CORE) + user.temporarily_remove_item_from_inventory(src) + qdel(src) + +/obj/item/organ/internal/legion_tumour/on_life() + . = ..() + if (QDELETED(src) || QDELETED(owner)) + return + + if(stage >= 2) + if(prob(stage / 5)) //umhh, it's about ~0.4% every tick on stage 2 0.4% on stage 2, 0.6% on 3, etc. + to_chat(owner, span_notice("You feel a bit better.")) + owner.apply_status_effect(applied_status) // It's not all bad! + if(prob(1)) + owner.emote("twitch") + switch(stage) + if(2, 3) + if(prob(1)) + to_chat(owner, span_danger("Your chest spasms!")) + if(prob(1)) + to_chat(owner, span_danger("You feel weak.")) + if(prob(1)) + SEND_SOUND(owner, sound(pick(spooky_sounds))) + if(prob(2)) + owner.vomit() + if(4, 5) + if(prob(2)) + to_chat(owner, span_danger("Something flexes under your skin.")) + if(prob(2)) + SEND_SOUND(owner, sound(pick(spooky_sounds))) + if(prob(3)) + owner.vomit(0, 1) + if(prob(50)) + var/mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/child = new(owner.loc) + child.faction = owner.faction.Copy() + if(prob(3)) + to_chat(owner, span_danger("Your muscles ache.")) + owner.adjustBruteLoss(20) + if(stage == 5) + if(prob(10)) + infest() + return + elapsed_time += 1 SECONDS + if(elapsed_time < growth_time) + return + stage++ + elapsed_time = 0 + if(stage == 5) + to_chat(owner, span_danger("Something is moving under your skin!")) + +/// Consume our host +/obj/item/organ/internal/legion_tumour/proc/infest() + if(QDELETED(src) || QDELETED(owner)) + return + owner.visible_message(span_boldwarning("Black tendrils burst from [owner]'s flesh, covering them in amorphous flesh!")) + var/mob/living/simple_animal/hostile/asteroid/hivelord/legion/L + + if((DWARF in owner.mutations)) //dwarf legions aren't just fluff! + L = new /mob/living/simple_animal/hostile/asteroid/hivelord/legion/dwarf(owner.loc) + else + L = new(owner.loc) + owner.death() + owner.adjustBruteLoss(1000) + L.stored_mob = owner + owner.forceMove(L) + qdel(src) + if(prob(25) && !owner.get_int_organ(/obj/item/organ/internal/legion_tumour)) // Congratulations you have won a very special prize: second cancer in a row! + var/obj/item/organ/internal/legion_tumour/cancer = new() + cancer.insert(owner, special = TRUE) + +/obj/item/organ/internal/legion_tumour/on_find(mob/living/finder) + . = ..() + to_chat(finder, span_warning("There's an enormous tumour in [owner]'s chest!")) + if(stage < 4) + to_chat(finder, span_notice("Its tendrils seem to twitch towards the light.")) + return + to_chat(finder, span_notice("Its pulsing tendrils reach all throughout the body.")) + if(prob(stage * 2)) + infest() diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index d5cee6ad362..b00546b6ca1 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -15,6 +15,15 @@ var/template_id = "shelter_alpha" var/datum/map_template/shelter/template var/used = FALSE + var/emagged = FALSE + +/obj/item/survivalcapsule/emag_act() + if(!emagged) + to_chat(usr, "You short out the safeties, allowing it to be placed in the station sector.") + emagged = TRUE + return + + to_chat(usr, "The safeties are already shorted out!") /obj/item/survivalcapsule/proc/get_template() if(template) @@ -34,6 +43,11 @@ // Can't grab when capsule is New() because templates aren't loaded then get_template() if(used == FALSE) + var/turf/UT = get_turf(usr) + if((UT.z == level_name_to_num(MAIN_STATION)) && !emagged) + to_chat(usr, "Error. Deployment was attempted on the station sector. Deployment aborted.") + playsound(usr, 'sound/machines/buzz-sigh.ogg', 15, TRUE) + return loc.visible_message("[src] begins to shake. Stand back!") used = TRUE sleep(50) diff --git a/code/modules/mining/equipment/weather_radio.dm b/code/modules/mining/equipment/weather_radio.dm new file mode 100644 index 00000000000..14190ab36d1 --- /dev/null +++ b/code/modules/mining/equipment/weather_radio.dm @@ -0,0 +1,124 @@ +#define WEATHER_ALERT_CLEAR 0 +#define WEATHER_ALERT_INCOMING 1 +#define WEATHER_ALERT_IMMINENT_OR_ACTIVE 2 + +/***********************Mining radio**********************/ +/obj/item/radio/weather_monitor + name = "mining weather radio" + icon = 'icons/obj/miningradio.dmi' + icon_state = "miningradio" + desc = "A weather radio designed for use in inhospitable environments. Gives audible warnings when storms approach. Has access to cargo channel." + freqlock = TRUE + luminosity = 1 + light_power = 1 + light_range = 1.6 + /// Currently displayed warning level + var/warning_level = WEATHER_ALERT_CLEAR + /// Whether the incoming weather is actually going to harm you + var/is_weather_dangerous = TRUE + /// Overlay added when things are alright + var/state_normal = "weatherwarning" + /// Overlay added when you should start looking for shelter + var/state_warning = "urgentwarning" + /// Overlay added when you are in danger + var/state_danger = "direwarning" + +/obj/item/radio/weather_monitor/Initialize(mapload) + . = ..() + START_PROCESSING(SSprocessing, src) + set_frequency(SUP_FREQ) + update_light_color() + update_icon() + +/obj/item/radio/weather_monitor/Destroy() + . = ..() + STOP_PROCESSING(SSprocessing, src) + +/obj/item/radio/weather_monitor/process() + var/previous_level = warning_level + var/previous_danger = is_weather_dangerous + set_current_alert_level() + if(previous_level == warning_level && previous_danger == is_weather_dangerous) + return // No change + atom_say(get_warning_message()) + update_icon() + update_light_color() + +/obj/item/radio/weather_monitor/update_icon() + overlays.Cut() + switch(warning_level) + if(WEATHER_ALERT_CLEAR) + overlays += state_normal + if(WEATHER_ALERT_INCOMING) + overlays += state_warning + if(WEATHER_ALERT_IMMINENT_OR_ACTIVE) + overlays += (is_weather_dangerous) ? state_danger : state_warning + +/obj/item/radio/weather_monitor/proc/update_light_color() + switch(warning_level) + if(WEATHER_ALERT_CLEAR) + light_color = LIGHT_COLOR_GREEN + if(WEATHER_ALERT_INCOMING) + light_color = LIGHT_COLOR_YELLOW + if(WEATHER_ALERT_IMMINENT_OR_ACTIVE) + light_color = LIGHT_COLOR_PURE_RED + update_light() + +/obj/item/radio/weather_monitor/proc/get_warning_message() //damn tts + if(!is_weather_dangerous) + return "Приближающаяся буря не представляет угрозы." + switch(warning_level) + if(WEATHER_ALERT_CLEAR) + return "Буря закончилась. Текущая погода не представляет угрозы." + if(WEATHER_ALERT_INCOMING) + return "Приближающается буря. Преступите к поиску убежища." + if(WEATHER_ALERT_IMMINENT_OR_ACTIVE) + return "Буря неизбежна. Немедленно найдите убежище." + return "Ошибка в просчёте погоды. Пожалуйста сообщите об ошибке в службу поддержки НТ." + +/obj/item/radio/weather_monitor/proc/time_till_storm() + var/list/mining_z_levels = levels_by_trait(ORE_LEVEL) + if(!length(mining_z_levels)) + return // No problems if there are no mining z levels + + for(var/datum/weather/check_weather as anything in SSweather.processing) + if(!check_weather.barometer_predictable || check_weather.stage == WIND_DOWN_STAGE || check_weather.stage == END_STAGE) + continue + for (var/mining_level in mining_z_levels) + if(mining_level in check_weather.impacted_z_levels) + warning_level = WEATHER_ALERT_IMMINENT_OR_ACTIVE + return 0 + + var/time_until_next = INFINITY + for(var/mining_level in mining_z_levels) + if(is_mining_level(mining_level)) + var/next_time = SSweather.next_hit_by_zlevel["[mining_level]"] - world.time + if(next_time && next_time < time_until_next) + time_until_next = next_time + return time_until_next + +/obj/item/radio/weather_monitor/proc/set_current_alert_level() + var/time_until_next = time_till_storm() + if(isnull(time_until_next)) + return // No problems if there are no mining z levels + if(time_until_next >= 2 MINUTES) + warning_level = WEATHER_ALERT_CLEAR + return + if(time_until_next >= 30 SECONDS) + warning_level = WEATHER_ALERT_INCOMING + return + // Weather is here, now we need to figure out if it is dangerous + warning_level = WEATHER_ALERT_IMMINENT_OR_ACTIVE + + for(var/datum/weather/check_weather as anything in SSweather.processing) + if(!check_weather.barometer_predictable || check_weather.stage == WIND_DOWN_STAGE || check_weather.stage == END_STAGE) + continue + var/list/mining_z_level = levels_by_trait(ORE_LEVEL) + for(var/mining_level in mining_z_level) + if(mining_level in check_weather.impacted_z_levels) + is_weather_dangerous = !check_weather.aesthetic + return + +#undef WEATHER_ALERT_CLEAR +#undef WEATHER_ALERT_INCOMING +#undef WEATHER_ALERT_IMMINENT_OR_ACTIVE diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm index 3311d98b3e1..56afc1d6054 100644 --- a/code/modules/mining/equipment/wormhole_jaunter.dm +++ b/code/modules/mining/equipment/wormhole_jaunter.dm @@ -92,3 +92,49 @@ if(ishuman(L)) shake_camera(L, 20, 1) addtimer(CALLBACK(L, TYPE_PROC_REF(/mob/living/carbon, vomit)), 20) + +/obj/item/grenade/jaunter_grenade + name = "chasm jaunter recovery grenade" + desc = "NT-Drunk Dialer Grenade. Originally built by NT for locating all beacons in an area and creating wormholes to them, it now finds use to miners for recovering allies from chasms." + icon_state = "mirage" + /// Mob that threw the grenade. + var/mob/living/thrower + +/obj/item/grenade/jaunter_grenade/Destroy() + thrower = null + return ..() + +/obj/item/grenade/jaunter_grenade/attack_self(mob/user) + . = ..() + thrower = user + +/obj/item/grenade/jaunter_grenade/prime() + update_mob() + var/list/destinations = list() + for(var/obj/item/radio/beacon/B in GLOB.global_radios) + var/turf/BT = get_turf(B) + if(is_station_level(BT.z)) + destinations += BT + var/turf/T = get_turf(src) + if(istype(T, /turf/simulated/floor/chasm/straight_down/lava_land_surface)) + for(var/obj/effect/abstract/chasm_storage/C in T) + var/found_mob = FALSE + for(var/mob/M in C) + found_mob = TRUE + do_teleport(M, pick(destinations)) + if(found_mob) + new /obj/effect/temp_visual/thunderbolt(T) //Visual feedback it worked. + playsound(src, 'sound/magic/lightningbolt.ogg', 100, TRUE) + qdel(src) + else + var/list/portal_turfs = list() + for(var/turf/PT in circleviewturfs(T, 3)) + if(!PT.density) + portal_turfs += PT + playsound(src, 'sound/magic/lightningbolt.ogg', 100, TRUE) + for(var/turf/drunk_dial in shuffle(destinations)) + var/drunken_opening = pick_n_take(portal_turfs) + new /obj/effect/portal/jaunt_tunnel(drunken_opening, drunk_dial, src, 100, thrower) + new /obj/effect/temp_visual/thunderbolt(drunken_opening) + qdel(src) + diff --git a/code/modules/mining/lavaland/ash_flora.dm b/code/modules/mining/lavaland/ash_flora.dm index a17e3c8fe32..93078bc9537 100644 --- a/code/modules/mining/lavaland/ash_flora.dm +++ b/code/modules/mining/lavaland/ash_flora.dm @@ -145,6 +145,25 @@ // min dmg 3, max dmg 6, prob(70) AddComponent(/datum/component/caltrop, 3, 6, 70) +/obj/structure/flora/ash/fireblossom + icon_state = "fireblossom" + name = "fire blossom" + desc = "An odd flower that grows commonly near bodies of lava." + harvested_name = "fire blossom stems" + harvested_desc = "A few fire blossom stems, missing their flowers." + harvest = /obj/item/reagent_containers/food/snacks/grown/ash_flora/fireblossom + needs_sharp_harvest = FALSE + light_range = 1.5 + light_power = 2.1 + light_color = "#FFFF66" + harvest_amount_high = 3 + harvest_time = 10 + harvest_message_low = "You pluck a single, suitable flower." + harvest_message_med = "You pluck a number of flowers, leaving a few unsuitable ones." + harvest_message_high = "You pluck quite a lot of suitable flowers." + regrowth_time_low = 2500 + regrowth_time_high = 4000 + /obj/item/reagent_containers/food/snacks/grown/ash_flora name = "mushroom shavings" desc = "Some shavings from a tall mushroom. With enough, might serve as a bowl." @@ -191,6 +210,14 @@ seed = /obj/item/seeds/lavaland/cactus wine_power = 0.5 +/obj/item/reagent_containers/food/snacks/grown/ash_flora/fireblossom + name = "fire blossom" + desc = "A flower from a fire blossom." + icon_state = "fireblossom" + slot_flags = SLOT_HEAD + seed = /obj/item/seeds/lavaland/fireblossom + wine_power = 0.4 + //SEEDS /obj/item/seeds/lavaland @@ -264,6 +291,16 @@ growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi' reagents_add = list("tinlux" = 0.04, "vitamin" = 0.02, "space_drugs" = 0.02) +/obj/item/seeds/lavaland/fireblossom + name = "pack of fire blossom seeds" + desc = "These seeds grow into fire blossoms." + icon_state = "seed-fireblossom" + species = "fireblossom" + plantname = "Fire Blossom" + product = /obj/item/reagent_containers/food/snacks/grown/ash_flora/fireblossom + genes = list(/datum/plant_gene/trait/fire_resistance, /datum/plant_gene/trait/glow/yellow) + reagents_add = list("tinlux" = 0.04, "nutriment" = 0.03, "carbon" = 0.05) + //CRAFTING //what you can craft with these things diff --git a/code/modules/mining/lavaland/loot/ashdragon_loot.dm b/code/modules/mining/lavaland/loot/ashdragon_loot.dm index 7b0810c814e..e232b954a0f 100644 --- a/code/modules/mining/lavaland/loot/ashdragon_loot.dm +++ b/code/modules/mining/lavaland/loot/ashdragon_loot.dm @@ -3,7 +3,7 @@ /obj/structure/closet/crate/necropolis/dragon/populate_contents() new /obj/item/gem/amber(src) - var/loot = rand(1,4) + var/loot = rand(1,5) switch(loot) if(1) new /obj/item/melee/ghost_sword(src) @@ -13,10 +13,9 @@ new /obj/item/spellbook/oneuse/sacredflame(src) new /obj/item/gun/magic/wand/fireball(src) if(4) - if(prob(25)) //Still same chance but now you know if you're turning into a lizard (ew) - new /obj/item/dragons_blood/refined(src) - else - new /obj/item/dragons_blood(src) + new /obj/item/dragons_blood(src) + if(5) + new /obj/item/dragons_blood/refined(src) //turning into lizard stuff /obj/structure/closet/crate/necropolis/dragon/crusher @@ -182,11 +181,10 @@ /obj/item/lava_staff name = "staff of lava" desc = "The power of fire and rocks in your hands!" - icon_state = "staffofstorms" - item_state = "staffofstorms" + icon_state = "lavastaff" + item_state = "lavastaff" icon = 'icons/obj/weapons/magic.dmi' slot_flags = SLOT_BACK - item_state = "staffofstorms" w_class = WEIGHT_CLASS_BULKY force = 25 damtype = BURN diff --git a/code/modules/mining/lavaland/loot/bubblegum_loot.dm b/code/modules/mining/lavaland/loot/bubblegum_loot.dm index 332773a0783..16538ba6cc0 100644 --- a/code/modules/mining/lavaland/loot/bubblegum_loot.dm +++ b/code/modules/mining/lavaland/loot/bubblegum_loot.dm @@ -81,3 +81,67 @@ H.put_in_hands(new /obj/item/kitchen/knife/butcher(H)) qdel(src) + +//hard-mode + +/obj/structure/closet/crate/necropolis/bubblegum/bait/populate_contents() + return + +/obj/effect/bubblegum_trigger + var/list/targets_to_fuck_up = list() + +/obj/effect/bubblegum_trigger/Initialize(mapload, target_list) + . = ..() + addtimer(CALLBACK(src, PROC_REF(activate)), 15 SECONDS) //We try to auto engage the fun 15 seconds after death. + targets_to_fuck_up = target_list + +/obj/effect/bubblegum_trigger/proc/activate() + if(!length(targets_to_fuck_up)) + return + var/spawn_locs = list() + for(var/obj/effect/landmark/spawner/bubblegum_arena/R in GLOB.landmarks_list) + spawn_locs += get_turf(R) + for(var/mob/living/M in targets_to_fuck_up) + var/turf/T = get_turf(M) + M.Immobilize(1 SECONDS) + to_chat(M, "NO! I REFUSE TO LET YOU THINK YOU HAVE WON. I SHALL END YOUR INSIGNIFICANT LIFE!") + new /obj/effect/temp_visual/bubblegum_hands/leftpaw(T) + new /obj/effect/temp_visual/bubblegum_hands/leftthumb(T) + sleep(8) + playsound(T, 'sound/misc/enter_blood.ogg', 100, TRUE, -1) + var/turf/target_turf = pick(spawn_locs) + M.forceMove(target_turf) + playsound(target_turf, 'sound/misc/exit_blood.ogg', 100, TRUE, -1) + for(var/obj/effect/landmark/spawner/bubblegum/B in GLOB.landmarks_list) + new /mob/living/simple_animal/hostile/megafauna/bubblegum/round_2(get_turf(B)) + +/obj/effect/bubblegum_exit/Initialize(mapload, target_list) + . = ..() + addtimer(CALLBACK(src, PROC_REF(activate)), 10 SECONDS) + +/obj/effect/bubblegum_exit/proc/activate() + var/spawn_exit = list() + for(var/obj/effect/landmark/spawner/bubblegum_exit/E in GLOB.landmarks_list) + for(var/turf/T in range(4, E)) + if(T.density) + continue + spawn_exit += get_turf(T) + var/area/probably_bubblearena = get_area(src) + for(var/mob/living/M in probably_bubblearena) + var/turf/T = get_turf(M) + M.Immobilize(1 SECONDS) + to_chat(M, "Now... get out of my home.") + new /obj/effect/temp_visual/bubblegum_hands/leftpaw(T) + new /obj/effect/temp_visual/bubblegum_hands/leftthumb(T) + sleep(8) + playsound(T, 'sound/misc/enter_blood.ogg', 100, TRUE, -1) + var/turf/target_turf = pick(spawn_exit) + M.forceMove(target_turf) + playsound(target_turf, 'sound/misc/exit_blood.ogg', 100, TRUE, -1) + for(var/obj/O in probably_bubblearena) //Mobs are out, lets get items / limbs / brains. Lets also exclude blood.. + if(iseffect(O)) + continue + if(istype(O, /obj/structure/stone_tile)) //Taking the tiles from the arena is funny, but a bit stupid + continue + var/turf/target_turf = pick(spawn_exit) + O.forceMove(target_turf) diff --git a/code/modules/mining/lavaland/loot/colossus_loot.dm b/code/modules/mining/lavaland/loot/colossus_loot.dm index 4a4826ccb9e..14a1e5626f4 100644 --- a/code/modules/mining/lavaland/loot/colossus_loot.dm +++ b/code/modules/mining/lavaland/loot/colossus_loot.dm @@ -7,12 +7,7 @@ var/random_crystal = pick(choices) new random_crystal(src) new /obj/item/gem/void(src) - var/loot = rand(1,2) - switch(loot) - if(1) - new /obj/item/organ/internal/vocal_cords/colossus(src) - if(2) - new /obj/item/clothing/glasses/hud/godeye(src) + new /obj/item/organ/internal/vocal_cords/colossus(src) /obj/structure/closet/crate/necropolis/colossus/crusher name = "angelic colossus chest" @@ -20,6 +15,7 @@ /obj/structure/closet/crate/necropolis/colossus/crusher/populate_contents() . = ..() new /obj/item/crusher_trophy/blaster_tubes(src) + new /obj/item/clothing/glasses/hud/godeye(src) ///Anomolous Crystal/// diff --git a/code/modules/mining/lavaland/loot/hierophant_loot.dm b/code/modules/mining/lavaland/loot/hierophant_loot.dm index d8f607d44d8..1cd2ac26826 100644 --- a/code/modules/mining/lavaland/loot/hierophant_loot.dm +++ b/code/modules/mining/lavaland/loot/hierophant_loot.dm @@ -53,7 +53,7 @@ if(world.time < timer) return - if(!is_mining_level(user.z))//Will only spawn a few sparks if not on mining z level + if(!is_mining_level(user.z) || istype(get_area(user), /area/ruin/space/bubblegum_arena))//Will only spawn a few sparks if not on mining z level timer = world.time + cooldown_time user.visible_message("[user]'s hierophant club malfunctions!") do_sparks(5, FALSE, user) diff --git a/code/modules/mining/lavaland/loot/legion_loot.dm b/code/modules/mining/lavaland/loot/legion_loot.dm index 4d2478a7527..294027aaa4d 100644 --- a/code/modules/mining/lavaland/loot/legion_loot.dm +++ b/code/modules/mining/lavaland/loot/legion_loot.dm @@ -1,57 +1,132 @@ -/obj/item/staff/storm +/obj/item/storm_staff name = "staff of storms" desc = "An ancient staff retrieved from the remains of Legion. The wind stirs as you move it." icon_state = "staffofstorms" + lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' + righthand_file = 'icons/mob/inhands/items_righthand.dmi' item_state = "staffofstorms" icon = 'icons/obj/weapons/magic.dmi' slot_flags = SLOT_BACK w_class = WEIGHT_CLASS_BULKY force = 25 damtype = BURN - hitsound = 'sound/weapons/sear.ogg' + resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF needs_permit = TRUE - var/storm_type = /datum/weather/ash_storm - var/storm_cooldown = 0 + var/max_thunder_charges = 3 + var/thunder_charges = 3 + var/thunder_charge_time = 15 SECONDS + var/static/list/excluded_areas = list(/area/space) + ///This is a list of turfs currently being targeted. + var/list/targeted_turfs = list() -/obj/item/staff/storm/attack_self(mob/user) - if(storm_cooldown > world.time) - to_chat(user, "The staff is still recharging!") - return +/obj/item/storm_staff/Destroy() + targeted_turfs = null + return ..() + +/obj/item/storm_staff/examine(mob/user) + . = ..() + . += "It has [thunder_charges] charges remaining." + . += "Use it in hand to dispel storms." + . += "Use it on targets to summon thunderbolts from the sky." + . += "The thunderbolts are boosted if in an area with weather effects." +/obj/item/storm_staff/attack_self(mob/user) var/area/user_area = get_area(user) var/turf/user_turf = get_turf(user) if(!user_area || !user_turf) to_chat(user, "Something is preventing you from using the staff here.") return - - var/datum/weather/storm + var/datum/weather/A for(var/V in SSweather.processing) - var/datum/weather/storm_processed = V - if((user_turf.z in storm_processed.impacted_z_levels) && storm_processed.area_type == user_area.type) - storm = storm_processed + var/datum/weather/W = V + if((user_turf.z in W.impacted_z_levels) && W.area_type == user_area.type) + A = W break - if(storm) - if(storm.stage != END_STAGE) - if(storm.stage == WIND_DOWN_STAGE) + if(A) + if(A.stage != END_STAGE) + if(A.stage == WIND_DOWN_STAGE) to_chat(user, "The storm is already ending! It would be a waste to use the staff now.") return user.visible_message("[user] holds [src] skywards as an orange beam travels into the sky!", \ "You hold [src] skyward, dispelling the storm!") - add_attack_logs(user, src, "dispelled a storm", ATKLOG_FEW) playsound(user, 'sound/magic/staff_change.ogg', 200, 0) - storm.wind_down() - return - else - storm = new storm_type(list(user_turf.z)) - storm.name = "staff storm" - storm.area_type = user_area.type - storm.telegraph_duration = 100 - storm.end_duration = 100 - - user.visible_message("[user] holds [src] skywards as red lightning crackles into the sky!", \ - "You hold [src] skyward, calling down a terrible storm!") - add_attack_logs(user, src, "created a storm", ATKLOG_FEW) - playsound(user, 'sound/magic/staff_change.ogg', 200, 0) - storm.telegraph() - storm_cooldown = world.time + 200 + A.wind_down() + var/old_color = user.color + user.color = list(340/255, 240/255, 0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, 0,0,0,0) + var/old_transform = user.transform + user.transform *= 1.2 + animate(user, color = old_color, transform = old_transform, time = 1 SECONDS) + +/obj/item/storm_staff/afterattack(atom/target, mob/user, proximity_flag, click_parameters) + . = ..() + if(!thunder_charges) + to_chat(user, "The staff needs to recharge.") + return + var/turf/target_turf = get_turf(target) + var/area/target_area = get_area(target) + var/area/user_area = get_area(user) + if(!target_turf || !target_area || (is_type_in_list(target_area, excluded_areas)) || !user_area || (is_type_in_list(user_area, excluded_areas))) + to_chat(user, "The staff will not work here.") + return + if(target_turf in targeted_turfs) + to_chat(user, "That SPOT is already being shocked!") + return + if(HAS_TRAIT(user, TRAIT_PACIFISM)) + to_chat(user, "You don't want to hurt anyone!") + return + var/power_boosted = FALSE + for(var/V in SSweather.processing) + var/datum/weather/W = V + if((target_turf.z in W.impacted_z_levels) && W.area_type == target_area.type) + power_boosted = TRUE + break + playsound(src, 'sound/magic/lightningshock.ogg', 10, TRUE, extrarange = SILENCED_SOUND_EXTRARANGE, falloff_distance = 0) + targeted_turfs += target_turf + to_chat(user, "You aim at [target_turf]!") + new /obj/effect/temp_visual/thunderbolt_targeting(target_turf) + addtimer(CALLBACK(src, PROC_REF(throw_thunderbolt), target_turf, power_boosted), 1.5 SECONDS) + thunder_charges-- + addtimer(CALLBACK(src, PROC_REF(recharge)), thunder_charge_time) + +/obj/item/storm_staff/proc/recharge(mob/user) + thunder_charges = min(thunder_charges + 1, max_thunder_charges) + playsound(src, 'sound/magic/charge.ogg', 10, TRUE, extrarange = SILENCED_SOUND_EXTRARANGE, falloff_distance = 0) + +/obj/item/storm_staff/proc/throw_thunderbolt(turf/target, boosted) + targeted_turfs -= target + new /obj/effect/temp_visual/thunderbolt(target) + var/list/affected_turfs = list(target) + if(boosted) + for(var/direction in GLOB.alldirs) + var/turf_to_add = get_step(target, direction) + if(!turf_to_add) + continue + affected_turfs += turf_to_add + for(var/turf/T as anything in affected_turfs) + new /obj/effect/temp_visual/electricity(T) + for(var/mob/living/hit_mob in T) + to_chat(hit_mob, "You've been struck by lightning!") + hit_mob.electrocute_act(15 * (isanimal(hit_mob) ? 3 : 1) * (T == target ? 2 : 1) * (boosted ? 2 : 1), src, 1, TRUE, TRUE) + + for(var/obj/hit_thing in T) + hit_thing.take_damage(20, BURN, ENERGY, FALSE) + playsound(target, 'sound/magic/lightningbolt.ogg', 100, TRUE) + target.visible_message("A thunderbolt strikes [target]!") + explosion(target, -1, -1, light_impact_range = (boosted ? 1 : 0), flame_range = (boosted ? 2 : 1), silent = TRUE) + + +/obj/effect/temp_visual/thunderbolt_targeting + icon_state = "target_circle" + layer = BELOW_MOB_LAYER + light_range = 1 + duration = 2 SECONDS + +/obj/effect/temp_visual/thunderbolt + icon_state = "thunderbolt" + icon = 'icons/effects/32x96.dmi' + duration = 0.6 SECONDS + +/obj/effect/temp_visual/electricity + icon_state = "electricity3" + duration = 0.5 SECONDS diff --git a/code/modules/mining/lavaland/world_anvil.dm b/code/modules/mining/lavaland/world_anvil.dm index 09c7ac4e32f..0912589648f 100644 --- a/code/modules/mining/lavaland/world_anvil.dm +++ b/code/modules/mining/lavaland/world_anvil.dm @@ -21,10 +21,12 @@ /obj/structure/world_anvil/Initialize() . = ..() + GLOB.anvils += src internal = new /obj/item/gps/internal/world_anvil(src) /obj/structure/world_anvil/Destroy() QDEL_NULL(internal) + GLOB.anvils -= src . = ..() /obj/structure/world_anvil/update_icon() @@ -46,6 +48,13 @@ qdel(placed_ore) update_icon() return + if(istype(I, /obj/item/gem/amber)) + var/obj/item/gem/amber/gem = I + forge_charges += 3 + to_chat(user,"You place down the draconic amber on the World Anvil, and watch as amber melts into it. The World Anvil is now heated enough for [forge_charges] forge[forge_charges > 1 ? "s" : ""].") + qdel(gem) + update_icon() + return if(forge_charges <= 0) to_chat(user,"The World Anvil is not hot enough to be usable!") return diff --git a/code/modules/mining/machine_redemption.dm b/code/modules/mining/machine_redemption.dm index d808dbf2beb..083945f9ce3 100644 --- a/code/modules/mining/machine_redemption.dm +++ b/code/modules/mining/machine_redemption.dm @@ -257,7 +257,7 @@ var/datum/component/material_container/materials = GetComponent(/datum/component/material_container) // General info - data["id"] = inserted_id ? list("name" = "[inserted_id.registered_name] ([inserted_id.assignment])", "points" = inserted_id.mining_points) : null + data["id"] = inserted_id ? list("name" = "[inserted_id.registered_name] ([inserted_id.assignment])", "points" = inserted_id.mining_points, "total_points" = inserted_id.total_mining_points) : null data["points"] = points data["disk"] = inserted_disk ? list( "name" = inserted_disk.name, @@ -305,7 +305,8 @@ return if(anyone_claim || (req_access_claim in inserted_id.access)) inserted_id.mining_points += points - to_chat(usr, "[points] points claimed.") + inserted_id.total_mining_points += points + to_chat(usr, "[points] Mining Points claimed. You have earned a total of [inserted_id.total_mining_points] Mining Points this Shift!") points = 0 else to_chat(usr, "Required access not found.") diff --git a/code/modules/mining/machine_vending.dm b/code/modules/mining/machine_vending.dm index 56b8a7a0d4b..c2d80234485 100644 --- a/code/modules/mining/machine_vending.dm +++ b/code/modules/mining/machine_vending.dm @@ -33,59 +33,62 @@ prize_list["Gear"] = list( EQUIPMENT("Automatic Scanner", /obj/item/t_scanner/adv_mining_scanner/lesser, 800), EQUIPMENT("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 3000), - EQUIPMENT("Explorer's Webbing", /obj/item/storage/belt/mining, 500), - EQUIPMENT("Fulton Beacon", /obj/item/fulton_core, 400), - EQUIPMENT("Mining Conscription Kit", /obj/item/storage/backpack/duffel/mining_conscript, 1500), - EQUIPMENT("Jetpack Upgrade", /obj/item/tank/jetpack/suit, 2000), - EQUIPMENT("Jump Boots", /obj/item/clothing/shoes/bhop, 2500), - EQUIPMENT("Jump Boots Implants", /obj/item/storage/box/jumpbootimplant, 6000), - EQUIPMENT("Lazarus Capsule", /obj/item/mobcapsule, 800), - EQUIPMENT("Lazarus Capsule belt", /obj/item/storage/belt/lazarus, 200), - EQUIPMENT("Mining Hardsuit", /obj/item/clothing/suit/space/hardsuit/mining, 2000), - EQUIPMENT("Tracking Implant Kit", /obj/item/storage/box/minertracker, 600), - EQUIPMENT("Plasma Cutter", /obj/item/gun/energy/plasmacutter, 1500), + EQUIPMENT("Explorer's Webbing", /obj/item/storage/belt/mining, 700), + EQUIPMENT("Mining Weather Radio", /obj/item/radio/weather_monitor, 700), + EQUIPMENT("Fulton Beacon", /obj/item/fulton_core, 500), + EQUIPMENT("Mining Conscription Kit", /obj/item/storage/backpack/duffel/mining_conscript, 2000), + EQUIPMENT("Jetpack Upgrade", /obj/item/tank/jetpack/suit, 2500), + EQUIPMENT("Jump Boots", /obj/item/clothing/shoes/bhop, 3000), + EQUIPMENT("Jump Boots Implants", /obj/item/storage/box/jumpbootimplant, 7000), + EQUIPMENT("Lazarus Capsule", /obj/item/mobcapsule, 1000), + EQUIPMENT("Lazarus Capsule belt", /obj/item/storage/belt/lazarus, 400), + EQUIPMENT("Mining Hardsuit", /obj/item/clothing/suit/space/hardsuit/mining, 2500), + EQUIPMENT("Tracking Implant Kit", /obj/item/storage/box/minertracker, 800), EQUIPMENT("Industrial Mining Satchel", /obj/item/storage/bag/ore/bigger, 500), - EQUIPMENT("Meson Health Scanner HUD", /obj/item/clothing/glasses/hud/health/meson, 1000), + EQUIPMENT("Meson Health Scanner HUD", /obj/item/clothing/glasses/hud/health/meson, 1500), ) prize_list["Consumables"] = list( EQUIPMENT("10 Marker Beacons", /obj/item/stack/marker_beacon/ten, 100), EQUIPMENT("30 Marker Beacons", /obj/item/stack/marker_beacon/thirty, 500), - EQUIPMENT("Pocket Fire Extinguisher", /obj/item/extinguisher/mini, 200), - EQUIPMENT("Brute First-Aid Kit", /obj/item/storage/firstaid/brute, 600), - EQUIPMENT("Fire First-Aid Kit", /obj/item/storage/firstaid/fire, 600), - EQUIPMENT("Mining Charge", /obj/item/grenade/plastic/miningcharge/lesser, 250), - EQUIPMENT("Industrial Mining Charge", /obj/item/grenade/plastic/miningcharge, 600), - EQUIPMENT("Whetstone", /obj/item/whetstone, 400), - EQUIPMENT("Fulton Pack", /obj/item/extraction_pack, 1000), - EQUIPMENT("Jaunter", /obj/item/wormhole_jaunter, 750), + EQUIPMENT("Pocket Fire Extinguisher", /obj/item/extinguisher/mini, 400), + EQUIPMENT("Brute First-Aid Kit", /obj/item/storage/firstaid/brute, 800), + EQUIPMENT("Fire First-Aid Kit", /obj/item/storage/firstaid/fire, 800), + EQUIPMENT("Emergency Charcoal Injector", /obj/item/reagent_containers/hypospray/autoinjector/charcoal, 400), + EQUIPMENT("Mining Charge", /obj/item/grenade/plastic/miningcharge/lesser, 150), + EQUIPMENT("Industrial Mining Charge", /obj/item/grenade/plastic/miningcharge, 500), + EQUIPMENT("Whetstone", /obj/item/whetstone, 500), + EQUIPMENT("Fulton Pack", /obj/item/extraction_pack, 1500), + EQUIPMENT("Jaunter", /obj/item/wormhole_jaunter, 900), + EQUIPMENT("Chasm Jaunter Recovery Grenade", /obj/item/grenade/jaunter_grenade, 3000), //fishing rod supremacy EQUIPMENT("Lazarus Injector", /obj/item/lazarus_injector, 1000), EQUIPMENT("Point Transfer Card (500)", /obj/item/card/mining_point_card, 500), EQUIPMENT("Point Transfer Card (1000)", /obj/item/card/mining_point_card/thousand, 1000), EQUIPMENT("Point Transfer Card (5000)", /obj/item/card/mining_point_card/fivethousand, 5000), - EQUIPMENT("Shelter Capsule", /obj/item/survivalcapsule, 400), - EQUIPMENT("Stabilizing Serum", /obj/item/hivelordstabilizer, 400), - EQUIPMENT("Survival Medipen", /obj/item/reagent_containers/hypospray/autoinjector/survival, 500), + EQUIPMENT("Shelter Capsule", /obj/item/survivalcapsule, 700), + EQUIPMENT("Stabilizing Serum", /obj/item/hivelordstabilizer, 600), + EQUIPMENT("Survival Medipen", /obj/item/reagent_containers/hypospray/autoinjector/survival, 800), ) prize_list["Kinetic Accelerator"] = list( - EQUIPMENT("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 750), - EQUIPMENT("KA Adjustable Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer/adjustable, 150), - EQUIPMENT("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2000), - EQUIPMENT("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1000), - EQUIPMENT("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1000), - EQUIPMENT("KA Hyper Chassis", /obj/item/borg/upgrade/modkit/chassis_mod/orange, 300), - EQUIPMENT("KA Minebot Passthrough", /obj/item/borg/upgrade/modkit/minebot_passthrough, 100), - EQUIPMENT("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1000), - EQUIPMENT("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 250), - EQUIPMENT("KA Hardness Increase", /obj/item/borg/upgrade/modkit/hardness, 1200), - EQUIPMENT("KA White Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer, 100), + EQUIPMENT("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 1000), + EQUIPMENT("KA Adjustable Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer/adjustable, 200), + EQUIPMENT("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2500), + EQUIPMENT("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1500), + EQUIPMENT("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1500), + EQUIPMENT("KA Hyper Chassis", /obj/item/borg/upgrade/modkit/chassis_mod/orange, 500), + EQUIPMENT("KA Minebot Passthrough", /obj/item/borg/upgrade/modkit/minebot_passthrough, 300), + EQUIPMENT("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1500), + EQUIPMENT("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 300), + EQUIPMENT("KA Hardness Increase", /obj/item/borg/upgrade/modkit/hardness, 2500), + EQUIPMENT("KA White Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer, 250), ) prize_list["Digging Tools"] = list( - EQUIPMENT("Diamond Pickaxe", /obj/item/pickaxe/diamond, 2000), - EQUIPMENT("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 750), - EQUIPMENT("Kinetic Crusher", /obj/item/twohanded/kinetic_crusher, 750), - EQUIPMENT("Resonator", /obj/item/resonator, 800), - EQUIPMENT("Silver Pickaxe", /obj/item/pickaxe/silver, 1000), - EQUIPMENT("Super Resonator", /obj/item/resonator/upgraded, 2500), + EQUIPMENT("Diamond Pickaxe", /obj/item/pickaxe/diamond, 1500), + EQUIPMENT("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 1000), + EQUIPMENT("Kinetic Crusher", /obj/item/twohanded/kinetic_crusher, 1000), + EQUIPMENT("Resonator", /obj/item/resonator, 400), + EQUIPMENT("Silver Pickaxe", /obj/item/pickaxe/silver, 800), + EQUIPMENT("Super Resonator", /obj/item/resonator/upgraded, 1200), + EQUIPMENT("Plasma Cutter", /obj/item/gun/energy/plasmacutter, 1500), ) prize_list["Minebot"] = list( EQUIPMENT("Nanotrasen Minebot", /obj/item/mining_drone_cube, 800), @@ -95,17 +98,18 @@ EQUIPMENT("Minebot Melee Upgrade", /obj/item/mine_bot_upgrade, 400), ) prize_list["Miscellaneous"] = list( - EQUIPMENT("Absinthe", /obj/item/reagent_containers/food/drinks/bottle/absinthe/premium, 100), + EQUIPMENT("Absinthe", /obj/item/reagent_containers/food/drinks/bottle/absinthe/premium, 500), EQUIPMENT("Alien Toy", /obj/item/clothing/mask/facehugger/toy, 300), - EQUIPMENT("Cigar", /obj/item/clothing/mask/cigarette/cigar/havana, 150), - EQUIPMENT("GAR Meson Scanners", /obj/item/clothing/glasses/meson/gar, 500), - EQUIPMENT("GPS upgrade", /obj/item/gpsupgrade, 1000), - EQUIPMENT("Laser Pointer", /obj/item/laser_pointer, 300), - EQUIPMENT("Luxury Shelter Capsule", /obj/item/survivalcapsule/luxury, 3000), + EQUIPMENT("Cigar", /obj/item/clothing/mask/cigarette/cigar/havana, 300), + EQUIPMENT("GAR Meson Scanners", /obj/item/clothing/glasses/meson/gar, 800), + EQUIPMENT("GPS upgrade", /obj/item/gpsupgrade, 1500), + EQUIPMENT("Laser Pointer", /obj/item/laser_pointer, 500), + EQUIPMENT("Luxury Shelter Capsule", /obj/item/survivalcapsule/luxury, 5000), EQUIPMENT("Luxury Elite Bar Capsule", /obj/item/survivalcapsule/luxuryelite, 10000), - EQUIPMENT("Soap", /obj/item/soap/nanotrasen, 200), - EQUIPMENT("Space Cash", /obj/item/stack/spacecash/c1000, 2000), - EQUIPMENT("Whiskey", /obj/item/reagent_containers/food/drinks/bottle/whiskey, 100), + EQUIPMENT("Soap", /obj/item/soap/nanotrasen, 400), + EQUIPMENT("Space Cash", /obj/item/stack/spacecash/c1000, 2500), + EQUIPMENT("Whiskey", /obj/item/reagent_containers/food/drinks/bottle/whiskey, 500), + EQUIPMENT("HRD-MDE Project Box", /obj/item/storage/box/hardmode_box, 2500), ) prize_list["Extra"] = list() // Used in child vendors diff --git a/code/modules/mob/living/carbon/human/species/unathi.dm b/code/modules/mob/living/carbon/human/species/unathi.dm index b6c337fbada..707e24bf467 100644 --- a/code/modules/mob/living/carbon/human/species/unathi.dm +++ b/code/modules/mob/living/carbon/human/species/unathi.dm @@ -164,29 +164,66 @@ "eyes" = /obj/item/organ/internal/eyes/unathi ) +/datum/species/unathi/ashwalker/on_species_gain(mob/living/carbon/human/H) + ..() + var/datum/action/innate/ignite/fire = locate() in H.actions + if(!fire) + fire = new + fire.Grant(H) + RegisterSignal(H, COMSIG_MOVABLE_Z_CHANGED, PROC_REF(speedylegs)) + speedylegs(H) + +/datum/species/unathi/ashwalker/on_species_loss(mob/living/carbon/human/H) + ..() + var/datum/action/innate/ignite/fire = locate() in H.actions + if(fire) + fire.Remove(H) + UnregisterSignal(H, COMSIG_MOVABLE_Z_CHANGED) + speedylegs(H) + +/datum/species/unathi/ashwalker/proc/speedylegs(mob/living/carbon/human/H) + if(is_mining_level(H.z)) + speed_mod = initial(speed_mod) + else + speed_mod = 0 + //Ash walker shaman, worse defensive stats, but better at surgery and have a healing touch ability /datum/species/unathi/ashwalker/shaman name = "Ash Walker Shaman" brute_mod = 1.15 burn_mod = 1.15 speed_mod = -0.60 //less fast as ash walkers - punchdamagelow = 7 + punchdamagelow = 4 punchdamagehigh = 7 - punchstunthreshold = 7 + punchstunthreshold = 7 //still can stun people pretty often toolspeedmod = 0.9 //they're smart and efficient unlike other lizards var/obj/effect/proc_holder/spell/touch/healtouch/goodtouch //gives the heal spell /datum/species/unathi/ashwalker/shaman/on_species_gain(mob/living/carbon/C, datum/species/old_species) - . = ..() + ..() goodtouch = new /obj/effect/proc_holder/spell/touch/healtouch C.AddSpell(goodtouch) + var/datum/action/innate/anvil_finder/finder = locate() in C.actions + if(!finder) + finder = new + finder.Grant(C) + var/datum/action/innate/ignite/fire = locate() in C.actions + if(!fire) + fire = new + fire.Grant(C) //removes the heal spell /datum/species/unathi/ashwalker/shaman/on_species_loss(mob/living/carbon/C) . = ..() if(goodtouch) C.RemoveSpell(goodtouch) + var/datum/action/innate/anvil_finder/finder = locate() in C.actions + if(finder) + finder.Remove(C) + var/datum/action/innate/ignite/fire = locate() in C.actions + if(fire) + fire.Remove(C) //basic touch ability that heals brute and burn, only accessed by the ashwalker shaman /obj/effect/proc_holder/spell/touch/healtouch @@ -288,6 +325,15 @@ They're basically just lizards with all-around marginally better stats and fire species_traits = list(LIPS, PIERCEIMMUNE, RESISTHOT) //Dragons like fire no_equip = list(slot_shoes) //everyone have to pay for speed_mod = -0.25 //beeing slightly faster + has_organ = list( + "heart" = /obj/item/organ/internal/heart/unathi, + "lungs" = /obj/item/organ/internal/lungs/unathi/ash_walker, + "liver" = /obj/item/organ/internal/liver/unathi, + "kidneys" = /obj/item/organ/internal/kidneys/unathi, + "brain" = /obj/item/organ/internal/brain/unathi, + "appendix" = /obj/item/organ/internal/appendix, + "eyes" = /obj/item/organ/internal/eyes/unathi + ) //no need to b-r-e-a-t-h /datum/species/unathi/draconid/on_species_gain(mob/living/carbon/human/C, datum/species/old_species) . = ..() @@ -301,9 +347,66 @@ They're basically just lizards with all-around marginally better stats and fire C.update_inv_head() C.update_inv_wear_suit() //update sprites for digi legs C.weather_immunities |= "ash" + var/datum/action/innate/ignite/fire = locate() in C.actions + if(!fire) + fire = new + fire.Remove(C) + /datum/species/unathi/draconid/on_species_loss(mob/living/carbon/C) . = ..() C.update_inv_head() C.update_inv_wear_suit() C.weather_immunities -= "ash" + var/datum/action/innate/ignite/fire = locate() in C.actions + if(fire) + fire.Grant(C) + +//igniter. only for ashwalkers and drakonids because of """lore""" +/datum/action/innate/ignite + name = "Ignite" + desc = "You form a fire in your mouth, fierce enough to... light a cigarette." + icon_icon = 'icons/obj/cigarettes.dmi' + button_icon_state = "match_unathi" + var/cooldown = 0 + var/cooldown_duration = 40 SECONDS + check_flags = AB_CHECK_RESTRAINED + +/datum/action/innate/ignite/Activate() + var/mob/living/carbon/human/user = owner + if(world.time <= cooldown) + to_chat(user, span_warning("Your throat hurts too much to do it right now. Wait [round((cooldown - world.time) / 10)] seconds and try again.")) + return + if((user.head?.flags_cover & HEADCOVERSMOUTH) || (user.wear_mask?.flags_cover & MASKCOVERSMOUTH) && !user.wear_mask?.up) + to_chat(user, span_warning("Your mouth is covered.")) + return + var/obj/item/match/unathi/fire = new(user.loc, src) + if(user.put_in_hands(fire)) + to_chat(user, span_notice("You ignite a small flame in your mouth.")) + cooldown = world.time + cooldown_duration + else + qdel(fire) + to_chat(user, span_warning("You don't have any free hands.")) + +/datum/action/innate/anvil_finder + name = "Find World Anvil" + desc = "You call the Necropolis in order to find The World Anvil." + icon_icon = 'icons/mob/actions/actions_clockwork.dmi' + button_icon_state = "stun" //better than nothing + +/datum/action/innate/anvil_finder/Activate() + addtimer(CALLBACK(GLOBAL_PROC, /proc/to_chat, owner, \ + span_warning("Я чувствую, что Мировая Кузница [get_direction()]")), 2 SECONDS) + +/datum/action/innate/anvil_finder/proc/get_direction() + for(var/obj/structure/world_anvil/Anvil in GLOB.anvils) + if(!Anvil) + . = "уничтожена." + return + var/turf/T = get_turf(Anvil) + if(owner.z == T.z) //"кузница находится где-то на северо-востоке" or whatever + . = "находится где-то на " + . += dir2rustext(get_dir(owner.loc, Anvil.loc)) + . += "e." + else + . = "находится где-то далеко отсюда." diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index 1e2ad83e404..f91e1c34582 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -176,6 +176,9 @@ /mob/living/simple_animal/hostile/construct/wraith/hostile //actually hostile, will move around, hit things AIStatus = AI_ON +/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum //Used in bubblegum summoning. Needs MOB_SIZE_LARGE so crushers don't suffer + mob_size = MOB_SIZE_LARGE + /mob/living/simple_animal/hostile/construct/wraith/holy cult_icon_changing = FALSE faction = list("neutral") diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 56ddb49bc82..fbe7c3e11f6 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -247,7 +247,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) turns_per_move = 3 butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/bird = 2) var/egg_type = /obj/item/reagent_containers/food/snacks/egg - var/food_type = /obj/item/reagent_containers/food/snacks/grown/wheat + food_type = /obj/item/reagent_containers/food/snacks/grown/wheat response_help = "pets the" response_disarm = "gently pushes aside the" response_harm = "kicks the" diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 2450f9ea2a3..e0d9c13b7b2 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -68,10 +68,20 @@ wanted_objects = typecacheof(wanted_objects) /mob/living/simple_animal/hostile/Destroy() + if(lose_patience_timer_id) + deltimer(lose_patience_timer_id) targets_from = null target = null return ..() +/mob/living/simple_animal/hostile/tamed(whomst) + if(isliving(whomst)) + var/mob/living/fren = whomst + friends = fren + faction = fren.faction.Copy() + visible_message(span_notice("[src] gently growls and calms down. It seems that it no longer sees you as a threat!")) + return ..() + /mob/living/simple_animal/hostile/Life(seconds, times_fired) . = ..() if(!.) @@ -295,6 +305,7 @@ return FALSE /mob/living/simple_animal/hostile/proc/GiveTarget(new_target)//Step 4, give us our selected target + SEND_SIGNAL(src, COMSIG_HOSTILE_FOUND_TARGET, new_target) target = new_target LosePatience() if(target != null) @@ -580,6 +591,8 @@ //These two procs handle losing our target if we've failed to attack them for //more than lose_patience_timeout deciseconds, which probably means we're stuck /mob/living/simple_animal/hostile/proc/GainPatience() + if(QDELING(src)) + return if(lose_patience_timeout) LosePatience() lose_patience_timer_id = addtimer(CALLBACK(src, PROC_REF(LoseTarget)), lose_patience_timeout, TIMER_STOPPABLE) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm index 02d032a0292..f2bd01b5a23 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm @@ -1,4 +1,4 @@ -#define BODY_SHIELD_COOLDOWN_TIME 5 SECONDS +#define BODY_SHIELD_COOLDOWN_TIME enraged ? 3 SECONDS : 5 SECONDS #define EXTRA_PLAYER_ANGER_NORMAL_CAP 6 #define EXTRA_PLAYER_ANGER_STATION_CAP 3 #define BLUESPACE 1 @@ -164,6 +164,28 @@ Difficulty: Very Hard var/crate_type = pick(loot) var/obj/structure/closet/crate/C = new crate_type(loc) new core_type(C) + if(!enraged) + return + for(var/mob/living/M in urange(40, src)) //Bigger range, ran once per shift, as people run away from vetus as it blows up. + if(M.client) + new /obj/item/disk/fauna_research/vetus(C) + +/mob/living/simple_animal/hostile/megafauna/ancient_robot/enrage() + . = ..() + armour_penetration = 66 + TL.armour_penetration = 66 + TR.armour_penetration = 66 + BL.armour_penetration = 66 + BR.armour_penetration = 66 + + +/mob/living/simple_animal/hostile/megafauna/ancient_robot/unrage() + . = ..() + armour_penetration = 50 + TL.armour_penetration = 50 + TR.armour_penetration = 50 + BL.armour_penetration = 50 + BR.armour_penetration = 50 /mob/living/simple_animal/hostile/megafauna/ancient_robot/OpenFire() if(charging) @@ -174,6 +196,8 @@ Difficulty: Very Hard anger_modifier = clamp(((maxHealth - health) / 50), 0, 20) ranged_cooldown = world.time + (ranged_cooldown_time * ((10 - extra_player_anger) / 10)) + if(enraged && prob(20)) //This attack is free, and can be combined with other attacks, so chance is low. + single_laser() if(prob(30 + (anger_modifier / 2))) //Less scaling as the weaker attack / first calculated. triple_charge() @@ -186,6 +210,32 @@ Difficulty: Very Hard calculate_extra_player_anger() +/mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/single_laser() + say(pick("KTMGMK JOYIU OTLKXTU", "ROQK G OTZKXTGR JOYQ", "HO-JOXKIZOUTGR RGYKXY KTMGMKJ")) + new /obj/effect/vetus_laser(get_turf(src)) + +/obj/effect/vetus_laser + icon = 'icons/obj/engines_and_power/tesla/energy_ball.dmi' + icon_state = "energy_ball" + pixel_x = -32 + pixel_y = -32 + +/obj/effect/vetus_laser/Initialize(mapload) + . = ..() + var/newcolor = rgb(241, 137, 172) + add_atom_colour(newcolor, TEMPORARY_COLOUR_PRIORITY) + beam_it_up() + +/obj/effect/vetus_laser/ex_act(severity) + return + +/obj/effect/vetus_laser/proc/beam_it_up() + var/turf/beam_me_up_scotty = get_turf(src) + for(var/turf/T in spiral_range_turfs(9, src, 9)) + T.Beam(beam_me_up_scotty, icon_state = "sm_arc_dbz_referance", time = 0.1, beam_type = /obj/effect/ebeam/vetus) + SLEEP_CHECK_QDEL(1) + qdel(src) + /mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/triple_charge() if(mode == BLUESPACE) charge(delay = 24) //An extra charge, to make up for the longer time between teleports @@ -198,10 +248,10 @@ Difficulty: Very Hard charge(delay = 3) SetRecoveryTime(15) -/mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/charge(atom/chargeat = target, delay = 5, chargepast = 2) //add limb charge as well +/mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/charge(atom/chargeat = target, delay = 5, chargepast = 2) if(!chargeat) return - if(mode == BLUESPACE) + if(mode == BLUESPACE || (enraged && prob(13))) new /obj/effect/temp_visual/bsg_kaboom(get_turf(src)) src.visible_message("[src] teleports somewhere nearby!") do_teleport(src, target, 7, asoundin = 'sound/effects/phasein.ogg') //Teleport within 7 tiles of the target @@ -251,7 +301,7 @@ Difficulty: Very Hard playsound(get_turf(L), 'sound/effects/meteorimpact.ogg', 100, TRUE) shake_camera(L, 4, 3) shake_camera(src, 2, 3) - if(mode == GRAV) + if(mode == GRAV || enraged) var/atom/throw_target = get_edge_target_turf(L, get_dir(src, get_step_away(L, src))) L.throw_at(throw_target, 3, 2) ..() @@ -302,7 +352,7 @@ Difficulty: Very Hard H.apply_status_effect(STATUS_EFFECT_BLUESPACESLOWDOWN) if(GRAV) visible_message("Debris from the battlefield begin to get compressed into rocks!") - var/list/turfs = new/list() + var/list/turfs = list() var/rocks = 0 for(var/turf/T in view(4, target)) if(T.density) @@ -310,14 +360,17 @@ Difficulty: Very Hard if(T in range (2, target)) continue turfs += T - while(rocks < 3 && length(turfs)) + var/amount = enraged ? 5 : 3 + while(rocks < amount && length(turfs)) var/turf/spot = pick_n_take(turfs) + if(!spot) + return new /obj/effect/temp_visual/rock(spot) addtimer(CALLBACK(src, PROC_REF(throw_rock), spot, target), 2 SECONDS) rocks++ if(PYRO) visible_message("The ground begins to heat up around you!") - var/list/turfs = new/list() + var/list/turfs = list() var/volcanos = 0 for(var/turf/T in view(4, target)) if(T.density) @@ -325,10 +378,13 @@ Difficulty: Very Hard if(T in range(1, target)) continue turfs += T - while(volcanos < 3 && length(turfs)) + var/amount = enraged ? 5 : 3 + while(volcanos < amount && length(turfs)) var/turf/spot = pick_n_take(turfs) + if(!spot) + return for(var/turf/around in range(1, spot)) - new /obj/effect/temp_visual/lava_warning(around) + new /obj/effect/temp_visual/lava_warning(around, enraged ? 18 SECONDS : 6 SECONDS) volcanos++ if(FLUX) for(var/mob/living/carbon/human/H in view(7, src)) @@ -344,7 +400,7 @@ Difficulty: Very Hard if(VORTEX) visible_message("[src] begins vibrate rapidly. It's causing an earthquake!") for(var/turf/turf in range(9,get_turf(target))) - if(prob(15)) + if(prob(enraged ? 40 : 15)) new /obj/effect/temp_visual/target/ancient(turf) /mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/spawn_anomalies() @@ -355,24 +411,26 @@ Difficulty: Very Hard if(T.density) continue turfs += T - while(anomalies < 3 && length(turfs)) + var/amount = enraged ? 5 : 3 + while(anomalies < amount && length(turfs)) var/turf/spot = pick(turfs) turfs -= spot + var/time_to_use = enraged ? 25 SECONDS : 15 SECONDS switch(mode) if(BLUESPACE) - var/obj/effect/anomaly/bluespace/A = new(spot, 150, FALSE) + var/obj/effect/anomaly/bluespace/A = new(spot, time_to_use, FALSE) A.mass_teleporting = FALSE if(GRAV) - var/obj/effect/anomaly/grav/A = new(spot, 150, FALSE, FALSE) + var/obj/effect/anomaly/grav/A = new(spot, time_to_use, FALSE, FALSE) A.knockdown = TRUE if(PYRO) - var/obj/effect/anomaly/pyro/A = new(spot, 150, FALSE) + var/obj/effect/anomaly/pyro/A = new(spot, time_to_use, FALSE) A.produces_slime = FALSE if(FLUX) - var/obj/effect/anomaly/flux/A = new(spot, 150, FALSE) + var/obj/effect/anomaly/flux/A = new(spot, time_to_use, FALSE) A.explosive = FALSE if(VORTEX) - new /obj/effect/anomaly/bhole(spot, 150, FALSE) + new /obj/effect/anomaly/bhole(spot, time_to_use, FALSE) anomalies++ return @@ -396,7 +454,9 @@ Difficulty: Very Hard anger++ if(health <= health / 2) anger += 2 - cap = (is_station_level(loc.z) ? EXTRA_PLAYER_ANGER_STATION_CAP : EXTRA_PLAYER_ANGER_NORMAL_CAP) + if(enraged) + anger += 2 + cap = (is_station_level(loc.z) ? EXTRA_PLAYER_ANGER_STATION_CAP : EXTRA_PLAYER_ANGER_NORMAL_CAP) + enraged extra_player_anger = clamp(anger,1,cap) - 1 /mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/self_destruct() @@ -509,7 +569,7 @@ Difficulty: Very Hard if(charging) if(mode == PYRO) var/turf/C = get_turf(src) - new /obj/effect/temp_visual/lava_warning(C) + new /obj/effect/temp_visual/lava_warning(C, enraged ? 18 SECONDS : 6 SECONDS) for(var/turf/T in range (1,src)) new /obj/effect/hotspot(T) T.hotspot_expose(700,50,1) @@ -526,6 +586,9 @@ Difficulty: Very Hard /mob/living/simple_animal/hostile/megafauna/ancient_robot/mob_negates_gravity() //No more being thrown around like a spastic child by grav anomalies return TRUE +/mob/living/simple_animal/hostile/megafauna/ancient_robot/electrocute_act(shock_damage, obj/source, siemens_coeff = 1, safety = FALSE, override = FALSE, tesla_shock = FALSE, illusion = FALSE, stun = TRUE) + return + /mob/living/simple_animal/hostile/ancient_robot_leg name = "leg" desc = "Legs with a mounted turret, for shooting and crushing small miners like you." @@ -681,6 +744,9 @@ Difficulty: Very Hard /mob/living/simple_animal/hostile/ancient_robot_leg/mob_negates_gravity() return TRUE +/mob/living/simple_animal/hostile/ancient_robot_leg/electrocute_act(shock_damage, obj/source, siemens_coeff = 1, safety = FALSE, override = FALSE, tesla_shock = FALSE, illusion = FALSE, stun = TRUE) + return + /obj/item/projectile/bullet/ancient_robot_bullet damage = 8 damage_type = BRUTE @@ -735,7 +801,7 @@ Difficulty: Very Hard var/turf/T = get_turf(src) playsound(T,'sound/magic/fleshtostone.ogg', 80, TRUE) new /obj/effect/temp_visual/fireball/rock(T) - sleep(duration) + SLEEP_CHECK_QDEL(duration) if(ismineralturf(T)) var/turf/simulated/mineral/M = T M.attempt_drill() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index 371bd634ac9..22d90d916f6 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -46,15 +46,17 @@ Difficulty: Medium blood_volume = BLOOD_VOLUME_NORMAL internal_type = /obj/item/gps/internal/miner medal_type = BOSS_MEDAL_MINER - var/obj/item/melee/energy/cleaving_saw/miner/miner_saw + var/obj/item/melee/energy/cleaving_saw/miner_saw var/time_until_next_transform = 0 var/dashing = FALSE - var/dash_cooldown = 15 + var/dash_cooldown = 0 + var/dash_cooldown_to_use = 1.5 SECONDS var/guidance = FALSE var/transform_stop_attack = FALSE // stops the blood drunk miner from attacking after transforming his weapon until the next attack chain deathmessage = "falls to the ground, decaying into glowing particles." death_sound = "bodyfall" footstep_type = FOOTSTEP_MOB_HEAVY + enraged_loot = /obj/item/disk/fauna_research/blood_drunk_miner attack_action_types = list(/datum/action/innate/megafauna_attack/dash, /datum/action/innate/megafauna_attack/kinetic_accelerator, /datum/action/innate/megafauna_attack/transform_weapon) @@ -67,7 +69,7 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/Initialize(mapload) . = ..() - miner_saw = new(src) + miner_saw = new /obj/item/melee/energy/cleaving_saw/miner(src) /datum/action/innate/megafauna_attack/dash name = "Dash To Target" @@ -125,10 +127,14 @@ Difficulty: Medium icon_state = "ka_tracer" range = MINER_DASH_RANGE +/obj/item/projectile/kinetic/miner/enraged + damage = 35 + /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/adjustHealth(amount, updating_health = TRUE) - var/adjustment_amount = amount * 0.1 - if(world.time + adjustment_amount > next_move) - changeNext_move(adjustment_amount) //attacking it interrupts it attacking, but only briefly + if(!enraged) + var/adjustment_amount = amount * 0.1 + if(world.time + adjustment_amount > next_move) + changeNext_move(adjustment_amount) //attacking it interrupts it attacking, but only briefly . = ..() /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/death() @@ -172,7 +178,9 @@ Difficulty: Medium changeNext_move(CLICK_CD_MELEE) miner_saw.melee_attack_chain(src, target) if(guidance) - adjustHealth(-2) + adjustHealth(enraged ? -6 : -2) + if(prob(50)) + transform_weapon() //Still follows the normal rules for cooldown between swaps. return TRUE /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/do_attack_animation(atom/A, visual_effect_icon, obj/item/used_item, no_effect) @@ -186,6 +194,24 @@ Difficulty: Medium if(. && target && !targets_the_same) wander = TRUE +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/enrage() + . = ..() + miner_saw = new /obj/item/melee/energy/cleaving_saw(src) //Real saw for real men. + dash_cooldown_to_use = 0.5 SECONDS //Becomes a teleporting shit. + ranged_cooldown_time = 5 //They got some cooldown mods. + projectiletype = /obj/item/projectile/kinetic/miner/enraged + maxHealth = 1800 + health = 1800 //Bit more of a challenge. + +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/unrage() + . = ..() + miner_saw = new /obj/item/melee/energy/cleaving_saw/miner(src) + dash_cooldown_to_use = initial(dash_cooldown_to_use) + ranged_cooldown_time = initial(ranged_cooldown_time) + projectiletype = initial(projectiletype) + maxHealth = initial(maxHealth) + health = initial(health) + /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/proc/dash_attack() INVOKE_ASYNC(src, PROC_REF(dash), target) shoot_ka() @@ -232,7 +258,7 @@ Difficulty: Medium accessable_turfs -= t if(!LAZYLEN(accessable_turfs)) return - dash_cooldown = world.time + initial(dash_cooldown) + dash_cooldown = world.time + dash_cooldown_to_use target_turf = pick(accessable_turfs) var/turf/step_back_turf = get_step(target_turf, get_cardinal_dir(target_turf, own_turf)) var/turf/step_forward_turf = get_step(own_turf, get_cardinal_dir(own_turf, target_turf)) @@ -291,7 +317,7 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/hunter/AttackingTarget() . = ..() - if(. && prob(12)) + if(. && prob(enraged ? 40 : 12)) INVOKE_ASYNC(src, PROC_REF(dash)) #undef MINER_DASH_RANGE diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index a8623f1c3f9..be17742a06f 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -1,4 +1,4 @@ -#define BUBBLEGUM_SMASH (health <= maxHealth * 0.5) // angery +#define BUBBLEGUM_SMASH (health <= maxHealth * 0.5 || second_life) // angery #define BUBBLEGUM_CAN_ENRAGE (enrage_till + (enrage_time * 2) <= world.time) #define BUBBLEGUM_IS_ENRAGED (enrage_till > world.time) @@ -60,6 +60,14 @@ Difficulty: Hard var/enrage_till = 0 var/enrage_time = 70 var/revving_charge = FALSE + /// Is it on its enraged exclusive second life? + var/second_life = FALSE + /// Does it have a portal to the funny second life arena created? + var/obj/effect/portal/redspace/second_life_portal + /// Max healing bubblegum can get from being enraged + var/maximum_enraged_healing = 500 + /// Enraged healing recived + var/enraged_healing = 0 internal_type = /obj/item/gps/internal/bubblegum medal_type = BOSS_MEDAL_BUBBLEGUM score_type = BUBBLEGUM_SCORE @@ -112,7 +120,49 @@ Difficulty: Hard chosen_message = "You are now warping to blood around your clicked position." chosen_attack_num = 4 -/mob/living/simple_animal/hostile/megafauna/bubblegum/OpenFire() +/mob/living/simple_animal/hostile/megafauna/bubblegum/enrage() + . = ..() + maxHealth = 2000 //Less health, as a phase 2 + health = 2000 + rapid_melee = 12 //Don't stand still + vision_range = 18 + loot = list(/obj/effect/decal/cleanable/blood/gibs/bubblegum) //You'll get it in phase 2. + crusher_loot = list(/obj/effect/decal/cleanable/blood/gibs/bubblegum) + RegisterSignal(src, COMSIG_HOSTILE_FOUND_TARGET, PROC_REF(i_see_you)) + for(var/mob/living/carbon/human/H in range(18)) //suprise motherfucker bubblegum wakes up fast + to_chat(H, "You DARE to insult my body with these constructs? I curse you as you curse ME!") + FindTarget(list(H), 1) //From down town with the pile driver + +/mob/living/simple_animal/hostile/megafauna/bubblegum/unrage() + return //They are pissed. Also whoever enraged them is stuck fighting them so, kinda a M.A.D situation. + +/mob/living/simple_animal/hostile/megafauna/bubblegum/proc/i_see_you(source, target) + if(!ishuman(target)) + return + var/mob/living/carbon/human/H = target + H.apply_status_effect(STATUS_EFFECT_BUBBLEGUM_CURSE, src) + if(second_life) + H.clear_fullscreen("bubblegum") + H.overlay_fullscreen("bubblegum", /obj/screen/fullscreen/fog, 2) + +/mob/living/simple_animal/hostile/megafauna/bubblegum/death(gibbed) + qdel(second_life_portal) + if(enraged && !second_life) + var/obj/structure/closet/crate/necropolis/bubblegum/bait/jebait = new /obj/structure/closet/crate/necropolis/bubblegum/bait(get_turf(src)) + var/obj/effect/bubblegum_trigger/great_chest_ahead = new /obj/effect/bubblegum_trigger(jebait, ListTargets()) + new /obj/effect/landmark/spawner/bubblegum_exit(get_turf(src)) + great_chest_ahead.forceMove(jebait) + if(second_life) + var/area/A = get_area(src) + for(var/mob/M in A) + to_chat(M, "YOU FUCK... I... I'll... get you later. Enjoy the last few days of your life...") + new /obj/effect/bubblegum_exit(get_turf(src)) + return ..() + +/mob/living/simple_animal/hostile/megafauna/bubblegum/OpenFire(atom/A) + if(second_life) + Shoot(A) + if(charging) return @@ -138,6 +188,9 @@ Difficulty: Hard if(!BUBBLEGUM_SMASH) triple_charge() else + if(prob(25) && enraged) + hit_up_narsi() + return if(prob(50 + anger_modifier)) hallucination_charge() else @@ -209,7 +262,7 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/bubblegum/proc/try_bloodattack() var/list/targets = get_mobs_on_blood() if(targets.len) - INVOKE_ASYNC(src, PROC_REF(bloodattack), targets, prob(50)) + INVOKE_ASYNC(src, PROC_REF(bloodattack), targets, prob(enraged ? 75 : 50)) return TRUE return FALSE @@ -256,7 +309,7 @@ Difficulty: Hard to_chat(L, "[src] rends you!") playsound(T, attack_sound, 100, TRUE, -1) var/limb_to_hit = L.get_organ(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG, BODY_ZONE_TAIL, BODY_ZONE_WING)) - L.apply_damage(10, BRUTE, limb_to_hit, L.run_armor_check(limb_to_hit, "melee", null, null, armour_penetration)) + L.apply_damage(second_life ? 20 : 10, BRUTE, limb_to_hit, L.run_armor_check(limb_to_hit, "melee", null, null, armour_penetration)) SLEEP_CHECK_DEATH(3) /mob/living/simple_animal/hostile/megafauna/bubblegum/proc/bloodgrab(turf/T, handedness) @@ -278,6 +331,26 @@ Difficulty: Hard addtimer(CALLBACK(src, PROC_REF(devour), L), 2) SLEEP_CHECK_DEATH(1) +/mob/living/simple_animal/hostile/megafauna/bubblegum/proc/hit_up_narsi() + SetRecoveryTime(20) + visible_message("[pick("[SSticker.cultdat.entity_name], I call on YOU for one of MY favours you owe me!", "[SSticker.cultdat.entity_title1], I call on you for some support...", "Let us see how you like the minions of [SSticker.cultdat.entity_title2]!", "Oh, [SSticker.cultdat.entity_title3] join me in RENDING THIS WHELP APART!")]") + var/list/turfs = list() + var/constructs = 0 + for(var/turf/T in view(6, target)) + if(T.density) + continue + if(T in range(2, target)) + continue + turfs += T + var/amount = second_life ? 4 : 3 + while(constructs < amount && length(turfs)) + var/turf/spot = pick_n_take(turfs) + if(!spot) + return + var/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum/summon = new /mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum(spot) + summon.faction = faction.Copy() + constructs++ + /mob/living/simple_animal/hostile/megafauna/bubblegum/proc/blood_warp() if(Adjacent(target)) return FALSE @@ -338,8 +411,10 @@ Difficulty: Hard if(!BUBBLEGUM_CAN_ENRAGE) return FALSE enrage_till = world.time + enrage_time + if(enraged && enraged_healing < maximum_enraged_healing && !second_life) + adjustHealth(-75) update_approach() - change_move_delay(5) + change_move_delay(enraged ? 3 : 4) //3 if enraged, 4 otherwise var/newcolor = rgb(149, 10, 10) add_atom_colour(newcolor, TEMPORARY_COLOUR_PRIORITY) var/datum/callback/cb = CALLBACK(src, PROC_REF(blood_enrage_end)) @@ -515,12 +590,12 @@ Difficulty: Hard maxHealth = 1 alpha = 127.5 crusher_loot = null - loot = null medal_type = null score_type = null deathmessage = "Explodes into a pool of blood!" death_sound = 'sound/effects/splat.ogg' true_spawn = FALSE + loot = list(/obj/effect/decal/cleanable/blood/gibs/bubblegum) /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/Initialize(mapload) . = ..() @@ -553,3 +628,29 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/try_bloodattack() return + +/mob/living/simple_animal/hostile/megafauna/bubblegum/round_2 + desc = "Oh they are PISSED. And quite injured too..." + health = 750 + maxHealth = 750 + armour_penetration = 75 + second_life = TRUE + enraged = TRUE + rapid_melee = 12 + projectiletype = /obj/item/projectile/magic/arcane_barrage/blood + projectilesound = 'sound/effects/splat.ogg' + deathmessage = null + death_sound = 'sound/hallucinations/veryfar_noise.ogg' + ranged = TRUE + ranged_cooldown_time = 10 + enraged_loot = /obj/item/disk/fauna_research/bubblegum + +/mob/living/simple_animal/hostile/megafauna/bubblegum/round_2/Initialize(mapload) + . = ..() + for(var/obj/effect/landmark/spawner/bubblegum_exit/E in GLOB.landmarks_list) + second_life_portal = new /obj/effect/portal/redspace(get_turf(E), get_turf(src), null, 2 HOURS, src, FALSE) + break + RegisterSignal(src, COMSIG_HOSTILE_FOUND_TARGET, PROC_REF(i_see_you)) + for(var/mob/living/carbon/human/H in range(20)) + to_chat(H, "MY HANDS WILL RELISH ENDING YOU... HERE AND NOW!") + FindTarget(list(H), 1) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm index 65a1730360f..3cd88392f41 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -1,3 +1,6 @@ +#define RANDOM_SHOTS "Wrath" +#define BLAST "Retribution" +#define DIR_SHOTS "Lament" /* COLOSSUS @@ -43,6 +46,8 @@ Difficulty: Very Hard ranged = TRUE pixel_x = -32 del_on_death = TRUE + universal_speak = TRUE + tts_seed = null internal_type = /obj/item/gps/internal/colossus medal_type = BOSS_MEDAL_COLOSSUS score_type = COLOSSUS_SCORE @@ -50,10 +55,22 @@ Difficulty: Very Hard loot = list(/obj/structure/closet/crate/necropolis/colossus) deathmessage = "disintegrates, leaving a glowing core in its wake." death_sound = 'sound/misc/demon_dies.ogg' + enraged_loot = /obj/item/disk/fauna_research/colossus attack_action_types = list(/datum/action/innate/megafauna_attack/spiral_attack, /datum/action/innate/megafauna_attack/aoe_attack, /datum/action/innate/megafauna_attack/shotgun, /datum/action/innate/megafauna_attack/alternating_cardinals) + /// Have we used our final attack yet? + var/final_available = TRUE + +/mob/living/simple_animal/hostile/megafauna/colossus/Initialize(mapload) + . = ..() + return INITIALIZE_HINT_LATELOAD + +/mob/living/simple_animal/hostile/megafauna/colossus/LateInitialize() + . = ..() + for(var/mob/living/simple_animal/hostile/megafauna/hierophant/H in GLOB.mob_list) + H.RegisterSignal(src, COMSIG_MOB_APPLY_DAMAGE, TYPE_PROC_REF(/mob/living/simple_animal/hostile/megafauna/hierophant, easy_anti_cheese)) /datum/action/innate/megafauna_attack/spiral_attack name = "Spiral Shots" @@ -83,6 +100,17 @@ Difficulty: Very Hard chosen_message = "You are now firing in alternating cardinal directions." chosen_attack_num = 4 +/mob/living/simple_animal/hostile/megafauna/colossus/say(message, bubble_type, list/spans = list(), sanitize = TRUE, datum/language/language = null, ignore_spam = FALSE, forced = null, filterproof = null) + . = ..(("[uppertext(message)]"), sanitize = FALSE, ignore_speech_problems = TRUE, ignore_atmospherics = TRUE) + +/mob/living/simple_animal/hostile/megafauna/colossus/enrage() + . = ..() + move_to_delay = 5 + +/mob/living/simple_animal/hostile/megafauna/colossus/unrage() + . = ..() + move_to_delay = initial(move_to_delay) + /mob/living/simple_animal/hostile/megafauna/colossus/OpenFire() anger_modifier = clamp(((maxHealth - health)/50),0,20) ranged_cooldown = world.time + 120 @@ -99,9 +127,9 @@ Difficulty: Very Hard alternating_dir_shots() return - if(enrage(target)) + if(target_trying_to_cheese_us(target)) if(move_to_delay == initial(move_to_delay)) - visible_message("\"You can't dodge.\"") + say("You can't dodge") ranged_cooldown = world.time + 30 telegraph() dir_shots(GLOB.alldirs) @@ -110,7 +138,11 @@ Difficulty: Very Hard else move_to_delay = initial(move_to_delay) - if(prob(20+anger_modifier)) //Major attack + if(health <= maxHealth / (enraged ? 10 : 9) && final_available) //One time use final attack. Want to make it not get skipped as much on base colossus, but a little easier to skip on enraged as it can be used multiple times + final_attack() + if(!enraged) + final_available = FALSE + else if(prob(20+anger_modifier)) //Major attack select_spiral_attack() else if(prob(20)) random_shots() @@ -120,37 +152,47 @@ Difficulty: Very Hard else alternating_dir_shots() -/mob/living/simple_animal/hostile/megafauna/colossus/proc/enrage(mob/living/L) - if(ishuman(L)) - var/mob/living/carbon/human/H = L - if(H.mind && H.mind.martial_art && prob(H.mind.martial_art.deflection_chance)) - return TRUE - -/mob/living/simple_animal/hostile/megafauna/colossus/proc/alternating_dir_shots() - ranged_cooldown = world.time + 40 +/mob/living/simple_animal/hostile/megafauna/colossus/proc/target_trying_to_cheese_us(mob/living/L) + if(!ishuman(L)) + return + var/mob/living/carbon/human/H = L + if(H.mind && H.mind.martial_art && prob(H.mind.martial_art.deflection_chance)) + return TRUE + +/mob/living/simple_animal/hostile/megafauna/colossus/proc/alternating_dir_shots(telegraphing = TRUE) + var/rage = enraged ? 5 : 10 + if(telegraphing) + ranged_cooldown = world.time + 4 SECONDS + telegraph(DIR_SHOTS) + SLEEP_CHECK_DEATH(2.5 SECONDS) dir_shots(GLOB.diagonals) - SLEEP_CHECK_DEATH(10) + SLEEP_CHECK_DEATH(rage) dir_shots(GLOB.cardinal) - SLEEP_CHECK_DEATH(10) + SLEEP_CHECK_DEATH(rage) dir_shots(GLOB.diagonals) - SLEEP_CHECK_DEATH(10) + SLEEP_CHECK_DEATH(rage) dir_shots(GLOB.cardinal) + if(telegraphing && enraged) + alternating_dir_shots(FALSE) /mob/living/simple_animal/hostile/megafauna/colossus/proc/select_spiral_attack() telegraph() if(health < maxHealth/3) return double_spiral() - visible_message("\"Judgement.\"") + say("Judgement.") + telegraph() + SLEEP_CHECK_DEATH(3.5 SECONDS) return spiral_shoot() /mob/living/simple_animal/hostile/megafauna/colossus/proc/double_spiral() - visible_message("\"Die.\"") - - SLEEP_CHECK_DEATH(10) + say("Die.") + telegraph() + SLEEP_CHECK_DEATH(3.5 SECONDS) INVOKE_ASYNC(src, PROC_REF(spiral_shoot), FALSE) INVOKE_ASYNC(src, PROC_REF(spiral_shoot), TRUE) /mob/living/simple_animal/hostile/megafauna/colossus/proc/spiral_shoot(negative = pick(TRUE, FALSE), counter_start = 8) + icon_state = "eva_attack" var/turf/start_turf = get_step(src, pick(GLOB.alldirs)) var/counter = counter_start for(var/i in 1 to 80) @@ -165,6 +207,7 @@ Difficulty: Very Hard shoot_projectile(start_turf, counter * 22.5) playsound(get_turf(src), 'sound/magic/clockwork/invoke_general.ogg', 20, TRUE) SLEEP_CHECK_DEATH(1) + icon_state = initial(icon_state) /mob/living/simple_animal/hostile/megafauna/colossus/proc/shoot_projectile(turf/marker, set_angle) if(!isnum(set_angle) && (!marker || marker == loc)) @@ -177,16 +220,24 @@ Difficulty: Very Hard P.original = target P.fire(set_angle) -/mob/living/simple_animal/hostile/megafauna/colossus/proc/random_shots() +/mob/living/simple_animal/hostile/megafauna/colossus/proc/random_shots(do_sleep = TRUE) ranged_cooldown = world.time + 30 + if(do_sleep) + telegraph(RANDOM_SHOTS) + SLEEP_CHECK_DEATH(2.5 SECONDS) var/turf/U = get_turf(src) playsound(U, 'sound/magic/clockwork/invoke_general.ogg', 300, TRUE, 5) for(var/T in RANGE_TURFS(12, U) - U) - if(prob(5)) + if(prob(enraged ? 10 : 5)) shoot_projectile(T) -/mob/living/simple_animal/hostile/megafauna/colossus/proc/blast(set_angle) +/mob/living/simple_animal/hostile/megafauna/colossus/proc/blast(set_angle, do_sleep = TRUE) ranged_cooldown = world.time + 20 + if(do_sleep) + telegraph(BLAST) + SLEEP_CHECK_DEATH(enraged ? 1 SECONDS : 2.5 SECONDS) + else + SLEEP_CHECK_DEATH(1 SECONDS) var/turf/target_turf = get_turf(target) playsound(src, 'sound/magic/clockwork/invoke_general.ogg', 200, TRUE, 2) newtonian_move(get_dir(target_turf, src)) @@ -205,13 +256,50 @@ Difficulty: Very Hard var/turf/E = get_step(src, d) shoot_projectile(E) -/mob/living/simple_animal/hostile/megafauna/colossus/proc/telegraph() +/mob/living/simple_animal/hostile/megafauna/colossus/proc/telegraph(mode) for(var/mob/M in range(10,src)) if(M.client) flash_color(M.client, "#C80000", 1) sleep(0.5 SECONDS) shake_camera(M, 4, 3) playsound(src, 'sound/magic/narsie_attack.ogg', 200, TRUE) + if(mode) + say("[mode]") + +/mob/living/simple_animal/hostile/megafauna/colossus/proc/final_attack() + icon_state = "eva_attack" + say("PERISH MORTAL!") + telegraph() + ranged_cooldown = world.time + 20 SECONDS // Yeah let us NOT have people get triple attacked + SLEEP_CHECK_DEATH(3.5 SECONDS) //run + + var/finale_counter = 10 + for(var/i in 1 to 20) + if(finale_counter > 4) + telegraph() + blast(do_sleep = FALSE) + + if(finale_counter > 1) + finale_counter-- + + var/turf/start_turf = get_turf(src) + for(var/turf/target_turf in RANGE_TURFS(12, start_turf)) + if(prob(min(finale_counter, 2)) && target_turf != get_turf(src)) + shoot_projectile(target_turf) + SLEEP_CHECK_DEATH(finale_counter + 0.2 SECONDS) //Doubled from TG, this was insane + + for(var/i in 1 to 3) + telegraph() + random_shots(do_sleep = FALSE) + finale_counter += 6 + SLEEP_CHECK_DEATH(finale_counter) + + for(var/i in 1 to 3) + telegraph() + dir_shots() + SLEEP_CHECK_DEATH(1 SECONDS) + icon_state = initial(icon_state) + ranged_cooldown = world.time + 4 SECONDS /mob/living/simple_animal/hostile/megafauna/colossus/devour(mob/living/L) @@ -246,17 +334,14 @@ Difficulty: Very Hard /mob/living/simple_animal/hostile/megafauna/colossus/float(on) //we don't want this guy to float, messes up his animations if(throwing) return - if(on && !floating) - floating = TRUE - else if(!on && floating) - floating = FALSE + floating = on /obj/item/projectile/colossus name ="death bolt" icon_state= "chronobolt" damage = 25 armour_penetration = 100 - speed = 2 + speed = 3.5 eyeblur = 0 damage_type = BRUTE pass_flags = PASSTABLE @@ -271,3 +356,7 @@ Difficulty: Very Hard gpstag = "Mysterious Signal" desc = "Get in the fucking robot." invisibility = 100 + +#undef RANDOM_SHOTS +#undef BLAST +#undef DIR_SHOTS diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm index 3353d2e15c7..7a54601bb7f 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm @@ -62,6 +62,7 @@ Difficulty: Medium deathmessage = "collapses into a pile of bones, its flesh sloughing away." death_sound = 'sound/misc/demon_dies.ogg' footstep_type = FOOTSTEP_MOB_HEAVY + enraged_loot = /obj/item/disk/fauna_research/ash_drake attack_action_types = list(/datum/action/innate/megafauna_attack/fire_cone, /datum/action/innate/megafauna_attack/fire_cone_meteors, /datum/action/innate/megafauna_attack/mass_fire, @@ -105,7 +106,7 @@ Difficulty: Medium if(swooping) return - anger_modifier = clamp(((maxHealth - health)/50),0,20) + anger_modifier = clamp(max((maxHealth - health) / 50, enraged ? 15 : 0), 0, 20) ranged_cooldown = world.time + ranged_cooldown_time if(client) @@ -127,6 +128,8 @@ Difficulty: Medium else if(prob(10+anger_modifier)) shoot_fire_attack() + else if(enraged && prob(20)) + arena_escape_enrage() else fire_cone() @@ -141,7 +144,7 @@ Difficulty: Medium return target.visible_message("Fire rains from the sky!") for(var/turf/turf in range(9,get_turf(target))) - if(prob(11)) + if(prob(enraged ? 44 : 11)) new /obj/effect/temp_visual/target(turf) /mob/living/simple_animal/hostile/megafauna/dragon/proc/lava_pools(var/amount, var/delay = 0.8) @@ -151,15 +154,15 @@ Difficulty: Medium while(amount > 0) if(QDELETED(target)) break - var/turf/T = pick(RANGE_TURFS(1, target)) - new /obj/effect/temp_visual/lava_warning(T, 60) // longer reset time for the lava + var/turf/T = pick(RANGE_TURFS(enraged ? 2 : 1, target)) + new /obj/effect/temp_visual/lava_warning(T, enraged ? 18 SECONDS : 6 SECONDS) // longer reset time for the lava amount-- SLEEP_CHECK_DEATH(delay) /mob/living/simple_animal/hostile/megafauna/dragon/proc/lava_swoop(var/amount = 30) if(health < maxHealth * 0.5) - return swoop_attack(lava_arena = TRUE, swoop_cooldown = 60) - INVOKE_ASYNC(src, PROC_REF(lava_pools), amount) + return swoop_attack(lava_arena = TRUE, swoop_cooldown = enraged ? 2 SECONDS : 6 SECONDS) + INVOKE_ASYNC(src, PROC_REF(lava_pools), enraged ? 60 : amount) swoop_attack(FALSE, target, 1000) // longer cooldown until it gets reset below SLEEP_CHECK_DEATH(0) fire_cone() @@ -172,6 +175,8 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/dragon/proc/mass_fire(var/spiral_count = 12, var/range = 15, var/times = 3) SLEEP_CHECK_DEATH(0) + if(prob(50) && enraged) + INVOKE_ASYNC(src, PROC_REF(fire_rain)) for(var/i = 1 to times) SetRecoveryTime(50) playsound(get_turf(src),'sound/magic/fireball.ogg', 200, TRUE) @@ -188,12 +193,12 @@ Difficulty: Medium target.visible_message("[src] encases you in an arena of fire!") var/amount = 3 var/turf/center = get_turf(target) - var/list/walled = RANGE_TURFS(3, center) - RANGE_TURFS(2, center) + var/list/walled = RANGE_TURFS(enraged ? 4 : 3, center) - RANGE_TURFS(enraged ? 3 : 2, center) var/list/drakewalls = list() for(var/turf/T in walled) drakewalls += new /obj/effect/temp_visual/drakewall(T) // no people with lava immunity can just run away from the attack for free var/list/indestructible_turfs = list() - for(var/turf/T in RANGE_TURFS(2, center)) + for(var/turf/T in RANGE_TURFS(enraged ? 3 : 2, center)) if(istype(T, /turf/simulated/floor/indestructible)) continue if(!istype(T, /turf/simulated/wall/indestructible)) @@ -202,14 +207,14 @@ Difficulty: Medium indestructible_turfs += T SLEEP_CHECK_DEATH(10) // give them a bit of time to realize what attack is actually happening - var/list/turfs = RANGE_TURFS(2, center) + var/list/turfs = RANGE_TURFS(enraged ? 3 : 2, center) while(amount > 0) var/list/empty = indestructible_turfs.Copy() // can't place safe turfs on turfs that weren't changed to be open var/any_attack = 0 for(var/turf/T in turfs) for(var/mob/living/L in T.contents) if(L.client) - empty += pick(((RANGE_TURFS(2, L) - RANGE_TURFS(1, L)) & turfs) - empty) // picks a turf within 2 of the creature not outside or in the shield + empty += pick(((RANGE_TURFS(enraged ? 3 : 2, L) - RANGE_TURFS(enraged ? 2 : 1, L)) & turfs) - empty) // picks a turf within 2 of the creature not outside or in the shield any_attack = 1 for(var/obj/mecha/M in T.contents) empty += pick(((RANGE_TURFS(2, M) - RANGE_TURFS(1, M)) & turfs) - empty) @@ -236,7 +241,7 @@ Difficulty: Medium move_to_delay = move_to_delay / 2 light_range = 10 SLEEP_CHECK_DEATH(10) // run. - mass_fire(20, 15, 3) + mass_fire(12, 15, 3) move_to_delay = initial(move_to_delay) remove_atom_colour(TEMPORARY_COLOUR_PRIORITY) light_range = initial(light_range) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index 282b9e6504b..8282ab8f44d 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -47,7 +47,7 @@ Difficulty: Hard icon = 'icons/mob/lavaland/hierophant_new.dmi' faction = list("boss") //asteroid mobs? get that shit out of my beautiful square house speak_emote = list("preaches") - armour_penetration = 50 + armour_penetration = 100 //It does 15 damage / only attacks when enraged melee_damage_lower = 15 melee_damage_upper = 15 speed = 10 @@ -63,6 +63,7 @@ Difficulty: Hard score_type = HIEROPHANT_SCORE del_on_death = TRUE death_sound = 'sound/magic/repulse.ogg' + enraged_loot = /obj/item/disk/fauna_research/hierophant attack_action_types = list(/datum/action/innate/megafauna_attack/blink, /datum/action/innate/megafauna_attack/chaser_swarm, /datum/action/innate/megafauna_attack/cross_blasts, @@ -81,10 +82,13 @@ Difficulty: Hard var/list/kill_phrases = list("Wsyvgi sj irivkc xettih. Vitemvmrk...", "Irivkc wsyvgi jsyrh. Vitemvmrk...", "Jyip jsyrh. Egxmzexmrk vitemv gcgpiw...", "Kix fiex. Liepmrk...") var/list/target_phrases = list("Xevkix psgexih.", "Iriqc jsyrh.", "Eguymvih xevkix.") var/list/stored_nearby = list() // stores people nearby the hierophant when it enters the death animation + ///If the hiero has changed colour, stop the rays animation. + var/colour_shifting = FALSE /mob/living/simple_animal/hostile/megafauna/hierophant/Initialize(mapload) . = ..() spawned_beacon = new(loc) + AddComponent(/datum/component/boss_music, 'sound/lavaland/hiero_boss.ogg', 145 SECONDS) /datum/action/innate/megafauna_attack/blink name = "Blink To Target" @@ -114,6 +118,14 @@ Difficulty: Hard chosen_message = "You are now repeatedly blinking at your target." chosen_attack_num = 4 +/mob/living/simple_animal/hostile/megafauna/hierophant/enrage() + . = ..() + move_to_delay = 5 + +/mob/living/simple_animal/hostile/megafauna/hierophant/unrage() + . = ..() + move_to_delay = initial(move_to_delay) + /mob/living/simple_animal/hostile/megafauna/hierophant/OpenFire() if(blinking) return @@ -194,12 +206,26 @@ Difficulty: Hard else //just release a burst of power INVOKE_ASYNC(src, PROC_REF(burst), get_turf(src)) +/mob/living/simple_animal/hostile/megafauna/hierophant/proc/easy_anti_cheese(mob/living/simple_animal/S) + if(enraged || get_dist(S, src) > 20) + return + for(var/mob/living/L in urange(20, src)) + if(L.client) + enrage() + arena_trap(L, TRUE) + FindTarget(list(L), 1) + for(var/mob/living/simple_animal/hostile/megafauna/colossus/C in GLOB.mob_list) + UnregisterSignal(C, COMSIG_MOB_APPLY_DAMAGE) + break + /mob/living/simple_animal/hostile/megafauna/hierophant/proc/blink_spam(var/blink_counter, var/target_slowness, var/cross_counter) ranged_cooldown = world.time + max(5, major_attack_cooldown - anger_modifier * 0.75) - if(health < maxHealth * 0.5 && blink_counter > 1) + if(((health < maxHealth * 0.5) || enraged) && blink_counter > 1) visible_message("\"Mx ampp rsx iwgeti.\"") var/oldcolor = color animate(src, color = "#660099", time = 6) + colour_shifting = TRUE + remove_filter("rays") SLEEP_CHECK_DEATH(6) while(!QDELETED(target) && blink_counter) if(loc == target.loc || loc == target) //we're on the same tile as them after about a second we can stop now @@ -210,6 +236,7 @@ Difficulty: Hard blinking = TRUE SLEEP_CHECK_DEATH(4 + target_slowness) animate(src, color = oldcolor, time = 8) + colour_shifting = FALSE addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_atom_colour)), 8) SLEEP_CHECK_DEATH(8) blinking = FALSE @@ -222,6 +249,8 @@ Difficulty: Hard blinking = TRUE var/oldcolor = color animate(src, color = "#660099", time = 6) + colour_shifting = TRUE + remove_filter("rays") SLEEP_CHECK_DEATH(6) while(!QDELETED(target) && cross_counter) cross_counter-- @@ -231,6 +260,7 @@ Difficulty: Hard INVOKE_ASYNC(src, PROC_REF(blasts), target, GLOB.diagonals) SLEEP_CHECK_DEATH(6 + target_slowness) animate(src, color = oldcolor, time = 8) + colour_shifting = FALSE addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_atom_colour)), 8) SLEEP_CHECK_DEATH(8) blinking = FALSE @@ -242,6 +272,8 @@ Difficulty: Hard blinking = TRUE var/oldcolor = color animate(src, color = "#660099", time = 6) + colour_shifting = TRUE + remove_filter("rays") SLEEP_CHECK_DEATH(6) var/list/targets = ListTargets() var/list/cardinal_copy = GLOB.cardinal.Copy() @@ -259,6 +291,7 @@ Difficulty: Hard SLEEP_CHECK_DEATH(8 + target_slowness) chaser_cooldown = world.time + initial(chaser_cooldown) animate(src, color = oldcolor, time = 8) + colour_shifting = FALSE addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_atom_colour)), 8) SLEEP_CHECK_DEATH(8) blinking = FALSE @@ -273,7 +306,7 @@ Difficulty: Hard new /obj/effect/temp_visual/hierophant/telegraph/diagonal(T, src) else new /obj/effect/temp_visual/hierophant/telegraph(T, src) - playsound(T,'sound/effects/bin_close.ogg', 200, TRUE) + playsound(T,'sound/effects/bin_close.ogg', 75, TRUE) SLEEP_CHECK_DEATH(2) new /obj/effect/temp_visual/hierophant/blast(T, src, FALSE) for(var/d in directions) @@ -288,19 +321,20 @@ Difficulty: Hard previousturf = J J = get_step(previousturf, set_dir) -/mob/living/simple_animal/hostile/megafauna/hierophant/proc/arena_trap(mob/victim) //trap a target in an arena +/mob/living/simple_animal/hostile/megafauna/hierophant/proc/arena_trap(mob/victim, forced = FALSE) //trap a target in an arena var/turf/T = get_turf(victim) if(!istype(victim) || victim.stat == DEAD || !T || arena_cooldown > world.time) return if((istype(get_area(T), /area/ruin/unpowered/hierophant) || istype(get_area(src), /area/ruin/unpowered/hierophant)) && victim != src) - return + if(!forced) + return arena_cooldown = world.time + initial(arena_cooldown) for(var/d in GLOB.cardinal) INVOKE_ASYNC(src, PROC_REF(arena_squares), T, d) for(var/t in RANGE_EDGE_TURFS(11, T)) new /obj/effect/temp_visual/hierophant/wall(t, src) new /obj/effect/temp_visual/hierophant/blast(t, src, FALSE) - if(get_dist(src, T) >= 11) //hey you're out of range I need to get closer to you! + if(get_dist(src, T) >= 11 || forced) //hey you're out of range I need to get closer to you! INVOKE_ASYNC(src, PROC_REF(blink), T) /mob/living/simple_animal/hostile/megafauna/hierophant/proc/arena_squares(turf/T, set_dir) //make a fancy effect extending from the arena target @@ -322,8 +356,8 @@ Difficulty: Hard var/turf/source = get_turf(src) new /obj/effect/temp_visual/hierophant/telegraph(T, src) new /obj/effect/temp_visual/hierophant/telegraph(source, src) - playsound(T,'sound/magic/wand_teleport.ogg', 200, TRUE) - playsound(source,'sound/machines/airlock_open.ogg', 200, TRUE) + playsound(T,'sound/magic/wand_teleport.ogg', 80, TRUE) + playsound(source,'sound/machines/airlock_open.ogg', 80, TRUE) blinking = TRUE SLEEP_CHECK_DEATH(2) //short delay before we start... new /obj/effect/temp_visual/hierophant/telegraph/teleport(T, src) @@ -355,7 +389,7 @@ Difficulty: Hard if(!T) return new /obj/effect/temp_visual/hierophant/telegraph(T, src) - playsound(T,'sound/effects/bin_close.ogg', 200, TRUE) + playsound(T,'sound/effects/bin_close.ogg', 75, TRUE) SLEEP_CHECK_DEATH(2) for(var/t in RANGE_TURFS(1, T)) new /obj/effect/temp_visual/hierophant/blast(t, src, FALSE) @@ -377,8 +411,25 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/hierophant/proc/burst(turf/original, spread_speed) hierophant_burst(src, original, burst_range, spread_speed) +/mob/living/simple_animal/hostile/megafauna/hierophant/float(on) //we don't want this guy to float, messes up his animations + if(throwing) + return + floating = on + +/mob/living/simple_animal/hostile/megafauna/hierophant/do_attack_animation(atom/A, visual_effect_icon, obj/item/used_item, no_effect) + if(!enraged) //We do not want it to animate attacking as that breaks the cool animation. If it is not enraged, it can do it. However this only happens if admin controlled + ..() + /mob/living/simple_animal/hostile/megafauna/hierophant/Life() . = ..() + if(enraged && !colour_shifting) + var/new_filter = isnull(get_filter("ray")) + ray_filter_helper(1, 40, "#660099", 6, 20, 16) + if(new_filter) + animate(get_filter("ray"), offset = 10, y = 8, time = 10 SECONDS, loop = -1) + animate(offset = 0, time = 10 SECONDS) + else + remove_filter("ray") if(. && spawned_beacon && !QDELETED(spawned_beacon) && !client) if(target || loc == spawned_beacon.loc) timeout_time = initial(timeout_time) @@ -399,6 +450,8 @@ Difficulty: Hard if(health > 0 || stat == DEAD) return else + for(var/mob/living/simple_animal/hostile/megafauna/colossus/C in GLOB.mob_list) + UnregisterSignal(C, COMSIG_MOB_APPLY_DAMAGE) stat = DEAD blinking = TRUE //we do a fancy animation, release a huge burst(), and leave our staff. visible_message("\"Mrmxmexmrk wipj-hiwxvygx wiuyirgi...\"") @@ -446,6 +499,11 @@ Difficulty: Hard if(target && isliving(target)) var/mob/living/L = target if(L.stat != DEAD) + if(enraged) + ..() + if(L.move_resist < INFINITY) + var/atom/throw_target = get_edge_target_turf(L, get_dir(src, get_step_away(L, src))) + L.throw_at(throw_target, 1, 2) //Yeet them away. Makes crusher harder / stops endless backstab if(ranged_cooldown <= world.time) calculate_rage() ranged_cooldown = world.time + max(5, ranged_cooldown_time - anger_modifier * 0.75) @@ -472,7 +530,7 @@ Difficulty: Hard if(!stat && .) var/obj/effect/temp_visual/hierophant/squares/HS = new(oldLoc) HS.setDir(movement_dir) - playsound(src, 'sound/mecha/mechmove04.ogg', 150, TRUE, -4) + playsound(src, 'sound/mecha/mechmove04.ogg', 65, TRUE, -4) if(target) arena_trap(target) @@ -483,7 +541,7 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/hierophant/proc/calculate_rage() //how angry we are overall did_reset = FALSE //oh hey we're doing SOMETHING, clearly we might need to heal if we recall - anger_modifier = clamp(((maxHealth - health) / 42),0,50) + anger_modifier = clamp((max((maxHealth - health) / 42, enraged ? 40 : 0)),0,50) burst_range = initial(burst_range) + round(anger_modifier * 0.08) beam_range = initial(beam_range) + round(anger_modifier * 0.12) @@ -652,7 +710,7 @@ Difficulty: Hard var/turf/T = get_turf(src) if(!T) return - playsound(T,'sound/magic/blind.ogg', 125, TRUE, -5) //make a sound + playsound(T,'sound/magic/blind.ogg', 65, TRUE, -5) //make a sound sleep(6) //wait a little bursting = TRUE do_damage(T) //do damage and mark us as bursting diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm index 70e082ecc11..cd209afaa85 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm @@ -18,38 +18,79 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/legion name = "Legion" - health = 800 - maxHealth = 800 - icon_state = "legion" - icon_living = "legion" + health = 2500 + maxHealth = 2500 + icon_state = "mega_legion" + icon_living = "mega_legion" desc = "One of many." - icon = 'icons/mob/lavaland/legion.dmi' + icon = 'icons/mob/lavaland/96x96megafauna.dmi' attacktext = "грызёт" attack_sound = 'sound/misc/demon_attack1.ogg' speak_emote = list("echoes") armour_penetration = 50 - melee_damage_lower = 25 - melee_damage_upper = 25 + melee_damage_lower = 40 + melee_damage_upper = 40 wander = 0 speed = 2 ranged = 1 del_on_death = 1 retreat_distance = 5 minimum_distance = 5 + pixel_x = -32 ranged_cooldown_time = 20 - var/size = 5 - var/charging = 0 + var/charging = FALSE + var/firing_laser = FALSE internal_type = /obj/item/gps/internal/legion medal_type = BOSS_MEDAL_LEGION score_type = LEGION_SCORE pixel_y = -90 pixel_x = -75 - loot = list(/obj/item/stack/sheet/bone = 3) + loot = list(/obj/item/storm_staff) + crusher_loot = list(/obj/item/storm_staff, /obj/item/crusher_trophy/empowered_legion_skull) + enraged_loot = /obj/item/disk/fauna_research/legion vision_range = 13 elimination = 1 appearance_flags = 0 mouse_opacity = MOUSE_OPACITY_ICON stat_attack = UNCONSCIOUS // Overriden from /tg/ - otherwise Legion starts chasing its minions + appearance_flags = 512 + +/mob/living/simple_animal/hostile/megafauna/legion/Initialize(mapload) + . = ..() + transform *= 2 + + +/mob/living/simple_animal/hostile/megafauna/legion/enrage() + health = 1250 + maxHealth = 1250 + transform /= 1.5 + loot = list(/datum/nothing) + crusher_loot = list(/datum/nothing) + var/mob/living/simple_animal/hostile/megafauna/legion/legiontwo = new /mob/living/simple_animal/hostile/megafauna/legion(get_turf(src)) + legiontwo.transform /= 1.5 + legiontwo.loot = list(/datum/nothing) + legiontwo.crusher_loot = list(/datum/nothing) + legiontwo.health = 1250 + legiontwo.maxHealth = 1250 + legiontwo.enraged = TRUE + +/mob/living/simple_animal/hostile/megafauna/legion/unrage() + . = ..() + for(var/mob/living/simple_animal/hostile/megafauna/legion/other in GLOB.mob_list) + if(other != src) + other.loot = list(/obj/item/storm_staff) + other.crusher_loot = list(/obj/item/storm_staff, /obj/item/crusher_trophy/empowered_legion_skull) + other.maxHealth = 2500 + other.health = 2500 + qdel(src) //Suprise, it's the one on lavaland that regrows to full. + +/mob/living/simple_animal/hostile/megafauna/legion/death(gibbed) + for(var/mob/living/simple_animal/hostile/megafauna/legion/other in GLOB.mob_list) + if(other != src) + other.loot = list(/obj/item/storm_staff) + other.crusher_loot = list(/obj/item/storm_staff, /obj/item/crusher_trophy/empowered_legion_skull) + . = ..() + /mob/living/simple_animal/hostile/megafauna/legion/adjustHealth(damage, updating_health) . = ..() @@ -69,83 +110,119 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/legion/OpenFire(the_target) if(world.time >= ranged_cooldown && !charging) - if(prob(75)) - var/mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/A = new(loc) - A.GiveTarget(target) - A.friends = friends - A.faction = faction - ranged_cooldown = world.time + ranged_cooldown_time - else + if(prob(30)) visible_message("[src] charges!") SpinAnimation(speed = 20, loops = 5) ranged = 0 retreat_distance = 0 minimum_distance = 0 + move_to_delay = 2 speed = 0 charging = 1 - spawn(50) - reset_charge() - -/mob/living/simple_animal/hostile/megafauna/legion/proc/reset_charge() - ranged = 1 - retreat_distance = 5 - minimum_distance = 5 - speed = 2 - charging = 0 + ranged_cooldown = world.time + 3 SECONDS + SLEEP_CHECK_DEATH(3 SECONDS) + set_ranged() + else if(prob(60)) + firing_laser = TRUE + var/beam_angle = get_angle(src, locate(target.x - 1, target.y, target.z)) // -1 to account for the legion sprite offset. + var/turf/target_location = locate(x + (50 * sin(beam_angle)), y + (50 * cos(beam_angle)), z) + var/beam_time = 0.25 SECONDS + ((health / maxHealth) SECONDS) + playsound(loc, 'sound/effects/basscannon.ogg', 200, TRUE) + Beam(target_location, icon_state = "death_laser", time = beam_time, maxdistance = INFINITY, beam_type = /obj/effect/ebeam/disintegration_telegraph) + addtimer(CALLBACK(src, PROC_REF(fire_disintegration_laser), target_location), beam_time) + ranged_cooldown = world.time + beam_time + 2 SECONDS + SLEEP_CHECK_DEATH(beam_time + 2 SECONDS) + firing_laser = FALSE + else if(prob(40)) + var/mob/living/simple_animal/hostile/big_legion/A = new(loc) + A.GiveTarget(target) + A.friends = friends + A.faction = faction + visible_message("A monstrosity emerges from [src]", + "You summon a big [A]!") + ranged_cooldown = world.time + 5 SECONDS + else + var/mob/living/simple_animal/hostile/asteroid/hivelord/legion/A + if(enraged) + A = new /mob/living/simple_animal/hostile/asteroid/hivelord/legion/advanced/tendril(loc) + else + A = new /mob/living/simple_animal/hostile/asteroid/hivelord/legion/tendril(loc) + if(!enraged || prob(33)) + A.GiveTarget(target) + else + for(var/mob/living/carbon/human/H in range(7, src)) + if(H.stat == DEAD) + A.GiveTarget(target) + A.friends = friends + A.faction = faction + visible_message("A [A] emerges from [src]!", + "You summon a [A]!") + ranged_cooldown = world.time + 2 SECONDS -/mob/living/simple_animal/hostile/megafauna/legion/can_die() - return ..() && health <= 0 +/mob/living/simple_animal/hostile/megafauna/legion/MoveToTarget() + if(firing_laser) + return + ..() -/mob/living/simple_animal/hostile/megafauna/legion/death() - if(!can_die()) +/mob/living/simple_animal/hostile/megafauna/legion/Move() + if(firing_laser) return FALSE - if(size > 1) - adjustHealth(-maxHealth) //heal ourself to full in prep for splitting - var/mob/living/simple_animal/hostile/megafauna/legion/L = new(loc) - - L.maxHealth = maxHealth * 0.6 - maxHealth = L.maxHealth - - L.health = L.maxHealth - health = maxHealth - - size-- - L.size = size - - L.resize = L.size * 0.2 - transform = initial(transform) - resize = size * 0.2 - - L.update_transform() - update_transform() - - L.faction = faction.Copy() - - L.GiveTarget(target) - - visible_message("[src] splits in twain!") - return FALSE // not dead - else - // this must come before the parent call due to the setting of `loot` here - var/last_legion = TRUE - for(var/mob/living/simple_animal/hostile/megafauna/legion/other in GLOB.mob_list) - if(other != src) - last_legion = FALSE - break - if(last_legion) - loot = list(/obj/item/staff/storm) - elimination = 0 - UnlockBlastDoors("11119") - else if(prob(5)) - loot = list(/obj/structure/closet/crate/necropolis/tendril) - if(!true_spawn) - loot = null - UnlockBlastDoors("11119") - return ..() + . = ..() + +/mob/living/simple_animal/hostile/megafauna/legion/Goto(target, delay, minimum_distance) + if(firing_laser) + return + ..() + +/mob/living/simple_animal/hostile/megafauna/legion/proc/set_ranged() + ranged = TRUE + retreat_distance = 5 + minimum_distance = 5 + move_to_delay = 2 + charging = FALSE + +/mob/living/simple_animal/hostile/megafauna/legion/proc/fire_disintegration_laser(location) + playsound(loc, 'sound/weapons/marauder.ogg', 200, TRUE) + Beam(location, icon_state = "death_laser", time = 2 SECONDS, maxdistance = INFINITY, beam_type = /obj/effect/ebeam/disintegration) + for(var/turf/t in getline(src, location)) + if(ismineralturf(t)) + var/turf/simulated/mineral/M = t + M.attempt_drill(src) + for(var/mob/living/M in t) + if(faction_check(M.faction, faction, FALSE)) + continue + if(M.stat == DEAD) + visible_message("[M] is disintegrated by the beam!") + M.dust() + else if(M != src) + playsound(M,'sound/weapons/sear.ogg', 50, TRUE, -4) + to_chat(M, "You're struck by a disintegration laser!") + var/limb_to_hit = M.get_organ(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG)) + var/armor = M.run_armor_check(limb_to_hit, LASER) + M.apply_damage(70 - ((health / maxHealth) * 20), BURN, limb_to_hit, armor) /mob/living/simple_animal/hostile/megafauna/legion/Process_Spacemove(movement_dir = 0) return 1 +/mob/living/simple_animal/hostile/megafauna/legion/adjustHealth(amount, updating_health = TRUE) + . = ..() + if(QDELETED(src)) + return + if(.) + var/matrix/M = new + resize = (enraged ? 0.33 : 1) + (health / maxHealth) + M.Scale(resize, resize) + transform = M + if(amount > 0 && (enraged || prob(33))) + var/mob/living/simple_animal/hostile/asteroid/hivelordbrood/A + if(enraged) + A = new /mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/advanced(loc) + else + A = new /mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion(loc) + A.GiveTarget(target) + A.friends = friends + A.faction = faction + /obj/item/gps/internal/legion icon_state = null gpstag = "Mysterious Signal" diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm index 77c953727bd..a53490aa7f7 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm @@ -40,6 +40,10 @@ var/nest_range = 10 var/chosen_attack = 1 // chosen attack num var/list/attack_action_types = list() + /// Has someone enabled hard mode? + var/enraged = FALSE + /// Path of the hardmode loot disk, if applicable. + var/enraged_loot /mob/living/simple_animal/hostile/megafauna/Initialize(mapload) . = ..() @@ -72,6 +76,10 @@ var/datum/status_effect/crusher_damage/C = has_status_effect(STATUS_EFFECT_CRUSHERDAMAGETRACKING) if(C && crusher_loot && C.total_damage >= maxHealth * 0.6) spawn_crusher_loot() + if(enraged && length(loot) && enraged_loot) //Don't drop a disk if the boss drops no loot. Important for legion. + for(var/mob/living/M in urange(20, src)) //Yes big range, but for bubblegum arena + if(M.client) + loot += enraged_loot //Disk for each miner / borg. if(!elimination) //used so the achievment only occurs for the last legion to die. grant_achievement(medal_type,score_type) SSblackbox.record_feedback("tally", "megafauna_kills", 1, "[initial(name)]") @@ -88,10 +96,15 @@ var/mob/living/L = target if(L.stat != DEAD) if(!client && ranged && ranged_cooldown <= world.time) - OpenFire() + OpenFire(L) else devour(L) +/mob/living/simple_animal/hostile/megafauna/onTransitZ(old_z, new_z) + . = ..() + if(!istype(get_area(src), /area/shuttle)) //I'll be funny and make non teleported enrage mobs not lose enrage. Harder to pull off, and also funny when it happens accidently. Or if one gets on the escape shuttle. + unrage() + /mob/living/simple_animal/hostile/megafauna/onShuttleMove(turf/oldT, turf/T1, rotation, mob/caller) var/turf/oldloc = loc . = ..() @@ -181,3 +194,12 @@ /datum/action/innate/megafauna_attack/Activate() M.chosen_attack = chosen_attack_num to_chat(M, chosen_message) + +/// This proc is called by the HRD-MDE grenade to enrage the megafauna. This should increase the megafaunas attack speed if possible, give it new moves, or disable weak moves. This should be reverseable, and reverses on zlvl change. +/mob/living/simple_animal/hostile/megafauna/proc/enrage() + if(enraged || ((health / maxHealth) * 100 <= 80)) + return + enraged = TRUE + +/mob/living/simple_animal/hostile/megafauna/proc/unrage() + enraged = FALSE diff --git a/code/modules/mob/living/simple_animal/hostile/mining/basilisk.dm b/code/modules/mob/living/simple_animal/hostile/mining/basilisk.dm index 0d6d293adc2..ac8f636cee5 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/basilisk.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/basilisk.dm @@ -78,14 +78,15 @@ stat_attack = UNCONSCIOUS flying = TRUE robust_searching = 1 + projectiletype = /obj/item/projectile/watcher crusher_loot = /obj/item/crusher_trophy/watcher_wing loot = list() butcher_results = list(/obj/item/stack/ore/diamond = 2, /obj/item/stack/sheet/sinew = 2, /obj/item/stack/sheet/bone = 1) /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/random/Initialize(mapload) . = ..() - if(prob(1)) - if(prob(75)) + if(prob(40)) //60 for classic, 20/20 for magma and ice + if(prob(50)) new /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/magmawing(loc) else new /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing(loc) @@ -119,7 +120,25 @@ projectiletype = /obj/item/projectile/temp/basilisk/icewing butcher_results = list(/obj/item/stack/ore/diamond = 5, /obj/item/stack/sheet/bone = 1) //No sinew; the wings are too fragile to be usable crusher_loot = /obj/item/crusher_trophy/watcher_wing/ice_wing - crusher_drop_mod = 30 + crusher_drop_mod = 60 + +/obj/item/projectile/watcher + name = "stunning blast" + icon_state = "temp_0" + damage = 10 //make it hurt, as it no more freezing + damage_type = BURN + nodamage = FALSE + speed = 0.8 + +/obj/item/projectile/watcher/on_hit(atom/target, blocked = FALSE) + . = ..() + if(.) + var/mob/living/L = target + if(istype(L)) + L.AdjustWeakened(1 SECONDS) + L.Slowed(3 SECONDS) + L.Confused(3 SECONDS) + /obj/item/projectile/temp/basilisk/magmawing name = "scorching blast" @@ -127,20 +146,25 @@ damage = 5 damage_type = BURN nodamage = FALSE - temperature = 500 //Heats you up! + temperature = 700 //Heats you up! + speed = 0.6 /obj/item/projectile/temp/basilisk/magmawing/on_hit(atom/target, blocked = FALSE) . = ..() if(.) var/mob/living/L = target if(istype(L)) - L.adjust_fire_stacks(0.1) + L.adjust_fire_stacks(3) L.IgniteMob() + if(L.getFireLoss() > 50) + explosion(L.loc, 0, 0, 0, 0, flame_range = 3) + L.AdjustWeakened(1 SECONDS) /obj/item/projectile/temp/basilisk/icewing damage = 5 damage_type = BURN nodamage = FALSE + speed = 0.6 /obj/item/projectile/temp/basilisk/icewing/on_hit(atom/target, blocked = FALSE) . = ..() @@ -152,15 +176,21 @@ /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/tendril fromtendril = TRUE +/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing/tendril + fromtendril = TRUE + +/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/magmawing/tendril + fromtendril = TRUE + /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing/death(gibbed) - if(prob(10)) + if(prob(30) && !fromtendril) new /obj/item/gem/fdiamond(loc) deathmessage = "spits out a diamond as it dies!" . = ..() deathmessage = initial(deathmessage) /mob/living/simple_animal/hostile/asteroid/basilisk/watcher/magmawing/death(gibbed) - if(prob(10)) + if(prob(30) && !fromtendril) new /obj/item/gem/magma(loc) deathmessage = "spits out a golden gem as it dies!" . = ..() diff --git a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm index 0d5edcb0292..ac1913733f0 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm @@ -84,6 +84,6 @@ . = ..() /mob/living/simple_animal/hostile/asteroid/goldgrub/death(gibbed) - if(prob(10)) + if(prob(40)) new /obj/item/gem/rupee(loc) . = ..() diff --git a/code/modules/mob/living/simple_animal/hostile/mining/goliath.dm b/code/modules/mob/living/simple_animal/hostile/mining/goliath.dm index 7ccd74a0c74..2a4780ac286 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/goliath.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/goliath.dm @@ -35,6 +35,24 @@ var/pre_attack_icon = "Goliath_preattack" loot = list(/obj/item/stack/sheet/animalhide/goliath_hide) footstep_type = FOOTSTEP_MOB_HEAVY + emote_taunt = list("growls ominously") + taunt_chance = 30 + var/charging = FALSE + var/revving_charge = FALSE + var/reflect_chance = 30 + food_type = list(/obj/item/reagent_containers/food/snacks/meat, /obj/item/reagent_containers/food/snacks/grown/ash_flora/cactus_fruit, /obj/item/reagent_containers/food/snacks/grown/ash_flora/mushroom_leaf) + tame_chance = 0 + bonus_tame_chance = 10 + + +/mob/living/simple_animal/hostile/asteroid/goliath/bullet_act(var/obj/item/projectile/P) + if(prob(reflect_chance)) + visible_message("The [P.name] gets reflected by [src]'s rocky hide!", \ + "The [P.name] gets reflected by [src]'s rocky hide!") + P.reflect_back(src, list(0, 0, -1, 1, -2, 2, -2, 2, -2, 2, -3, 3, -3, 3)) + + return -1 // complete projectile permutation + return (..(P)) /mob/living/simple_animal/hostile/asteroid/goliath/Life() . = ..() @@ -47,9 +65,11 @@ return icon_state = pre_attack_icon -/mob/living/simple_animal/hostile/asteroid/goliath/revive() - ..() - anchored = TRUE +/mob/living/simple_animal/hostile/asteroid/goliath/revive()//who the fuck anchors mobs + if(..()) + move_resist = MOVE_FORCE_VERY_STRONG + return TRUE + /mob/living/simple_animal/hostile/asteroid/goliath/death(gibbed) move_force = MOVE_FORCE_DEFAULT @@ -57,16 +77,84 @@ pull_force = PULL_FORCE_DEFAULT ..(gibbed) +/mob/living/simple_animal/hostile/asteroid/goliath/AttackingTarget() //override to OpenFire close by + . = ..() + if(. && isliving(target)) + var/mob/living/L = target + if(L.stat != DEAD) + if(!client && ranged && ranged_cooldown <= world.time) + OpenFire() + ranged_cooldown = world.time + ranged_cooldown_time + + /mob/living/simple_animal/hostile/asteroid/goliath/OpenFire() var/tturf = get_turf(target) if(!isturf(tturf)) return - if(get_dist(src, target) <= 7)//Screen range check, so you can't get tentacle'd offscreen - visible_message("[src] digs its tentacles under [target]!") - new /obj/effect/temp_visual/goliath_tentacle/original(tturf, src) - ranged_cooldown = world.time + ranged_cooldown_time - icon_state = icon_aggro - pre_attack = FALSE + if(get_dist(src, target) <= 1) //if target close by + melee_attack(GLOB.alldirs) + if(get_dist(src, target) > 1 && get_dist(src, target) <= 7) //Screen range check, so you can't get tentacle'd offscreen + if(prob(50)) + ranged_attack() + else + charge() + + +/mob/living/simple_animal/hostile/asteroid/goliath/proc/melee_attack(list/dirs) + if(!islist(dirs)) + dirs = GLOB.alldirs.Copy() + visible_message(span_warning("[src] unleashes tentacles from the ground around it!")) + for(var/d in dirs) + var/turf/E = get_step(src, d) + new /obj/effect/temp_visual/goliath_tentacle(E, src) + pre_attack = FALSE + + +/mob/living/simple_animal/hostile/asteroid/goliath/proc/ranged_attack() + var/tturf = get_turf(target) + visible_message("[src] digs its tentacles under [target]!") + new /obj/effect/temp_visual/goliath_tentacle/original(tturf, src) + ranged_cooldown = world.time + ranged_cooldown_time + icon_state = icon_aggro + pre_attack = FALSE + +/mob/living/simple_animal/hostile/asteroid/goliath/proc/charge(atom/chargeat = target, delay = 10, chargepast = 2) + if(!chargeat) + return + var/chargeturf = get_turf(chargeat) + if(!chargeturf) + return + var/dir = get_dir(src, chargeturf) + var/turf/T = get_ranged_target_turf(chargeturf, dir, chargepast) + if(!T) + return + charging = TRUE + revving_charge = TRUE + walk(src, 0) + setDir(dir) + var/obj/effect/temp_visual/decoy/D = new /obj/effect/temp_visual/decoy(loc,src) + animate(D, alpha = 0, color = "#FF0000", transform = matrix()*2, time = 3) + SLEEP_CHECK_DEATH(delay) + revving_charge = FALSE + var/movespeed = 0.7 + walk_towards(src, T, movespeed) + SLEEP_CHECK_DEATH(get_dist(src, T) * movespeed) + walk(src, 0) // cancel the movement + charging = FALSE + pre_attack = FALSE + +/mob/living/simple_animal/hostile/asteroid/goliath/beast/Bump(atom/A) + if(isturf(A) && charging) + wall_slam(A) + +/mob/living/simple_animal/hostile/asteroid/goliath/beast/proc/wall_slam(atom/A) + charging = FALSE + Stun(100, TRUE, TRUE) + walk(src, 0) // Cancel the movement + if(ismineralturf(A)) + var/turf/simulated/mineral/M = A + if(M.mineralAmt < 7) + M.mineralAmt++ /mob/living/simple_animal/hostile/asteroid/goliath/adjustHealth(amount, updating_health = TRUE) ranged_cooldown -= 10 @@ -76,6 +164,9 @@ /mob/living/simple_animal/hostile/asteroid/goliath/Aggro() vision_range = aggro_vision_range handle_preattack() + if(target && prob(taunt_chance)) + emote("me", 1, "[pick(emote_taunt)] at [target].") + taunt_chance = max(taunt_chance-7,2) if(icon_state != icon_aggro) icon_state = icon_aggro @@ -98,7 +189,7 @@ /mob/living/simple_animal/hostile/asteroid/goliath/beast/random/Initialize(mapload) . = ..() - if(prob(1)) + if(prob(10)) new /mob/living/simple_animal/hostile/asteroid/goliath/beast/ancient(loc) return INITIALIZE_HINT_QDEL @@ -115,12 +206,14 @@ pre_attack_icon = "Goliath_preattack" throw_message = "does nothing to the rocky hide of the" loot = list(/obj/item/stack/sheet/animalhide/goliath_hide) //A throwback to the asteroid days - butcher_results = list(/obj/item/reagent_containers/food/snacks/monstermeat/goliath= 2, /obj/item/stack/sheet/bone = 2) + butcher_results = list(/obj/item/reagent_containers/food/snacks/monstermeat/goliath = 2, /obj/item/stack/sheet/bone = 2) crusher_drop_mod = 30 wander = FALSE var/list/cached_tentacle_turfs var/turf/last_location var/tentacle_recheck_cooldown = 100 + reflect_chance = 50 + bonus_tame_chance = 5 /mob/living/simple_animal/hostile/asteroid/goliath/beast/ancient/Life() . = ..() diff --git a/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm b/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm index db47a254261..a4febf9fc07 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/hivelord.dm @@ -13,8 +13,8 @@ vision_range = 5 aggro_vision_range = 9 speed = 3 - maxHealth = 75 - health = 75 + maxHealth = 100 + health = 100 harm_intent_damage = 5 melee_damage_lower = 0 melee_damage_upper = 0 @@ -194,8 +194,8 @@ icon_living = "dwarf_legion" icon_aggro = "dwarf_legion" icon_dead = "dwarf_legion" - maxHealth = 60 - health = 60 + maxHealth = 80 + health = 80 speed = 2 //faster! crusher_drop_mod = 20 dwarf_mob = TRUE @@ -206,9 +206,13 @@ /mob/living/simple_animal/hostile/asteroid/hivelord/legion/death(gibbed) visible_message("The skulls on [src] wail in anger as they flee from their dying host!") var/turf/T = get_turf(src) + for(var/i in 1 to 3) + new brood_type(T) if(T) if(stored_mob) stored_mob.forceMove(get_turf(src)) + stored_mob.rejuvenate() + stored_mob.death() stored_mob = null else if(fromtendril) new /obj/effect/mob_spawn/human/corpse/charredskeleton(T) @@ -251,6 +255,14 @@ infest(H) ..() +/mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/AttackingTarget() + . = ..() + if(!isobj(target)) + var/mob/living/carbon/human/victim = target + if(victim.can_inject(null, FALSE, "chest", FALSE, TRUE) && !victim.get_int_organ(/obj/item/organ/internal/legion_tumour) && prob(1)) + new /obj/item/organ/internal/legion_tumour(victim) + visible_message(span_userdanger("[src] вгрызается в шею [target], впрыскивая странную черную жидкость!")) //made it on russian to attract more attention from attacklogs + /mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/proc/infest(mob/living/carbon/human/H) visible_message("[name] burrows into the flesh of [H]!") var/mob/living/simple_animal/hostile/asteroid/hivelord/legion/L @@ -263,6 +275,10 @@ H.adjustBruteLoss(1000) L.stored_mob = H H.forceMove(L) + if(prob(75) && !H.get_int_organ(/obj/item/organ/internal/legion_tumour)) // Congratulations you have won a special prize: cancer! + var/obj/item/organ/internal/legion_tumour/cancer = new() + cancer.insert(H, special = TRUE) + qdel(src) //Advanced Legion is slightly tougher to kill and can raise corpses (revive other legions) @@ -276,6 +292,9 @@ icon_aggro = "dwarf_legion" icon_dead = "dwarf_legion" +/mob/living/simple_animal/hostile/asteroid/hivelord/legion/advanced/tendril + fromtendril = TRUE + /mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion/advanced stat_attack = DEAD can_infest_dead = TRUE diff --git a/code/modules/mob/living/simple_animal/hostile/mining/marrow_weaver.dm b/code/modules/mob/living/simple_animal/hostile/mining/marrow_weaver.dm index 83da964d877..566b93fa559 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/marrow_weaver.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/marrow_weaver.dm @@ -7,7 +7,7 @@ icon_aggro = "weaver" icon_dead = "weaver_dead" throw_message = "bounces harmlessly off the" - butcher_results = list(/obj/item/stack/ore/uranium = 2, /obj/item/stack/sheet/bone = 3, /obj/item/stack/sheet/sinew = 2, /obj/item/stack/sheet/animalhide/weaver_chitin = 4, /obj/item/reagent_containers/food/snacks/monstermeat/spiderleg = 2) + butcher_results = list(/obj/item/stack/ore/uranium = 2, /obj/item/stack/sheet/bone = 2, /obj/item/stack/sheet/sinew = 1, /obj/item/stack/sheet/animalhide/weaver_chitin = 3, /obj/item/reagent_containers/food/snacks/monstermeat/spiderleg = 2) loot = list() attacktext = "кусает" //can we revert all translation in our code? gold_core_spawnable = HOSTILE_SPAWN @@ -117,3 +117,27 @@ move_to_delay = 14 anger_move_to_delay = 6 anger_speed = 6 + +/mob/living/simple_animal/hostile/asteroid/marrowweaver/dangerous/random/Initialize(mapload) + . = ..() + if(prob(15)) + new /mob/living/simple_animal/hostile/asteroid/marrowweaver/frost(loc) + return INITIALIZE_HINT_QDEL + +/mob/living/simple_animal/hostile/asteroid/marrowweaver/frost + name = "frostbite weaver" + desc = "A big, angry, venomous ice spider. It likes to snack on bone marrow. Its preferred food source is you." + icon_state = "weaver_ice" + icon_living = "weaver_ice" + icon_aggro = "weaver_ice" + icon_dead = "weaver_ice_dead" + melee_damage_lower = 10 //stronger venom, but weaker attack. + melee_damage_upper = 13 + poison_type = "frostoil" + poison_per_bite = 5 + +/mob/living/simple_animal/hostile/asteroid/marrowweaver/tendril + fromtendril = TRUE + +/mob/living/simple_animal/hostile/asteroid/marrowweaver/frost/tendril + fromtendril = TRUE diff --git a/code/modules/mob/living/simple_animal/hostile/netherworld.dm b/code/modules/mob/living/simple_animal/hostile/netherworld.dm index b3eb20e96ef..e9790b8cece 100644 --- a/code/modules/mob/living/simple_animal/hostile/netherworld.dm +++ b/code/modules/mob/living/simple_animal/hostile/netherworld.dm @@ -75,6 +75,9 @@ spawn_text = "crawls through" mob_types = list(/mob/living/simple_animal/hostile/netherworld/migo, /mob/living/simple_animal/hostile/netherworld, /mob/living/simple_animal/hostile/netherworld/blankbody) faction = list("nether") + scanner_taggable = TRUE + mob_gps_id = "?!?" + spawner_gps_id = "Netheric Distortion" /obj/structure/spawner/nether/Initialize(mapload) .=..() diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index fb5d5d4873f..6e50d06cb91 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -108,8 +108,14 @@ var/shouldwakeup = FALSE //convenience var for forcibly waking up an idling AI on next check. - //domestication - var/tame = 0 + ///Domestication. + var/tame = FALSE + ///What the mob eats, typically used for taming or animal husbandry. + var/list/food_type + ///Starting success chance for taming. + var/tame_chance + ///Added success chance after every failed tame attempt. + var/bonus_tame_chance var/my_z // I don't want to confuse this with client registered_z ///What kind of footstep this mob should have. Null if it shouldn't have any. @@ -151,6 +157,25 @@ return ..() +/mob/living/simple_animal/attackby(obj/item/O, mob/user, params) + if(!is_type_in_list(O, food_type)) + ..() + return + else + user.visible_message("[user] hand-feeds [O] to [src].", "You hand-feed [O] to [src].") + qdel(O) + if(tame) + return + if(prob(tame_chance)) //note: lack of feedback message is deliberate, keep them guessing! + tame = TRUE + tamed(user) + else + tame_chance += bonus_tame_chance + +///Extra effects to add when the mob is tamed, such as adding a riding or whatever. +/mob/living/simple_animal/proc/tamed(whomst) + return + /mob/living/simple_animal/handle_atom_del(atom/A) if(A == pcollar) pcollar = null diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm index e8025663735..1245b0d6cf2 100644 --- a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm +++ b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm @@ -181,6 +181,7 @@ desc = "A self recharging, ranged mining tool that does increased damage in low pressure. This one has been enhanced with plasma magmite." origin_tech = "combat=5;powerstorage=3;engineering=5" max_mod_capacity = 200 + trigger_guard = TRIGGER_GUARD_ALLOW_ALL //Casing @@ -480,7 +481,8 @@ /obj/item/borg/upgrade/modkit/hardness name = "hardness increase" desc = "Increases the maximum piercing power of a kinetic accelerator when installed." - cost = 50 //balance reasons + denied_type = /obj/item/borg/upgrade/modkit/hardness + cost = 30 /obj/item/borg/upgrade/modkit/hardness/modify_projectile(obj/item/projectile/kinetic/K) K.power += modifier diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index 3bac5743d9e..bd0e00de65d 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -198,6 +198,7 @@ item_state = "plasmacutter_mega" desc = "A mining tool capable of expelling concentrated plasma bursts. You could use it to cut limbs off xenos! Or, you know, mine stuff. This one has been enhanced with plasma magmite." ammo_type = list(/obj/item/ammo_casing/energy/plasma/adv/mega) + trigger_guard = TRIGGER_GUARD_ALLOW_ALL /obj/item/gun/energy/plasmacutter/shotgun name = "plasma cutter shotgun" @@ -214,6 +215,7 @@ item_state = "miningshotgun_mega" desc = "An industrial-grade, heavy-duty mining shotgun. This one seems upgraded with plasma magmite." ammo_type = list(/obj/item/ammo_casing/energy/plasma/shotgun/mega) + trigger_guard = TRIGGER_GUARD_ALLOW_ALL // Wormhole Projectors // /obj/item/gun/energy/wormhole_projector diff --git a/code/modules/projectiles/guns/projectile/bow.dm b/code/modules/projectiles/guns/projectile/bow.dm index b459ad1432b..ed8a6a70dbd 100644 --- a/code/modules/projectiles/guns/projectile/bow.dm +++ b/code/modules/projectiles/guns/projectile/bow.dm @@ -6,6 +6,7 @@ fire_sound = 'sound/weapons/grenadelaunch.ogg' mag_type = /obj/item/ammo_box/magazine/internal/bow flags = HANDSLOW + slot_flags = SLOT_BACK weapon_weight = WEAPON_HEAVY trigger_guard = TRIGGER_GUARD_NONE var/draw_sound = 'sound/weapons/draw_bow.ogg' @@ -121,7 +122,8 @@ desc = "A quiver for holding arrows." icon_state = "quiver" item_state = "quiver" - storage_slots = 20 + storage_slots = 21 + max_combined_w_class = INFINITY display_contents_with_number = TRUE can_hold = list( /obj/item/ammo_casing/caseless/arrow @@ -143,7 +145,8 @@ desc = "A fireproof quiver made from the chitin of a marrow weaver. Used to hold arrows." icon_state = "quiver_weaver" item_state = "quiver_weaver" - storage_slots = 20 + storage_slots = 21 //every craft makes 3 arrows + max_combined_w_class = INFINITY display_contents_with_number = TRUE can_hold = list( /obj/item/ammo_casing/caseless/arrow diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index 4843f814059..7f0cdb1fb5d 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -351,7 +351,7 @@ /obj/item/reagent_containers/hypospray/autoinjector/charcoal name = "Charcoal autoinjector" - desc = "A medipen used for basic toxix damage treatment" + desc = "A medipen used for basic toxin damage treatment" icon_state = "greeninjector" amount_per_transfer_from_this = 20 volume = 20 diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index ffe49a08edb..11bd9b257a9 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -93,6 +93,18 @@ icon_state = "pill8" list_reagents = list("methamphetamine" = 5) +/obj/item/reagent_containers/food/pill/lsd + name = "LSD pill" + desc = "Commonly used to get high." + icon_state = "pill4" + list_reagents = list("lsd" = 5) + +/obj/item/reagent_containers/food/pill/rum + name = "rum pill" + desc = "Commonly used to... Wait a second, what the f.." + icon_state = "pill8" + list_reagents = list("rum" = 25) + /obj/item/reagent_containers/food/pill/stimulative_agent name = "combat stimulant pill" desc = "Used by elite soldiers to increase speed and battle performance." diff --git a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm index 660f4f13590..f704ab8a8cc 100644 --- a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm +++ b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm @@ -25,7 +25,8 @@ STOP_PROCESSING(SSprocessing, src) /obj/structure/lavaland/ash_walker/deconstruct(disassembled) - new /obj/item/assembly/signaler/anomaly(get_step(loc, pick(GLOB.alldirs))) + var/core_to_drop = pick(subtypesof(/obj/item/assembly/signaler/anomaly)) + new core_to_drop (get_step(loc, pick(GLOB.alldirs))) new /obj/effect/collapse(loc) return ..() diff --git a/config/example/lavaRuinBlacklist.txt b/config/example/lavaRuinBlacklist.txt index a57deea5951..f8f780bbd68 100644 --- a/config/example/lavaRuinBlacklist.txt +++ b/config/example/lavaRuinBlacklist.txt @@ -46,3 +46,5 @@ #_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_grave.dmm #_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_legion.dmm #_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_nest.dmm +#_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_pirateship.dmm +#_maps/map_files/RandomRuins/LavaRuins/lavaland_surface_althland_facility.dmm diff --git a/icons/effects/32x96.dmi b/icons/effects/32x96.dmi new file mode 100644 index 00000000000..b5eed61222b Binary files /dev/null and b/icons/effects/32x96.dmi differ diff --git a/icons/effects/beam.dmi b/icons/effects/beam.dmi index 583644e5dbb..d2490b35ce1 100644 Binary files a/icons/effects/beam.dmi and b/icons/effects/beam.dmi differ diff --git a/icons/effects/effects.dmi b/icons/effects/effects.dmi index b7aa3d59723..f338851d00d 100644 Binary files a/icons/effects/effects.dmi and b/icons/effects/effects.dmi differ diff --git a/icons/misc/landmarks.dmi b/icons/misc/landmarks.dmi index 8365956f81d..01a3ec94041 100644 Binary files a/icons/misc/landmarks.dmi and b/icons/misc/landmarks.dmi differ diff --git a/icons/mob/clothing/back.dmi b/icons/mob/clothing/back.dmi index 51b751996dd..0817945da32 100644 Binary files a/icons/mob/clothing/back.dmi and b/icons/mob/clothing/back.dmi differ diff --git a/icons/mob/clothing/head.dmi b/icons/mob/clothing/head.dmi index 25f47bdd889..3ad7dac8059 100644 Binary files a/icons/mob/clothing/head.dmi and b/icons/mob/clothing/head.dmi differ diff --git a/icons/mob/clothing/jewelry.dmi b/icons/mob/clothing/jewelry.dmi new file mode 100644 index 00000000000..7227c69f04c Binary files /dev/null and b/icons/mob/clothing/jewelry.dmi differ diff --git a/icons/mob/clothing/species/drask/helmet.dmi b/icons/mob/clothing/species/drask/helmet.dmi index 7a44c10ab63..0ab58369a0f 100644 Binary files a/icons/mob/clothing/species/drask/helmet.dmi and b/icons/mob/clothing/species/drask/helmet.dmi differ diff --git a/icons/mob/clothing/species/drask/suit.dmi b/icons/mob/clothing/species/drask/suit.dmi index 5e9ef5f7f5e..46216b84d05 100644 Binary files a/icons/mob/clothing/species/drask/suit.dmi and b/icons/mob/clothing/species/drask/suit.dmi differ diff --git a/icons/mob/clothing/species/grey/helmet.dmi b/icons/mob/clothing/species/grey/helmet.dmi index 0157f94fdae..4f8bfc79a7b 100644 Binary files a/icons/mob/clothing/species/grey/helmet.dmi and b/icons/mob/clothing/species/grey/helmet.dmi differ diff --git a/icons/mob/clothing/species/skrell/helmet.dmi b/icons/mob/clothing/species/skrell/helmet.dmi index bec37c5a8c3..0444732ccc4 100644 Binary files a/icons/mob/clothing/species/skrell/helmet.dmi and b/icons/mob/clothing/species/skrell/helmet.dmi differ diff --git a/icons/mob/clothing/species/skrell/suit.dmi b/icons/mob/clothing/species/skrell/suit.dmi index ee3848cc009..57245da9565 100644 Binary files a/icons/mob/clothing/species/skrell/suit.dmi and b/icons/mob/clothing/species/skrell/suit.dmi differ diff --git a/icons/mob/clothing/species/tajaran/helmet.dmi b/icons/mob/clothing/species/tajaran/helmet.dmi index 17ff3b6d0d2..48521b0bfda 100644 Binary files a/icons/mob/clothing/species/tajaran/helmet.dmi and b/icons/mob/clothing/species/tajaran/helmet.dmi differ diff --git a/icons/mob/clothing/species/tajaran/suit.dmi b/icons/mob/clothing/species/tajaran/suit.dmi index b9473c1f1d3..6c853914721 100644 Binary files a/icons/mob/clothing/species/tajaran/suit.dmi and b/icons/mob/clothing/species/tajaran/suit.dmi differ diff --git a/icons/mob/clothing/species/unathi/helmet.dmi b/icons/mob/clothing/species/unathi/helmet.dmi index acddd244204..8ddf7d08395 100644 Binary files a/icons/mob/clothing/species/unathi/helmet.dmi and b/icons/mob/clothing/species/unathi/helmet.dmi differ diff --git a/icons/mob/clothing/species/unathi/suit.dmi b/icons/mob/clothing/species/unathi/suit.dmi index 594ca67fc0a..8285a73b1d6 100644 Binary files a/icons/mob/clothing/species/unathi/suit.dmi and b/icons/mob/clothing/species/unathi/suit.dmi differ diff --git a/icons/mob/clothing/species/vox/helmet.dmi b/icons/mob/clothing/species/vox/helmet.dmi index c9d6dd258d9..321a41a2cc5 100644 Binary files a/icons/mob/clothing/species/vox/helmet.dmi and b/icons/mob/clothing/species/vox/helmet.dmi differ diff --git a/icons/mob/clothing/species/vox/suit.dmi b/icons/mob/clothing/species/vox/suit.dmi index 60ea6cc443c..99a0dbcc6d0 100644 Binary files a/icons/mob/clothing/species/vox/suit.dmi and b/icons/mob/clothing/species/vox/suit.dmi differ diff --git a/icons/mob/clothing/species/vulpkanin/helmet.dmi b/icons/mob/clothing/species/vulpkanin/helmet.dmi index 6b124db3434..7970344bf80 100644 Binary files a/icons/mob/clothing/species/vulpkanin/helmet.dmi and b/icons/mob/clothing/species/vulpkanin/helmet.dmi differ diff --git a/icons/mob/clothing/species/vulpkanin/suit.dmi b/icons/mob/clothing/species/vulpkanin/suit.dmi index fac9dd0b4b1..14f08c9153c 100644 Binary files a/icons/mob/clothing/species/vulpkanin/suit.dmi and b/icons/mob/clothing/species/vulpkanin/suit.dmi differ diff --git a/icons/mob/clothing/suit.dmi b/icons/mob/clothing/suit.dmi index 2a223322dda..43e88d706fd 100644 Binary files a/icons/mob/clothing/suit.dmi and b/icons/mob/clothing/suit.dmi differ diff --git a/icons/mob/clothing/ties.dmi b/icons/mob/clothing/ties.dmi index c564ca8af55..d2d6a9dd169 100644 Binary files a/icons/mob/clothing/ties.dmi and b/icons/mob/clothing/ties.dmi differ diff --git a/icons/mob/inhands/items_lefthand.dmi b/icons/mob/inhands/items_lefthand.dmi index c9ecc13169f..02bd63d9d94 100755 Binary files a/icons/mob/inhands/items_lefthand.dmi and b/icons/mob/inhands/items_lefthand.dmi differ diff --git a/icons/mob/inhands/items_righthand.dmi b/icons/mob/inhands/items_righthand.dmi index 27f9be00976..865b08febd2 100755 Binary files a/icons/mob/inhands/items_righthand.dmi and b/icons/mob/inhands/items_righthand.dmi differ diff --git a/icons/mob/lavaland/96x96megafauna.dmi b/icons/mob/lavaland/96x96megafauna.dmi index 250c36671d8..dbffbed3e66 100644 Binary files a/icons/mob/lavaland/96x96megafauna.dmi and b/icons/mob/lavaland/96x96megafauna.dmi differ diff --git a/icons/mob/lavaland/lavaland_monsters.dmi b/icons/mob/lavaland/lavaland_monsters.dmi index e34c6d1decd..489e64b2242 100644 Binary files a/icons/mob/lavaland/lavaland_monsters.dmi and b/icons/mob/lavaland/lavaland_monsters.dmi differ diff --git a/icons/mob/screen_alert.dmi b/icons/mob/screen_alert.dmi index 06918df7513..5e6ae145ec2 100644 Binary files a/icons/mob/screen_alert.dmi and b/icons/mob/screen_alert.dmi differ diff --git a/icons/mob/screen_fog.dmi b/icons/mob/screen_fog.dmi new file mode 100644 index 00000000000..76257810157 Binary files /dev/null and b/icons/mob/screen_fog.dmi differ diff --git a/icons/obj/cigarettes.dmi b/icons/obj/cigarettes.dmi index 4b6d4cd6012..5f54c677893 100644 Binary files a/icons/obj/cigarettes.dmi and b/icons/obj/cigarettes.dmi differ diff --git a/icons/obj/closet.dmi b/icons/obj/closet.dmi index b0a395aa5bb..686c80ddbed 100644 Binary files a/icons/obj/closet.dmi and b/icons/obj/closet.dmi differ diff --git a/icons/obj/clothing/hats.dmi b/icons/obj/clothing/hats.dmi index 2e7a23dacd9..de24b2dfe76 100644 Binary files a/icons/obj/clothing/hats.dmi and b/icons/obj/clothing/hats.dmi differ diff --git a/icons/obj/clothing/jewelry.dmi b/icons/obj/clothing/jewelry.dmi new file mode 100644 index 00000000000..672a66b9dd1 Binary files /dev/null and b/icons/obj/clothing/jewelry.dmi differ diff --git a/icons/obj/clothing/suits.dmi b/icons/obj/clothing/suits.dmi index 35911416574..e53477d397c 100644 Binary files a/icons/obj/clothing/suits.dmi and b/icons/obj/clothing/suits.dmi differ diff --git a/icons/obj/clothing/ties.dmi b/icons/obj/clothing/ties.dmi index 61cfc3d7ed8..60dd2882620 100644 Binary files a/icons/obj/clothing/ties.dmi and b/icons/obj/clothing/ties.dmi differ diff --git a/icons/obj/clothing/ties_overlay.dmi b/icons/obj/clothing/ties_overlay.dmi index d7d8d55bc17..91cd0410475 100644 Binary files a/icons/obj/clothing/ties_overlay.dmi and b/icons/obj/clothing/ties_overlay.dmi differ diff --git a/icons/obj/flora/hellflora.dmi b/icons/obj/flora/hellflora.dmi new file mode 100644 index 00000000000..403570c1248 Binary files /dev/null and b/icons/obj/flora/hellflora.dmi differ diff --git a/icons/obj/hydroponics/growing_flowers.dmi b/icons/obj/hydroponics/growing_flowers.dmi index e0476c80fe8..5ed9fe06d30 100644 Binary files a/icons/obj/hydroponics/growing_flowers.dmi and b/icons/obj/hydroponics/growing_flowers.dmi differ diff --git a/icons/obj/hydroponics/seeds.dmi b/icons/obj/hydroponics/seeds.dmi index 74f22380e4c..96cf7502962 100644 Binary files a/icons/obj/hydroponics/seeds.dmi and b/icons/obj/hydroponics/seeds.dmi differ diff --git a/icons/obj/items.dmi b/icons/obj/items.dmi index 70cf2b80ae2..34021ada357 100644 Binary files a/icons/obj/items.dmi and b/icons/obj/items.dmi differ diff --git a/icons/obj/lavaland/artefacts.dmi b/icons/obj/lavaland/artefacts.dmi index 5a321ad8caf..c90fe002a7a 100644 Binary files a/icons/obj/lavaland/artefacts.dmi and b/icons/obj/lavaland/artefacts.dmi differ diff --git a/icons/obj/lavaland/ash_flora.dmi b/icons/obj/lavaland/ash_flora.dmi index c8c128a0ab5..c51ca7da62b 100644 Binary files a/icons/obj/lavaland/ash_flora.dmi and b/icons/obj/lavaland/ash_flora.dmi differ diff --git a/icons/obj/lavaland/gems.dmi b/icons/obj/lavaland/gems.dmi index ba964c3802e..e26884327ef 100644 Binary files a/icons/obj/lavaland/gems.dmi and b/icons/obj/lavaland/gems.dmi differ diff --git a/icons/obj/machines/suit_storage.dmi b/icons/obj/machines/suit_storage.dmi index 5b9a184365f..d943d21225c 100644 Binary files a/icons/obj/machines/suit_storage.dmi and b/icons/obj/machines/suit_storage.dmi differ diff --git a/icons/obj/miningradio.dmi b/icons/obj/miningradio.dmi new file mode 100644 index 00000000000..2718885d09f Binary files /dev/null and b/icons/obj/miningradio.dmi differ diff --git a/icons/obj/module.dmi b/icons/obj/module.dmi index 6a6c2b95dca..dff565542ba 100644 Binary files a/icons/obj/module.dmi and b/icons/obj/module.dmi differ diff --git a/icons/obj/shards.dmi b/icons/obj/shards.dmi index 20927b8dd79..b136530df63 100644 Binary files a/icons/obj/shards.dmi and b/icons/obj/shards.dmi differ diff --git a/icons/obj/surgery.dmi b/icons/obj/surgery.dmi index 0f2a84a69cb..dc23ef6f2fd 100644 Binary files a/icons/obj/surgery.dmi and b/icons/obj/surgery.dmi differ diff --git a/icons/obj/weapons/grenade.dmi b/icons/obj/weapons/grenade.dmi index cf1b0549f3f..afba483783e 100644 Binary files a/icons/obj/weapons/grenade.dmi and b/icons/obj/weapons/grenade.dmi differ diff --git a/icons/obj/weapons/magic.dmi b/icons/obj/weapons/magic.dmi index 659c6093a77..32b460a6d5b 100644 Binary files a/icons/obj/weapons/magic.dmi and b/icons/obj/weapons/magic.dmi differ diff --git a/paradise.dme b/paradise.dme index ead123850c8..cf2db51ba09 100644 --- a/paradise.dme +++ b/paradise.dme @@ -381,6 +381,7 @@ #include "code\datums\cinematics\nuke_cinematics.dm" #include "code\datums\components\_component.dm" #include "code\datums\components\aura_healing.dm" +#include "code\datums\components\boss_music.dm" #include "code\datums\components\caltrop.dm" #include "code\datums\components\contsruction_regenerate.dm" #include "code\datums\components\decal.dm" @@ -1728,6 +1729,7 @@ #include "code\modules\clothing\under\accessories\accessory.dm" #include "code\modules\clothing\under\accessories\armband.dm" #include "code\modules\clothing\under\accessories\holster.dm" +#include "code\modules\clothing\under\accessories\jewelry.dm" #include "code\modules\clothing\under\accessories\storage.dm" #include "code\modules\clothing\under\jobs\civilian.dm" #include "code\modules\clothing\under\jobs\engineering.dm" @@ -2044,6 +2046,7 @@ #include "code\modules\mining\satchel_ore_boxdm.dm" #include "code\modules\mining\shelters.dm" #include "code\modules\mining\equipment\explorer_gear.dm" +#include "code\modules\mining\equipment\hardmode_grenade.dm" #include "code\modules\mining\equipment\kinetic_crusher.dm" #include "code\modules\mining\equipment\lazarus_injector.dm" #include "code\modules\mining\equipment\marker_beacons.dm" @@ -2055,6 +2058,7 @@ #include "code\modules\mining\equipment\survival_pod.dm" #include "code\modules\mining\equipment\upgrades.dm" #include "code\modules\mining\equipment\vendor_items.dm" +#include "code\modules\mining\equipment\weather_radio.dm" #include "code\modules\mining\equipment\wormhole_jaunter.dm" #include "code\modules\mining\laborcamp\laborshuttle.dm" #include "code\modules\mining\laborcamp\laborstacker.dm" diff --git a/sound/effects/fishing_rod_catch.ogg b/sound/effects/fishing_rod_catch.ogg new file mode 100644 index 00000000000..1da26e97a86 Binary files /dev/null and b/sound/effects/fishing_rod_catch.ogg differ diff --git a/sound/effects/fishing_rod_throw.ogg b/sound/effects/fishing_rod_throw.ogg new file mode 100644 index 00000000000..18ae0d95427 Binary files /dev/null and b/sound/effects/fishing_rod_throw.ogg differ diff --git a/sound/effects/unathiignite.ogg b/sound/effects/unathiignite.ogg new file mode 100644 index 00000000000..f60278f4782 Binary files /dev/null and b/sound/effects/unathiignite.ogg differ diff --git a/sound/lavaland/hiero_boss.ogg b/sound/lavaland/hiero_boss.ogg new file mode 100644 index 00000000000..23412b5346d Binary files /dev/null and b/sound/lavaland/hiero_boss.ogg differ diff --git a/tgui/packages/tgui/interfaces/OreRedemption.js b/tgui/packages/tgui/interfaces/OreRedemption.js index d358c0c24cd..728e647a5f8 100644 --- a/tgui/packages/tgui/interfaces/OreRedemption.js +++ b/tgui/packages/tgui/interfaces/OreRedemption.js @@ -73,14 +73,21 @@ const IdDisk = (properties, context) => { )} {id && ( - + {formatPoints(id.points)} )} + {id && ( + + + {formatPoints(id.total_points)} + + + )} 0 ? "good" : "grey"} bold={points > 0 && "good"}> {formatPoints(points)} diff --git a/tgui/packages/tgui/public/tgui.bundle.js b/tgui/packages/tgui/public/tgui.bundle.js index 14fcb238f23..75d65cc3f6d 100644 --- a/tgui/packages/tgui/public/tgui.bundle.js +++ b/tgui/packages/tgui/public/tgui.bundle.js @@ -1 +1 @@ -!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=200)}([function(e,t,n){"use strict";t.__esModule=!0;var o=n(415);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(t[e]=o[e])}))},function(e,t,n){"use strict";t.__esModule=!0,t.useSharedState=t.deleteLocalState=t.useLocalState=t.useBackend=t.backendReducer=t.backendDeleteSharedState=t.backendSetSharedState=t.backendUpdate=void 0;var o=n(23),r=n(49);t.backendUpdate=function(e){return{type:"backend/update",payload:e}};var i=function(e,t){return{type:"backend/setSharedState",payload:{key:e,nextState:t}}};t.backendSetSharedState=i;var a=function(e){return{type:"backend/deleteSharedState",payload:e}};t.backendDeleteSharedState=a;t.backendReducer=function(e,t){var n=t.type,o=t.payload;if("backend/update"===n){var i=Object.assign({},e.config,{},o.config),a=Object.assign({},e.data,{},o.static_data,{},o.data),c=Object.assign({},e.shared);if(o.shared)for(var l=0,s=Object.keys(o.shared);l1?n-1:0),r=1;r0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(6),r=n(108),i=n(19),a=n(69),c=n(112),l=n(152),s=r("wks"),d=o.Symbol,u=l?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=u("Symbol."+e)),s[e]}},function(e,t,n){"use strict";var o=n(9),r=n(146),i=n(10),a=n(36),c=Object.defineProperty;t.f=o?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return c(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.rad2deg=t.keyOfMatchingRange=t.inRange=t.toFixed=t.round=t.scale=t.clamp01=t.clamp=void 0;t.clamp=function(e,t,n){return en?n:e};t.clamp01=function(e){return e<0?0:e>1?1:e};t.scale=function(e,t,n){return(e-t)/(n-t)};t.round=function(e,t){return!e||isNaN(e)?e:(t|=0,i=(e*=n=Math.pow(10,t))>0|-(e<0),r=Math.abs(e%1)>=.4999999999854481,o=Math.floor(e),r&&(e=o+(i>0)),(r?e:Math.round(e))/n);var n,o,r,i};t.toFixed=function(e,t){return void 0===t&&(t=0),Number(e).toFixed(Math.max(t,0))};var o=function(e,t){return t&&e>=t[0]&&e<=t[1]};t.inRange=o;t.keyOfMatchingRange=function(e,t){for(var n=0,r=Object.keys(t);n0&&(t.style=l),t};t.computeBoxProps=C;var g=function(e){var t=e.textColor||e.color,n=e.backgroundColor;return(0,o.classes)([s(t)&&"color-"+t,s(n)&&"color-bg-"+n])};t.computeBoxClassName=g;var N=function(e){var t=e.as,n=void 0===t?"div":t,o=e.className,a=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["as","className","children"]);if("function"==typeof a)return a(C(e));var l="string"==typeof o?o+" "+g(c):g(c),s=C(c);return(0,r.createVNode)(i.VNodeFlags.HtmlElement,n,l,a,i.ChildFlags.UnknownChildren,s)};t.Box=N,N.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";function o(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},function(e,t,n){"use strict";var o=n(81),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===i.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";var o=n(55),r=n(68),i=n(16),a=n(12),c=n(74),l=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,d=4==e,u=6==e,p=5==e||u;return function(m,h,f,C){for(var g,N,b=i(m),V=r(b),v=o(h,f,3),x=a(V.length),y=0,k=C||c,w=t?k(m,x):n?k(m,0):undefined;x>y;y++)if((p||y in V)&&(N=v(g=V[y],y,b),e))if(t)w[y]=N;else if(N)switch(e){case 3:return!0;case 5:return g;case 6:return y;case 2:l.call(w,g)}else if(d)return!1;return u?-1:s||d?d:w}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){"use strict";var o=n(9),r=n(83),i=n(53),a=n(28),c=n(36),l=n(19),s=n(146),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(n){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}t.__esModule=!0,t.winset=t.winget=t.runCommand=t.callByondAsync=t.callByond=t.IS_IE8=void 0;var r=window.Byond,i=function(){var e=navigator.userAgent.match(/Trident\/(\d+).+?;/i);if(!e)return null;var t=e[1];return t?parseInt(t,10):null}(),a=null!==i&&i<=6;t.IS_IE8=a;var c=function(e,t){void 0===t&&(t={}),r.call(e,t)};t.callByond=c;var l=function(e,t){void 0===t&&(t={}),window.__callbacks__=window.__callbacks__||[];var n=window.__callbacks__.length,o=new Promise((function(e){window.__callbacks__.push(e)}));return r.call(e,Object.assign({},t,{callback:"__callbacks__["+n+"]"})),o};t.callByondAsync=l;t.runCommand=function(e){return c("winset",{command:e})};var s=function(){var e,t=(e=regeneratorRuntime.mark((function n(e,t){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l("winget",{id:e,property:t});case 2:return o=n.sent,n.abrupt("return",o[t]);case 4:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,l,"next",e)}function l(e){o(a,r,i,c,l,"throw",e)}c(undefined)}))});return function(e,n){return t.apply(this,arguments)}}();t.winget=s;t.winset=function(e,t,n){var o;return c("winset",((o={})[e+"."+t]=n,o))}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var o in e)t.call(e,o)&&n.push(e[o]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),o((function(e,n){var o;return Object.assign(((o={})[t]=n,o),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],o=0;oc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n"+a+""}},function(e,t,n){"use strict";var o=n(5);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(53);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:o)(e)}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var o,r,i,a=n(148),c=n(6),l=n(8),s=n(32),d=n(19),u=n(84),p=n(70),m=c.WeakMap;if(a){var h=new m,f=h.get,C=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},r=function(e){return f.call(h,e)||{}},i=function(e){return C.call(h,e)}}else{var N=u("state");p[N]=!0,o=function(e,t){return s(e,N,t),t},r=function(e){return d(e,N)?e[N]:{}},i=function(e){return d(e,N)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var o=n(19),r=n(16),i=n(84),a=n(119),c=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";var o=n(150),r=n(6),i=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var o=n(5);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(9),a=n(132),c=n(11),l=n(89),s=n(61),d=n(53),u=n(32),p=n(12),m=n(164),h=n(179),f=n(36),C=n(19),g=n(86),N=n(8),b=n(45),V=n(57),v=n(54).f,x=n(180),y=n(21).forEach,k=n(60),w=n(14),_=n(22),B=n(37),S=n(91),L=B.get,A=B.set,E=w.f,I=_.f,D=Math.round,T=r.RangeError,F=l.ArrayBuffer,M=l.DataView,P=c.NATIVE_ARRAY_BUFFER_VIEWS,O=c.TYPED_ARRAY_TAG,R=c.TypedArray,j=c.TypedArrayPrototype,U=c.aTypedArrayConstructor,z=c.isTypedArray,W=function(e,t){for(var n=0,o=t.length,r=new(U(e))(o);o>n;)r[n]=t[n++];return r},H=function(e,t){E(e,t,{get:function(){return L(this)[t]}})},K=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return Y(e,t=f(t,!0))?d(2,e[t]):I(e,t)},q=function(e,t,n){return!(Y(e,t=f(t,!0))&&N(n)&&C(n,"value"))||C(n,"get")||C(n,"set")||n.configurable||C(n,"writable")&&!n.writable||C(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)};i?(P||(_.f=G,w.f=q,H(j,"buffer"),H(j,"byteOffset"),H(j,"byteLength"),H(j,"length")),o({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:G,defineProperty:q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",l="get"+e,d="set"+e,f=r[c],C=f,g=C&&C.prototype,w={},_=function(e,t){E(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[l](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var r=L(e);n&&(o=(o=D(o))<0?0:o>255?255:255&o),r.view[d](t*i+r.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};P?a&&(C=t((function(e,t,n,o){return s(e,C,c),S(N(t)?K(t)?o!==undefined?new f(t,h(n,i),o):n!==undefined?new f(t,h(n,i)):new f(t):z(t)?W(C,t):x.call(C,t):new f(m(t)),e,C)})),V&&V(C,R),y(v(f),(function(e){e in C||u(C,e,f[e])})),C.prototype=g):(C=t((function(e,t,n,o){s(e,C,c);var r,a,l,d=0,u=0;if(N(t)){if(!K(t))return z(t)?W(C,t):x.call(C,t);r=t,u=h(n,i);var f=t.byteLength;if(o===undefined){if(f%i)throw T("Wrong length");if((a=f-u)<0)throw T("Wrong length")}else if((a=p(o)*i)+u>f)throw T("Wrong length");l=a/i}else l=m(t),r=new F(a=l*i);for(A(e,{buffer:r,byteOffset:u,byteLength:a,length:l,view:new M(r)});d=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?r-1:0),c=1;c1?o-1:0),i=1;i"+e+"<\/script>"},h=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;h=o?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):((t=s("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=r(e),n=new p,p.prototype=null,n[u]=e):n=h(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var o=n(14).f,r=n(19),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(13),r=n(45),i=n(14),a=o("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:r(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var o=n(10),r=n(34),i=n(13)("species");e.exports=function(e,t){var n,a=o(e).constructor;return a===undefined||(n=o(a)[i])==undefined?t:r(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.timeAgo=t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{command:"#526aff",procedure:"#e3027a",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Soviet",freq:1217,color:"#f7941d"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#3cfd1e"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"}];var o=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),r=o.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return r&&r.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=o.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color};t.timeAgo=function(e,t){if(e>t)return"in the future";var n=(t/=10)-(e/=10);if(n>3600){var o=Math.round(n/3600);return o+" hour"+(1===o?"":"s")+" ago"}if(n>60){var r=Math.round(n/60);return r+" minute"+(1===r?"":"s")+" ago"}var i=Math.round(n);return i+" second"+(1===i?"":"s")+" ago"}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var o=n(0),r=n(7),i=n(23),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.direction,o=e.wrap,a=e.align,l=e.alignContent,s=e.justify,d=e.inline,u=e.spacing,p=void 0===u?0:u,m=e.spacingPrecise,h=void 0===m?0:m,f=c(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,r.classes)(["Flex",i.IS_IE8&&("column"===n?"Flex--ie8--column":"Flex--ie8"),d&&"Flex--inline",p>0&&"Flex--spacing--"+p,h>0&&"Flex--spacingPrecise--"+h,t]),style:Object.assign({},f.style,{"flex-direction":n,"flex-wrap":o,"align-items":a,"align-content":l,"justify-content":s})},f)};t.computeFlexProps=l;var s=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},l(e))))};t.Flex=s,s.defaultHooks=r.pureComponentHooks;var d=function(e){var t=e.className,n=e.grow,o=e.order,l=e.shrink,s=e.basis,d=void 0===s?e.width:s,u=e.align,p=c(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,r.classes)(["Flex__item",i.IS_IE8&&"Flex__item--ie8",t]),style:Object.assign({},p.style,{"flex-grow":n,"flex-shrink":l,"flex-basis":(0,a.unit)(d),order:o,"align-self":u})},p)};t.computeFlexItemProps=d;var u=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},d(e))))};t.FlexItem=u,u.defaultHooks=r.pureComponentHooks,s.Item=u},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalClose=t.modalAnswer=t.modalRegisterBodyOverride=t.modalOpen=void 0;var o=n(0),r=n(1),i=n(2),a={};t.modalOpen=function(e,t,n){var o=(0,r.useBackend)(e),i=o.act,a=o.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,o){var i=(0,r.useBackend)(e),a=i.act,c=i.data;if(c.modal){var l=Object.assign(c.modal.args||{},o||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(l)})}};t.modalAnswer=c;var l=function(e,t){(0,(0,r.useBackend)(e).act)("modal_close",{id:t})};t.modalClose=l;t.ComplexModal=function(e,t){var n=(0,r.useBackend)(t).data;if(n.modal){var s,d,u=n.modal,p=u.id,m=u.text,h=u.type,f=(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),C="auto";if(a[p])d=a[p](n.modal,t);else if("input"===h){var g=n.modal.value;s=function(e){return c(t,p,g)},d=(0,o.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){g=t}}),f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,p,g)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===h){var N="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;d=(0,o.createComponentVNode)(2,i.Dropdown,{options:N,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,p,e)}}),C="initial"}else"bento"===h?d=(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:r+1===parseInt(n.modal.value,10),onClick:function(){return c(t,p,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===h&&(f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,p,0)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,p,1)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:s,mx:"auto",overflowY:C,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline",children:m}),d,f]})}}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=t.RndRoute=t.RndNavButton=t.RndNavbar=t.MainMenu=t.LatheSearch=t.LatheMenu=t.LatheMaterialStorage=t.LatheMaterials=t.LatheMainMenu=t.LatheChemicalStorage=t.LatheCategory=t.DeconstructionMenu=t.DataDiskMenu=t.CurrentLevels=void 0;var o=n(618);t.CurrentLevels=o.CurrentLevels;var r=n(619);t.DataDiskMenu=r.DataDiskMenu;var i=n(620);t.DeconstructionMenu=i.DeconstructionMenu;var a=n(621);t.LatheCategory=a.LatheCategory;var c=n(622);t.LatheChemicalStorage=c.LatheChemicalStorage;var l=n(623);t.LatheMainMenu=l.LatheMainMenu;var s=n(624);t.LatheMaterials=s.LatheMaterials;var d=n(625);t.LatheMaterialStorage=d.LatheMaterialStorage;var u=n(626);t.LatheMenu=u.LatheMenu;var p=n(627);t.LatheSearch=p.LatheSearch;var m=n(628);t.MainMenu=m.MainMenu;var h=n(629);t.RndNavbar=h.RndNavbar;var f=n(630);t.RndNavButton=f.RndNavButton;var C=n(199);t.RndRoute=C.RndRoute;var g=n(631);t.SettingsMenu=g.SettingsMenu},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(151),r=n(110).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(34);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var o=n(36),r=n(14),i=n(53);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var o=n(10),r=n(162);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var o=n(70),r=n(8),i=n(19),a=n(14).f,c=n(69),l=n(78),s=c("meta"),d=0,u=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})},m=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!u(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!u(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return l&&m.REQUIRED&&u(e)&&!i(e,s)&&p(e),e}};o[s]=!0},function(e,t,n){"use strict";var o=n(35);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(39),r=n(14),i=n(13),a=n(9),c=i("species");e.exports=function(e){var t=o(e),n=r.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var o=n(25),r="["+n(93)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),c=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.logger=t.createLogger=void 0;n(182);var o=n(23),r=0,i=1,a=2,c=3,l=4,s=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=a){var c=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;(0,o.callByond)("",{src:window.__ref__,action:"tgui:log",log:c})}},d=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;o=0||(r[n]=e[n]);return r}(e,["className","label","labelColor","color","textAlign","verticalAlign","buttons","content","children","noColon"]),g=f?"":":";return(0,o.createVNode)(1,"tr",(0,r.classes)(["LabeledList__row",t]),[(0,o.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+g:null}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"td",color:l,textAlign:s,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?undefined:2},C,{children:[p,m]}))),u&&(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};t.LabeledListItem=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,o.createVNode)(1,"tr","LabeledList__row",(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=s,s.defaultHooks=r.pureComponentHooks,c.Item=l,c.Divider=s},function(e,t,n){"use strict";function o(e){return null==e}e.exports.isNothing=o,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:o(e)?[]:[e]},e.exports.repeat=function(e,t){var n,o="";for(n=0;nd;)if((c=l[d++])!=c)return!0}else for(;s>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var o=n(5),r=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=l&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var o=n(151),r=n(110);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(8),r=n(59),i=n(13)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var o=n(5),r=n(13),i=n(113),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var o=n(26);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var o=n(10),r=n(115),i=n(12),a=n(55),c=n(116),l=n(159),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,d,u){var p,m,h,f,C,g,N,b=a(t,n,d?2:1);if(u)p=e;else{if("function"!=typeof(m=c(e)))throw TypeError("Target is not iterable");if(r(m)){for(h=0,f=i(e.length);f>h;h++)if((C=d?b(o(N=e[h])[0],N[1]):b(e[h]))&&C instanceof s)return C;return new s(!1)}p=m.call(e)}for(g=p.next;!(N=g.call(p)).done;)if("object"==typeof(C=l(p,b,N.value,d))&&C&&C instanceof s)return C;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.collapsing,c=e.children,l=a(e,["className","collapsing","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"table",(0,r.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Table=c,c.defaultHooks=r.pureComponentHooks;var l=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"tr",(0,r.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.className,n=e.collapsing,c=e.header,l=a(e,["className","collapsing","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"td",(0,r.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(l))))};t.TableCell=s,s.defaultHooks=r.pureComponentHooks,c.Row=l,c.Cell=s},function(e,t,n){"use strict";function o(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=o},function(e,t,n){"use strict";var o=n(66);e.exports=new o({include:[n(193)],implicit:[n(505),n(506)],explicit:[n(507),n(512),n(513),n(514)]})},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){"use strict";var o=n(108),r=n(69),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){"use strict";var o=n(39);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(117),r=n(35),i=n(13)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var o=n(13)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var o=n(34),r=n(16),i=n(68),a=n(12),c=function(e){return function(t,n,c,l){o(n);var s=r(t),d=i(s),u=a(s.length),p=e?u-1:0,m=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=m;break}if(p+=m,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=m)p in d&&(l=n(l,d[p],p,s));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var o=n(6),r=n(9),i=n(120),a=n(32),c=n(77),l=n(5),s=n(61),d=n(33),u=n(12),p=n(164),m=n(247),h=n(38),f=n(57),C=n(54).f,g=n(14).f,N=n(114),b=n(46),V=n(37),v=V.get,x=V.set,y=o.ArrayBuffer,k=y,w=o.DataView,_=w&&w.prototype,B=Object.prototype,S=o.RangeError,L=m.pack,A=m.unpack,E=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},T=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return L(e,23,4)},M=function(e){return L(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return v(this)[t]}})},O=function(e,t,n,o){var r=p(n),i=v(e);if(r+t>i.byteLength)throw S("Wrong index");var a=v(i.buffer).bytes,c=r+i.byteOffset,l=a.slice(c,c+t);return o?l:l.reverse()},R=function(e,t,n,o,r,i){var a=p(n),c=v(e);if(a+t>c.byteLength)throw S("Wrong index");for(var l=v(c.buffer).bytes,s=a+c.byteOffset,d=o(+r),u=0;uW;)(j=z[W++])in k||a(k,j,y[j]);U.constructor=k}f&&h(_)!==B&&f(_,B);var H=new w(new k(2)),K=_.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||c(_,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){s(this,k,"ArrayBuffer");var t=p(e);x(this,{bytes:N.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},w=function(e,t,n){s(this,w,"DataView"),s(e,k,"DataView");var o=v(e).byteLength,i=d(t);if(i<0||i>o)throw S("Wrong offset");if(i+(n=n===undefined?o-i:u(n))>o)throw S("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},r&&(P(k,"byteLength"),P(w,"buffer"),P(w,"byteLength"),P(w,"byteOffset")),c(w.prototype,{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return A(O(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return A(O(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){R(this,1,e,E,t)},setUint8:function(e,t){R(this,1,e,E,t)},setInt16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){R(this,4,e,F,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){R(this,8,e,M,t,arguments.length>2?arguments[2]:undefined)}});b(k,"ArrayBuffer"),b(w,"DataView"),e.exports={ArrayBuffer:k,DataView:w}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(72),a=n(26),c=n(58),l=n(79),s=n(61),d=n(8),u=n(5),p=n(87),m=n(46),h=n(91);e.exports=function(e,t,n){var f=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),g=f?"set":"add",N=r[e],b=N&&N.prototype,V=N,v={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return C&&!d(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof N||!(C||b.forEach&&!u((function(){(new N).entries().next()})))))V=n.getConstructor(t,e,f,g),c.REQUIRED=!0;else if(i(e,!0)){var y=new V,k=y[g](C?{}:-0,1)!=y,w=u((function(){y.has(1)})),_=p((function(e){new N(e)})),B=!C&&u((function(){for(var e=new N,t=5;t--;)e[g](t,t);return!e.has(-0)}));_||((V=t((function(t,n){s(t,V,e);var o=h(new N,t,V);return n!=undefined&&l(n,o[g],o,f),o}))).prototype=b,b.constructor=V),(w||B)&&(x("delete"),x("has"),f&&x("get")),(B||k)&&x(g),C&&b.clear&&delete b.clear}return v[e]=V,o({global:!0,forced:V!=N},v),m(V,e),C||n.setStrong(V,e,f),V}},function(e,t,n){"use strict";var o=n(8),r=n(57);e.exports=function(e,t,n){var i,a;return r&&"function"==typeof(i=t.constructor)&&i!==n&&o(a=i.prototype)&&a!==n.prototype&&r(e,a),e}},function(e,t,n){"use strict";var o=Math.expm1,r=Math.exp;e.exports=!o||o(10)>22025.465794806718||o(10)<22025.465794806718||-2e-17!=o(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:o},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(40),r=n(6),i=n(5);e.exports=o||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}))},function(e,t,n){"use strict";var o=n(10);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o,r,i=n(95),a=n(126),c=RegExp.prototype.exec,l=String.prototype.replace,s=c,d=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=/()??/.exec("")[1]!==undefined;(d||p||u)&&(s=function(e){var t,n,o,r,a=this,s=u&&a.sticky,m=i.call(a),h=a.source,f=0,C=e;return s&&(-1===(m=m.replace("y","")).indexOf("g")&&(m+="g"),C=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",C=" "+C,f++),n=new RegExp("^(?:"+h+")",m)),p&&(n=new RegExp("^"+h+"$(?!\\s)",m)),d&&(t=a.lastIndex),o=c.call(s?n:a,C),s?o?(o.input=o.input.slice(f),o[0]=o[0].slice(f),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:d&&o&&(a.lastIndex=a.global?o.index+o[0].length:t),p&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r")})),d="$0"==="a".replace(/./,"$0"),u=i("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),m=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,u){var h=i(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),C=f&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!C||"replace"===e&&(!s||!d||p)||"split"===e&&!m){var g=/./[h],N=n(h,""[e],(function(e,t,n,o,r){return t.exec===a?f&&!r?{done:!0,value:g.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=N[0],V=N[1];o(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return V.call(e,this,t)}:function(e){return V.call(e,this)})}u&&c(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var o=n(35),r=n(96);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.AccessList=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);function c(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt?2+3*s-c:0;return((0,o.toFixed)(p,m)+" "+u+n).trim()};t.formatSiUnit=a;t.formatPower=function(e,t){return void 0===t&&(t=0),a(e,t,"W")};t.formatMoney=function(e,t){if(void 0===t&&(t=0),!Number.isFinite(e))return e;var n=(0,o.round)(e,t);t>0&&(n=(0,o.toFixed)(e,t));var r=(n=String(n)).length,i=n.indexOf(".");-1===i&&(i=r);for(var a="",c=0;c0&&c=0||(r[n]=e[n]);return r}(e,["format"]),i=new Date(this.state.value).toISOString().slice(11,19);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({as:"span"},n,{children:t?t(this.state.value,i):i})))},i}(o.Component);t.Countdown=i,i.defaultProps={rate:1e3}},function(e,t,n){"use strict";t.__esModule=!0,t.SimpleRecords=void 0;var o=n(0),r=n(1),i=n(18),a=n(43),c=n(24),l=n(2);t.SimpleRecords=function(e,t){var n=e.data.records;return(0,o.createComponentVNode)(2,l.Box,{children:n?(0,o.createComponentVNode)(2,d,{data:e.data,recordType:e.recordType}):(0,o.createComponentVNode)(2,s,{data:e.data})})};var s=function(e,t){var n=(0,r.useBackend)(t).act,s=e.data.recordsList,d=(0,r.useLocalState)(t,"searchText",""),u=d[0],p=d[1],m=function(e,t){void 0===t&&(t="");var n=(0,i.createSearch)(t,(function(e){return e.Name}));return(0,a.flow)([(0,c.filter)((function(e){return null==e?void 0:e.Name})),t&&(0,c.filter)(n),(0,c.sortBy)((function(e){return e.Name}))])(s)}(0,u);return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(e,t){return p(t)}}),m.map((function(e){return(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:e.Name,icon:"user",onClick:function(){return n("Records",{target:e.uid})}})},e)}))]})},d=function(e,t){var n,i=(0,r.useBackend)(t).act,a=e.data.records,c=a.general,s=a.medical,d=a.security;switch(e.recordType){case"MED":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Medical Data",children:s?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Security Data",children:d?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Status",children:d.criminal}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Crimes",children:d.mi_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.mi_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Crimes",children:d.ma_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.ma_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Security record lost!"})})}return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Button,{content:"Back",icon:"arrow-left",onClick:function(){return i("Back")}}),(0,o.createComponentVNode)(2,l.Section,{level:2,title:"General Data",children:c?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Name",children:c.name}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Sex",children:c.sex}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Species",children:c.species}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Age",children:c.age}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Rank",children:c.rank}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Fingerprint",children:c.fingerprint}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Physical Status",children:c.p_stat}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Mental Status",children:c.m_stat})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"General record lost!"})}),n]})}},function(e,t,n){"use strict";var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(r){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,n){"use strict";var o=n(6),r=n(8),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){"use strict";var o=n(6),r=n(32);e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){"use strict";var o=n(147),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var o=n(40),r=n(147);(e.exports=function(e,t){return r[e]||(r[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var o=n(39),r=n(54),i=n(111),a=n(10);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(5);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var o,r,i=n(6),a=n(85),c=i.process,l=c&&c.versions,s=l&&l.v8;s?r=(o=s.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,c=r(a>1?arguments[1]:undefined,n),l=a>2?arguments[2]:undefined,s=l===undefined?n:r(l,n);s>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var o=n(13),r=n(76),i=o("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(86),r=n(76),i=n(13)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){"use strict";var o={};o[n(13)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){"use strict";var o=n(4),r=n(232),i=n(38),a=n(57),c=n(46),l=n(32),s=n(26),d=n(13),u=n(40),p=n(76),m=n(161),h=m.IteratorPrototype,f=m.BUGGY_SAFARI_ITERATORS,C=d("iterator"),g=function(){return this};e.exports=function(e,t,n,d,m,N,b){r(n,t,d);var V,v,x,y=function(e){if(e===m&&S)return S;if(!f&&e in _)return _[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",w=!1,_=e.prototype,B=_[C]||_["@@iterator"]||m&&_[m],S=!f&&B||y(m),L="Array"==t&&_.entries||B;if(L&&(V=i(L.call(new e)),h!==Object.prototype&&V.next&&(u||i(V)===h||(a?a(V,h):"function"!=typeof V[C]&&l(V,C,g)),c(V,k,!0,!0),u&&(p[k]=g))),"values"==m&&B&&"values"!==B.name&&(w=!0,S=function(){return B.call(this)}),u&&!b||_[C]===S||l(_,C,S),p[t]=S,m)if(v={values:y("values"),keys:N?S:y("keys"),entries:y("entries")},b)for(x in v)(f||w||!(x in _))&&s(_,x,v[x]);else o({target:t,proto:!0,forced:f||w},v);return v}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var o=n(12),r=n(122),i=n(25),a=Math.ceil,c=function(e){return function(t,n,c){var l,s,d=String(i(t)),u=d.length,p=c===undefined?" ":String(c),m=o(n);return m<=u||""==p?d:(l=m-u,(s=r.call(p,a(l/p.length))).length>l&&(s=s.slice(0,l)),e?d+s:s+d)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var o=n(33),r=n(25);e.exports="".repeat||function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var o,r,i,a=n(6),c=n(5),l=n(35),s=n(55),d=n(154),u=n(105),p=n(173),m=a.location,h=a.setImmediate,f=a.clearImmediate,C=a.process,g=a.MessageChannel,N=a.Dispatch,b=0,V={},v=function(e){if(V.hasOwnProperty(e)){var t=V[e];delete V[e],t()}},x=function(e){return function(){v(e)}},y=function(e){v(e.data)},k=function(e){a.postMessage(e+"",m.protocol+"//"+m.host)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return V[++b]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},o(b),b},f=function(e){delete V[e]},"process"==l(C)?o=function(e){C.nextTick(x(e))}:N&&N.now?o=function(e){N.now(x(e))}:g&&!p?(i=(r=new g).port2,r.port1.onmessage=y,o=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(k)||"file:"===m.protocol?o="onreadystatechange"in u("script")?function(e){d.appendChild(u("script")).onreadystatechange=function(){d.removeChild(this),v(e)}}:function(e){setTimeout(x(e),0)}:(o=k,a.addEventListener("message",y,!1))),e.exports={set:h,clear:f}},function(e,t,n){"use strict";var o=n(8),r=n(35),i=n(13)("match");e.exports=function(e){var t;return o(e)&&((t=e[i])!==undefined?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var o=n(5);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var o=n(33),r=n(25),i=function(e){return function(t,n){var i,a,c=String(r(t)),l=o(n),s=c.length;return l<0||l>=s?e?"":undefined:(i=c.charCodeAt(l))<55296||i>56319||l+1===s||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):i:e?c.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var o=n(125);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var o=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){"use strict";var o=n(127).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){"use strict";var o=n(5),r=n(93);e.exports=function(e){return o((function(){return!!r[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||r[e].name!==e}))}},function(e,t,n){"use strict";var o=n(6),r=n(5),i=n(87),a=n(11).NATIVE_ARRAY_BUFFER_VIEWS,c=o.ArrayBuffer,l=o.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new c(2),1,undefined).length}))},function(e,t,n){"use strict";t.__esModule=!0,t.hotKeyReducer=t.hotKeyMiddleware=t.releaseHeldKeys=t.KEY_MINUS=t.KEY_EQUAL=t.KEY_Z=t.KEY_Y=t.KEY_X=t.KEY_W=t.KEY_V=t.KEY_U=t.KEY_T=t.KEY_S=t.KEY_R=t.KEY_Q=t.KEY_P=t.KEY_O=t.KEY_N=t.KEY_M=t.KEY_L=t.KEY_K=t.KEY_J=t.KEY_I=t.KEY_H=t.KEY_G=t.KEY_F=t.KEY_E=t.KEY_D=t.KEY_C=t.KEY_B=t.KEY_A=t.KEY_9=t.KEY_8=t.KEY_7=t.KEY_6=t.KEY_5=t.KEY_4=t.KEY_3=t.KEY_2=t.KEY_1=t.KEY_0=t.KEY_SPACE=t.KEY_ESCAPE=t.KEY_ALT=t.KEY_CTRL=t.KEY_SHIFT=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=void 0;var o=n(23),r=(0,n(63).createLogger)("hotkeys");t.KEY_BACKSPACE=8;t.KEY_TAB=9;t.KEY_ENTER=13;t.KEY_SHIFT=16;t.KEY_CTRL=17;t.KEY_ALT=18;t.KEY_ESCAPE=27;t.KEY_SPACE=32;t.KEY_0=48;t.KEY_1=49;t.KEY_2=50;t.KEY_3=51;t.KEY_4=52;t.KEY_5=53;t.KEY_6=54;t.KEY_7=55;t.KEY_8=56;t.KEY_9=57;t.KEY_A=65;t.KEY_B=66;t.KEY_C=67;t.KEY_D=68;t.KEY_E=69;t.KEY_F=70;t.KEY_G=71;t.KEY_H=72;t.KEY_I=73;t.KEY_J=74;t.KEY_K=75;t.KEY_L=76;t.KEY_M=77;t.KEY_N=78;t.KEY_O=79;t.KEY_P=80;t.KEY_Q=81;t.KEY_R=82;t.KEY_S=83;t.KEY_T=84;t.KEY_U=85;t.KEY_V=86;t.KEY_W=87;t.KEY_X=88;t.KEY_Y=89;t.KEY_Z=90;t.KEY_EQUAL=187;t.KEY_MINUS=189;var i=[17,18,16],a=[27,13,32,9,17,16,18],c={},l=function(e,t,n,o){var r="";return e&&(r+="Ctrl+"),t&&(r+="Alt+"),n&&(r+="Shift+"),r+=o>=48&&o<=90?String.fromCharCode(o):"["+o+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,o=e.altKey,r=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:o,shiftKey:r,hasModifierKeys:n||o||r,keyString:l(n,o,r,t)}},d=function(e,t){if(!e.defaultPrevented){var n=e.target&&e.target.localName;if("input"!==n&&"textarea"!==n){var i=s(e),l=i.keyCode,d=i.ctrlKey,u=i.shiftKey,p=function(e){var t={16:"Shift",17:"Ctrl",18:"Alt",33:"Northeast",34:"Southeast",35:"Southwest",36:"Northwest",37:"West",38:"North",39:"East",40:"South",45:"Insert",46:"Delete"};return t[e]?t[e]:e>=48&&e<=57||e>=65&&e<=90?String.fromCharCode(e):e>=96&&e<=105?"Numpad"+(e-96):e>=112&&e<=123?"F"+(e-111):188===e?",":189===e?"-":190===e?".":void 0}(l);if(!a.includes(l)){if("keyup"===t&&c[l])return r.debug("passthrough",t,i),(0,o.callByond)("",{__keyup:p});if(!d&&!u)return"keydown"!==t||c[l]?void 0:(r.debug("passthrough",t,i),(0,o.callByond)("",{__keydown:p}))}}}},u=function(){for(var e=0,t=Object.keys(c);e=0||(r[n]=e[n]);return r}var h=(0,l.createLogger)("Button"),f=function(e){var t=e.className,n=e.fluid,l=e.icon,p=e.color,f=e.disabled,C=e.selected,g=e.tooltip,N=e.tooltipPosition,b=e.ellipsis,V=e.content,v=e.iconRotation,x=e.iconColor,y=e.iconSpin,k=e.iconRight,w=e.children,_=e.onclick,B=e.onClick,S=m(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconColor","iconSpin","iconRight","children","onclick","onClick"]),L=!(!V&&!w);return _&&h.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid",f&&"Button--disabled",C&&"Button--selected",L&&"Button--hasContent",b&&"Button--ellipsis",k&&"Button--iconRight",p&&"string"==typeof p?"Button--color--"+p:"Button--color--default",t]),tabIndex:!f&&"0",unselectable:i.IS_IE8,onclick:function(e){(0,c.refocusLayout)(),!f&&B&&B(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===a.KEY_SPACE||t===a.KEY_ENTER?(e.preventDefault(),void(!f&&B&&B(e))):t===a.KEY_ESCAPE?(e.preventDefault(),void(0,c.refocusLayout)()):void 0}},S,{children:[l&&!k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),V,w,l&&k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),g&&(0,o.createComponentVNode)(2,u.Tooltip,{content:g,position:N})]})))};t.Button=f,f.defaultHooks=r.pureComponentHooks;var C=function(e){var t=e.checked,n=m(e,["checked"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=C,f.Checkbox=C;var g=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}p(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,r=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,l=t.icon,s=t.color,d=t.content,u=t.onClick,p=m(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?r:d,icon:this.state.clickedOnce?c:l,color:this.state.clickedOnce?a:s,onClick:function(){return e.state.clickedOnce?u():e.setClickedOnce(!0)}},p)))},t}(o.Component);t.ButtonConfirm=g,f.Confirm=g;var N=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={inInput:!1},t}p(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,i=t.content,c=t.icon,l=t.iconRotation,p=t.iconSpin,h=t.tooltip,f=t.tooltipPosition,C=t.color,g=void 0===C?"default":C,N=(t.placeholder,t.maxLength,m(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},N,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,o.createComponentVNode)(2,d.Icon,{name:c,rotation:l,spin:p}),(0,o.createVNode)(1,"div",null,i,0),(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===a.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===a.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),h&&(0,o.createComponentVNode)(2,u.Tooltip,{content:h,position:f})]})))},t}(o.Component);t.ButtonInput=N,f.Input=N},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var o=n(0),r=n(7),i=n(17);var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,l=e.className,s=e.style,d=void 0===s?{}:s,u=e.rotation,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["name","size","spin","className","style","rotation"]);n&&(d["font-size"]=100*n+"%"),"number"==typeof u&&(d.transform="rotate("+u+"deg)");var m=a.test(t),h=t.replace(a,"");return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,r.classes)([l,m?"far":"fas","fa-"+h,c&&"fa-spin"]),style:d},p)))};t.Icon=c,c.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(136),l=n(17);var s=function(e){var t,n;function s(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,o.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),l=n.origin-e.screenY;if(t.dragging){var s=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+l*a/c,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+s,o,i),n.origin=e.screenY}else Math.abs(l)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state,n=t.dragging,s=t.editing,d=t.value,u=t.suppressingFlicker,p=this.props,m=p.className,h=p.fluid,f=p.animated,C=p.value,g=p.unit,N=p.minValue,b=p.maxValue,V=p.height,v=p.width,x=p.lineHeight,y=p.fontSize,k=p.format,w=p.onChange,_=p.onDrag,B=C;(n||u)&&(B=d);var S=function(e){return(0,o.createVNode)(1,"div","NumberInput__content",e+(g?" "+g:""),0,{unselectable:a.IS_IE8})},L=f&&!n&&!u&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B,format:k,children:S})||S(k?k(B):B);return(0,o.createComponentVNode)(2,l.Box,{className:(0,i.classes)(["NumberInput",h&&"NumberInput--fluid",m]),minWidth:v,minHeight:V,lineHeight:x,fontSize:y,onMouseDown:this.handleDragStart,children:[(0,o.createVNode)(1,"div","NumberInput__barContainer",(0,o.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,r.clamp)((B-N)/(b-N)*100,0,100)+"%"}}),2),L,(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?undefined:"none",height:V,"line-height":x,"font-size":y},onBlur:function(t){if(s){var n=(0,r.clamp)(t.target.value,N,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,N,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},s}(o.Component);t.NumberInput=s,s.defaultHooks=i.pureComponentHooks,s.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var o=n(0),r=n(1),i=n(2);t.LoginInfo=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState;if(c)return(0,o.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout",color:"good",float:"right",onClick:function(){return a("login_logout")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:!l.id,content:"Eject ID",color:"good",float:"right",onClick:function(){return a("login_eject")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var o=n(0),r=n(1),i=n(2);t.LoginScreen=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState,s=c.isAI,d=c.isRobot,u=c.isAdmin;return(0,o.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){return a("login_insert")}})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){return a("login_login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login_login",{login_type:2})}}),!!d&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login_login",{login_type:3})}}),!!u&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){return a("login_login",{login_type:4})}})]})})})}},function(e,t,n){"use strict";var o=n(66);e.exports=new o({explicit:[n(498),n(499),n(500)]})},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var o=n(0),r=n(2),i=n(522),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!t&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:[(0,o.createComponentVNode)(2,r.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Box,{float:"right",display:"inline",children:a(e,t)}),(0,o.createComponentVNode)(2,r.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewManifest=void 0;var o=n(0),r=n(1),i=n(2),a=n(18),c=n(49).COLORS.department,l=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel"],s=function(e){return-1!==l.indexOf(e)||"Quartermaster"===e},d=function(e){return e.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"50%",children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"35%",children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"15%",children:"Active"})]}),e.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{color:(t=e.rank,-1!==l.indexOf(t)?"green":"Quartermaster"===t?"yellow":"orange"),bold:s(e.rank),children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.rank)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.active})]},e.name+e.rank);var t}))]})};t.CrewManifest=function(e,t){var n;(0,r.useBackend)(t).act;e.data?n=e.data:n=(0,r.useBackend)(t).data;var a=n.manifest,l=a.heads,s=a.pro,u=a.sec,p=a.eng,m=a.med,h=a.sci,f=a.ser,C=a.sup,g=a.misc;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.command,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:d(l)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.procedure,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:d(s)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.security,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:d(u)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.engineering,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:d(p)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.medical,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:d(m)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.science,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:d(h)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.service,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:d(f)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.supply,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:d(C)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:d(g)})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var o=n(0),r=n(1),i=n(2);t.TemporaryNotice=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.temp;if(l){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(105);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var o=n(6),r=n(106),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var o=n(6),r=n(107),i=o.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},function(e,t,n){"use strict";var o=n(19),r=n(109),i=n(22),a=n(14);e.exports=function(e,t){for(var n=r(t),c=a.f,l=i.f,s=0;sl;)o(c,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){"use strict";var o=n(112);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(10),a=n(73);e.exports=o?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),c=o.length,l=0;c>l;)r.f(e,n=o[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(39);e.exports=o("document","documentElement")},function(e,t,n){"use strict";var o=n(28),r=n(54).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(t){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(13);t.f=o},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),c=i(n.length),l=r(e,c),s=r(t,c),d=arguments.length>2?arguments[2]:undefined,u=a((d===undefined?c:r(d,c))-s,c-l),p=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=p,s+=p;return n}},function(e,t,n){"use strict";var o=n(59),r=n(12),i=n(55);e.exports=function a(e,t,n,c,l,s,d,u){for(var p,m=l,h=0,f=!!d&&i(d,u,3);h0&&o(p))m=a(e,t,p,r(p.length),m,s-1)-1;else{if(m>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[m]=p}m++}h++}return m}},function(e,t,n){"use strict";var o=n(10);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&o(i.call(e)),a}}},function(e,t,n){"use strict";var o=n(28),r=n(47),i=n(76),a=n(37),c=n(118),l=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var o,r,i,a=n(38),c=n(32),l=n(19),s=n(13),d=n(40),u=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):p=!0),o==undefined&&(o={}),d||l(o,u)||c(o,u,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(28),r=n(33),i=n(12),a=n(41),c=n(27),l=Math.min,s=[].lastIndexOf,d=!!s&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0}),m=d||!u||!p;e.exports=m?function(e){if(d)return s.apply(this,arguments)||0;var t=o(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:s},function(e,t,n){"use strict";var o=n(33),r=n(12);e.exports=function(e){if(e===undefined)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var o=n(34),r=n(8),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var o=[],r=0;r1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return C(this,0===e?0:e,t)}}:{add:function(e){return C(this,e=0===e?0:e,e)}}),u&&o(d.prototype,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var o=t+" Iterator",r=f(t),i=f(o);s(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:o(1+e)}},function(e,t,n){"use strict";var o=n(8),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseInt,c=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=r(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var o=n(9),r=n(73),i=n(28),a=n(83).f,c=function(e){return function(t){for(var n,c=i(t),l=r(c),s=l.length,d=0,u=[];s>d;)n=l[d++],o&&!a.call(c,n)||u.push(e?[n,c[n]]:c[n]);return u}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(6);e.exports=o.Promise},function(e,t,n){"use strict";var o=n(85);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){"use strict";var o,r,i,a,c,l,s,d,u=n(6),p=n(22).f,m=n(35),h=n(124).set,f=n(173),C=u.MutationObserver||u.WebKitMutationObserver,g=u.process,N=u.Promise,b="process"==m(g),V=p(u,"queueMicrotask"),v=V&&V.value;v||(o=function(){var e,t;for(b&&(e=g.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=undefined,n}}i=undefined,e&&e.enter()},b?a=function(){g.nextTick(o)}:C&&!f?(c=!0,l=document.createTextNode(""),new C(o).observe(l,{characterData:!0}),a=function(){l.data=c=!c}):N&&N.resolve?(s=N.resolve(undefined),d=s.then,a=function(){d.call(s,o)}):a=function(){h.call(u,o)}),e.exports=v||function(e){var t={fn:e,next:undefined};i&&(i.next=t),r||(r=t,a()),i=t}},function(e,t,n){"use strict";var o=n(10),r=n(8),i=n(176);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(34),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var o=n(4),r=n(96);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var o=n(85);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o)},function(e,t,n){"use strict";var o=n(376);e.exports=function(e,t){var n=o(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var o=n(16),r=n(12),i=n(116),a=n(115),c=n(55),l=n(11).aTypedArrayConstructor;e.exports=function(e){var t,n,s,d,u,p,m=o(e),h=arguments.length,f=h>1?arguments[1]:undefined,C=f!==undefined,g=i(m);if(g!=undefined&&!a(g))for(p=(u=g.call(m)).next,m=[];!(d=p.call(u)).done;)m.push(d.value);for(C&&h>2&&(f=c(f,arguments[2],2)),n=r(m.length),s=new(l(this))(n),t=0;n>t;t++)s[t]=C?f(m[t],t):m[t];return s}},function(e,t,n){"use strict";var o=n(77),r=n(58).getWeakData,i=n(10),a=n(8),c=n(61),l=n(79),s=n(21),d=n(19),u=n(37),p=u.set,m=u.getterFor,h=s.find,f=s.findIndex,C=0,g=function(e){return e.frozen||(e.frozen=new N)},N=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};N.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=f(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var u=e((function(e,o){c(e,u,t),p(e,{type:t,id:C++,frozen:undefined}),o!=undefined&&l(o,e[s],e,n)})),h=m(t),f=function(e,t,n){var o=h(e),a=r(i(t),!0);return!0===a?g(o).set(t,n):a[o.id]=n,e};return o(u.prototype,{"delete":function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t)["delete"](e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&d(n,t.id)}}),o(u.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return f(this,e,t)}}:{add:function(e){return f(this,e,!0)}}),u}}},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=void 0;var o=n(418),r=n(23);function i(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var a,c,l,s,d,u=(0,n(63).createLogger)("drag"),p=!1,m=!1,h=[0,0],f=function(e){return(0,r.winget)(e,"pos").then((function(e){return[e.x,e.y]}))},C=function(e,t){return(0,r.winset)(e,"pos",t[0]+","+t[1])},g=function(){var e,t=(e=regeneratorRuntime.mark((function n(e){var t,o,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u.log("setting up"),a=e.config.window,n.next=4,f(a);case 4:t=n.sent,h=[t[0]-window.screenLeft,t[1]-window.screenTop],o=N(t),r=o[0],i=o[1],r&&C(a,i),u.debug("current state",{ref:a,screenOffset:h});case 9:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,l,"next",e)}function l(e){i(a,o,r,c,l,"throw",e)}c(undefined)}))});return function(e){return t.apply(this,arguments)}}();t.setupDrag=g;var N=function(e){var t=e[0],n=e[1],o=!1;return t<0?(t=0,o=!0):t+window.innerWidth>window.screen.availWidth&&(t=window.screen.availWidth-window.innerWidth,o=!0),n<0?(n=0,o=!0):n+window.innerHeight>window.screen.availHeight&&(n=window.screen.availHeight-window.innerHeight,o=!0),[o,[t,n]]};t.dragStartHandler=function(e){u.log("drag start"),p=!0,c=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",V),document.addEventListener("mouseup",b),V(e)};var b=function y(e){u.log("drag end"),V(e),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",y),p=!1},V=function(e){p&&(e.preventDefault(),C(a,(0,o.vecAdd)([e.screenX,e.screenY],h,c)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],u.log("resize start",l),m=!0,c=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),x(n)}};var v=function k(e){u.log("resize end",d),x(e),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",k),m=!1},x=function(e){m&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),c,[1,1]))))[0]=Math.max(d[0],250),d[1]=Math.max(d[1],120),function(e,t){(0,r.winset)(e,"size",t[0]+","+t[1])}(a,d))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var o=n(0),r=n(7);t.Tooltip=function(e){var t=e.content,n=e.title,i=e.position,a=void 0===i?"bottom":i,c="string"==typeof t&&t.length>35,l=!(0,r.isFalsy)(n)?n+"\n \n"+t:t;return(0,o.createVNode)(1,"div",(0,r.classes)(["Tooltip",c&&"Tooltip--long",a&&"Tooltip--"+a]),null,1,{"data-tooltip":l})}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=t.getBoundingBox=void 0;var o=n(0),r=n(7),i=n(443),a=n(23),c=n(63),l=n(17);function s(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var d=(0,c.createLogger)("ByondUi"),u=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r}(e,["className","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Dimmer"].concat(t))},a,{children:(0,o.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var o=n(0),r=n(7);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,o.createVNode)(1,"div",(0,r.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(80),i=n(7);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=l,c.defaultHooks=i.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var o=n(0),r=n(15),i=n(7),a=n(136);var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},l=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,o.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,o=t.value,r=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,r),value:o,internalValue:o}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,l=t.stepPixelSize,s=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),d=c(e,s)-n.origin;if(t.dragging){var u=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+d*a/l,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+u,o,i),n.origin=c(e,s)}else Math.abs(d)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,l=t.suppressingFlicker,s=this.props,d=s.animated,u=s.value,p=s.unit,m=s.minValue,h=s.maxValue,f=s.format,C=s.onChange,g=s.onDrag,N=s.children,b=s.height,V=s.lineHeight,v=s.fontSize,x=u;(n||l)&&(x=c);var y=function(e){return e+(p?" "+p:"")},k=d&&!n&&!l&&(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:f,children:y})||y(f?f(x):x),w=(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:b,"line-height":V,"font-size":v},onBlur:function(t){if(i){var n=(0,r.clamp)(t.target.value,m,h);e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,m,h);return e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return N({dragging:n,editing:i,value:u,displayValue:x,displayElement:k,inputElement:w,handleDragStart:this.handleDragStart})},i}(o.Component);t.DraggableControl=l,l.defaultHooks=i.pureComponentHooks,l.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Slider=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.fillValue,v=e.color,x=e.ranges,y=void 0===x?{}:x,k=e.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=k!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=V!==undefined&&null!==V,h=((0,r.scale)(n,u,d),(0,r.scale)(null!=V?V:a,u,d)),f=(0,r.scale)(a,u,d),C=v||(0,r.keyOfMatchingRange)(null!=V?V:n,y)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,b,(0,c.computeBoxClassName)(w)]),[(0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(h)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(h,f))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(f)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",_?k:l,0),s],0,Object.assign({},(0,c.computeBoxProps)(w),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(23),l=n(2),s=n(49),d=n(183),u=n(133),p=n(63),m=n(135);var h=(0,p.createLogger)("Window"),f=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var p=l.prototype;return p.componentDidMount=function(){(0,m.refocusLayout)()},p.render=function(){var e=this.props,t=e.resizable,n=e.theme,l=e.children,p=(0,a.useBackend)(this.context),f=p.config,C=p.debugLayout,N=f.observer?f.statusa?"average":t>c?"bad":"good"),children:[e.val,e.units]},e.entry);var t,n,r,a,c}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MessengerList=t.ActiveConversation=t.pda_messenger=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);t.pda_messenger=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data);return r.active_convo?(0,o.createComponentVNode)(2,c,{data:r}):(0,o.createComponentVNode)(2,l,{data:r})};var c=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.convo_name,s=c.convo_job,d=c.messages,u=c.active_convo,p=(0,i.useLocalState)(t,"clipboardMode",!1),m=p[0],h=p[1],f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{height:"97%",overflowY:"auto",children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{textAlign:e.sent?"right":"left",position:"relative",mb:1,children:[(0,o.createComponentVNode)(2,a.Icon,{fontSize:2.5,color:e.sent?"#3e6189":"#565656",position:"absolute",left:e.sent?null:"0px",right:e.sent?"0px":null,bottom:"-5px",style:{"z-index":"0",transform:e.sent?"scale(-1, 1)":null},name:"comment"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,backgroundColor:e.sent?"#3e6189":"#565656",p:1,maxWidth:"100%",position:"relative",textAlign:"left",style:{"z-index":"1","border-radius":"5px","word-break":"normal","word-wrap":"break-word"},children:e.message})]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]});return m&&(f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{color:e.sent?"#2185d0":"#aaaaaa",style:{"word-break":"normal"},children:[e.sent?"You:":"Them:"," ",e.message]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),f]})};t.ActiveConversation=c;var l=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=r.convopdas,l=r.pdas,d=r.charges,u=r.silent,p=r.toff,m=(0,i.useLocalState)(t,"searchTerm",""),h=m[0],f=m[1];return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,a.Button,{selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return n("Toggle Ringer")},children:["Ringer: ",u?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return n("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",onClick:function(){return n("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})}),!c.length&&!l.length&&(0,o.createComponentVNode)(2,a.Box,{children:"No current conversations"})||(0,o.createComponentVNode)(2,a.Box,{children:["Search: ",(0,o.createComponentVNode)(2,a.Input,{value:h,onInput:function(e,t){f(t)}}),(0,o.createComponentVNode)(2,s,{title:"Current Conversations",data:r,pdas:c,msgAct:"Select Conversation",searchTerm:h}),(0,o.createComponentVNode)(2,s,{title:"Other PDAs",pdas:l,msgAct:"Message",data:r,searchTerm:h})]})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Messenger Offline."})]})};t.MessengerList=l;var s=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=e.pdas,l=e.title,s=e.msgAct,d=e.searchTerm,u=r.charges,p=r.plugins;return c&&c.length?(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:c.filter((function(e){return e.Name.toLowerCase().includes(d.toLowerCase())})).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return n(s,{target:e.uid})}}),!!u&&p.map((function(t){return(0,o.createComponentVNode)(2,a.Button,{icon:t.icon,content:t.name,onClick:function(){return n("Messenger Plugin",{plugin:t.uid,target:e.uid})}},t.uid)}))]},e.uid)}))}):(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:"No PDAs found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(15),i=n(1),a=n(2);t.Signaler=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.code,s=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return n("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(e,t){return n("code",{code:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return n("signal")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitorMainContent=t.PowerMonitor=void 0;var o=n(0),r=n(24),i=n(43),a=n(15),c=n(7),l=n(18),s=n(1),d=n(2),u=n(3),p=6e5;t.PowerMonitor=function(e,t){return(0,o.createComponentVNode)(2,u.Window,{resizeable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var m=function(e,t){var n=(0,s.useBackend)(t),r=(n.act,n.data),i=r.powermonitor,a=r.can_select_monitor;return(0,o.createComponentVNode)(2,d.Box,{m:0,children:[!i&&a&&(0,o.createComponentVNode)(2,h),i&&(0,o.createComponentVNode)(2,f)]})};t.PowerMonitorMainContent=m;var h=function(e,t){var n=(0,s.useBackend)(t),r=n.act,i=n.data.powermonitors;return i?(0,o.createComponentVNode)(2,d.Section,{title:"Select Power Monitor",children:Object.keys(i).sort((function(e,t){return i[e]50?"battery-half":"battery-quarter")||"C"===t&&"bolt"||"F"===t&&"battery-full"||"M"===t&&"slash",color:"N"===t&&(n>50?"yellow":"red")||"C"===t&&"yellow"||"F"===t&&"green"||"M"===t&&"orange"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(n)+"%"})],4)};C.defaultHooks=c.pureComponentHooks;var g=function(e){var t,n;switch(e.status){case"AOn":t=!0,n=!0;break;case"AOff":t=!0,n=!1;break;case"On":t=!1,n=!0;break;case"Off":t=!1,n=!1}var r=(n?"On":"Off")+" ["+(t?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:n?"good":"bad",content:t?undefined:"M",title:r})};g.defaultHooks=c.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.RndRoute=void 0;var o=n(1);t.RndRoute=function(e,t){var n=e.render,r=(0,o.useBackend)(t).data,i=r.menu,a=r.submenu,c=function(e,t){return null===e||e===undefined||("function"==typeof e?e(t):e===t)};return c(e.menu,i)&&c(e.submenu,a)?n():null}},function(e,t,n){e.exports=n(201)},function(e,t,n){"use strict";n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(227),n(229),n(230),n(231),n(160),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(248),n(249),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(177),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414);var o=n(0),r=n(416);n(417);n(182);var i=n(1),a=n(23),c=n(183),l=n(63);n(419),n(420),n(421),n(422),n(423);var s=n(424);n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438);var d,u=n(439),p=(Date.now(),(0,s.createStore)()),m=!0,h=function(){for(p.subscribe((function(){!function(){try{var e=p.getState();m&&(l.logger.log("initial render",e),(0,c.setupDrag)(e));var t=(0,n(134).getRoutedComponent)(e),r=(0,o.createComponentVNode)(2,s.StoreProvider,{store:p,children:(0,o.createComponentVNode)(2,t)});d||(d=document.getElementById("react-root")),(0,o.render)(r,d)}catch(i){throw l.logger.error("rendering error",i),i}m&&(m=!1)}()})),(0,u.captureExternalLinks)(),window.update=function(e){var t="string"==typeof e?function(e){var t=function(e,t){return"object"==typeof t&&null!==t&&t.__number__?parseFloat(t.__number__):t};a.IS_IE8&&(t=undefined);try{return JSON.parse(e,t)}catch(o){l.logger.log(o),l.logger.log("What we got:",e);var n=o&&o.message;throw new Error("JSON parsing error: "+n)}}(e):e;p.dispatch((0,i.backendUpdate)(t))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}(0,r.loadCSS)("font-awesome.css")};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(39),a=n(40),c=n(9),l=n(112),s=n(152),d=n(5),u=n(19),p=n(59),m=n(8),h=n(10),f=n(16),C=n(28),g=n(36),N=n(53),b=n(45),V=n(73),v=n(54),x=n(155),y=n(111),k=n(22),w=n(14),_=n(83),B=n(32),S=n(26),L=n(108),A=n(84),E=n(70),I=n(69),D=n(13),T=n(156),F=n(29),M=n(46),P=n(37),O=n(21).forEach,R=A("hidden"),j=D("toPrimitive"),U=P.set,z=P.getterFor("Symbol"),W=Object.prototype,H=r.Symbol,K=i("JSON","stringify"),Y=k.f,G=w.f,q=x.f,X=_.f,J=L("symbols"),$=L("op-symbols"),Z=L("string-to-symbol-registry"),Q=L("symbol-to-string-registry"),ee=L("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,oe=c&&d((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=Y(W,t);o&&delete W[t],G(e,t,n),o&&e!==W&&G(W,t,o)}:G,re=function(e,t){var n=J[e]=b(H.prototype);return U(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===W&&ae($,t,n),h(e);var o=g(t,!0);return h(n),u(J,o)?(n.enumerable?(u(e,R)&&e[R][o]&&(e[R][o]=!1),n=b(n,{enumerable:N(0,!1)})):(u(e,R)||G(e,R,N(1,{})),e[R][o]=!0),oe(e,o,n)):G(e,o,n)},ce=function(e,t){h(e);var n=C(t),o=V(n).concat(pe(n));return O(o,(function(t){c&&!se.call(n,t)||ae(e,t,n[t])})),e},le=function(e,t){return t===undefined?b(e):ce(b(e),t)},se=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===W&&u(J,t)&&!u($,t))&&(!(n||!u(this,t)||!u(J,t)||u(this,R)&&this[R][t])||n)},de=function(e,t){var n=C(e),o=g(t,!0);if(n!==W||!u(J,o)||u($,o)){var r=Y(n,o);return!r||!u(J,o)||u(n,R)&&n[R][o]||(r.enumerable=!0),r}},ue=function(e){var t=q(C(e)),n=[];return O(t,(function(e){u(J,e)||u(E,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=q(t?$:C(e)),o=[];return O(n,(function(e){!u(J,e)||t&&!u(W,e)||o.push(J[e])})),o};(l||(S((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,t=I(e),n=function o(e){this===W&&o.call($,e),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),oe(this,t,N(1,e))};return c&&ne&&oe(W,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return z(this).tag})),S(H,"withoutSetter",(function(e){return re(I(e),e)})),_.f=se,w.f=ae,k.f=de,v.f=x.f=ue,y.f=pe,T.f=function(e){return re(D(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||S(W,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),O(V(ee),(function(e){F(e)})),o({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=String(e);if(u(Z,t))return Z[t];var n=H(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(u(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:le,defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){y.f(1)}))},{getOwnPropertySymbols:function(e){return y.f(f(e))}}),K)&&o({target:"JSON",stat:!0,forced:!l||d((function(){var e=H();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=t,(m(t)||e!==undefined)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!ie(t))return t}),r[1]=t,K.apply(null,r)}});H.prototype[j]||B(H.prototype,j,H.prototype.valueOf),M(H,"Symbol"),E[R]=!0},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(6),a=n(19),c=n(8),l=n(14).f,s=n(149),d=i.Symbol;if(r&&"function"==typeof d&&(!("description"in d.prototype)||d().description!==undefined)){var u={},p=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof p?new d(e):e===undefined?d():d(e);return""===e&&(u[t]=!0),t};s(p,d);var m=p.prototype=d.prototype;m.constructor=p;var h=m.toString,f="Symbol(test)"==String(d("test")),C=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=h.call(e);if(a(u,e))return"";var n=f?t.slice(7,-1):t.replace(C,"$1");return""===n?undefined:n}}),o({global:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";n(29)("asyncIterator")},function(e,t,n){"use strict";n(29)("hasInstance")},function(e,t,n){"use strict";n(29)("isConcatSpreadable")},function(e,t,n){"use strict";n(29)("iterator")},function(e,t,n){"use strict";n(29)("match")},function(e,t,n){"use strict";n(29)("replace")},function(e,t,n){"use strict";n(29)("search")},function(e,t,n){"use strict";n(29)("species")},function(e,t,n){"use strict";n(29)("split")},function(e,t,n){"use strict";n(29)("toPrimitive")},function(e,t,n){"use strict";n(29)("toStringTag")},function(e,t,n){"use strict";n(29)("unscopables")},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(59),a=n(8),c=n(16),l=n(12),s=n(56),d=n(74),u=n(75),p=n(13),m=n(113),h=p("isConcatSpreadable"),f=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),C=u("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return t!==undefined?!!t:i(e)};o({target:"Array",proto:!0,forced:!f||!C},{concat:function(e){var t,n,o,r,i,a=c(this),u=d(a,0),p=0;for(t=-1,o=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(u,p++,i)}return u.length=p,u}})},function(e,t,n){"use strict";var o=n(4),r=n(157),i=n(47);o({target:"Array",proto:!0},{copyWithin:r}),i("copyWithin")},function(e,t,n){"use strict";var o=n(4),r=n(21).every,i=n(41),a=n(27),c=i("every"),l=a("every");o({target:"Array",proto:!0,forced:!c||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(114),i=n(47);o({target:"Array",proto:!0},{fill:r}),i("fill")},function(e,t,n){"use strict";var o=n(4),r=n(21).filter,i=n(75),a=n(27),c=i("filter"),l=a("filter");o({target:"Array",proto:!0,forced:!c||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(21).find,i=n(47),a=n(27),c=!0,l=a("find");"find"in[]&&Array(1).find((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var o=n(4),r=n(21).findIndex,i=n(47),a=n(27),c=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(33),l=n(74);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,e===undefined?1:c(e)),o}})},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(34),l=n(74);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),o=a(n.length);return c(e),(t=l(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var o=n(4),r=n(226);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var o=n(21).forEach,r=n(41),i=n(27),a=r("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var o=n(4),r=n(228);o({target:"Array",stat:!0,forced:!n(87)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(55),r=n(16),i=n(159),a=n(115),c=n(12),l=n(56),s=n(116);e.exports=function(e){var t,n,d,u,p,m,h=r(e),f="function"==typeof this?this:Array,C=arguments.length,g=C>1?arguments[1]:undefined,N=g!==undefined,b=s(h),V=0;if(N&&(g=o(g,C>2?arguments[2]:undefined,2)),b==undefined||f==Array&&a(b))for(n=new f(t=c(h.length));t>V;V++)m=N?g(h[V],V):h[V],l(n,V,m);else for(p=(u=b.call(h)).next,n=new f;!(d=p.call(u)).done;V++)m=N?i(u,g,[d.value,V],!0):d.value,l(n,V,m);return n.length=V,n}},function(e,t,n){"use strict";var o=n(4),r=n(71).includes,i=n(47);o({target:"Array",proto:!0,forced:!n(27)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var o=n(4),r=n(71).indexOf,i=n(41),a=n(27),c=[].indexOf,l=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),d=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!s||!d},{indexOf:function(e){return l?c.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(4)({target:"Array",stat:!0},{isArray:n(59)})},function(e,t,n){"use strict";var o=n(161).IteratorPrototype,r=n(45),i=n(53),a=n(46),c=n(76),l=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,s,!1,!0),c[s]=l,e}},function(e,t,n){"use strict";var o=n(4),r=n(68),i=n(28),a=n(41),c=[].join,l=r!=Object,s=a("join",",");o({target:"Array",proto:!0,forced:l||!s},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var o=n(4),r=n(163);o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var o=n(4),r=n(21).map,i=n(75),a=n(27),c=i("map"),l=a("map");o({target:"Array",proto:!0,forced:!c||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(56);o({target:"Array",stat:!0,forced:r((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(4),r=n(88).left,i=n(41),a=n(27),c=i("reduce"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(88).right,i=n(41),a=n(27),c=i("reduceRight"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(59),a=n(44),c=n(12),l=n(28),s=n(56),d=n(13),u=n(75),p=n(27),m=u("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),f=d("species"),C=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!m||!h},{slice:function(e,t){var n,o,d,u=l(this),p=c(u.length),m=a(e,p),h=a(t===undefined?p:t,p);if(i(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[f])&&(n=undefined):n=undefined,n===Array||n===undefined))return C.call(u,m,h);for(o=new(n===undefined?Array:n)(g(h-m,0)),d=0;m1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(34),i=n(16),a=n(5),c=n(41),l=[],s=l.sort,d=a((function(){l.sort(undefined)})),u=a((function(){l.sort(null)})),p=c("sort");o({target:"Array",proto:!0,forced:d||!u||!p},{sort:function(e){return e===undefined?s.call(i(this)):s.call(i(this),r(e))}})},function(e,t,n){"use strict";n(60)("Array")},function(e,t,n){"use strict";var o=n(4),r=n(44),i=n(33),a=n(12),c=n(16),l=n(74),s=n(56),d=n(75),u=n(27),p=d("splice"),m=u("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,f=Math.min;o({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,o,d,u,p,m,C=c(this),g=a(C.length),N=r(e,g),b=arguments.length;if(0===b?n=o=0:1===b?(n=0,o=g-N):(n=b-2,o=f(h(i(t),0),g-N)),g+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(C,o),u=0;ug-o+n;u--)delete C[u-1]}else if(n>o)for(u=g-o;u>N;u--)m=u+n-1,(p=u+o-1)in C?C[m]=C[p]:delete C[m];for(u=0;u>1,f=23===t?r(2,-24)-r(2,-77):0,C=e<0||0===e&&1/e<0?1:0,g=0;for((e=o(e))!=e||e===1/0?(s=e!=e?1:0,l=m):(l=i(a(e)/c),e*(d=r(2,-l))<1&&(l--,d*=2),(e+=l+h>=1?f/d:f*r(2,1-h))*d>=2&&(l++,d/=2),l+h>=m?(s=0,l=m):l+h>=1?(s=(e*d-1)*r(2,t),l+=h):(s=e*r(2,h-1)*r(2,t),l=0));t>=8;u[g++]=255&s,s/=256,t-=8);for(l=l<0;u[g++]=255&l,l/=256,p-=8);return u[--g]|=128*C,u},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,l=i-7,s=o-1,d=e[s--],u=127&d;for(d>>=7;l>0;u=256*u+e[s],s--,l-=8);for(n=u&(1<<-l)-1,u>>=-l,l+=t;l>0;n=256*n+e[s],s--,l-=8);if(0===u)u=1-c;else{if(u===a)return n?NaN:d?-1/0:1/0;n+=r(2,t),u-=c}return(d?-1:1)*n*r(2,u-t)}}},function(e,t,n){"use strict";var o=n(4),r=n(11);o({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(89),a=n(10),c=n(44),l=n(12),s=n(48),d=i.ArrayBuffer,u=i.DataView,p=d.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:r((function(){return!new d(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(p!==undefined&&t===undefined)return p.call(a(this),e);for(var n=a(this).byteLength,o=c(e,n),r=c(t===undefined?n:t,n),i=new(s(this,d))(l(r-o)),m=new u(this),h=new u(i),f=0;o9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(this.getUTCMonth()+1,2,0)+"-"+r(this.getUTCDate(),2,0)+"T"+r(this.getUTCHours(),2,0)+":"+r(this.getUTCMinutes(),2,0)+":"+r(this.getUTCSeconds(),2,0)+"."+r(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(36);o({target:"Date",proto:!0,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var o=n(32),r=n(256),i=n(13)("toPrimitive"),a=Date.prototype;i in a||o(a,i,r)},function(e,t,n){"use strict";var o=n(10),r=n(36);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!==e)}},function(e,t,n){"use strict";var o=n(26),r=Date.prototype,i=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&o(r,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(4)({target:"Function",proto:!0},{bind:n(165)})},function(e,t,n){"use strict";var o=n(8),r=n(14),i=n(38),a=n(13)("hasInstance"),c=Function.prototype;a in c||r.f(c,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var o=n(9),r=n(14).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;o&&!("name"in i)&&r(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(6);n(46)(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(167),i=Math.acosh,a=Math.log,c=Math.sqrt,l=Math.LN2;o({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:r(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var o=n(4),r=Math.asinh,i=Math.log,a=Math.sqrt;o({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var o=n(4),r=Math.atanh,i=Math.log;o({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var o=n(4),r=n(123),i=Math.abs,a=Math.pow;o({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var o=n(4),r=Math.floor,i=Math.log,a=Math.LOG2E;o({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*a):32}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.cosh,a=Math.abs,c=Math.E;o({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92);o({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{fround:n(271)})},function(e,t,n){"use strict";var o=n(123),r=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),l=i(2,127)*(2-c),s=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=r(e),d=o(e);return il||n!=n?d*Infinity:d*n}},function(e,t,n){"use strict";var o=n(4),r=Math.hypot,i=Math.abs,a=Math.sqrt;o({target:"Math",stat:!0,forced:!!r&&r(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,o,r=0,c=0,l=arguments.length,s=0;c0?(o=n/s)*o:n;return s===Infinity?Infinity:s*a(r)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=Math.imul;o({target:"Math",stat:!0,forced:r((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LOG10E;o({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{log1p:n(167)})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{sign:n(123)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(92),a=Math.abs,c=Math.exp,l=Math.E;o({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(l/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.exp;o({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(46)(Math,"Math",!0)},function(e,t,n){"use strict";var o=n(4),r=Math.ceil,i=Math.floor;o({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(26),c=n(19),l=n(35),s=n(91),d=n(36),u=n(5),p=n(45),m=n(54).f,h=n(22).f,f=n(14).f,C=n(62).trim,g=r.Number,N=g.prototype,b="Number"==l(p(N)),V=function(e){var t,n,o,r,i,a,c,l,s=d(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=C(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;cr)return NaN;return parseInt(i,o)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var v,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(b?u((function(){N.valueOf.call(n)})):"Number"!=l(n))?s(new g(V(t)),n,x):V(t)},y=o?m(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;y.length>k;k++)c(g,v=y[k])&&!c(x,v)&&f(x,v,h(g,v));x.prototype=N,N.constructor=x,a(r,"Number",x)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isFinite:n(285)})},function(e,t,n){"use strict";var o=n(6).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isInteger:n(168)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var o=n(4),r=n(168),i=Math.abs;o({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var o=n(4),r=n(292);o({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var o=n(4),r=n(169);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o=n(4),r=n(33),i=n(295),a=n(122),c=n(5),l=1..toFixed,s=Math.floor,d=function u(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)};o({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,o,c,l=i(this),u=r(e),p=[0,0,0,0,0,0],m="",h="0",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*p[n],p[n]=o%1e7,o=s(o/1e7)},C=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=s(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(d(10,o,1),0),o=t-1;o>=23;)C(1<<23),o-=23;C(1<0?m+((c=h.length)<=u?"0."+a.call("0",u-c)+h:h.slice(0,c-u)+"."+h.slice(c-u)):m+h}})},function(e,t,n){"use strict";var o=n(35);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var o=n(4),r=n(297);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(73),a=n(111),c=n(83),l=n(16),s=n(68),d=Object.assign,u=Object.defineProperty;e.exports=!d||r((function(){if(o&&1!==d({b:1},d(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=l(e),r=arguments.length,d=1,u=a.f,p=c.f;r>d;)for(var m,h=s(arguments[d++]),f=u?i(h).concat(u(h)):i(h),C=f.length,g=0;C>g;)m=f[g++],o&&!p.call(h,m)||(n[m]=h[m]);return n}:d},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0,sham:!n(9)},{create:n(45)})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(153)})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(14).f})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(170).entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(78),i=n(5),a=n(8),c=n(58).onFreeze,l=Object.freeze;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!r},{freeze:function(e){return l&&a(e)?l(c(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(79),i=n(56);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(28),a=n(22).f,c=n(9),l=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!c||l,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(109),a=n(28),c=n(22),l=n(56);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=c.f,s=i(o),d={},u=0;s.length>u;)(n=r(o,t=s[u++]))!==undefined&&l(d,t,n);return d}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(155).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(38),c=n(119);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{is:n(171)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isExtensible;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isFrozen;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isSealed;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(16),i=n(73);o({target:"Object",stat:!0,forced:n(5)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.set}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.preventExtensions;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.seal;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{seal:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{setPrototypeOf:n(57)})},function(e,t,n){"use strict";var o=n(117),r=n(26),i=n(321);o||r(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var o=n(117),r=n(86);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){"use strict";var o=n(4),r=n(170).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(169);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o,r,i,a,c=n(4),l=n(40),s=n(6),d=n(39),u=n(172),p=n(26),m=n(77),h=n(46),f=n(60),C=n(8),g=n(34),N=n(61),b=n(35),V=n(107),v=n(79),x=n(87),y=n(48),k=n(124).set,w=n(174),_=n(175),B=n(325),S=n(176),L=n(326),A=n(37),E=n(72),I=n(13),D=n(113),T=I("species"),F="Promise",M=A.get,P=A.set,O=A.getterFor(F),R=u,j=s.TypeError,U=s.document,z=s.process,W=d("fetch"),H=S.f,K=H,Y="process"==b(z),G=!!(U&&U.createEvent&&s.dispatchEvent),q=E(F,(function(){if(!(V(R)!==String(R))){if(66===D)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!R.prototype["finally"])return!0;if(D>=51&&/native code/.test(R))return!1;var e=R.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),X=q||!x((function(e){R.all(e)["catch"]((function(){}))})),J=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;w((function(){for(var r=t.value,i=1==t.state,a=0;o.length>a;){var c,l,s,d=o[a++],u=i?d.ok:d.fail,p=d.resolve,m=d.reject,h=d.domain;try{u?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===u?c=r:(h&&h.enter(),c=u(r),h&&(h.exit(),s=!0)),c===d.promise?m(j("Promise-chain cycle")):(l=J(c))?l.call(c,p,m):p(c)):m(r)}catch(f){h&&!s&&h.exit(),m(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)}))}},Z=function(e,t,n){var o,r;G?((o=U.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),s.dispatchEvent(o)):o={promise:t,reason:n},(r=s["on"+e])?r(o):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Q=function(e,t){k.call(s,(function(){var n,o=t.value;if(ee(t)&&(n=L((function(){Y?z.emit("unhandledRejection",o,e):Z("unhandledrejection",e,o)})),t.rejection=Y||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(s,(function(){Y?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},ne=function(e,t,n,o){return function(r){e(t,n,r,o)}},oe=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,$(e,t,!0))},re=function ie(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw j("Promise can't be resolved itself");var r=J(n);r?w((function(){var o={done:!1};try{r.call(n,ne(ie,e,o,t),ne(oe,e,o,t))}catch(i){oe(e,o,i,t)}})):(t.value=n,t.state=1,$(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};q&&(R=function(e){N(this,R,F),g(e),o.call(this);var t=M(this);try{e(ne(re,this,t),ne(oe,this,t))}catch(n){oe(this,t,n)}},(o=function(e){P(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=m(R.prototype,{then:function(e,t){var n=O(this),o=H(y(this,R));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=Y?z.domain:undefined,n.parent=!0,n.reactions.push(o),0!=n.state&&$(this,n,!1),o.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new o,t=M(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(oe,e,t)},S.f=H=function(e){return e===R||e===i?new r(e):K(e)},l||"function"!=typeof u||(a=u.prototype.then,p(u.prototype,"then",(function(e,t){var n=this;return new R((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(R,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:q},{Promise:R}),h(R,F,!1,!0),f(F),i=d(F),c({target:F,stat:!0,forced:q},{reject:function(e){var t=H(this);return t.reject.call(undefined,e),t.promise}}),c({target:F,stat:!0,forced:l||q},{resolve:function(e){return _(l&&this===i?R:this,e)}}),c({target:F,stat:!0,forced:X},{all:function(e){var t=this,n=H(t),o=n.resolve,r=n.reject,i=L((function(){var n=g(t.resolve),i=[],a=0,c=1;v(e,(function(e){var l=a++,s=!1;i.push(undefined),c++,n.call(t,e).then((function(e){s||(s=!0,i[l]=e,--c||o(i))}),r)})),--c||o(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=H(t),o=n.reject,r=L((function(){var r=g(t.resolve);v(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(e,t,n){"use strict";var o=n(6);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var o=n(4),r=n(40),i=n(172),a=n(5),c=n(39),l=n(48),s=n(175),d=n(26);o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=l(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof i||i.prototype["finally"]||d(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(5),l=r("Reflect","apply"),s=Function.apply;o({target:"Reflect",stat:!0,forced:!c((function(){l((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),l?l(e,t,n):s.call(e,t,n)}})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(8),l=n(45),s=n(165),d=n(5),u=r("Reflect","construct"),p=d((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),m=!d((function(){u((function(){}))})),h=p||m;o({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(m&&!p)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(s.apply(e,o))}var r=n.prototype,d=l(c(r)?r:Object.prototype),h=Function.apply.call(e,d,t);return c(h)?h:d}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(36),c=n(14);o({target:"Reflect",stat:!0,forced:n(5)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){i(e);var o=a(t,!0);i(n);try{return c.f(e,o,n),!0}catch(r){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(22).f;o({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(10),a=n(19),c=n(22),l=n(38);o({target:"Reflect",stat:!0},{get:function s(e,t){var n,o,d=arguments.length<3?e:arguments[2];return i(e)===d?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(d):r(o=l(e))?s(o,t,d):void 0}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(22);o({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(38);o({target:"Reflect",stat:!0,sham:!n(119)},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=Object.isExtensible;o({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{ownKeys:n(109)})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(10);o({target:"Reflect",stat:!0,sham:!n(78)},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(8),a=n(19),c=n(5),l=n(14),s=n(22),d=n(38),u=n(53);o({target:"Reflect",stat:!0,forced:c((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(d(e),"a",1,e)}))},{set:function p(e,t,n){var o,c,m=arguments.length<4?e:arguments[3],h=s.f(r(e),t);if(!h){if(i(c=d(e)))return p(c,t,n,m);h=u(0)}if(a(h,"value")){if(!1===h.writable||!i(m))return!1;if(o=s.f(m,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,l.f(m,t,o)}else l.f(m,t,u(0,n));return!0}return h.set!==undefined&&(h.set.call(m,n),!0)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(162),a=n(57);a&&o({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(91),c=n(14).f,l=n(54).f,s=n(125),d=n(95),u=n(126),p=n(26),m=n(5),h=n(37).set,f=n(60),C=n(13)("match"),g=r.RegExp,N=g.prototype,b=/a/g,V=/a/g,v=new g(b)!==b,x=u.UNSUPPORTED_Y;if(o&&i("RegExp",!v||x||m((function(){return V[C]=!1,g(b)!=b||g(V)==V||"/a/i"!=g(b,"i")})))){for(var y=function(e,t){var n,o=this instanceof y,r=s(e),i=t===undefined;if(!o&&r&&e.constructor===y&&i)return e;v?r&&!i&&(e=e.source):e instanceof y&&(i&&(t=d.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(v?new g(e,t):g(e,t),o?this:N,y);return x&&n&&h(c,{sticky:n}),c},k=function(e){e in y||c(y,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=l(g),_=0;w.length>_;)k(w[_++]);N.constructor=y,y.prototype=N,p(r,"RegExp",y)}f("RegExp")},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(95),a=n(126).UNSUPPORTED_Y;o&&("g"!=/./g.flags||a)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var o=n(26),r=n(10),i=n(5),a=n(95),c=RegExp.prototype,l=c.toString,s=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d="toString"!=l.name;(s||d)&&o(RegExp.prototype,"toString",(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(127).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o,r=n(4),i=n(22).f,a=n(12),c=n(128),l=n(25),s=n(129),d=n(40),u="".endsWith,p=Math.min,m=s("endsWith");r({target:"String",proto:!0,forced:!!(d||m||(o=i(String.prototype,"endsWith"),!o||o.writable))&&!m},{endsWith:function(e){var t=String(l(this));c(e);var n=arguments.length>1?arguments[1]:undefined,o=a(t.length),r=n===undefined?o:p(a(n),o),i=String(e);return u?u.call(t,i,r):t.slice(r-i.length,r)===i}})},function(e,t,n){"use strict";var o=n(4),r=n(44),i=String.fromCharCode,a=String.fromCodePoint;o({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(4),r=n(128),i=n(25);o({target:"String",proto:!0,forced:!n(129)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(127).charAt,r=n(37),i=n(118),a=r.set,c=r.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(12),a=n(25),c=n(130),l=n(98);o("match",1,(function(e,t,n){return[function(t){var n=a(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var a=r(e),s=String(this);if(!a.global)return l(a,s);var d=a.unicode;a.lastIndex=0;for(var u,p=[],m=0;null!==(u=l(a,s));){var h=String(u[0]);p[m]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),d)),m++}return 0===m?null:p}]}))},function(e,t,n){"use strict";var o=n(4),r=n(121).end;o({target:"String",proto:!0,forced:n(178)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(121).start;o({target:"String",proto:!0,forced:n(178)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(28),i=n(12);o({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,f=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var C=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,N=C?"$":"$0";return[function(n,o){var r=l(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r,o):t.call(String(r),n,o)},function(e,o){if(!C&&g||"string"==typeof o&&-1===o.indexOf(N)){var i=n(t,e,this,o);if(i.done)return i.value}var l=r(e),m=String(this),h="function"==typeof o;h||(o=String(o));var f=l.global;if(f){var V=l.unicode;l.lastIndex=0}for(var v=[];;){var x=d(l,m);if(null===x)break;if(v.push(x),!f)break;""===String(x[0])&&(l.lastIndex=s(m,a(l.lastIndex),V))}for(var y,k="",w=0,_=0;_=w&&(k+=m.slice(w,S)+D,w=S+B.length)}return k+m.slice(w)}];function b(e,n,o,r,a,c){var l=o+e.length,s=r.length,d=f;return a!==undefined&&(a=i(a),d=h),t.call(c,d,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(l);case"<":c=a[i.slice(1,-1)];break;default:var d=+i;if(0===d)return t;if(d>s){var u=m(d/10);return 0===u?t:u<=s?r[u-1]===undefined?i.charAt(1):r[u-1]+i.charAt(1):t}c=r[d-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(25),a=n(171),c=n(98);o("search",1,(function(e,t,n){return[function(t){var n=i(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var i=r(e),l=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var d=c(i,l);return a(i.lastIndex,s)||(i.lastIndex=s),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var o=n(97),r=n(125),i=n(10),a=n(25),c=n(48),l=n(130),s=n(12),d=n(98),u=n(96),p=n(5),m=[].push,h=Math.min,f=!p((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[o];if(!r(e))return t.call(o,e,i);for(var c,l,s,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,f=new RegExp(e.source,p+"g");(c=u.call(f,o))&&!((l=f.lastIndex)>h&&(d.push(o.slice(h,c.index)),c.length>1&&c.index=i));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?!s&&f.test("")||d.push(""):d.push(o.slice(h)),d.length>i?d.slice(0,i):d}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,r,n):o.call(String(r),t,n)},function(e,r){var a=n(o,e,this,r,o!==t);if(a.done)return a.value;var u=i(e),p=String(this),m=c(u,RegExp),C=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),N=new m(f?u:"^(?:"+u.source+")",g),b=r===undefined?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===d(N,p)?[p]:[];for(var V=0,v=0,x=[];v1?arguments[1]:undefined,t.length)),o=String(e);return u?u.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var o=n(4),r=n(62).trim;o({target:"String",proto:!0,forced:n(131)("trim")},{trim:function(){return r(this)}})},function(e,t,n){"use strict";var o=n(4),r=n(62).end,i=n(131)("trimEnd"),a=i?function(){return r(this)}:"".trimEnd;o({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var o=n(4),r=n(62).start,i=n(131)("trimStart"),a=i?function(){return r(this)}:"".trimStart;o({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("big")},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("blink")},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("bold")},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("italics")},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("link")},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("small")},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sub")},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sup")},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){"use strict";n(42)("Float32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(33);e.exports=function(e){var t=o(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(42)("Float64",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},function(e,t,n){"use strict";n(42)("Uint16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(11),r=n(157),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(114),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).filter,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("filter",(function(e){for(var t=r(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),o=0,l=t.length,s=new(c(n))(l);l>o;)s[o]=t[o++];return s}))},function(e,t,n){"use strict";var o=n(11),r=n(21).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(132);(0,n(11).exportTypedArrayStaticMethod)("from",n(180),o)},function(e,t,n){"use strict";var o=n(11),r=n(71).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(71).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(160),a=n(13)("iterator"),c=o.Uint8Array,l=i.values,s=i.keys,d=i.entries,u=r.aTypedArray,p=r.exportTypedArrayMethod,m=c&&c.prototype[a],h=!!m&&("values"==m.name||m.name==undefined),f=function(){return l.call(u(this))};p("entries",(function(){return d.call(u(this))})),p("keys",(function(){return s.call(u(this))})),p("values",f,!h),p(a,f,!h)},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(r(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(163),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).map,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var o=n(11),r=n(132),i=o.aTypedArrayConstructor;(0,o.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var o=n(11),r=n(88).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(88).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o1?arguments[1]:undefined,1),n=this.length,o=a(e),c=r(o.length),s=0;if(c+t>n)throw RangeError("Wrong length");for(;si;)d[i]=n[i++];return d}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(11),r=n(21).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(r(this),e)}))},function(e,t,n){"use strict";var o=n(11),r=n(12),i=n(44),a=n(48),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),o=n.length,l=i(e,o);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((t===undefined?o:i(t,o))-l))}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(5),a=o.Int8Array,c=r.aTypedArray,l=r.exportTypedArrayMethod,s=[].toLocaleString,d=[].slice,u=!!a&&i((function(){s.call(new a(1))}));l("toLocaleString",(function(){return s.apply(u?d.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(11).exportTypedArrayMethod,r=n(5),i=n(6).Uint8Array,a=i&&i.prototype||{},c=[].toString,l=[].join;r((function(){c.call({})}))&&(c=function(){return l.call(this)});var s=a.toString!=c;o("toString",c,s)},function(e,t,n){"use strict";var o,r=n(6),i=n(77),a=n(58),c=n(90),l=n(181),s=n(8),d=n(37).enforce,u=n(148),p=!r.ActiveXObject&&"ActiveXObject"in r,m=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},f=e.exports=c("WeakMap",h,l);if(u&&p){o=l.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var C=f.prototype,g=C["delete"],N=C.has,b=C.get,V=C.set;i(C,{"delete":function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)||t.frozen.has(e)}return N.call(this,e)},get:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new o),N.call(this,e)?V.call(this,e,t):n.frozen.set(e,t)}else V.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(90)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(181))},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(124);o({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(174),a=n(35),c=r.process,l="process"==a(c);o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(85),a=[].slice,c=function(e){return function(t,n){var o=arguments.length>2,r=o?a.call(arguments,2):undefined;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Se,t._HI=P,t._M=Le,t._MCCC=De,t._ME=Ee,t._MFCC=Te,t._MP=_e,t._MR=Ne,t.__render=Re,t.createComponentVNode=function(e,t,n,o,r){var a=new L(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),o,function(e,t,n){var o=(32768&e?t.render:t).defaultProps;if(i(o))return n;if(i(n))return d(o,null);return B(n,o)}(e,t,n),function(e,t,n){if(4&e)return n;var o=(32768&e?t.render:t).defaultHooks;if(i(o))return n;if(i(n))return o;return B(n,o)}(e,t,r),t);k.createVNode&&k.createVNode(a);return a},t.createFragment=I,t.createPortal=function(e,t){var n=P(e);return A(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,o,r){e||(e=t),je(n,e,o,r)}},t.createTextVNode=E,t.createVNode=A,t.directClone=D,t.findDOMfromVNode=b,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&M(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=je,t.rerender=Ye,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var o=Array.isArray;function r(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function l(e){return"string"==typeof e}function s(e){return null===e}function d(e,t){var n={};if(e)for(var o in e)n[o]=e[o];if(t)for(var r in t)n[r]=t[r];return n}function u(e){return!s(e)&&"object"==typeof e}var p={};t.EMPTY_OBJ=p;function m(e){return e.substr(2).toLowerCase()}function h(e,t){e.appendChild(t)}function f(e,t,n){s(n)?h(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,h=s(p),f=l(p)&&"$"===p[0];m||h||f?(n=n||t.slice(0,d),(m||f)&&(u=D(u)),(h||f)&&(u.key="$"+d),n.push(u)):n&&n.push(u),u.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=D(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||r(e)?E(e,null):o(e)?I(e,0,null):16384&e.flags?D(e):e}var O="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":R,"xml:lang":R,"xml:space":R};function U(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=U(0),W=U(null),H=U(!0);function K(e,t){var n=t.$EV;return n||(n=t.$EV=U(null)),n[e]||1==++z[e]&&(W[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?G(t,!0,e,$(t)):t.stopPropagation()}}(e):function(e){return function(t){G(t,!1,e,$(t))}}(e);return document.addEventListener(m(e),t),t}(e)),n}function Y(e,t){var n=t.$EV;n&&n[e]&&(0==--z[e]&&(document.removeEventListener(m(e),W[e]),W[e]=null),n[e]=null)}function G(e,t,n,o){var r=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&r.disabled)return;var i=r.$EV;if(i){var a=i[n];if(a&&(o.dom=r,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}r=r.parentNode}while(!s(r))}function q(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function X(){return this.defaultPrevented}function J(){return this.cancelBubble}function $(e){var t={dom:document};return e.isDefaultPrevented=X,e.isPropagationStopped=J,e.stopPropagation=q,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Z(e,t,n){if(e[t]){var o=e[t];o.event?o.event(o.data,n):o(n)}else{var r=t.toLowerCase();e[r]&&e[r](n)}}function Q(e,t){var n=function(n){var o=this.$V;if(o){var r=o.props||p,i=o.dom;if(l(e))Z(r,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(o,c)}}var se,de,ue=Q("onInput",me),pe=Q("onChange");function me(e,t,n){var o=e.value,r=t.value;if(i(o)){if(n){var a=e.defaultValue;i(a)||a===r||(t.defaultValue=a,t.value=a)}}else r!==o&&(t.defaultValue=o,t.value=o)}function he(e,t,n,o,r,i){64&e?ie(o,n):256&e?le(o,n,r,t):128&e&&me(o,n,r),i&&(n.$V=t)}function fe(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",oe),ee(e,"click",re)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",ue),t.onChange&&ee(e,"change",pe)}(t,n)}function Ce(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ne(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){S(e,t)||void 0===e.current||(e.current=t)}))}function be(e,t){Ve(e),V(e,t)}function Ve(e){var t,n=e.flags,o=e.children;if(481&n){t=e.ref;var r=e.props;ge(t);var a=e.childFlags;if(!s(r))for(var l=Object.keys(r),d=0,u=l.length;d0;for(var c in a&&(i=Ce(n))&&fe(t,o,n),n)we(c,null,n[c],o,r,i,null);a&&he(t,e,o,n,!0,i)}function Be(e,t,n){var o=P(e.render(t,e.state,n)),r=n;return c(e.getChildContext)&&(r=d(n,e.getChildContext())),e.$CX=r,o}function Se(e,t,n,o,r,i){var a=new t(n,o),l=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=r,a.$L=i,e.children=a,a.$BS=!1,a.context=o,a.props===p&&(a.props=n),l)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var d=a.$PS;if(!s(d)){var u=a.state;if(s(u))a.state=d;else for(var m in d)u[m]=d[m];a.$PS=null}a.$BR=!1}return a.$LI=Be(a,n,o),a}function Le(e,t,n,o,r,i){var a=e.flags|=16384;481&a?Ee(e,t,n,o,r,i):4&a?function(e,t,n,o,r,i){var a=Se(e,e.type,e.props||p,n,o,i);Le(a.$LI,t,a.$CX,o,r,i),De(e.ref,a,i)}(e,t,n,o,r,i):8&a?(!function(e,t,n,o,r,i){Le(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||p,e.ref,t):e.type(e.props||p,t)}(e,n)),t,n,o,r,i)}(e,t,n,o,r,i),Te(e,i)):512&a||16&a?Ae(e,t,r):8192&a?function(e,t,n,o,r,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=T());2===c?Le(a,n,r,o,r,i):Ie(a,n,t,o,r,i)}(e,n,t,o,r,i):1024&a&&function(e,t,n,o,r){Le(e.children,e.ref,t,!1,null,r);var i=T();Ae(i,n,o),e.dom=i.dom}(e,n,t,r,i)}function Ae(e,t,n){var o=e.dom=document.createTextNode(e.children);s(t)||f(t,o,n)}function Ee(e,t,n,o,r,a){var c=e.flags,l=e.props,d=e.className,u=e.children,p=e.childFlags,m=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&c)>0);if(i(d)||""===d||(o?m.setAttribute("class",d):m.className=d),16===p)w(m,u);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&u.flags&&(e.children=u=D(u)),Le(u,m,n,h,null,a)):8!==p&&4!==p||Ie(u,m,n,h,null,a)}s(t)||f(t,m,r),s(l)||_e(e,c,l,m,o),Ne(e.ref,m,a)}function Ie(e,t,n,o,r,i){for(var a=0;a0,s!==d){var h=s||p;if((c=d||p)!==p)for(var f in(u=(448&r)>0)&&(m=Ce(c)),c){var C=h[f],g=c[f];C!==g&&we(f,C,g,l,o,m,e)}if(h!==p)for(var N in h)i(c[N])&&!i(h[N])&&we(N,h[N],null,l,o,m,e)}var b=t.children,V=t.className;e.className!==V&&(i(V)?l.removeAttribute("class"):o?l.setAttribute("class",V):l.className=V);4096&r?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,b):Me(e.childFlags,t.childFlags,e.children,b,l,n,o&&"foreignObject"!==t.type,null,e,a);u&&he(r,t,l,c,!1,m);var v=t.ref,x=e.ref;x!==v&&(ge(x),Ne(v,l,a))}(e,t,o,r,m,u):4&m?function(e,t,n,o,r,i,a){var l=t.children=e.children;if(s(l))return;l.$L=a;var u=t.props||p,m=t.ref,h=e.ref,f=l.state;if(!l.$N){if(c(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(u,o),l.$UN)return;l.$BR=!1}s(l.$PS)||(f=d(f,l.$PS),l.$PS=null)}Pe(l,f,u,n,o,r,!1,i,a),h!==m&&(ge(h),Ne(m,l,a))}(e,t,n,o,r,l,u):8&m?function(e,t,n,o,r,a,l){var s=!0,d=t.props||p,u=t.ref,m=e.props,h=!i(u),f=e.children;h&&c(u.onComponentShouldUpdate)&&(s=u.onComponentShouldUpdate(m,d));if(!1!==s){h&&c(u.onComponentWillUpdate)&&u.onComponentWillUpdate(m,d);var C=t.type,g=P(32768&t.flags?C.render(d,u,o):C(d,o));Fe(f,g,n,o,r,a,l),t.children=g,h&&c(u.onComponentDidUpdate)&&u.onComponentDidUpdate(m,d)}else t.children=f}(e,t,n,o,r,l,u):16&m?function(e,t){var n=t.children,o=t.dom=e.dom;n!==e.children&&(o.nodeValue=n)}(e,t):512&m?t.dom=e.dom:8192&m?function(e,t,n,o,r,i){var a=e.children,c=t.children,l=e.childFlags,s=t.childFlags,d=null;12&s&&0===c.length&&(s=t.childFlags=2,c=t.children=T());var u=0!=(2&s);if(12&l){var p=a.length;(8&l&&8&s||u||!u&&c.length>p)&&(d=b(a[p-1],!1).nextSibling)}Me(l,s,a,c,n,o,r,d,e,i)}(e,t,n,o,r,u):function(e,t,n,o){var r=e.ref,i=t.ref,c=t.children;if(Me(e.childFlags,t.childFlags,e.children,c,r,n,!1,null,e,o),t.dom=e.dom,r!==i&&!a(c)){var l=c.dom;C(r,l),h(i,l)}}(e,t,o,u)}function Me(e,t,n,o,r,i,a,c,l,s){switch(e){case 2:switch(t){case 2:Fe(n,o,r,i,a,c,s);break;case 1:be(n,r);break;case 16:Ve(n),w(r,o);break;default:!function(e,t,n,o,r,i){Ve(e),Ie(t,n,o,r,b(e,!0),i),V(e,n)}(n,o,r,i,a,s)}break;case 1:switch(t){case 2:Le(o,r,i,a,c,s);break;case 1:break;case 16:w(r,o);break;default:Ie(o,r,i,a,c,s)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:w(n,t))}(n,o,r);break;case 2:xe(r),Le(o,r,i,a,c,s);break;case 1:xe(r);break;default:xe(r),Ie(o,r,i,a,c,s)}break;default:switch(t){case 16:ve(n),w(r,o);break;case 2:ye(r,l,n),Le(o,r,i,a,c,s);break;case 1:ye(r,l,n);break;default:var d=0|n.length,u=0|o.length;0===d?u>0&&Ie(o,r,i,a,c,s):0===u?ye(r,l,n):8===t&&8===e?function(e,t,n,o,r,i,a,c,l,s){var d,u,p=i-1,m=a-1,h=0,f=e[h],C=t[h];e:{for(;f.key===C.key;){if(16384&C.flags&&(t[h]=C=D(C)),Fe(f,C,n,o,r,c,s),e[h]=C,++h>p||h>m)break e;f=e[h],C=t[h]}for(f=e[p],C=t[m];f.key===C.key;){if(16384&C.flags&&(t[m]=C=D(C)),Fe(f,C,n,o,r,c,s),e[p]=C,p--,m--,h>p||h>m)break e;f=e[p],C=t[m]}}if(h>p){if(h<=m)for(u=(d=m+1)m)for(;h<=p;)be(e[h++],n);else!function(e,t,n,o,r,i,a,c,l,s,d,u,p){var m,h,f,C=0,g=c,N=c,V=i-c+1,x=a-c+1,y=new Int32Array(x+1),k=V===o,w=!1,_=0,B=0;if(r<4||(V|x)<32)for(C=g;C<=i;++C)if(m=e[C],Bc?w=!0:_=c,16384&h.flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B;break}!k&&c>a&&be(m,l)}else k||be(m,l);else{var S={};for(C=N;C<=a;++C)S[t[C].key]=C;for(C=g;C<=i;++C)if(m=e[C],Bg;)be(e[g++],l);y[c-N]=C+1,_>c?w=!0:_=c,16384&(h=t[c]).flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B}else k||be(m,l);else k||be(m,l)}if(k)ye(l,u,e),Ie(t,l,n,s,d,p);else if(w){var L=function(e){var t=0,n=0,o=0,r=0,i=0,a=0,c=0,l=e.length;l>Oe&&(Oe=l,se=new Int32Array(l),de=new Int32Array(l));for(;n>1]]0&&(de[n]=se[i-1]),se[i]=n)}i=r+1;var s=new Int32Array(i);a=se[i-1];for(;i-- >0;)s[i]=a,a=de[a],se[i]=0;return s}(y);for(c=L.length-1,C=x-1;C>=0;C--)0===y[C]?(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)=0;C--)0===y[C]&&(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)a?a:i,p=0;pa)for(p=u;p=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),v(n),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;v(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:y(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=o}catch(r){Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){"use strict";t.__esModule=!0,t.vecNormalize=t.vecLength=t.vecInverse=t.vecScale=t.vecDivide=t.vecMultiply=t.vecSubtract=t.vecAdd=t.vecCreate=void 0;var o=n(24);t.vecCreate=function(){for(var e=arguments.length,t=new Array(e),n=0;n3?c(a):null,b=String(a.key),V=String(a.char),v=a.location,x=a.keyCode||(a.keyCode=b)&&b.charCodeAt(0)||0,y=a.charCode||(a.charCode=V)&&V.charCodeAt(0)||0,k=a.bubbles,w=a.cancelable,_=a.repeat,B=a.locale,S=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in p)p.initKeyEvent(t,k,w,S,m,f,h,C,x,y);else if(0>>0),t=Element.prototype,n=t.querySelector,o=t.querySelectorAll;function r(t,n,o){t.setAttribute(e,null);var r=n.call(t,String(o).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,o,r){return n+"["+e+"]"+(r||" ")})));return t.removeAttribute(e),r}t.querySelector=function(e){return r(this,n,e)},t.querySelectorAll=function(e){return r(this,o,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,o=!1;function r(t,r,i){o=i,n=!1,e=undefined,t.dispatchEvent(r)}function i(e){this.value=e}function c(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,o?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return r(e,this.__ce__,!0),n},get:function(t){r(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return r(e,this.__ce__,!1),n},set:function(e,t){return r(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},c}();function n(){}function o(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=o.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}n.prototype=(Object.create||Object)(null),o.preventDefault=function(){};var r,i,a=e.CustomEvent,c=e.dispatchEvent,l=e.addEventListener,s=e.removeEventListener,d=0,u=function(){d++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",u,{once:!0}),c(new a("_")),c(new a("_")),s("_",u,{once:!0})}catch(h){}1!==d&&(i=new t,r=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,r,a){if(a&&"boolean"!=typeof a){var c,l,s,d=i.get(this),u=m(a);d||i.set(this,d=new n),t in d||(d[t]={handler:[],wrap:[]}),l=d[t],(c=p.call(l.handler,r))<0?(c=l.handler.push(r)-1,l.wrap[c]=s=new n):s=l.wrap[c],u in s||(s[u]=o(t,r,a),e.call(this,t,s[u],s[u].capture))}else e.call(this,t,r,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,o){if(o&&"boolean"!=typeof o){var r,a,c,l,s=i.get(this);if(s&&t in s&&(c=s[t],-1<(a=p.call(c.handler,n))&&(r=m(o))in(l=c.wrap[a]))){for(r in e.call(this,t,l[r],l[r].capture),delete l[r],l)return;c.handler.splice(a,1),c.wrap.splice(a,1),0===c.handler.length&&delete s[t]}}else e.call(this,t,n,o)}}(t.removeEventListener)}},e.EventTarget?r(EventTarget):(r(e.Text),r(e.Element||e.HTMLElement),r(e.HTMLDocument),r(e.Window||{prototype:e}),r(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict";!function(t,n){var o,r,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l=0,s={};function d(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function u(e){var t=s[e._html5shiv];return t||(t={},l++,e._html5shiv=l,s[l]=t),t}function p(e,t,o){return t||(t=n),r?t.createElement(e):(o||(o=u(t)),!(i=o.cache[e]?o.cache[e].cloneNode():c.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:o.frag.appendChild(i));var i}function m(e){e||(e=n);var t=u(e);return!h.shivCSS||o||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",o.insertBefore(n.lastChild,o.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(h,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",o="hidden"in e,r=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){o=!0,r=!0}}();var h={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:r,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:m,createElement:p,createDocumentFragment:function(e,t){if(e||(e=n),r)return e.createDocumentFragment();for(var o=(t=t||u(e)).frag.cloneNode(),i=0,a=d(),c=a.length;i1?r-1:0),a=1;a1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,i=new Array(r),a=0;a=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var i=(0,r.zipWith)(Math.min).apply(void 0,e),a=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),o!==undefined&&(i[1]=o[0],a[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,i,a,t)}))(e)}(i,C,a,l);if(g.length>0){var N=g[0],b=g[g.length-1];g.push([C[0]+h,b[1]]),g.push([C[0]+h,-h]),g.push([-h,-h]),g.push([-h,N[1]])}var V=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createVNode)(1,"div","Collapsible",[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},u,{children:s}))),2),d&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",d,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:a})],0)},a}(o.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=a||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,i.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(l))))};t.ColorBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(7),i=n(17),a=n(138);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},s.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},s.setSelected=function(e){this.setOpen(!1),this.props.onSelected(e)},s.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},s.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,s=t.over,d=t.noscroll,u=t.nochevron,p=t.width,m=(t.onClick,t.selected),h=t.disabled,f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),C=f.className,g=c(f,["className"]),N=s?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([d?"Dropdown__menu-noscroll":"Dropdown__menu",s&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,h&&"Button--disabled",C])},g,{onClick:function(){h&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",m,0),!!u||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,a.Icon,{name:N?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},s.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,i=this.inputRef.current;i&&!n&&o!==r&&(i.value=c(r))},s.setEditing=function(e){this.setState({editing:e})},s.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,e.disabled),l=e.multiline,s=e.cols,d=void 0===s?32:s,u=e.rows,p=void 0===u?4:u,m=a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"]),h=m.className,f=m.fluid,C=a(m,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Input",f&&"Input--fluid",c&&"Input--disabled",h])},C,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),l?(0,o.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:t,cols:d,rows:p,disabled:c},null,this.inputRef):(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t,disabled:c},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Knob=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.style,v=e.fillValue,x=e.color,y=e.ranges,k=void 0===y?{}:y,w=e.size,_=e.bipolar,B=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=v?v:a,u,d),h=(0,r.scale)(a,u,d),f=x||(0,r.keyOfMatchingRange)(null!=v?v:n,k)||"default",C=270*(h-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+f,_&&"Knob--bipolar",b,(0,c.computeBoxClassName)(S)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",B&&"Knob__popupValue--"+B]),l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),s],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},V)},S)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(50);function i(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var a=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(2),i=n(1),a=n(64),c=n(190),l=n(185);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1},u=function(e){function t(t){var n;n=e.call(this,t)||this;var o=window.innerHeight/2-256;return n.state={offsetX:0,offsetY:o,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},n.handleDragStart=function(e){n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd),d(e)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),o=e.screenX-n.originX,r=e.screenY-n.originY;return t.dragging?(n.offsetX+=o,n.offsetY+=r,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n})),d(e)},n.handleDragEnd=function(e){n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),d(e)},n.handleZoom=function(e,o){n.setState((function(e){var n=Math.min(Math.max(o,1),8),r=n/e.zoom;if(1!==r){e.zoom=n;var i=document.getElementsByClassName("NanoMap__container");if(i.length){var a=(0,l.getBoundingBox)(i[0]),c=a.size[0]/2-e.offsetX,s=a.size[1]/2-e.offsetY;e.offsetX+=c-c*r,e.offsetY+=s-s*r}return t.onZoom&&t.onZoom(e.zoom),e}}))},n}return s(t,e),t.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.dragging,a=t.offsetX,c=t.offsetY,l=t.zoom,s=void 0===l?1:l,d=this.props.children,u=510*s+"px",p={width:u,height:u,"margin-top":c+"px","margin-left":a+"px",overflow:"hidden",position:"relative","background-image":"url("+e.map+"_nanomap_z1.png)","background-size":"cover","background-repeat":"no-repeat",border:"1px solid rgba(0, 0, 0, .3)","text-align":"center",cursor:n?"move":"auto"};return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,o.createComponentVNode)(2,r.Box,{style:p,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,o.createComponentVNode)(2,r.Box,{children:d})}),(0,o.createComponentVNode)(2,h,{zoom:s,onZoom:this.handleZoom})]})},t}(o.Component);t.NanoMap=u;var p,m=function(e){function t(t){var n;n=e.call(this,t)||this;var o=(0,i.useBackend)(n.props.context).act;return n.state={color:n.props.color},n.handleClick=function(e){p!==undefined&&p.setState({color:"blue"}),o("switch_camera",{name:n.props.name}),p=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.setState({color:"green"})},n}return s(t,e),t.prototype.render=function(){var e=2*this.props.x*this.props.zoom-this.props.zoom-3,t=2*this.props.y*this.props.zoom-this.props.zoom-3;return(0,o.createComponentVNode)(2,r.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:t+"px",left:e+"px",children:(0,o.createComponentVNode)(2,r.Tooltip,{content:this.props.tooltip})},this.props.key)},t}(o.Component);u.NanoButton=m,u.Marker=function(e){var t=e.x,n=e.y,i=e.zoom,a=void 0===i?1:i,c=e.icon,l=e.tooltip,s=e.color,d=e.onClick,u=e.size,p=void 0===u?6:u,m=2*t*a-a-3,h=2*n*a-a-3;return(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:h+"px",left:m+"px",onClick:d,children:[(0,o.createComponentVNode)(2,r.Icon,{name:c,color:s,fontSize:p+"px"}),(0,o.createComponentVNode)(2,r.Tooltip,{content:l})]}),2)};var h=function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(e){return e+"x"},value:e.zoom,onDrag:function(t,n){return e.onZoom(t,n)}})})})})};u.Zoomer=h},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(7),i=n(17),a=n(186);t.Modal=function(e){var t,n=e.className,c=e.children,l=e.onEnter,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","children","onEnter"]);return l&&(t=function(e){13===e.keyCode&&l(e)}),(0,o.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",n,(0,i.computeBoxClassName)(s)]),c,0,Object.assign({},(0,i.computeBoxProps)(s))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),l=e.danger,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},s)))};t.NoticeBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBarCountdown=t.ProgressBar=void 0;var o=n(0),r=n(15),i=n(7),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.value,l=e.minValue,s=void 0===l?0:l,d=e.maxValue,u=void 0===d?1:d,p=e.color,m=e.ranges,h=void 0===m?{}:m,f=e.children,C=e.fractionDigits,g=void 0===C?0:C,N=c(e,["className","value","minValue","maxValue","color","ranges","children","fractionDigits"]),b=(0,r.scale)(n,s,u),V=f!==undefined,v=p||(0,r.keyOfMatchingRange)(n,h)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+v,t,(0,a.computeBoxClassName)(N)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(b)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",V?f:(0,r.toFixed)(100*b,g)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(N))))};t.ProgressBar=l,l.defaultHooks=i.pureComponentHooks;var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:Math.max(100*t.current,0)},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=Math.max(this.state.value+this.props.rate,0);e<=0&&clearInterval(this.timer),this.setState((function(t){return{value:e}}))},i.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),this.props.rate)},i.componentWillUnmount=function(){clearInterval(this.timer)},i.render=function(){var e=this.props,t=e.start,n=(e.current,e.end),r=c(e,["start","current","end"]),i=(this.state.value/100-t)/(n-t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({value:i},r)))},r}(o.Component);t.ProgressBarCountdown=s,s.defaultProps={rate:1e3},l.Countdown=s},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,l=e.buttons,s=e.content,d=e.stretchContents,u=e.noTopPadding,p=e.children,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","stretchContents","noTopPadding","children"]),h=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),f=!(0,r.isFalsy)(s)||!(0,r.isFalsy)(p);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,e.flexGrow&&"Section--flex",t])},m,{children:[h&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),f&&(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["Section__content",!!d&&"Section__content--stretchContents",!!u&&"Section__content--noTopPadding"]),children:[s,p]})]})))};t.Section=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(0),r=n(7),i=n(50);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.vertical,c=e.fill,l=a(e,["className","vertical","fill"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex,Object.assign({className:(0,r.classes)(["Stack",c&&"Stack--fill",n?"Stack--vertical":"Stack--horizontal",t]),direction:n?"column":"row"},l)))};t.Stack=c;c.Item=function(e){var t=e.className,n=a(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item",t])},n)))};c.Divider=function(e){var t=e.className,n=e.hidden,c=a(e,["className","hidden"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item","Stack__divider",n&&"Stack__divider--hidden",t])},c)))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(7),i=n(17),a=n(137);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.vertical,a=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},l)))}},function(e,t,n){"use strict";t.__esModule=!0,t.TimeDisplay=void 0;t.TimeDisplay=function(e){var t=e.totalSeconds;return function(e){return(!e||e<0)&&(e=0),[Math.floor(e/60).toString(10),(Math.floor(e)%60).toString(10)].map((function(e){return e.length<2?"0"+e:e})).join(":")}(void 0===t?0:t)}},function(e,t,n){var o={"./AICard.js":460,"./AIFixer.js":461,"./APC.js":462,"./ATM.js":463,"./AccountsUplinkTerminal.js":464,"./AgentCard.js":465,"./AiAirlock.js":466,"./AirAlarm.js":467,"./AirlockAccessController.js":468,"./AirlockElectronics.js":469,"./AppearanceChanger.js":470,"./AtmosAlertConsole.js":471,"./AtmosControl.js":472,"./AtmosFilter.js":473,"./AtmosMixer.js":474,"./AtmosPump.js":475,"./Autolathe.js":476,"./Biogenerator.js":477,"./BlueSpaceArtilleryControl.js":478,"./BluespaceRiftScanner.js":479,"./BluespaceRiftServer.js":480,"./BluespaceTap.js":481,"./BodyScanner.js":482,"./BorgPanel.js":483,"./BotClean.js":484,"./BotSecurity.js":485,"./BrigCells.js":486,"./BrigTimer.js":487,"./CameraConsole.js":488,"./Canister.js":489,"./CardComputer.js":490,"./CargoConsole.js":491,"./Changelog.js":492,"./ChemDispenser.js":521,"./ChemHeater.js":525,"./ChemMaster.js":526,"./CloningConsole.js":527,"./CommunicationsComputer.js":528,"./Contractor.js":529,"./ConveyorSwitch.js":530,"./CrewMonitor.js":531,"./Cryo.js":532,"./CryopodConsole.js":534,"./DNAModifier.js":535,"./DestinationTagger.js":536,"./DisposalBin.js":537,"./DnaVault.js":538,"./EFTPOS.js":539,"./ERTManager.js":540,"./Electropack.js":541,"./EvolutionMenu.js":542,"./ExosuitFabricator.js":543,"./ExternalAirlockController.js":544,"./FaxMachine.js":545,"./FloorPainter.js":546,"./GPS.js":547,"./GasAnalyzer.js":548,"./GasFreezer.js":550,"./GenericCrewManifest.js":551,"./GhostHudPanel.js":552,"./HandheldChemDispenser.js":553,"./Instrument.js":554,"./ItemPixelShift.js":555,"./KeycardAuth.js":556,"./LaborClaimConsole.js":557,"./LawManager.js":558,"./MechBayConsole.js":559,"./MechaControlConsole.js":560,"./MedicalRecords.js":561,"./MiningVendor.js":562,"./Multitool.js":563,"./Newscaster.js":564,"./NinjaBloodScan.js":565,"./NinjaMindScan.js":566,"./NuclearBomb.js":567,"./OperatingComputer.js":568,"./Orbit.js":569,"./OreRedemption.js":570,"./PAI.js":571,"./PDA.js":588,"./PDAPainter.js":604,"./Pacman.js":605,"./PersonalCrafting.js":606,"./Photocopier.js":607,"./PodTracking.js":608,"./PoolController.js":609,"./PortablePump.js":610,"./PortableScrubber.js":611,"./PortableTurret.js":612,"./PowerMonitor.js":198,"./RCD.js":613,"./RPD.js":614,"./Radio.js":615,"./RequestConsole.js":616,"./RequestManager.js":617,"./RndConsole.js":67,"./RobotSelfDiagnosis.js":632,"./RoboticsControlConsole.js":633,"./Safe.js":634,"./SatelliteControl.js":635,"./SecureStorage.js":636,"./SecurityRecords.js":637,"./SeedExtractor.js":638,"./ShuttleConsole.js":639,"./ShuttleManipulator.js":640,"./Sleeper.js":641,"./SlotMachine.js":642,"./Smartfridge.js":643,"./Smes.js":644,"./SolarControl.js":645,"./SpawnersMenu.js":646,"./SpiderOS.js":647,"./StationAlertConsole.js":648,"./SuitStorage.js":649,"./SupermatterMonitor.js":650,"./SyndicateComputerSimple.js":651,"./SyndieCargoConsole.js":652,"./TTSSeedsExplorer.js":653,"./TachyonArray.js":654,"./Tank.js":655,"./TankDispenser.js":656,"./TcommsCore.js":657,"./TcommsRelay.js":658,"./Teleporter.js":659,"./ThiefKit.js":660,"./TransferValve.js":661,"./Uplink.js":662,"./VampireSpecMenu.js":663,"./VampireTrophiesStatus.js":664,"./Vending.js":665,"./VolumeMixer.js":666,"./VotePanel.js":667,"./Wires.js":668,"./Workshop.js":669};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=459},function(e,t,n){"use strict";t.__esModule=!0,t.AICard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AICard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(0===l.has_ai)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var s=null;return s=l.integrity>=75?"green":l.integrity>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,l.name,0)}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:s,value:l.integrity/100})})})}),(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===l.flushing?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wipe",children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||0===l.integrity,confirmColor:"red",content:"Wipe AI",onClick:function(){return c("wipe")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AIFixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AIFixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(null===l.occupant)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No artificial intelligence detected.",16)})})})});var s=null;s=2!==l.stat&&null!==l.stat;var d=null;d=l.integrity>=75?"green":l.integrity>=25?"yellow":"red";var u=null;return u=l.integrity>=100,(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:(0,o.createVNode)(1,"h3",null,l.occupant,0)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:d,value:l.integrity/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:s?"green":"red",children:s?"Functional":"Non-Functional"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Start Repairs",children:(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:u||l.active,content:u?"Already Repaired":"Repair",onClick:function(){return c("fix")}})})]}),(0,o.createComponentVNode)(2,i.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.APC=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.APC=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d)})})};var l={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.locked&&!d.siliconUser,p=(d.normallyLocked,l[d.externalPower]||l[0]),m=l[d.chargingStatus]||l[0],h=d.powerChannels||[],f=s[d.malfStatus]||s[0],C=d.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main Breaker",color:p.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){return a("breaker")}}),children:["[ ",p.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return a("channel",t.auto)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return a("channel",t.on)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return a("channel",t.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,i.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){return a(f.action)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",selected:d.coverLocked,disabled:u,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",selected:d.nightshiftLights,onClick:function(){return a("toggle_nightshift")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Light Fallback",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.emergencyLights?"Engaged":"Disengaged",selected:d.emergencyLights,disabled:u,onClick:function(){return a("emergency_lighting")}})})]})})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ATM=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ATM=function(e,t){var n,m=(0,r.useBackend)(t),h=(m.act,m.data),f=h.view_screen,C=h.authenticated_account,g=h.ticks_left_locked_down,N=h.linked_db;if(g>0)n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(N)if(C)switch(f){case 1:n=(0,o.createComponentVNode)(2,l);break;case 2:n=(0,o.createComponentVNode)(2,s);break;case 3:n=(0,o.createComponentVNode)(2,p);break;default:n=(0,o.createComponentVNode)(2,d)}else n=(0,o.createComponentVNode)(2,u);else n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Section,{children:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.machine_id,s=c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,o.createComponentVNode)(2,i.Box,{children:"For all your monetary need!"}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:"info-circle"})," This terminal is ",(0,o.createVNode)(1,"i",null,l,0),", report this code when contacting Nanotrasen IT Support."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card",children:(0,o.createComponentVNode)(2,i.Button,{content:s,icon:"eject",onClick:function(){return a("insert_card")}})})})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.security_level;return(0,o.createComponentVNode)(2,i.Section,{title:"Select a new security level for this account",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Zero",icon:"unlock",selected:0===c,onClick:function(){return a("change_security_level",{new_security_level:0})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card and ask for a pin, but not verify the pin is correct."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"One",icon:"unlock",selected:1===c,onClick:function(){return a("change_security_level",{new_security_level:1})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Two",selected:2===c,icon:"unlock",onClick:function(){return a("change_security_level",{new_security_level:2})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"In addition to account number and pin, a card is required to access this account and process transactions."})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"targetAccNumber",0),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"fundsAmount",0),p=u[0],h=u[1],f=(0,r.useLocalState)(t,"purpose",0),C=f[0],g=f[1],N=c.money;return(0,o.createComponentVNode)(2,i.Section,{title:"Transfer Fund",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target account number",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Funds to transfer",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transaction Purpose",children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(e,t){return g(t)}})})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){return a("transfer",{target_acc_number:s,funds_amount:p,purpose:C})}}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"fundsAmount",0),s=l[0],d=l[1],u=c.owner_name,p=c.money;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Welcome, "+u,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){return a("logout")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",p]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Withdrawal Amount",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Withdraw Fund",icon:"sign-out-alt",onClick:function(){return a("withdrawal",{funds_amount:s})}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change account security level",icon:"lock",onClick:function(){return a("view_screen",{view_screen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){return a("view_screen",{view_screen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View transaction log",icon:"list",onClick:function(){return a("view_screen",{view_screen:3})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print balance statement",icon:"print",onClick:function(){return a("balance_statement")}})})]})],4)},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"accountID",null),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"accountPin",null),p=u[0],m=u[1];c.machine_id,c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Insert card or enter ID and pin to login",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account ID",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pin",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){return a("attempt_auth",{account_num:s,account_pin:p})}})})]})})},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.transaction_log);return(0,o.createComponentVNode)(2,i.Section,{title:"Transactions",children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Terminal"})]}),a.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{p:"1rem",children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.source_terminal})]},e)}))]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){return a("view_screen",{view_screen:0})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AccountsUplinkTerminal=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(140),d=n(141);t.AccountsUplinkTerminal=function(e,t){var n,r=(0,i.useBackend)(t),a=(r.act,r.data),c=a.loginState,p=a.currentPage;return c.logged_in?(1===p?n=(0,o.createComponentVNode)(2,u):2===p?n=(0,o.createComponentVNode)(2,h):3===p&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.LoginInfo),n]})})):(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var u=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.accounts,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","owner_name")),h=u[0],f=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),C=f[0];f[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Flex.Item,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",children:(0,o.createComponentVNode)(2,a.Table,{className:"AccountsUplinkTerminal__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,p,{id:"owner_name",children:"Account Holder"}),(0,o.createComponentVNode)(2,p,{id:"account_number",children:"Account Number"}),(0,o.createComponentVNode)(2,p,{id:"suspended",children:"Account Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.owner_name+"|"+e.account_number+"|"+e.suspended}))).sort((function(e,t){var n=C?1:-1;return e[h].localeCompare(t[h])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{onClick:function(){return c("view_account_detail",{index:e.account_index})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.owner_name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["#",e.account_number]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.suspended})]},e.id)}))]})})})]})},p=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.is_printing,s=(0,i.useLocalState)(t,"searchText",""),d=(s[0],s[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Account",icon:"plus",onClick:function(){return r("create_new_account")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account List",disabled:l,ml:"0.25rem",onClick:function(){return r("print_records")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(e,t){return d(t)}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.is_printing,s=c.account_number,d=c.owner_name,u=c.money,p=c.suspended,m=c.transactions;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"#"+s+" / "+d,mt:1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account Details",disabled:l,onClick:function(){return r("print_account_details")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Balance",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Status",color:p?"red":"green",children:[p?"Suspended":"Active",(0,o.createComponentVNode)(2,a.Button,{ml:1,content:p?"Unsuspend":"Suspend",icon:p?"unlock":"lock",onClick:function(){return r("toggle_suspension")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Transactions",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Terminal"})]}),m.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source_terminal})]},e)}))]})})],4)},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,(0,i.useLocalState)(t,"accName","")),l=c[0],s=c[1],d=(0,i.useLocalState)(t,"accDeposit",""),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Create Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name Here",onChange:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"0",onChange:function(e,t){return p(t)}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){return r("finalise_create_account",{holder_name:l,starting_funds:u})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AgentCardSLSlots=t.AgentCardAppearances=t.AgentCardInfo=t.AgentCard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AgentCard=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return(0,o.createComponentVNode)(2,c)}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.registered_name,s=c.sex,d=c.age,u=c.assignment,p=c.associated_account_number,m=c.blood_type,h=c.dna_hash,f=c.fingerprint_hash,C=c.photo,g=c.ai_tracking;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Card Info",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"[UNSET]",onClick:function(){return a("change_name")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sex",children:(0,o.createComponentVNode)(2,i.Button,{iconRight:!1,content:s||"[UNSET]",onClick:function(){return a("change_sex")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Age",children:(0,o.createComponentVNode)(2,i.Button,{content:d||"[UNSET]",onClick:function(){return a("change_age")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,i.Button,{content:u||"[UNSET]",onClick:function(){return a("change_occupation")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fingerprints",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"[UNSET]",onClick:function(){return a("change_fingerprints")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"[UNSET]",onClick:function(){return a("change_blood_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"DNA Hash",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"[UNSET]",onClick:function(){return a("change_dna_hash")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Money Account",children:(0,o.createComponentVNode)(2,i.Button,{content:p||"[UNSET]",onClick:function(){return a("change_money_account")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Photo",children:(0,o.createComponentVNode)(2,i.Button,{content:C?"Update":"[UNSET]",onClick:function(){return a("change_photo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Card Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card Info",children:(0,o.createComponentVNode)(2,i.Button,{content:"Delete Card Info",onClick:function(){return a("delete_info")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,i.Button,{content:"Reset Access",onClick:function(){return a("clear_access")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"AI Tracking",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Untrackable":"Trackable",onClick:function(){return a("change_ai_tracking")}})})]})})],4)};t.AgentCardInfo=c;var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.appearances;return(0,o.createComponentVNode)(2,i.Section,{title:"Card Appearance",children:c.map((function(e){return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+e.image,style:{"vertical-align":"middle",width:"64px",margin:"0px","margin-left":"0px"},onclick:function(){return a("change_appearance_new",{new_appearance:e.name})}},e.name)}))})};t.AgentCardAppearances=l;var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.saved_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.registered_name?e.registered_name+", "+e.assignment:"Slot "+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Clear",onClick:function(){return a("clear_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Save",onClick:function(){return a("save_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",disabled:!e.registered_name,onClick:function(){return a("load_slot",{slot:e.id})}})],4)},e.id)}))})})};t.AgentCardSLSlots=s},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}};t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=c[s.power.main]||c[0],u=c[s.power.backup]||c[0],p=c[s.shock]||c[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main",color:d.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[s.power.main?"Online":"Offline"," ",s.wires.main_power?s.power.main_timeleft>0&&"["+s.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[s.power.backup?"Online":"Offline"," ",s.wires.backup_power?s.power.backup_timeleft>0&&"["+s.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:!(s.wires.shock&&2!==s.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock||0===s.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===s.shock?"Safe":"Electrified"," ",(s.wires.shock?s.shock_timeleft>0&&"["+s.shock_timeleft+"s]":"[Wires have been cut!]")||-1===s.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.id_scanner?"power-off":"times",content:s.id_scanner?"Enabled":"Disabled",selected:s.id_scanner,disabled:!s.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!s.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.emergency?"power-off":"times",content:s.emergency?"Enabled":"Disabled",selected:s.emergency,onClick:function(){return l("emergency-toggle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.locked?"lock":"unlock",content:s.locked?"Lowered":"Raised",selected:s.locked,disabled:!s.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!s.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.lights?"power-off":"times",content:s.lights?"Enabled":"Disabled",selected:s.lights,disabled:!s.wires.lights,onClick:function(){return l("light-toggle")}}),children:!s.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.safe?"power-off":"times",content:s.safe?"Enabled":"Disabled",selected:s.safe,disabled:!s.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!s.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.speed?"power-off":"times",content:s.speed?"Enabled":"Disabled",selected:s.speed,disabled:!s.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!s.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.opened?"sign-out-alt":"sign-in-alt",content:s.opened?"Open":"Closed",selected:s.opened,disabled:s.locked||s.welded,onClick:function(){return l("open-close")}}),children:!(!s.locked&&!s.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),s.locked?"bolted":"",s.locked&&s.welded?" and ":"",s.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),!i&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u)],4)]})})};var l=function(e){return 0===e?"green":1===e?"orange":"red"},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,s=a.data,d=s.air,u=s.mode,p=s.atmos_alarm,m=s.locked,h=s.alarmActivated,f=s.rcon,C=s.target_temp;return n=0===d.danger.overall?0===p?"Optimal":"Caution: Atmos alert in area":1===d.danger.overall?"Caution":"DANGER: Internals Required",(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:d?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.pressure),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.pressure})," kPa",!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:3===u?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:3===u,icon:"exclamation-triangle",onClick:function(){return c("mode",{mode:3===u?1:3})}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.oxygen/100,fractionDigits:"1",color:l(d.danger.oxygen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.nitrogen/100,fractionDigits:"1",color:l(d.danger.nitrogen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.co2/100,fractionDigits:"1",color:l(d.danger.co2)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxins",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.plasma/100,fractionDigits:"1",color:l(d.danger.plasma)})}),d.contents.other>.1&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.other/100,fractionDigits:"1",color:l(d.danger.other)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.temperature),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature})," K / ",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature_c})," C\xa0",(0,o.createComponentVNode)(2,i.Button,{icon:"thermometer-full",content:C+" C",onClick:function(){return c("temperature")}}),(0,o.createComponentVNode)(2,i.Button,{content:d.thermostat_state?"On":"Off",selected:d.thermostat_state,icon:"power-off",onClick:function(){return c("thermostat_state")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local Status",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.overall),children:[n,!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:h?"Reset Alarm":"Activate Alarm",selected:h,onClick:function(){return c(h?"atmos_reset":"atmos_alarm")}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Control Settings",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Off",selected:1===f,onClick:function(){return c("set_rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Auto",selected:2===f,onClick:function(){return c("set_rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,i.Button,{content:"On",selected:3===f,onClick:function(){return c("set_rcon",{rcon:3})}})]})]}):(0,o.createComponentVNode)(2,i.Box,{children:"Unable to acquire air sample!"})})},d=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),a=n[0],c=n[1];return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===a,onClick:function(){return c(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===a,onClick:function(){return c(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===a,onClick:function(){return c(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog"})," Mode"]},"Mode"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===a,onClick:function(){return c(3)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},u=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),i=n[0];n[1];switch(i){case 0:return(0,o.createComponentVNode)(2,p);case 1:return(0,o.createComponentVNode)(2,m);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.vents.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"release"===e.direction?"Blowing":"Siphoning",icon:"release"===e.direction?"sign-out-alt":"sign-in-alt",onClick:function(){return a("command",{cmd:"direction",val:"release"===e.direction?0:1,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Checks",children:[(0,o.createComponentVNode)(2,i.Button,{content:"External",selected:1===e.checks,onClick:function(){return a("command",{cmd:"checks",val:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Internal",selected:2===e.checks,onClick:function(){return a("command",{cmd:"checks",val:2,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Pressure Target",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:e.external})," kPa\xa0",(0,o.createComponentVNode)(2,i.Button,{content:"Set",icon:"cog",onClick:function(){return a("command",{cmd:"set_external_pressure",id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset",icon:"redo-alt",onClick:function(){return a("command",{cmd:"set_external_pressure",val:101.325,id_tag:e.id_tag})}})]})]})},e.name)}))},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.scrubbers.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:0===e.scrubbing?"Siphoning":"Scrubbing",icon:0===e.scrubbing?"sign-in-alt":"filter",onClick:function(){return a("command",{cmd:"scrubbing",val:0===e.scrubbing?1:0,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,i.Button,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return a("command",{cmd:"widenet",val:0===e.widenet?1:0,id_tag:e.id_tag})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filtering",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return a("command",{cmd:"co2_scrub",val:0===e.filter_co2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return a("command",{cmd:"tox_scrub",val:0===e.filter_toxins?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return a("command",{cmd:"n2o_scrub",val:0===e.filter_n2o?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return a("command",{cmd:"o2_scrub",val:0===e.filter_o2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return a("command",{cmd:"n2_scrub",val:0===e.filter_n2?1:0,id_tag:e.id_tag})}})]})]})},e.name)}))},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.modes,s=c.presets,d=c.emagged,u=c.mode,p=c.preset;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"System Mode",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(!e.emagonly||e.emagonly&&!!d)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===u,onClick:function(){return a("mode",{mode:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"System Presets",children:[(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,o.createComponentVNode)(2,i.Table,{mt:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===p,onClick:function(){return a("preset",{preset:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})]})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.thresholds;return(0,o.createComponentVNode)(2,i.Section,{title:"Alarm Thresholds",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),e.settings.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:-1===e.selected?"Off":e.selected,onClick:function(){return a("command",{cmd:"set_threshold",env:e.env,"var":e.val})}})},e.val)}))]},e.name)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockAccessController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AirlockAccessController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.exterior_status,p=d.interior_status,m=d.processing;return n="open"===d.exterior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:m,onClick:function(){return s("force_ext")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext_door")}}),c="open"===d.interior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Interior Door",icon:"exclamation-triangle",disabled:m,color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int_door")}}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Door Status",children:"closed"===u.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Door Status",children:"closed"===p.state?"Locked":"Open"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:c})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(99);t.AirlockElectronics=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,s)]})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.unrestricted_dir;return(0,o.createComponentVNode)(2,i.Section,{title:"Access Control",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:"north"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"North"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:"south"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"South"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:"east"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"East"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:"west"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"West"})}})})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.selected_accesses,d=l.one_access,u=l.regions;return(0,o.createComponentVNode)(2,c.AccessList,{usedByRcd:1,rcdButtons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:d,content:"One",onClick:function(){return a("set_one_access",{access:"one"})}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,content:"All",onClick:function(){return a("set_one_access",{access:"all"})}})],4),accesses:u,selectedList:s,accessMod:function(e){return a("set",{access:e})},grantAll:function(){return a("grant_all")},denyAll:function(){return a("clear_all")},grantDep:function(e){return a("grant_region",{region:e})},denyDep:function(e){return a("deny_region",{region:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AppearanceChanger=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AppearanceChanger=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.change_race,u=s.species,p=s.specimen,m=s.change_gender,h=s.gender,f=s.has_gender,C=s.change_eye_color,g=s.change_skin_tone,N=s.change_skin_color,b=s.change_head_accessory_color,V=s.change_hair_color,v=s.change_secondary_hair_color,x=s.change_facial_hair_color,y=s.change_secondary_facial_hair_color,k=s.change_head_marking_color,w=s.change_body_marking_color,_=s.change_tail_marking_color,B=s.change_head_accessory,S=s.head_accessory_styles,L=s.head_accessory_style,A=s.change_hair,E=s.hair_styles,I=s.hair_style,D=s.change_hair_gradient,T=s.change_facial_hair,F=s.facial_hair_styles,M=s.facial_hair_style,P=s.change_head_markings,O=s.head_marking_styles,R=s.head_marking_style,j=s.change_body_markings,U=s.body_marking_styles,z=s.body_marking_style,W=s.change_tail_markings,H=s.tail_marking_styles,K=s.tail_marking_style,Y=s.change_body_accessory,G=s.body_accessory_styles,q=s.body_accessory_style,X=s.change_alt_head,J=s.alt_head_styles,$=s.alt_head_style,Z=!1;return(C||g||N||b||V||v||x||y||k||w||_)&&(Z=!0),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:e.specimen===p,onClick:function(){return l("race",{race:e.specimen})}},e.specimen)}))}),!!m&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Male",selected:"male"===h,onClick:function(){return l("gender",{gender:"male"})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Female",selected:"female"===h,onClick:function(){return l("gender",{gender:"female"})}}),!f&&(0,o.createComponentVNode)(2,i.Button,{content:"Genderless",selected:"plural"===h,onClick:function(){return l("gender",{gender:"plural"})}})]}),!!Z&&(0,o.createComponentVNode)(2,c),!!B&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head accessory",children:S.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headaccessorystyle,selected:e.headaccessorystyle===L,onClick:function(){return l("head_accessory",{head_accessory:e.headaccessorystyle})}},e.headaccessorystyle)}))}),!!A&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair",children:E.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.hairstyle,selected:e.hairstyle===I,onClick:function(){return l("hair",{hair:e.hairstyle})}},e.hairstyle)}))}),!!D&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Gradient",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Change Style",onClick:function(){return l("hair_gradient")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Offset",onClick:function(){return l("hair_gradient_offset")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Color",onClick:function(){return l("hair_gradient_colour")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Alpha",onClick:function(){return l("hair_gradient_alpha")}})]}),!!T&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial hair",children:F.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.facialhairstyle,selected:e.facialhairstyle===M,onClick:function(){return l("facial_hair",{facial_hair:e.facialhairstyle})}},e.facialhairstyle)}))}),!!P&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head markings",children:O.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headmarkingstyle,selected:e.headmarkingstyle===R,onClick:function(){return l("head_marking",{head_marking:e.headmarkingstyle})}},e.headmarkingstyle)}))}),!!j&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body markings",children:U.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodymarkingstyle,selected:e.bodymarkingstyle===z,onClick:function(){return l("body_marking",{body_marking:e.bodymarkingstyle})}},e.bodymarkingstyle)}))}),!!W&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail markings",children:H.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.tailmarkingstyle,selected:e.tailmarkingstyle===K,onClick:function(){return l("tail_marking",{tail_marking:e.tailmarkingstyle})}},e.tailmarkingstyle)}))}),!!Y&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body accessory",children:G.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodyaccessorystyle,selected:e.bodyaccessorystyle===q,onClick:function(){return l("body_accessory",{body_accessory:e.bodyaccessorystyle})}},e.bodyaccessorystyle)}))}),!!X&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alternate head",children:J.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.altheadstyle,selected:e.altheadstyle===$,onClick:function(){return l("alt_head",{alt_head:e.altheadstyle})}},e.altheadstyle)}))})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Colors",children:[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}].map((function(e){return!!c[e.key]&&(0,o.createComponentVNode)(2,i.Button,{content:e.text,onClick:function(){return a(e.action)}})}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.priority||[],d=l.minor||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===s.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})),0===d.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)}))],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(80),c=n(3);t.AtmosControl=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data,(0,r.useLocalState)(t,"tabIndex",0)),d=a[0],u=a[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.alarms;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Access"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,a.TableCell,{children:e.name}),(0,o.createComponentVNode)(2,a.TableCell,{children:(t=e.danger,0===t?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Good"}):1===t?(0,o.createComponentVNode)(2,i.Box,{color:"orange",bold:!0,children:"Warning"}):2===t?(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"DANGER"}):void 0)}),(0,o.createComponentVNode)(2,a.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Access",onClick:function(){return c("open_alarm",{aref:e.ref})}})})]},e.name);var t}))]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=c.alarms,p=c.stationLevel;return(0,o.createComponentVNode)(2,i.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,i.NanoMap,{onZoom:function(e){return d(e)},children:u.filter((function(e){return e.z===p})).map((function(e){return(0,o.createComponentVNode)(2,i.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:"circle",tooltip:e.name,color:(t=e.danger,0===t?"green":1===t?"orange":2===t?"red":void 0),onClick:function(){return a("open_alarm",{aref:e.ref})}},e.ref);var t}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.max_pressure,p=l.filter_type,m=l.filter_type_list;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_pressure")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filter",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gas_type===p,content:e.label,onClick:function(){return c("set_filter",{filter:e.gas_type})}},e.label)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.on,u=s.pressure,p=s.max_pressure,m=s.node1_concentration,h=s.node2_concentration;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===u,width:2.2,onClick:function(){return l("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:p,value:u,onDrag:function(e,t){return l("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:u===p,width:2.2,onClick:function(){return l("max_pressure")}})]}),(0,o.createComponentVNode)(2,c,{node_name:"Node 1",node_ref:m}),(0,o.createComponentVNode)(2,c,{node_name:"Node 2",node_ref:h})]})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.node_name),l=e.node_ref;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:c,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:0===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l-10)/100})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(e,t){return a("set_node",{node_name:c,concentration:t/100})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:100===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l+10)/100})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.rate,u=l.max_rate,p=l.gas_unit,m=l.step;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_rate")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:p,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_rate",{rate:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_rate")}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Autolathe=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=n(18),d=function(e,t,n,o){return null===e.requirements||!(e.requirements.metal*o>t)&&!(e.requirements.glass*o>n)};t.Autolathe=function(e,t){var n=(0,a.useBackend)(t),u=n.act,p=n.data,m=p.total_amount,h=(p.max_amount,p.metal_amount),f=p.glass_amount,C=p.busyname,g=(p.busyamt,p.showhacked,p.buildQueue),N=p.buildQueueLen,b=p.recipes,V=p.categories,v=(0,a.useSharedState)(t,"category",0),x=v[0],y=v[1];0===x&&(x="Tools");var k=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),_=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=(0,a.useSharedState)(t,"search_text",""),S=B[0],L=B[1],A=(0,s.createSearch)(S,(function(e){return e.name})),E="";N>0&&(E=g.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:g[t][0],onClick:function(){return u("remove_from_queue",{remove_from_queue:g.indexOf(e)+1})}},e)},t)})));var I=(0,r.flow)([(0,i.filter)((function(e){return(e.category.indexOf(x)>-1||S)&&(p.showhacked||!e.hacked)})),S&&(0,i.filter)(A),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(b),D="Build";S?D="Results for: '"+S+"':":x&&(D="Build ("+x+")");return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Section,{title:D,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:V,selected:x,onSelected:function(e){return y(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return L(t)},mb:1}),I.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&1===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,1),onClick:function(){return u("make",{make:e.uid,multiplier:1})},children:(0,s.toTitleCase)(e.name)}),e.max_multiplier>=10&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&10===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,10),onClick:function(){return u("make",{make:e.uid,multiplier:10})},children:"10x"}),e.max_multiplier>=25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&25===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,25),onClick:function(){return u("make",{make:e.uid,multiplier:25})},children:"25x"}),e.max_multiplier>25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&p.busyamt===e.max_multiplier,disabled:!d(e,p.metal_amount,p.glass_amount,e.max_multiplier),onClick:function(){return u("make",{make:e.uid,multiplier:e.max_multiplier})},children:[e.max_multiplier,"x"]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,s.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,c.Box,{children:"No resources required."})})]},e.ref)}))]}),2,{style:{float:"left",width:"68%"}}),(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:k}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Glass",children:w}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total",children:_}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Storage",children:[p.fill_percent,"% Full"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Building",children:(0,o.createComponentVNode)(2,c.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Build Queue",children:[E,(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Clear All",disabled:!p.buildQueueLen,onClick:function(){return u("clear_queue")}}),2,{align:"right"})]})],4,{style:{float:"right",width:"30%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Biogenerator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Biogenerator=function(){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d)]})})};var c=function(e,t){if((0,r.useBackend)(t).data.processing)return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{mb:"30px",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,o.createVNode)(1,"br"),"The biogenerator is processing..."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.biomass,l=a.container,s=a.container_curr_reagents,d=a.container_max_reagents;return(0,o.createComponentVNode)(2,i.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"5px",children:c}),(0,o.createComponentVNode)(2,i.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex,{height:"21px",mt:"8px",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"10px",color:"silver",children:"Container:"}),l?(0,o.createComponentVNode)(2,i.ProgressBar,{value:s,maxValue:d,children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:s+" / "+d+" units"})}):(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"None"})})]})]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_plants,s=c.container;return(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-right",content:"Activate",onClick:function(){return a("activate")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!s,tooltip:s?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){return a("detach_container")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-left",content:"Eject Plants",onClick:function(){return a("eject_plants")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.biomass,s=c.product_list,d=c.container,u=(0,r.useSharedState)(t,"vendAmount",1),p=u[0],m=u[1],h=Object.entries(s).map((function(e,t){var n=Object.entries(e[1]).map((function(e){return e[1]}));return(0,o.createComponentVNode)(2,i.Collapsible,{title:e[0],open:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{py:"2px",className:"candystripe",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",ml:"2px",children:e.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"20%",children:[e.cost*p,(0,o.createComponentVNode)(2,i.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"40%",children:e.needs_container&&!d?(0,o.createComponentVNode)(2,i.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438",tooltipPosition:"top-left"}):(0,o.createComponentVNode)(2,i.Button,{content:"Vend",disabled:l0?Math.floor(c/u):0,f=d?"@?%%!\u2116@"+u:u,C=c>=u,g=p-p%5+(p%5>0?5:0);return(0,o.createComponentVNode)(2,i.Section,{title:"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0420\u0430\u0437\u043b\u043e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:n}),(0,o.createComponentVNode)(2,i.ProgressBar,{color:0===m?"bad":m<100?"average":"good",value:a,maxValue:r,mt:1,mb:2,children:[m<=100?m:100," %"]}),(0,o.createComponentVNode)(2,i.Box,{children:["\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: ",(0,o.createComponentVNode)(2,i.Box,{color:c?C?"good":"average":"bad",as:"span",children:Math.floor(c)}),(0,o.createComponentVNode)(2,i.Button,{icon:"atom",tooltip:"\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043e\u043d\u0434\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c "+f+" \u0434\u0430\u043d\u043d\u044b\u0445.",content:p>0?"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 "+g+" \u0441\u0435\u043a\u0443\u043d\u0434":"\u0417\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c ("+h+")",disabled:!C||p>0,onClick:function(){return l("probe",{rift_id:t})},mx:2}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",content:s?"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",disabled:s||m<100,onClick:function(){return l("reward",{rift_id:t})},mt:1.4})]})]})}(e)})),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043a\u0430\u043d\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f&&f.map((function(e){return function(e){var t=e.scannerId,n=e.scannerName,r=e.scanStatus,a=e.canSwitch,s=e.switching,d=c[r],u="OFF"===d?[" ","silver"]:"NO_RIFTS"===d?["\u041d\u0435\u0442 \u0440\u0430\u0437\u043b\u043e\u043c\u043e\u0432","silver"]:"SOME_RIFTS"===d?["\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442","good"]:"DANGER"===d?["\u041e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c! \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u043a\u0430\u043d\u0435\u0440!","bad"]:void 0;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n,py:0,children:[s?(0,o.createComponentVNode)(2,i.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):a?(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:"OFF"===d?"bad":"good",onClick:function(){return l("toggle_scanner",{scanner_id:t})},ml:1,mr:1}):(0,o.createComponentVNode)(2,i.Icon,{name:"power-off",color:"OFF"===d?"bad":"good",ml:1.85,mr:1.79,my:.84}),"OFF"!==d&&(0,o.createComponentVNode)(2,i.Box,{as:"span",color:u[1],children:u[0]})]})}(e)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:h&&h.map((function(e){return function(e){var t=e.servName,n=e.servData;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n.length?n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{children:[e.riftName," \u2014 ",Math.floor(e.probePoints)," \u0434\u0430\u043d\u043d\u044b\u0445."]},t)})):(0,o.createComponentVNode)(2,i.Box,{children:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"})})}(e)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceTap=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.BluespaceTap=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.product||[],u=s.desiredLevel,p=s.inputLevel,m=s.points,h=s.totalPoints,f=s.powerUse,C=s.availablePower,g=s.maxLevel,N=s.emagged,b=s.safeLevels,V=s.nextLevelPower,v=u>p?"bad":"good";return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!N&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),!!(p>b)&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,o.createComponentVNode)(2,i.Collapsible,{title:"Input Management",children:(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Desired Level",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===u,tooltip:"Set to 0",onClick:function(){return l("set",{set_level:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:0===u,onClick:function(){return l("set",{set_level:p})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===u,tooltip:"Decrease one step",onClick:function(){return l("decrease")}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:u,fillValue:p,minValue:0,color:v,maxValue:g,stepPixelSize:20,step:1,onChange:function(e,t){return l("set",{set_level:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:u===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return l("increase")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:u===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return l("set",{set_level:g})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Power Use",children:(0,c.formatPower)(f)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power for next level",children:(0,c.formatPower)(V)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Surplus Power",children:(0,c.formatPower)(C)})]})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Points",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Points",children:h})]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{disabled:e.price>=m,onClick:function(){return l("vend",{target:e.key})},content:e.price})},e.key)}))})})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],d=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},p=function(e,t){for(var n=[],o=0;o0?e.filter((function(e){return!!e})).reduce((function(e,t){return(0,o.createFragment)([e,(0,o.createComponentVNode)(2,a.Box,{children:t},t)],0)}),null):null},h=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,r=n.occupied,a=n.occupant,l=void 0===a?{}:a,s=r?(0,o.createComponentVNode)(2,f,{occupant:l}):(0,o.createComponentVNode)(2,x);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:s})})};var f=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,C,{occupant:t}),(0,o.createComponentVNode)(2,g,{occupant:t}),(0,o.createComponentVNode)(2,N,{occupant:t}),(0,o.createComponentVNode)(2,V,{organs:t.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:t.intOrgan})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants",children:s.implant_len?(0,o.createComponentVNode)(2,a.Box,{children:s.implant.map((function(e){return e.name})).join(", ")}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"None"})})]})})},g=function(e){var t=e.occupant;return t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:s.map((function(e,n){if(t[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2]})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},N=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:p(d,(function(e,n,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,b,{value:t[e[1]],marginBottom:r100)&&"average":"bad")||!!e.status.robotic&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",q:!0,children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,mt:t>0&&"0.5rem",value:e.totalLoss/e.maxHealth,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([!!e.internalBleeding&&"Internal bleeding",!!e.lungRuptured&&"Ruptured lung",!!e.status.broken&&e.status.broken,h(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[m([!!e.status.splinted&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Splinted"}),!!e.status.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})]),m(e.shrapnel.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:(!e.dead?e.germ_level>100&&"average":"bad")||e.robotic>0&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/e.maxHealth,mt:t>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([h(e.germ_level)])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:m([1===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),2===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Assisted"}),!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},t)}))]})})},x=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.borg||{},d=l.cell||{},u=d.charge/d.maxcharge,p=l.channels||[],m=l.modules||[],h=l.upgrades||[],f=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,a.Window,{title:"Borg Panel",width:700,height:700,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:s.emagged?"check-square-o":"square-o",content:"Emagged",selected:s.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:s.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:s.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset Module",onClick:function(){return c("reset_module")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge",children:[d.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,i.ProgressBar,{value:u,children:d.charge+" / "+d.maxcharge}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Model",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:s.active_module===e.name?"check-square-o":"square-o",content:e.name+" module",selected:s.active_module===e.name,onClick:function(){return c("setmodule",{module:e.name})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Upgrades",children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:f.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Law Manager",selected:s.lawmanager,onClick:function(){return c("lawmanager")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:s.lawupdate,onClick:function(){return c("toggle_lawupdate")}})],4),children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotClean=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotClean=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.cleanblood;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Cleaning Settings",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){return c("blood")}})}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotSecurity=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotSecurity=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.check_id,b=l.check_weapons,V=l.check_warrant,v=l.arrest_mode,x=l.arrest_declare;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Who To Arrest",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentifiable Persons",disabled:d,onClick:function(){return c("authid")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:b,content:"Unauthorized Weapons",disabled:d,onClick:function(){return c("authweapon")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return c("authwarrant")}})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Arrest Procedure",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:d,onClick:function(){return c("arrtype")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:x,content:"Announce Arrests On Radio",disabled:d,onClick:function(){return c("arrdeclare")}})]}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigCells=void 0;var o=n(0),r=n(3),i=n(2),a=n(1),c=function(e,t){var n=e.cell,r=(0,a.useBackend)(t).act,c=n.cell_id,l=n.occupant,s=n.crimes,d=n.brigged_by,u=n.time_left_seconds,p=n.time_set_seconds,m=n.ref,h="";u>0&&(h+=" BrigCells__listRow--active");return(0,o.createComponentVNode)(2,i.Table.Row,{className:h,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:c}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:d}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:p})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:u})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{type:"button",onClick:function(){r("release",{ref:m})},children:"Release"})})]})},l=function(e){var t=e.cells;return(0,o.createComponentVNode)(2,i.Table,{className:"BrigCells__list",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Cell"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Occupant"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Crimes"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Brigged By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Left"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Release"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c,{cell:e},e.ref)}))]})};t.BrigCells=function(e,t){var n=(0,a.useBackend)(t),c=(n.act,n.data.cells);return(0,o.createComponentVNode)(2,r.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:(0,o.createComponentVNode)(2,l,{cells:c})})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:l.occupant}):l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:l.occupant}));var s="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(s="exclamation-triangle"));var d=[],u=0;for(u=0;u60||!l.isAllowed,onClick:function(){return c("start")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleOldContent=t.CameraConsoleMapContent=t.CameraConsole=void 0;var o=n(0),r=n(24),i=n(43),a=n(7),c=n(18),l=n(1),s=n(2),d=n(3),u=function(e,t){var n,o;if(!t)return[];var r=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[r-1])?void 0:n.name,null==(o=e[r+1])?void 0:o.name]},p=function(e,t){void 0===t&&(t="");var n=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){var n=(0,l.useLocalState)(t,"tabIndex",0),r=n[0],i=n[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,s.Tabs,{children:[(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:0===r,onClick:function(){return i(0)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:1===r,onClick:function(){return i(1)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"table"})," List"]},"List")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,m);case 1:return(0,o.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}(r)]})})})};var m=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,a=n.config,c=p(i.cameras),d=(0,l.useLocalState)(t,"zoom",1),m=d[0],h=d[1],f=i.mapRef,C=i.activeCamera,g=i.stationLevel,N=u(c,C),b=N[0],V=N[1];return(0,o.createComponentVNode)(2,s.Box,{height:"100%",display:"flex",children:[(0,o.createComponentVNode)(2,s.Box,{height:"100%",flex:"0 0 500px",display:"flex",children:(0,o.createComponentVNode)(2,s.NanoMap,{onZoom:function(e){return h(e)},children:c.filter((function(e){return e.z===g})).map((function(e){return(0,o.createComponentVNode)(2,s.NanoMap.NanoButton,{activeCamera:C,x:e.x,y:e.y,context:t,zoom:m,icon:"circle",tooltip:e.name,name:e.name,color:"blue",status:e.status},e.ref)}))})}),(0,o.createComponentVNode)(2,s.Box,{height:"100%",resizable:!0,className:"CameraConsole__new__right",children:[(0,o.createVNode)(1,"div","CameraConsole__header",[(0,o.createVNode)(1,"div","CameraConsole__title",[(0,o.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!b,onClick:function(){return r("switch_camera",{name:b})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}})],4)],4),(0,o.createComponentVNode)(2,s.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:f,parent:a.window,type:"map"}})]})]})};t.CameraConsoleMapContent=m;var h=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,c=n.config,m=i.mapRef,h=i.activeCamera,f=(0,l.useLocalState)(t,"searchText",""),C=f[0],g=f[1],N=p(i.cameras,C),b=u(N,h),V=b[0],v=b[1];return(0,o.createComponentVNode)(2,s.Box,{children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return g(t)}}),(0,o.createComponentVNode)(2,s.Section,{children:N.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid",e.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",h&&e.name===h.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,d.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!v,onClick:function(){return r("switch_camera",{name:v})}})],4),(0,o.createComponentVNode)(2,s.ByondUi,{className:"CameraConsole__map",params:{id:m,parent:c.window,type:"map"}})],4)]})};t.CameraConsoleOldContent=h},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(100),l=n(3);t.Canister=function(e,t){var n=(0,i.useBackend)(t),s=n.act,d=n.data,u=d.portConnected,p=d.tankPressure,m=d.releasePressure,h=d.defaultReleasePressure,f=d.minReleasePressure,C=d.maxReleasePressure,g=d.valveOpen,N=d.name,b=d.canLabel,V=d.colorContainer,v=d.color_index,x=d.hasHoldingTank,y=d.holdingTank,k="";v.prim&&(k=V.prim.options[v.prim].name);var w="";v.sec&&(w=V.sec.options[v.sec].name);var _="";v.ter&&(_=V.ter.options[v.ter].name);var B="";v.quart&&(B=V.quart.options[v.quart].name);var S=[],L=[],A=[],E=[],I=0;for(I=0;Ie.current_positions&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:e.total_positions-e.current_positions})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"0"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"-",disabled:d.cooldown_time||!e.can_close,onClick:function(){return s("make_job_unavailable",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"+",disabled:d.cooldown_time||!e.can_open,onClick:function(){return s("make_job_available",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:d.priority_jobs.indexOf(e.title)>-1?"Yes":""})||(0,o.createComponentVNode)(2,i.Button,{content:"Priority",selected:d.priority_jobs.indexOf(e.title)>-1,disabled:d.cooldown_time||!e.can_prioritize,onClick:function(){return s("prioritize_job",{job:e.title})}})})]},e.title)}))]})})],4):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 2:n=d.authenticated&&d.scan_name?d.modify_name?(0,o.createComponentVNode)(2,c.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(e){return s("set",{access:e})},grantAll:function(){return s("grant_all")},denyAll:function(){return s("clear_all")},grantDep:function(e){return s("grant_region",{region:e})},denyDep:function(e){return s("deny_region",{region:e})}}):(0,o.createComponentVNode)(2,i.Section,{title:"Card Missing",color:"red",children:"No card to modify."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 3:n=d.authenticated?d.records.length?(0,o.createComponentVNode)(2,i.Section,{title:"Records",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||0===d.records.length||d.target_dept,onClick:function(){return s("wipe_all_logs")}}),children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Crewman"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Old Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"New Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Authorized By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.transferee}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.oldvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.newvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.whodidit}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.reason}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.deletedby})]},e.timestamp)}))]}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||0===d.records.length,onClick:function(){return s("wipe_my_logs")}})})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Records",children:"No records."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 4:n=d.authenticated&&d.scan_name?(0,o.createComponentVNode)(2,i.Section,{title:"Your Team",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Sec Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.crimstat}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontext,disabled:!e.demotable,onClick:function(){return s("remote_demote",{remote_demote:e.name})}})})]},e.title)}))]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;default:n=(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,p,n]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.CargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n,r,i=(0,a.useBackend)(t),l=i.act,s=i.data,d=s.is_public,u=s.points,p=s.timeleft,m=s.moving,h=s.at_station;return m||h?!m&&h?(n="Docked at the station",r="Return Shuttle"):m&&(r="In Transit...",n=1!==p?"Shuttle is en route (ETA: "+p+" minutes)":"Shuttle is en route (ETA: "+p+" minute)"):(n="Docked off-station",r="Call Shuttle"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Points Available",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Status",children:n}),0===d&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:r,disabled:m,onClick:function(){return l("moveShuttle")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Central Command Messages",onClick:function(){return l("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Points)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Changelog=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(3),l=u(n(493)),s=u(n(494)),d=u(n(520));function u(e){return e&&e.__esModule?e:{"default":e}}function p(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var m={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},h=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},t.dateChoices=[],t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=u.prototype;return h.setData=function(e){this.setState({data:e})},h.setSelectedDate=function(e){this.setState({selectedDate:e})},h.setSelectedIndex=function(e){this.setState({selectedIndex:e})},h.getData=function(e,t){void 0===t&&(t=1);var n=(0,i.useBackend)(this.context).act,o=this;if(t>6)return this.setData("Failed to load data after 6 attempts");n("get_month",{date:e}),(0,d["default"])(e+".yml").then(function(){var n,r=(n=regeneratorRuntime.mark((function i(n){var r,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:r=i.sent,/^Cannot find/.test(r)?(a=50+50*t,o.setData("Loading changelog data"+".".repeat(t+3)),setTimeout((function(){o.getData(e,t+1)}),a)):o.setData(s["default"].load(r,{schema:s["default"].CORE_SCHEMA}));case 5:case"end":return i.stop()}}),i)})),function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){p(i,o,r,a,c,"next",e)}function c(e){p(i,o,r,a,c,"throw",e)}a(undefined)}))});return function(e){return r.apply(this,arguments)}}())},h.componentDidMount=function(){var e=this,t=(0,i.useBackend)(this.context).data.dates,n=void 0===t?[]:t;n&&(n.forEach((function(t){return e.dateChoices.push((0,l["default"])(t,"mmmm yyyy",!0))})),this.setSelectedDate(this.dateChoices[0]),this.getData(n[0]))},h.render=function(){var e=this,t=this.state,n=t.data,s=t.selectedDate,d=t.selectedIndex,u=(0,i.useBackend)(this.context).data.dates,p=this.dateChoices,h=p.length>0&&(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:0===d,icon:"chevron-left",onClick:function(){var t=d-1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:s,options:p,onSelected:function(t){var n=p.indexOf(t);return e.setData("Loading changelog data..."),e.setSelectedIndex(n),e.setSelectedDate(t),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[n])},selected:s,width:"150px"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:d===p.length-1,icon:"chevron-right",onClick:function(){var t=d+1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})})]}),f=(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createVNode)(1,"h1",null,"Paradise Station",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thanks to: ",16),(0,o.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Recent GitHub contributors can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,o.createTextVNode)(".")],0),h]}),C=(0,o.createComponentVNode)(2,a.Section,{children:[h,(0,o.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Coders: ",16),(0,o.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Spriters: ",16),(0,o.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,o.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Changelog#April_2010"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,o.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,o.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,o.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Some icons by "),(0,o.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,o.createTextVNode)(". All rights reserved. Licensed under a "),(0,o.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,o.createTextVNode)(".")],4)]}),g=/#\d+/,N="object"==typeof n&&Object.keys(n).length>0&&Object.entries(n).reverse().map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:(0,l["default"])(t,"d mmmm yyyy",!0),children:(0,o.createComponentVNode)(2,a.Box,{ml:3,children:Object.entries(n).map((function(e){var t=e[0],n=e[1];return(0,o.createFragment)([(0,o.createVNode)(1,"h4",null,[t,(0,o.createTextVNode)(" changed:")],0),(0,o.createComponentVNode)(2,a.Box,{ml:3,children:(0,o.createComponentVNode)(2,a.Table,{children:n.map((function(e){var t=Object.keys(e)[0],n=e[t],i=n.match(g),c=(0,o.createComponentVNode)(2,a.Table.Cell,{className:(0,r.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,o.createComponentVNode)(2,a.Icon,{color:m[t]?m[t].color:m.unknown.color,name:m[t]?m[t].icon:m.unknown.icon})});return null!==i&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:(0,o.createVNode)(1,"a",null,[(0,o.createTextVNode)(" "),n,(0,o.createTextVNode)(" ")],0,{href:"https://github.com/ss220-space/Paradise/pull/"+i[0].substring(1)})})]},t+n)||(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:n})]},t+n)}))})})],4,t)}))})},t)}));return(0,o.createComponentVNode)(2,c.Window,{title:"Changelog",width:675,height:650,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[f,N,"string"==typeof n&&(0,o.createVNode)(1,"p",null,n,0),C]})})},u}(o.Component);t.Changelog=h},function(e,t,n){"use strict";var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){var a,c,l,s=arguments,d=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,n,o){if(1!==s.length||"string"!==f(e)||/\d/.test(e)||(t=e,e=undefined),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(d.masks[t]||t||d.masks["default"])).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(o=!0));var i=function(){return n?"getUTC":"get"},C=function(){return e[i()+"Date"]()},g=function(){return e[i()+"Day"]()},N=function(){return e[i()+"Month"]()},b=function(){return e[i()+"FullYear"]()},V=function(){return e[i()+"Hours"]()},v=function(){return e[i()+"Minutes"]()},x=function(){return e[i()+"Seconds"]()},y=function(){return e[i()+"Milliseconds"]()},k=function(){return n?0:e.getTimezoneOffset()},w=function(){return m(e)},_=function(){return h(e)},B={d:function(){return C()},dd:function(){return u(C())},ddd:function(){return d.i18n.dayNames[g()]},DDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()],short:!0})},dddd:function(){return d.i18n.dayNames[g()+7]},DDDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()+7]})},m:function(){return N()+1},mm:function(){return u(N()+1)},mmm:function(){return d.i18n.monthNames[N()]},mmmm:function(){return d.i18n.monthNames[N()+12]},yy:function(){return String(b()).slice(2)},yyyy:function(){return u(b(),4)},h:function(){return V()%12||12},hh:function(){return u(V()%12||12)},H:function(){return V()},HH:function(){return u(V())},M:function(){return v()},MM:function(){return u(v())},s:function(){return x()},ss:function(){return u(x())},l:function(){return u(y(),3)},L:function(){return u(Math.floor(y()/10))},t:function(){return V()<12?d.i18n.timeNames[0]:d.i18n.timeNames[1]},tt:function(){return V()<12?d.i18n.timeNames[2]:d.i18n.timeNames[3]},T:function(){return V()<12?d.i18n.timeNames[4]:d.i18n.timeNames[5]},TT:function(){return V()<12?d.i18n.timeNames[6]:d.i18n.timeNames[7]},Z:function(){return o?"GMT":n?"UTC":(String(e).match(c)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+u(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+u(Math.floor(Math.abs(k())/60),2)+":"+u(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]},W:function(){return w()},WW:function(){return u(w())},N:function(){return _()}};return t.replace(a,(function(e){return e in B?B[e]():e.slice(1,e.length-1)}))});d.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},d.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var u=function(e,t){for(e=String(e),t=t||2;e.length>10),56320+(e-65536&1023))}for(var x=new Array(256),y=new Array(256),k=0;k<256;k++)x[k]=V(k)?1:0,y[k]=V(k);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function _(e,t){return new r(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function B(e,t){throw _(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,_(e,t))}var L={YAML:function(e,t,n){var o,r,i;null!==e.version&&B(e,"duplication of %YAML directive"),1!==n.length&&B(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&B(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&B(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&B(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],p.test(o)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,o)&&B(e,'there is a previously declared suffix for "'+o+'" tag handle'),m.test(r)||B(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=r}};function A(e,t,n,o){var r,i,a,c;if(t1&&(e.result+=o.repeat("\n",t-1))}function P(e,t){var n,o,r=e.tag,i=e.anchor,a=[],c=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&45===o&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,T(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,j(e,t,3,!1,!0),a.push(e.result),T(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)B(e,"bad indentation of a sequence entry");else if(e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt)&&(j(e,t,4,!0,r)&&(f?m=e.result:h=e.result),f||(I(e,d,u,p,m,h,i,a),p=m=h=null),T(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)B(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?B(e,"repeat of an indentation width identifier"):(u=t+i-1,d=!0)}if(C(a)){do{a=e.input.charCodeAt(++e.position)}while(C(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!f(a)&&0!==a)}for(;0!==a;){for(D(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!d||e.lineIndentu&&(u=e.lineIndent),f(a))p++;else{if(e.lineIndent0){for(r=a,i=0;r>0;r--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:B(e,"expected hexadecimal character");e.result+=v(i),e.position++}else B(e,"unknown escape sequence");n=o=e.position}else f(c)?(A(e,n,o,!0),M(e,T(e,!1,t)),n=o=e.position):e.position===e.lineStart&&F(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}(e,m)?w=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o)&&!N(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||B(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],T(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,c,l,s,d,u=e.kind,p=e.result;if(g(d=e.input.charCodeAt(e.position))||N(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(g(o=e.input.charCodeAt(e.position+1))||n&&N(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==d;){if(58===d){if(g(o=e.input.charCodeAt(e.position+1))||n&&N(o))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&N(d))break;if(f(d)){if(c=e.line,l=e.lineStart,s=e.lineIndent,T(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=l,e.lineIndent=s;break}}a&&(A(e,r,i,!1),M(e,e.line-c),r=i=e.position,a=!1),C(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return A(e,r,i,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,m,1===n)&&(w=!0,null===e.tag&&(e.tag="?")):(w=!0,null===e.tag&&null===e.anchor||B(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===V&&(w=s&&P(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(d=0,u=e.implicitTypes.length;d tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result)?(e.result=p.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):B(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||w}function U(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(T(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&B(e,"directive name must not be less than one character in length");0!==r;){for(;C(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!f(r));break}if(f(r))break;for(t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&D(e),l.call(L,n)?L[n](e,n,o):S(e,'unknown document directive "'+n+'"')}T(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,T(e,!0,-1)):a&&B(e,"directives end mark is expected"),j(e,e.lineIndent-1,4,!1,!0),T(e,!0,-1),e.checkLineBreaks&&d.test(e.input.slice(i,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,T(e,!0,-1)):e.position0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){n=" ... ",r+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return c=this.buffer.slice(r,a),o.repeat(" ",e)+n+c+i+"\n"+o.repeat(" ",e+this.position-r+n.length)+"^"},r.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=r},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(65),r=n(20);function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,c=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var o=n(65),r=n(20),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,o,r;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,o=1,r.forEach((function(e){t+=e*o,o*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,o,a,c,l,s,d,u=0,p=null;if(null===(t=r.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,o,a));if(c=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),d=new Date(Date.UTC(n,o,a,c,l,s,u)),p&&d.setTime(d.getTime()-p),d},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var o;try{o=n(508).Buffer}catch(a){}var r=n(20),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,a=i;for(n=0;n64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,c=i,l=0,s=[];for(t=0;t>16&255),s.push(l>>8&255),s.push(255&l)),l=l<<6|c.indexOf(r.charAt(t));return 0===(n=a%4*6)?(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)):18===n?(s.push(l>>10&255),s.push(l>>2&255)):12===n&&s.push(l>>4&255),o?o.from?o.from(s):new o(s):s},predicate:function(e){return o&&o.isBuffer(e)},represent:function(e){var t,n,o="",r=0,a=e.length,c=i;for(t=0;t>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]),r=(r<<8)+e[t];return 0===(n=a%3)?(o+=c[r>>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]):2===n?(o+=c[r>>10&63],o+=c[r>>4&63],o+=c[r<<2&63],o+=c[64]):1===n&&(o+=c[r>>2&63],o+=c[r<<4&63],o+=c[64],o+=c[64]),o}})},function(e,t,n){"use strict";(function(e){var o=n(509),r=n(510),i=n(511);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){var o=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function C(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:N(e,t,n,o,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):N(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function N(e,t,n,o,r){var i,a=1,c=e.length,l=t.length;if(o!==undefined&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,c/=2,l/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(i=n;ic&&(n=c-l),i=n;i>=0;i--){for(var u=!0,p=0;pr&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function w(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r239?4:s>223?3:s>191?2:1;if(r+u<=n)switch(u){case 1:s<128&&(d=s);break;case 2:128==(192&(i=e[r+1]))&&(l=(31&s)<<6|63&i)>127&&(d=l);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[r+1],a=e[r+2],c=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,o,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),o===undefined&&(o=0),r===undefined&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(o,r),d=e.slice(t,n),u=0;ur)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return V(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return y(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;ro)&&(n=o);for(var r="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function D(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function T(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function F(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,o,i){return i||F(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function P(e,t,n,o,i){return i||F(e,0,n,8),r.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=t===undefined?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(r*=256);)o+=this[e+--t]*r;return o},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=this[e],r=1,i=0;++i=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(104))},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),d=0,u=c>0?a-4:a;for(n=0;n>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,c=n-r;ac?c:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,i,a=[],c=t;c>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,o,r){var i,a,c=8*r-o-1,l=(1<>1,d=-7,u=n?r-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=c;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:(m?-1:1)*Infinity;a+=Math.pow(2,o),i-=s}return(m?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,c,l,s=8*i-r-1,d=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(c=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(t*l-1)*Math.pow(2,r),a+=u):(c=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+m]=255&c,m+=h,c/=256,r-=8);for(a=a<0;e[n+m]=255&a,m+=h,a/=256,s-=8);e[n+m-h]|=128*f}},function(e,t,n){"use strict";var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,n){"use strict";var o=n(20),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,a,c,l=[],s=e;for(t=0,n=s.length;t3)return!1;if("/"!==t[t.length-o.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),o="";return"/"===t[0]&&(n&&(o=n[1]),t=t.slice(1,t.length-o.length-1)),new RegExp(t,o)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var o;try{o=n(518)}catch(i){"undefined"!=typeof window&&(o=window.esprima)}var r=n(20);e.exports=new r("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=o.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(r){return!1}},construct:function(e){var t,n="("+e+")",r=o.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(8),a=n(15);function c(e,t,n){var a=null,c=function(e,t){n&&n(e,t),a&&a.visit(e,t)},l="function"==typeof n?c:null,s=!1;if(t){s="boolean"==typeof t.comment&&t.comment;var d="boolean"==typeof t.attachComment&&t.attachComment;(s||d)&&((a=new o.CommentHandler).attach=d,t.comment=!0,l=c)}var u,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),u=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,l):new i.Parser(e,t,l);var m=p?u.parseModule():u.parseScript();return s&&a&&(m.comments=a.comments),u.config.tokens&&(m.tokens=u.tokens),u.config.tolerant&&(m.errors=u.errorHandler.errors),m}t.parse=c,t.parseModule=function(e,t,n){var o=t||{};return o.sourceType="module",c(e,o,n)},t.parseScript=function(e,t,n){var o=t||{};return o.sourceType="script",c(e,o,n)},t.tokenize=function(e,t,n){var o,r=new a.Tokenizer(e,t);o=[];try{for(;;){var i=r.getNextToken();if(!i)break;n&&(i=n(i)),o.push(i)}}catch(c){r.errorHandler.tolerate(c)}return r.errorHandler.tolerant&&(o.errors=r.errors()),o};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===o.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];t.end.offset>=i.start&&(n.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var o=this.trailing[n];o.start>=e.end.offset&&t.unshift(o.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset);)t=i.node,this.stack.pop();if(t){for(var o=(t.leadingComments?t.leadingComments.length:0)-1;o>=0;--o){var r=t.leadingComments[o];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(o,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(o=this.leading.length-1;o>=0;--o){var i;(i=this.leading[o]).start<=e.start.offset&&(n.unshift(i.comment),this.leading.splice(o,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===o.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",o={type:n,value:e.value};if(e.range&&(o.range=e.range),e.loc&&(o.loc=e.loc),this.comments.push(o),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n(5),c=n(6),l=n(7),s=n(8),d=n(13),u=n(14);function p(e){var t;switch(e.type){case c.JSXSyntax.JSXIdentifier:t=e.name;break;case c.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case c.JSXSyntax.JSXMemberExpression:var o=e;t=p(o.object)+"."+p(o.property)}return t}d.TokenName[100]="JSXIdentifier",d.TokenName[101]="JSXText";var m=function(e){function t(t,n,o){return e.call(this,t,n,o)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,o=!1,r=!1,a=!1;!this.scanner.eof()&&n&&!o;){var c=this.scanner.source[this.scanner.index];if(c===e)break;if(o=";"===c,t+=c,++this.scanner.index,!o)switch(t.length){case 2:r="#"===c;break;case 3:r&&(n=(a="x"===c)||i.Character.isDecimalDigit(c.charCodeAt(0)),r=r&&!a);break;default:n=(n=n&&!(r&&!i.Character.isDecimalDigit(c.charCodeAt(0))))&&!(a&&!i.Character.isHexDigit(c.charCodeAt(0)))}}if(n&&o&&t.length>2){var l=t.substr(1,t.length-2);r&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):r||a||!u.XHTMLEntities[l]||(t=u.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:c=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],o="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)o+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),c=46===r&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var o={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(o)),o},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,o))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(r,i))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var o=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(o,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),o=this.matchJSX("/");return o&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,o,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),o=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,r,o))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;i=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(i),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],o=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:o,children:n});n=r.children,o=r.closing}return this.finalize(e,new a.JSXElement(t,n,o))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(s.Parser);t.JSXParser=m},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=function(e){this.type=o.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var i=function(e,t,n){this.type=o.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXElement=i;var a=function(){this.type=o.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var c=function(e){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=c;var l=function(e){this.type=o.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var s=function(e,t){this.type=o.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=s;var d=function(e,t){this.type=o.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=d;var u=function(e,t){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=u;var p=function(e,t,n){this.type=o.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=p;var m=function(e){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var h=function(e,t){this.type=o.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(e){this.type=o.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var i=function(e){this.type=o.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=i;var a=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=a;var c=function(e,t,n){this.type=o.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentExpression=c;var l=function(e,t){this.type=o.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var s=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=s;var d=function(e,t,n){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=d;var u=function(e,t,n){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=u;var p=function(e){this.type=o.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=m;var h=function(e){this.type=o.Syntax.BlockStatement,this.body=e};t.BlockStatement=h;var f=function(e){this.type=o.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var C=function(e,t){this.type=o.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=C;var g=function(e,t){this.type=o.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var N=function(e){this.type=o.Syntax.ClassBody,this.body=e};t.ClassBody=N;var b=function(e,t,n){this.type=o.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=b;var V=function(e,t,n){this.type=o.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=V;var v=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=v;var x=function(e,t,n){this.type=o.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=x;var y=function(e){this.type=o.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=y;var k=function(){this.type=o.Syntax.DebuggerStatement};t.DebuggerStatement=k;var w=function(e,t){this.type=o.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=w;var _=function(e,t){this.type=o.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=_;var B=function(){this.type=o.Syntax.EmptyStatement};t.EmptyStatement=B;var S=function(e){this.type=o.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=S;var L=function(e){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=L;var A=function(e,t,n){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=A;var E=function(e,t){this.type=o.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=E;var I=function(e){this.type=o.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=I;var D=function(e,t,n){this.type=o.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=D;var T=function(e,t,n){this.type=o.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=T;var F=function(e,t,n,r){this.type=o.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=F;var M=function(e,t,n,r){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=M;var P=function(e,t,n,r){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=P;var O=function(e){this.type=o.Syntax.Identifier,this.name=e};t.Identifier=O;var R=function(e,t,n){this.type=o.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=R;var j=function(e,t){this.type=o.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=j;var U=function(e){this.type=o.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var z=function(e){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=z;var W=function(e,t){this.type=o.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var H=function(e,t){this.type=o.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=H;var K=function(e,t){this.type=o.Syntax.Literal,this.value=e,this.raw=t};t.Literal=K;var Y=function(e,t){this.type=o.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=Y;var G=function(e,t,n,r,i){this.type=o.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this["static"]=i};t.MethodDefinition=G;var q=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=q;var X=function(e,t){this.type=o.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=o.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var $=function(e){this.type=o.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=$;var Z=function(e,t,n,r,i,a){this.type=o.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=a};t.Property=Z;var Q=function(e,t,n,r){this.type=o.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RegexLiteral=Q;var ee=function(e){this.type=o.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=o.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var ne=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var oe=function(e){this.type=o.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=oe;var re=function(e){this.type=o.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;var ie=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=ie;var ae=function(){this.type=o.Syntax.Super};t.Super=ae;var ce=function(e,t){this.type=o.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=ce;var le=function(e,t){this.type=o.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var se=function(e,t){this.type=o.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=se;var de=function(e,t){this.type=o.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=de;var ue=function(e,t){this.type=o.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=ue;var pe=function(){this.type=o.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=o.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var he=function(e,t,n){this.type=o.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=he;var fe=function(e,t){this.type=o.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var Ce=function(e,t,n){this.type=o.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=Ce;var ge=function(e,t){this.type=o.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var Ne=function(e,t){this.type=o.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=Ne;var be=function(e,t){this.type=o.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=be;var Ve=function(e,t){this.type=o.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=Ve;var ve=function(e,t){this.type=o.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ve},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(10),i=n(11),a=n(7),c=n(12),l=n(2),s=n(13),d=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new c.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=o,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=o||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,o=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(o,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(o,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(o,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var o=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,o},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var o=this.parseFormalParameters(),r=this.parsePropertyMethod(o);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,o.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,i.Messages.StrictOctalLiteral);var o=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,o));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),o=this.lookahead,r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(3===o.type){var p=o.value;this.nextToken(),l=this.match("["),r=(u=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===o.type&&!u&&"get"===o.value&&m)t="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(3===o.type&&!u&&"set"===o.value&&m)t="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(7===o.type&&"*"===o.value&&m)t="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!u)!l&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0;else if(3===o.type)if(p=this.finalize(n,new a.Identifier(o.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(n,new a.AssignmentPattern(p,h))}else d=!0,c=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,r,l,c,s,d))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,o=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:o},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],o=this.parseTemplateHead();for(n.push(o);!o.tail;)t.push(this.parseExpression()),o=this.parseTemplateElement(),n.push(o);return this.finalize(e,new a.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var o=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(o=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!o)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(i=0;i")){for(var l=0;l0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],i=t,c=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[i,n.value,c],s=[o];!((o=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&o<=s[s.length-1];){c=l.pop();var d=l.pop();s.pop(),i=l.pop(),r.pop();var u=this.startNode(r[r.length-1]);l.push(this.finalize(u,new a.BinaryExpression(d,i,c)))}l.push(this.nextToken().value),s.push(o),r.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var m=r.pop();p>1;){var h=r.pop(),f=m&&m.lineStart;u=this.startNode(h,f),d=l[p-1],t=this.finalize(u,new a.BinaryExpression(d,l[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,o,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var s=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var u=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var m=this.startNode(t);this.expect("=>");var h=void 0;if(this.match("{")){var f=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=f}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var C=h.type!==l.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=r?this.finalize(m,new a.AsyncArrowFunctionExpression(c.params,h,C)):this.finalize(m,new a.ArrowFunctionExpression(c.params,h,C)),this.context.strict=s,this.context.allowStrictDirective=d,this.context.allowYield=u,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var g=e;this.scanner.isRestrictedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var N=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(N,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),o=this.parsePattern([],e);this.context.strict&&o.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(o.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&o.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(o,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;o.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var o=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(o))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var o=[];!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else{if(this.match("...")){o.push(this.parseBindingRestElement(e,t));break}o.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new a.ArrayPattern(o))},e.prototype.parsePropertyPattern=function(e,t){var n,o,r=this.createNode(),i=!1,c=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var s=this.finalize(r,new a.Identifier(l.value));if(this.match("=")){e.push(l),c=!0,this.nextToken();var d=this.parseAssignmentExpression();o=this.finalize(this.startNode(l),new a.AssignmentPattern(s,d))}else this.match(":")?(this.expect(":"),o=this.parsePatternWithDefault(e,t)):(e.push(l),c=!0,o=s)}else i=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),o=this.parsePatternWithDefault(e,t);return this.finalize(r,new a.Property("init",n,i,o,!1,c))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),o=[];for(this.expect("{");!this.match("}");)o.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(o))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,o=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,o=this.finalize(this.startNode(n),new a.AssignmentPattern(o,i))}return o},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var o=null;return this.match("=")?(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,o))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(o,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(n,o))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var o=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=o}return this.finalize(t,new a.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,o=null,r=null,c=null,s=!0,d=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){o=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,1===p.length&&this.matchKeyword("in")){var m=p[0];m.init&&(m.id.type===l.Syntax.ArrayPattern||m.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseExpression(),o=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){o=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(u=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=u,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseExpression(),o=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(this.consumeSemicolon(),o=this.finalize(o,new a.VariableDeclaration(p,h)))):(o=this.finalize(o,new a.Identifier(h)),this.nextToken(),e=o,t=this.parseExpression(),o=null)}else{var f=this.lookahead;if(u=this.context.allowIn,this.context.allowIn=!1,o=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword("in"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseExpression(),o=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseAssignmentExpression(),o=null,s=!1;else{if(this.match(",")){for(var C=[o];this.match(",");)this.nextToken(),C.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(f),new a.SequenceExpression(C))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(c=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(d,new a.ForStatement(o,r,c,n)):s?this.finalize(d,new a.ForInStatement(e,t,n)):this.finalize(d,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var o=[],r=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();null===c.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),o.push(c)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,o))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var o=n,r="$"+o.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",o.name),this.context.labelSet[r]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var s=this.lookahead,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(s,i.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(s,i.Messages.GeneratorInLegacyContext),c=d}else c=this.parseStatement();delete this.context.labelSet[r],e=new a.LabeledStatement(o,c)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),o={},r=0;r0&&this.tolerateError(i.Messages.BadGetterArity);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(i.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var o=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=o}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),o="",r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,d=!0,l=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(u=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&m?(o="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):"set"===t.value&&m&&(o="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(o="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0),!o&&r&&this.match("(")&&(o="init",c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0),o||this.throwUnexpectedToken(this.lookahead),"init"===o&&(o="method"),l||(d&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!d&&this.isPropertyKey(r,"constructor")&&(("method"!==o||!s||c&&c.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,o="constructor")),this.finalize(n,new a.MethodDefinition(r,l,c,o,d))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var o=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(o,r,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,o=null;this.matchKeyword("extends")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,o,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null));else{var c=[],l=null,s=!1;for(this.expect("{");!this.match("}");)s=s||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):s?(o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(o,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,c,l))}return e},e}();t.Parser=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(o){Object.create&&Object.defineProperty&&(n=Object.create(o),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,o){var r="Line "+t+": "+o,i=this.constructError(r,n);return i.index=e,i.lineNumber=t,i.description=o,i},e.prototype.throwError=function(e,t,n,o){throw this.createError(e,t,n,o)},e.prototype.tolerateError=function(e,t,n,o){var r=this.createError(e,t,n,o);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(4),i=n(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function c(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,o=[];for(this.trackComment&&(o=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};o.push(a)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},o.push(a)),o},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(o))13===o&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===o){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(i)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(i)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var o=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(o)),t=!0}else{if(42!==n)break;this.index+=2,o=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(o))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,o=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(o))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,o=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(o))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,o=0;o1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=c(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+c(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+c(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var o=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=o}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",o=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(o=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return o||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&o.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"\uffff"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(n)}catch(r){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];o.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!0)}return a||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,o=this.scanHexEscape("u");if(null!==o)for(e+=o;n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(12),i=n(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(o=this.values[this.curly-4])&&!this.beforeFunctionExpression(o);else if("function"===this.values[this.curly-4]){var o;t=!(o=this.values[this.curly-5])||!this.beforeFunctionExpression(o)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),c=function(){function e(e,t){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;to&&" "!==e[u+1],u=i);else if(!C(a))return 5;p=p&&g(a)}s=s||d&&i-u-1>o&&" "!==e[u+1]}return l||s?n>9&&N(e)?5:s?4:3:p&&!r(e)?1:2}function V(e,t,n,o){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==d.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=o||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,c,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n"+v(t,e.indent)+x(m(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,r.lastIndex=c,y(e.slice(0,c),t)),a="\n"===e[0]||" "===e[0];var c;for(;o=r.exec(e);){var l=o[1],s=o[2];n=" "===s[0],i+=l+(a||n||""===s?"":"\n")+y(s,t),a=n}return i}(t,a),i));case 5:return'"'+function(e){for(var t,n,o,r="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(r+=u(1024*(t-55296)+n-56320+65536),i++):(o=s[t],r+=!o&&C(t)?e[i]:o||u(t));return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function v(e,t){var n=N(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function y(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,c=0,l="";n=r.exec(e);)(c=n.index)-i>t&&(o=a>i?a:c,l+="\n"+e.slice(i,o),i=o+1),a=c;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function k(e,t,n){var o,i,a,s,d,u;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+u+'" style');o=d.represent[u](t,u)}e.dump=o}return!0}return!1}function w(e,t,n,o,i,a){e.tag=null,e.dump=n,k(e,n,!1)||k(e,n,!0);var l=c.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>t);var s,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&d&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var i,a,c,l,s,d,u="",p=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(i=0,a=m.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,s&&(d+=h(e,t)),w(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,n){var o,r,i,a,c,l="",s=e.tag,d=Object.keys(n);for(o=0,r=d.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),w(e,t,a,!1,!1)&&(l+=c+=e.dump));e.tag=s,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;o&&0!==e.dump.length?(!function(e,t,n,o){var r,i,a="",c=e.tag;for(r=0,i=n.length;r "+e.dump)}return!0}function _(e,t){var n,o,r=[],i=[];for(function a(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r0}),(0,o.createComponentVNode)(2,p,{mode:g,bufferReagents:f}),(0,o.createComponentVNode)(2,m,{isCondiment:i,bufferNonEmpty:f.length>0}),(0,o.createComponentVNode)(2,C)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t).act,a=e.beaker,d=e.beakerReagents,u=e.bufferNonEmpty;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",flexGrow:"0",flexBasis:"300px",buttons:u?(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!c.condi&&(0,o.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})})),(0,l.modalRegisterBodyOverride)("change_patch_style",(function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(r,a){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:a+1===parseInt(n.modal.value,10),onClick:function(){return(0,l.modalAnswer)(t,e.id,a+1)},children:(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 32px;height: 32px;background: url(bandaid"+(a+1)+".png);background-size: 160%;background-position: left -9px bottom -14px;"})})},a)}))})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(49),l=n(51),s=n(3),d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,s=e.args,d=s.activerecord,u=s.realname,p=s.health,m=s.unidentity,h=s.strucenzymes,f=p.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:f.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:f[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:f[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:f[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:f[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:d})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",d),(0,o.createComponentVNode)(2,s.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,p)})]})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},p=function(e,t){var n,r=(0,i.useBackend)(t).data.menu;return 1===r?n=(0,o.createComponentVNode)(2,m):2===r&&(n=(0,o.createComponentVNode)(2,h)),n},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.loading,d=l.scantemp,u=l.occupant,p=l.locked,m=l.can_brainscan,h=l.scan_mode,f=l.numberofpods,C=l.pods,g=l.selected_pod,N=p&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:N,icon:N?"toggle-on":"toggle-off",content:N?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:N||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:d.color,children:d.text})}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"brain":"male",content:h?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||s,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:f?C.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.records;return c.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},t)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},f=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.scanner,s=c.numberofpods,d=c.autoallowed,u=c.autoprocess,p=c.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[s," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CommunicationsComputer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.CommunicationsComputer=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;n=s.authenticated?s.is_ai?"AI":1===s.authenticated?"Command":2===s.authenticated?"Captain":"ERROR: Report This Bug!":"Not Logged In";var d="View ("+s.messages.length+")",u=(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.is_ai&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.authenticated?"sign-out-alt":"id-card",selected:s.authenticated,content:s.authenticated?"Log Out ("+n+")":"Log In",onClick:function(){return l("auth")}})})})}),!!s.esc_section&&(0,o.createComponentVNode)(2,i.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!s.esc_status&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s.esc_status}),!!s.esc_callable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Call Shuttle",disabled:!s.authenticated,onClick:function(){return l("callshuttle")}})}),!!s.esc_recallable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Recall Shuttle",disabled:!s.authenticated||s.is_ai,onClick:function(){return l("cancelshuttle")}})}),!!s.lastCallLoc&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Last Call/Recall From",children:s.lastCallLoc})]})})],0),p="Make Priority Announcement";s.msg_cooldown>0&&(p+=" ("+s.msg_cooldown+"s)");var m=s.emagged?"Message [UNKNOWN]":"Message CentComm",h="Request Authentication Codes";s.cc_cooldown>0&&(m+=" ("+s.cc_cooldown+"s)",h+=" ("+s.cc_cooldown+"s)");var f,C=s.str_security_level,g=s.levels.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.icon,content:e.name,disabled:!s.authmax||e.id===s.security_level,onClick:function(){return l("newalertlevel",{level:e.id})}},e.name)})),N=s.stat_display.presets.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.name===s.stat_display.type,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:e.name})}},e.name)})),b=s.stat_display.alerts.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.alert===s.stat_display.icon,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:"alert",alert:e.alert})}},e.alert)}));if(s.current_message_title)f=(0,o.createComponentVNode)(2,i.Section,{title:s.current_message_title,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Return To Message List",disabled:!s.authenticated,onClick:function(){return l("messagelist")}}),children:(0,o.createComponentVNode)(2,i.Box,{children:s.current_message})});else{var V=s.messages.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"eye",content:"View",disabled:!s.authenticated||s.current_message_title===e.title,onClick:function(){return l("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",disabled:!s.authenticated,onClick:function(){return l("delmessage",{msgid:e.id})}})]},e.id)}));f=(0,o.createComponentVNode)(2,i.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:V})})}switch(s.menu_state){case 1:return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Captain-Only Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Alert",color:s.security_level_color,children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Change Alert",children:g}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:p,disabled:!s.authmax||s.msg_cooldown>0,onClick:function(){return l("announce")}})}),!!s.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageSyndicate")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!s.authmax,onClick:function(){return l("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageCentcomm")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nuclear Device",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",content:h,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("nukerequest")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,i.Button,{icon:"tv",content:"Change Status Displays",disabled:!s.authenticated,onClick:function(){return l("status")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,i.Button,{icon:"folder-open",content:d,disabled:!s.authenticated,onClick:function(){return l("messagelist")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!s.authenticated,onClick:function(){return l("RestartNanoMob")}})})]})})]})});case 2:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Presets",children:N}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alerts",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_1,disabled:!s.authenticated,onClick:function(){return l("setmsg1")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_2,disabled:!s.authenticated,onClick:function(){return l("setmsg2")}})})]})})]})});case 3:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,f]})});default:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",s.menu_state,"Please report this to NT Technical Support."]})})}}},function(e,t,n){"use strict";t.__esModule=!0,t.Contractor=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(102),l=n(3);var s={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},d=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"];t.Contractor=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,s=r.data;n=s.unauthorized?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){}})}):s.load_animation_completed?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"hidden",children:1===s.page?(0,o.createComponentVNode)(2,m,{height:"100%"}):(0,o.createComponentVNode)(2,f,{height:"100%"})})],4):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:d,finishedTimeout:3e3,onFinished:function(){return c("complete_load_animation")}})});var h=(0,i.useLocalState)(t,"viewingPhoto",""),N=h[0];h[1];return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:[N&&(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Contractor",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:n})})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.tc_available,s=c.tc_paid_out,d=c.completed_contracts,u=c.rep;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Summary",buttons:(0,o.createComponentVNode)(2,a.Box,{verticalAlign:"middle",mt:"0.25rem",children:[u," Rep"]})},e,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",children:[l," TC"]}),(0,o.createComponentVNode)(2,a.Button,{disabled:l<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){return r("claim")}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Earned",children:[s," TC"]})]})}),(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:d})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.page;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Tabs,Object.assign({},e,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"suitcase"}),"Contracts"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"shopping-cart"}),"Hub"]})]})))},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,d=l.contracts,u=l.contract_active,p=l.can_extract,m=!!u&&d.filter((function(e){return 1===e.status}))[0],f=m&&m.time_left>0,C=(0,i.useLocalState)(t,"viewingPhoto",""),g=(C[0],C[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!p||f,icon:"parachute-box",content:["Call Extraction",f&&(0,o.createComponentVNode)(2,c.Countdown,{timeLeft:m.time_left,format:function(e,t){return" ("+t.substr(3)+")"}})],onClick:function(){return r("extract")}})},e,{children:d.slice().sort((function(e,t){return 1===e.status?-1:1===t.status?1:e.status-t.status})).map((function(e){var t;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",color:1===e.status&&"good",children:e.target_name}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:e.has_photo&&(0,o.createComponentVNode)(2,a.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return g("target_photo_"+e.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,o.createComponentVNode)(2,a.Box,{width:"100%",children:[!!s[e.status]&&(0,o.createComponentVNode)(2,a.Box,{color:s[e.status][1],display:"inline-block",mt:1!==e.status&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:s[e.status][0]}),1===e.status&&(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){return r("abort")}})]}),children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"2",mr:"0.5rem",children:[e.fluff_message,!!e.completed_time&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",e.completed_time]}),!!e.dead_extraction&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!e.fail_reason&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",e.fail_reason]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{flexBasis:"100%",children:[(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xa0",h(e)]}),null==(t=e.difficulties)?void 0:t.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!!u,content:t.name+" ("+t.reward+" TC)",onClick:function(){return r("activate",{uid:e.uid,difficulty:n+1})}})})),!!e.objective&&(0,o.createComponentVNode)(2,a.Box,{color:"white",bold:!0,children:[e.objective.extraction_name,(0,o.createVNode)(1,"br"),"(",(e.objective.rewards.tc||0)+" TC",",\xa0",(e.objective.rewards.credits||0)+" Credits",")"]})]})]})},e.uid)}))})))},h=function(e){if(e.objective&&!(e.status>1)){var t=e.objective.locs.user_area_id,n=e.objective.locs.user_coords,i=e.objective.locs.target_area_id,c=e.objective.locs.target_coords,l=t===i;return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:l?"dot-circle-o":"arrow-alt-circle-right-o",color:l?"green":"yellow",rotation:l?null:-(0,r.rad2deg)(Math.atan2(c[1]-n[1],c[0]-n[0])),lineHeight:l?null:"0.85",size:"1.5"})})}},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.rep,s=c.buyables;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Purchases",overflow:"auto"},e,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:e.refundable&&(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Refund ("+e.cost+" Rep)",onClick:function(){return r("refund",{uid:e.uid})}}),children:[e.description,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:l-1&&(0,o.createComponentVNode)(2,a.Box,{as:"span",color:0===e.stock?"bad":"good",ml:"0.5rem",children:[e.stock," in stock"]})]},e.uid)}))})))},C=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=this.props,t=this.state;t.currentIndex<=e.allMessages.length?(this.setState((function(e){return{currentIndex:e.currentIndex+1}})),t.currentDisplay.push(e.allMessages[t.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))},i.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},i.componentWillUnmount=function(){clearTimeout(this.timer)},i.render=function(){return(0,o.createComponentVNode)(2,a.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component),g=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Contractor__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ConveyorSwitch=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ConveyorSwitch=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.slowFactor,d=l.oneWay,u=l.position;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Allow reverse",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,onClick:function(){return c("toggleOneWay")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Slowdown factor",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-left",onClick:function(){return c("slowFactor",{value:s-5})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-left",onClick:function(){return c("slowFactor",{value:s-1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Slider,{width:"100px",mx:"1px",value:s,fillValue:s,minValue:1,maxValue:50,step:1,format:function(e){return e+"x"},onChange:function(e,t){return c("slowFactor",{value:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-right",onClick:function(){return c("slowFactor",{value:s+1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-right",onClick:function(){return c("slowFactor",{value:s+5})}})," "]})]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitor=void 0;var o=n(0),r=n(24),i=n(18),a=n(1),c=n(2),l=n(80),s=n(49),d=n(3),u=function(e,t){return e.dead?"Deceased":parseInt(e.health,10)<=t?"Critical":1===parseInt(e.stat,10)?"Unconscious":"Living"},p=function(e,t){return e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"green"};t.CrewMonitor=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=(0,a.useLocalState)(t,"tabIndex",r.IndexToggler),l=i[0],s=i[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[r.isBS?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===l,onClick:function(){return s(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,r.isBP?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===l,onClick:function(){return s(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===l,onClick:function(){return s(2)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===l,onClick:function(){return s(3)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,f);case 1:return(0,o.createComponentVNode)(2,C);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}(l)]})})})};var m=function(e){var t=e.crewData,n=e.context,d=(0,a.useBackend)(n),m=d.act,h=d.data,f=(0,r.sortBy)((function(e){return e.name}))(t||[]),C=(0,a.useLocalState)(n,"search",""),g=C[0],N=C[1],b=(0,i.createSearch)(g,(function(e){return e.name+"|"+e.assignment+"|"+e.area}));return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(e,t){return N(t)}}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),f.filter(b).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{bold:!!e.is_command,children:[(0,o.createComponentVNode)(2,l.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.TableCell,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:p(e,h.critThreshold),children:u(e,h.critThreshold)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.oxy,children:e.oxy}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.toxin,children:e.tox}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.burn,children:e.fire}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.brute,children:e.brute}),")"]}):null]}),(0,o.createComponentVNode)(2,l.TableCell,{children:3===e.sensor_type?h.isAI?(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return m("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+")":"Not Available"})]},e.name)}))]})]})},h=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},f=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_command}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},C=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_security}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(0,a.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?"square":"circle"},m=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?10:6},h=function(e,t){return e.is_command&&i.isBS||e.is_security&&i.isBP?e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"violet":p(e,t)};return(0,o.createComponentVNode)(2,c.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,c.NanoMap,{onZoom:function(e){return d(e)},children:i.crewmembers.filter((function(e){return 3===e.sensor_type})).map((function(e){return(0,o.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:u(e),size:m(e),tooltip:e.name+" ("+e.assignment+")",color:h(e,i.critThreshold),onClick:function(){i.isAI&&r("track",{track:e.ref})}},e.ref)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(533),i=n(1),a=n(2),c=n(3),l=[{label:"\u0410\u0441\u0444\u0438\u043a\u0441\u0438\u044f",type:"oxyLoss"},{label:"\u0418\u043d\u0442\u043e\u043a\u0441\u0438\u043a\u0430\u0446\u0438\u044f",type:"toxLoss"},{label:"\u0420\u0430\u043d\u044b",type:"bruteLoss"},{label:"\u041e\u0436\u043e\u0433\u0438",type:"fireLoss"}],s=[["good","\u0412 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f"],["bad","\u0422\u0420\u0423\u041f"]];t.Cryo=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,d=c.isOperating,p=c.hasOccupant,m=c.occupant,h=void 0===m?[]:m,f=c.cellTemperature,C=c.cellTemperatureStatus,g=c.isBeakerLoaded,N=c.auto_eject_healthy,b=c.auto_eject_dead;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return r("ejectOccupant")},disabled:!p,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c"}),children:p?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",children:h.name||"\u0418\u043c\u044f \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:h.health,max:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.health)})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:s[h.stat][0],children:s[h.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.bodyTemperature)}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"\u041f\u0430\u0446\u0438\u0435\u043d\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d."]})})}),(0,o.createComponentVNode)(2,a.Section,{title:"\u041a\u0440\u0438\u043e\u043a\u0430\u043f\u0441\u0443\u043b\u0430",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("ejectBeaker")},disabled:!g,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0451\u043c\u043a\u043e\u0441\u0442\u044c"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0438\u0442\u0430\u043d\u0438\u0435",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return r(d?"switchOff":"switchOn")},selected:d,children:d?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:C,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return r(N?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:N?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0451\u0440\u0442\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return r(b?"auto_eject_dead_off":"auto_eject_dead_on")},children:b?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})})]})})],4)},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.isBeakerLoaded,s=c.beakerLabel,d=c.beakerVolume;return l?(0,o.createFragment)([s?"\xab"+s+"\xbb":(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430"}),(0,o.createComponentVNode)(2,a.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d,format:function(e){var t=Math.round(e);return(0,r.declensionRu)(t,"\u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u0438\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c")+" "+t+" "+(0,r.declensionRu)(t,"\u0435\u0434\u0438\u043d\u0438\u0446\u0430","\u0435\u0434\u0438\u043d\u0438\u0446\u044b","\u0435\u0434\u0438\u043d\u0438\u0446")}}):"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u0430"})],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430"})}},function(e,t,n){"use strict";t.__esModule=!0,t.declensionRu=void 0;t.declensionRu=function(e,t,n,o){var r=e%100;if(r>=10&&r<=20)return o;var i=r%10;return 1===i?t:i>=2&&i<=4?n:o}},function(e,t,n){"use strict";t.__esModule=!0,t.CryopodConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18);t.CryopodConsole=function(e,t){var n=(0,r.useBackend)(t).data,c=n.account_name,d=n.allow_items;return(0,o.createComponentVNode)(2,a.Window,{title:"Cryopod Console",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Hello, "+(c||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,o.createComponentVNode)(2,l),!!d&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t).data.frozen_crew;return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Crew",children:n.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:e.rank},t)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored crew!"})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data.frozen_items,s=function(e){var t=e.toString();return t.startsWith("the ")&&(t=t.slice(4,t.length)),(0,c.toTitleCase)(t)};return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l.length,content:"Drop All Items",color:"red",onClick:function(){return a("all_items")}}),children:l.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:s(e.name),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){return a("one_item",{item:e.uid})}})},e)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored items!"})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(51),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],d=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,r.useBackend)(t),l=(i.act,i.data),s=l.irradiating,d=l.dnaBlockSize,m=l.occupant;return t.dnaBlockSize=d,t.isDNAInvalid=!m.isViableSubject||!m.uniqueIdentity||!m.structuralEnzymes,s&&(n=(0,o.createComponentVNode)(2,V,{duration:s})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal),n,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.locked,d=c.hasOccupant,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,selected:s,icon:s?"toggle-on":"toggle-off",content:s?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d||s,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},p=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data,d=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,f)],4):"se"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f)],4):"buffer"===d?n=(0,o.createComponentVNode)(2,C):"rejuvenators"===d&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:d===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedUIBlock,s=c.selectedUISubBlock,d=c.selectedUITarget,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:d,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedSEBlock,s=c.selectedSESubBlock,d=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:d.structuralEnzymes,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.radiationIntensity,s=c.radiationDuration;return(0,o.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:s,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},C=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,o.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,N)],4)},g=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=e.id,s=e.name,d=e.buffer,u=c.isInjectorReady,p=s+(d.data?" - "+d.label:"");return(0,o.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,i.Section,{title:p,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!d.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!d.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:d.owner||(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!d.data&&(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.hasDisk,s=c.disk;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!l||!s.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?s.data?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:s.label?s.label:"No label"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner?s.owner:(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},b=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.isBeakerLoaded,s=c.beakerVolume,u=c.beakerLabel;return(0,o.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[d.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:e>s,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,o.createComponentVNode)(2,i.Button,{disabled:s<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:s})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:u||"No label"}),s?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[s," unit",1===s?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},V=function(e,t){return(0,o.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.dnaString),l=e.selectedBlock,s=e.selectedSubblock,d=e.blockSize,u=e.action,p=c.split(""),m=[],h=function(e){for(var t=e/d+1,n=[],r=function(r){var c=r+1;n.push((0,o.createComponentVNode)(2,i.Button,{selected:l===t&&s===c,content:p[e+r],mb:"0",onClick:function(){return a(u,{block:t,subblock:c})}}))},c=0;c0?"Yes":"No",selected:l.com>0,onClick:function(){return c("toggle_com")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Security",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.sec===e,content:e,onClick:function(){return c("set_sec",{set_sec:e})}},"sec"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Medical",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.med===e,content:e,onClick:function(){return c("set_med",{set_med:e})}},"med"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engineering",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.eng===e,content:e,onClick:function(){return c("set_eng",{set_eng:e})}},"eng"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Paranormal",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.par===e,content:e,onClick:function(){return c("set_par",{set_par:e})}},"par"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitor",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.jan===e,content:e,onClick:function(){return c("set_jan",{set_jan:e})}},"jan"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cyborg",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.cyb===e,content:e,onClick:function(){return c("set_cyb",{set_cyb:e})}},"cyb"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Slots",children:(0,o.createComponentVNode)(2,i.Box,{color:l.total>l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispatch",children:(0,o.createComponentVNode)(2,i.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){return c("dispatch_ert")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Electropack=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Electropack=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=s.power,u=s.code,p=s.frequency,m=s.minFrequency,h=s.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:h/10,value:p/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onChange:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(e,t){return l("code",{code:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EvolutionMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.EvolutionMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"changeling",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.can_respec;return(0,o.createComponentVNode)(2,i.Section,{title:"Evolution Points",height:5.5,children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{ml:2.5,disabled:!s,content:"Readapt",icon:"sync",onClick:function(){return a("readapt")}}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.ability_list,d=c.purchased_abilities,u=c.view_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Abilities",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){return a("set_view_mode",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){return a("set_view_mode",{mode:1})}})],4),children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{ml:.5,color:"#dedede",children:e.name}),d.includes(e.power_path)&&(0,o.createComponentVNode)(2,i.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,o.createComponentVNode)(2,i.Box,{as:"span",color:"label",children:["Cost: "," "]}),(0,o.createComponentVNode)(2,i.Box,{as:"span",bold:!0,color:"#1b945c",children:e.cost})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,o.createComponentVNode)(2,i.Button,{mr:.5,disabled:e.cost>l||d.includes(e.power_path),content:"Evolve",onClick:function(){return a("purchase",{power_path:e.power_path})}})})]}),!!u&&(0,o.createComponentVNode)(2,i.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:e.description+" "+e.helptext})]},t)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExosuitFabricator=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(2),l=n(102),s=n(3);var d={bananium:"clown",tranquillite:"mime"};t.ExosuitFabricator=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building;return(0,o.createComponentVNode)(2,s.Window,{theme:r.ui_theme,children:(0,o.createComponentVNode)(2,s.Window.Content,{className:"Exofab",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",width:"70%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"100%",children:(0,o.createComponentVNode)(2,p)}),i&&(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,m)})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,h)})]})})]})})})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.materials,s=i.capacity,d=Object.values(l).reduce((function(e,t){return e+t}),0);return(0,o.createComponentVNode)(2,c.Section,{title:"Materials",className:"Exofab__materials",buttons:(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.25rem",children:[(d/s*100).toPrecision(3),"% full"]}),children:["$metal","$glass","$silver","$gold","$uranium","$titanium","$plasma","$diamond","$bluespace","$bananium","$tranquillite","$plastic"].map((function(e){return(0,o.createComponentVNode)(2,f,{id:e,bold:"$metal"===e||"$glass"===e,onClick:function(){return r("withdraw",{id:e})}},e)}))})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.curCategory,d=l.categories,u=l.designs,p=l.syncing,m=(0,a.useLocalState)(t,"searchText",""),h=m[0],f=m[1],g=(0,i.createSearch)(h,(function(e){return e.name})),N=u.filter(g);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__designs",title:(0,o.createComponentVNode)(2,c.Dropdown,{selected:s,options:d,onSelected:function(e){return r("category",{cat:e})},width:"150px"}),height:"100%",buttons:(0,o.createComponentVNode)(2,c.Box,{mt:"-18px",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Queue all",onClick:function(){return r("queueall")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:p,iconSpin:p,icon:"sync-alt",content:p?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){return r("sync")}})]}),children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(e,t){return f(t)}}),N.map((function(e){return(0,o.createComponentVNode)(2,C,{design:e},e.id)})),0===N.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No designs found."})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building,s=r.buildStart,d=r.buildEnd,u=r.worldTime;return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__building",stretchContents:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar.Countdown,{start:s,current:u,end:d,bold:!0,children:[(0,o.createComponentVNode)(2,c.Box,{float:"left",children:(0,o.createComponentVNode)(2,c.Icon,{name:"cog",spin:!0})}),"Building ",i,"\xa0(",(0,o.createComponentVNode)(2,l.Countdown,{current:u,timeLeft:d-u,format:function(e,t){return t.substr(3)}}),")"]})})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.queue,s=i.processingQueue,d=Object.entries(i.queueDeficit).filter((function(e){return e[1]<0})),u=l.reduce((function(e,t){return e+t.time}),0);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__queue",title:"Queue",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:"Process",onClick:function(){return r("process")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:0===l.length,icon:"eraser",content:"Clear",onClick:function(){return r("unqueueall")}})]}),children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",direction:"column",children:0===l.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"The queue is empty."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--queue",grow:"1",overflow:"auto",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{color:e.notEnough&&"bad",children:[t+1,". ",e.name,t>0&&(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-up",onClick:function(){return r("queueswap",{from:t+1,to:t})}}),t0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--time",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Processing time:",(0,o.createComponentVNode)(2,c.Icon,{name:"clock",mx:"0.5rem"}),(0,o.createComponentVNode)(2,c.Box,{display:"inline",bold:!0,children:new Date(u/10*1e3).toISOString().substr(14,5)})]}),Object.keys(d).length>0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--deficit",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Lacking materials to complete:",d.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:-e[1],lineDisplay:!0})},e[0])}))]})],0)})})},f=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data),l=e.id,s=e.amount,u=e.lineDisplay,p=e.onClick,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["id","amount","lineDisplay","onClick"]),h=l.replace("$",""),f=i.materials[l]||0,C=s||f;if(!(C<=0&&"metal"!==h&&"glass"!==h)){var g=s&&s>f;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Flex,Object.assign({className:(0,r.classes)(["Exofab__material",u&&"Exofab__material--line"])},m,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,c.Button,{onClick:p,children:(0,o.createComponentVNode)(2,c.Box,{as:"img",src:"sheet-"+(d[h]||h)+".png"})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:u?(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",color:g&&"bad",children:C.toLocaleString("en-US")}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--name",children:h}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",children:[C.toLocaleString("en-US")," cm\xb3 (",Math.round(C/2e3*10)/10," sheets)"]})],4)})]})))}},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=e.design;return(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:l.notEnough||i.building,icon:"cog",content:l.name,onClick:function(){return r("build",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus-circle",onClick:function(){return r("queue",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--cost",children:Object.entries(l.cost).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:e[1],lineDisplay:!0})},e[0])}))}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--time",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"clock"}),l.time>0?(0,o.createFragment)([l.time/10,(0,o.createTextVNode)(" seconds")],0):"Instant"]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExternalAirlockController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ExternalAirlockController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.chamber_pressure,p=(d.exterior_status,d.interior_status),m=d.processing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Chamber Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:(n=u,c="good",n<80?c="bad":n<95||n>110?c="average":n>120&&(c="bad"),c),value:u,minValue:0,maxValue:1013,children:[u," kPa"]})})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Abort",icon:"ban",color:"red",disabled:!m,onClick:function(){return s("abort")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FaxMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.FaxMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){return c("scan")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Authorize",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:!l.scan_name&&!l.authenticated,content:l.authenticated?"Log Out":"Log In",onClick:function(){return c("auth")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fax Menu",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:l.network}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Document",children:[(0,o.createComponentVNode)(2,i.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){return c("paper")}}),!!l.paper&&(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){return c("dept")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Action",children:(0,o.createComponentVNode)(2,i.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){return c("send")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FloorPainter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data,e.image),a=e.isSelected,c=e.onSelect;return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"border-style":a?"solid":"none","border-width":"2px","border-color":"orange",padding:a?"2px":"4px"},onClick:c})};t.FloorPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.availableStyles,u=s.selectedStyle,p=s.selectedDir,m=s.directionsPreview,h=s.allStylesPreview;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Decal setup",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",onClick:function(){return l("cycle_style",{offset:-1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{options:d,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:"true",onSelected:function(e){return l("select_style",{style:e})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",onClick:function(){return l("cycle_style",{offset:1})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",mb:"5px",children:(0,o.createComponentVNode)(2,i.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,c,{image:h[e],isSelected:u===e,onSelect:function(){return l("select_style",{style:e})}})},"{style}")}))})}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Direction",children:(0,o.createComponentVNode)(2,i.Table,{style:{display:"inline"},children:["north","","south"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[e+"west",e,e+"east"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:""===e?(0,o.createComponentVNode)(2,i.Icon,{name:"arrows-alt",size:3}):(0,o.createComponentVNode)(2,c,{image:m[e],isSelected:e===p,onSelect:function(){return l("select_direction",{direction:e})}})},e)}))},e)}))})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GPS=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=function(e){return e?"("+e.join(", ")+")":"ERROR"};t.GPS=function(e,t){var n=(0,i.useBackend)(t).data,r=n.emped,l=n.active,m=n.area,h=n.position,f=n.saved;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:r?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,s,{emp:!0})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,d)}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{area:m,position:h})}),f&&(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{title:"Saved Position",position:f})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,p,{height:"100%"})})],0):(0,o.createComponentVNode)(2,s)],0)})})})};var s=function(e,t){var n=e.emp;return(0,o.createComponentVNode)(2,a.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,a.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:n?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),n?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.active,s=c.tag,d=c.same_z,u=(0,i.useLocalState)(t,"newTag",s),p=u[0],m=u[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tag",children:[(0,o.createComponentVNode)(2,a.Input,{width:"5rem",value:s,onEnter:function(){return r("tag",{newtag:p})},onInput:function(e,t){return m(t)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:s===p,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return r("tag",{newtag:p})},children:(0,o.createComponentVNode)(2,a.Icon,{name:"pen"})})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"compress":"expand",content:d?"Local Sector":"Global",onClick:function(){return r("same_z")}})})]})})},u=function(e,t){var n=e.title,r=e.area,i=e.position;return(0,o.createComponentVNode)(2,a.Section,{title:n||"Position",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",children:[r&&(0,o.createFragment)([r,(0,o.createVNode)(1,"br")],0),l(i)]})})},p=function(e,t){var n=(0,i.useBackend)(t).data,c=n.position,s=n.signals,d=n.upgraded;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Signals",overflow:"auto"},e,{children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return Object.assign({},e,{},function(e,t,n){if(e&&t){if(e[2]!==t[2]||1!==n)return null;var o=Math.atan2(t[1]-e[1],t[0]-e[0]),i=Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2));return{angle:(0,r.rad2deg)(o),distance:i}}}(c,e.position,d))})).map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:t%2==0&&"rgba(255, 255, 255, 0.05)",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:e.tag}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",color:"grey",children:e.area}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:e.distance!==undefined&&(0,o.createComponentVNode)(2,a.Box,{opacity:Math.max(1-Math.min(e.distance,100)/100,.5),children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.distance>0?"arrow-right":"circle",rotation:-e.angle}),"\xa0",Math.floor(e.distance)+"m"]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:l(e.position)})]},t)}))})})))}},function(e,t,n){"use strict";t.__esModule=!0,t.GasAnalyzer=t.GasAnalyzerHistory=t.GasAnalyzerContent=void 0;var o=n(0),r=n(1),i=n(549),a=n(2),c=n(3),l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.gasmixes,d=l.autoUpdating;return(0,o.createComponentVNode)(2,a.Section,{title:s[0].name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",onClick:function(){return c("autoscantoggle")},tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:(0,o.createComponentVNode)(2,i.GasmixParser)},s[0])};t.GasAnalyzerContent=l;var s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.historyGasmixes,s=c.historyViewMode,d=c.historyIndex;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Scan History",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){return i("clearhistory")},textAlign:"center",disabled:0===l.length}),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"50%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"kPa",onClick:function(){return i("modekpa")},textAlign:"center",selected:"kpa"===s})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"mol",onClick:function(){return i("modemol")},textAlign:"center",selected:"mol"===s})})]})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{content:t+1+". "+("mol"===s?e[0].total_moles.toFixed(2):e[0].pressure.toFixed(2)),onClick:function(){return i("input",{target:t+1})},textAlign:"left",selected:t+1===d,fluid:!0})},e[0])}))})]})};t.GasAnalyzerHistory=s;t.GasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),2,{style:{float:"left",width:"67%"}}),(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{width:"160px",children:(0,o.createComponentVNode)(2,s)}),2,{style:{float:"right",width:"33%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasmixParser=void 0;var o=n(0),r=n(1),i=n(2);t.GasmixParser=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.gasmixes);return a[0].total_moles?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Moles",children:(a[0].total_moles?a[0].total_moles:"-")+" mol"}),a[0].oxygen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:a[0].oxygen.toFixed(2)+" mol ("+100*(a[0].oxygen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].nitrogen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:a[0].nitrogen.toFixed(2)+" mol ("+100*(a[0].nitrogen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].carbon_dioxide?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:a[0].carbon_dioxide.toFixed(2)+" mol ("+100*(a[0].carbon_dioxide/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].toxins?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:a[0].toxins.toFixed(2)+" mol ("+100*(a[0].toxins/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].sleeping_agent?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrous Oxide",children:a[0].sleeping_agent.toFixed(2)+" mol ("+100*(a[0].sleeping_agent/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].agent_b?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent B",children:a[0].agent_b.toFixed(2)+" mol ("+100*(a[0].agent_b/a[0].total_moles).toFixed(2)+" %)"}):"",(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(a[0].total_moles?(a[0].temperature-273.15).toFixed(2):"-")+" \xb0C ("+(a[0].total_moles?a[0].temperature.toFixed(2):"-")+" K)"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Volume",children:(a[0].total_moles?a[0].volume:"-")+" L"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(a[0].total_moles?a[0].pressure.toFixed(2):"-")+" kPa"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Heat Capacity",children:a[0].heat_capacity+" / K"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Thermal Energy",children:a[0].thermal_energy})]}):(0,o.createComponentVNode)(2,i.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasFreezer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GasFreezer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.temperature,p=l.temperatureCelsius,m=l.min,h=l.max,f=l.target,C=l.targetCelsius,g=(u-m)/(h-m);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s?"power-off":"times",content:s?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b",selected:s,onClick:function(){return c("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435",children:[d," \u043a\u041f\u0430"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:g,ranges:{blue:[-Infinity,.5],red:[.5,Infinity]},children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:[g<.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"blue",ml:1,children:[u," \xb0K (",p," \xb0C)"]}),g>=.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"red",ml:1,children:[u," \xb0K (",p," \xb0C)"]})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0435\u043b\u0435\u0432\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",justify:"end",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:(f-m)/(h-m),children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:[f," \xb0K (",C," \xb0C)"]})})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",title:"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:m})}}),(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"\xb0K",minValue:Math.round(m),maxValue:Math.round(h),step:5,stepPixelSize:3,onDrag:function(e,t){return c("temp",{temp:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:h})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GenericCrewManifest=void 0;var o=n(0),r=n(2),i=n(3),a=n(144);t.GenericCrewManifest=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{noTopPadding:!0,children:(0,o.createComponentVNode)(2,a.CrewManifest)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GhostHudPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GhostHudPanel=function(e,t){var n=(0,r.useBackend)(t).data,l=n.security,s=n.medical,d=n.diagnostic,u=n.ahud;return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,c,{label:"Medical",type:"medical",is_active:s}),(0,o.createComponentVNode)(2,c,{label:"Security",type:"security",is_active:l}),(0,o.createComponentVNode)(2,c,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,c,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t).act,a=e.label,c=e.type,l=void 0===c?null:c,s=e.is_active,d=e.act_on,u=void 0===d?"hud_on":d,p=e.act_off,m=void 0===p?"hud_off":p;return(0,o.createComponentVNode)(2,i.Flex,{pt:.3,color:"label",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{pl:.5,align:"center",width:"80%",children:a}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{mr:.6,content:s?"On":"Off",icon:s?"toggle-on":"toggle-off",selected:s,onClick:function(){return n(s?m:u,{hud_type:l})}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.HandheldChemDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=[1,5,10,20,30,50];t.HandheldChemDispenser=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.amount,d=l.energy,u=l.maxEnergy,p=l.mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d,minValue:0,maxValue:u,ranges:{good:[.5*u,Infinity],average:[.25*u,.5*u],bad:[-Infinity,.25*u]},children:[d," / ",u," Units"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:"1",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",width:"14%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:s===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"dispense"===p,content:"Dispense",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"dispense"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"remove"===p,content:"Remove",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"remove"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"isolate"===p,content:"Isolate",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"isolate"})}})]})})]})})},s=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.chemicals,s=void 0===l?[]:l,d=c.current_reagent,u=[],p=0;p<(s.length+1)%3;p++)u.push(!0);return(0,o.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Selector":"Chemical Selector",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px",width:"30%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:d===e.id,width:"100%",height:"100%",align:"flex-start",content:e.title,onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),u.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Instrument=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Instrument=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)]})]})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act;if(n.data.help)return(0,o.createComponentVNode)(2,a.Modal,{maxWidth:"75%",height:.75*window.innerHeight+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,o.createVNode)(1,"h1",null,"Making a Song",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Type:"}),(0,o.createTextVNode)("\xa0Whether the instrument is legacy or synthesized."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Current:"}),(0,o.createTextVNode)("\xa0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,o.createTextVNode)("\xa0The pitch to apply to all notes of the song.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,o.createTextVNode)("\xa0How a played note fades out."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,o.createTextVNode)("\xa0The volume threshold at which a note is fully stopped.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,o.createTextVNode)("\xa0Whether the last note should be sustained indefinitely.")],4)],4),(0,o.createComponentVNode)(2,a.Button,{color:"grey",content:"Close",onClick:function(){return r("help")}})]})})})},s=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.lines,u=l.playing,p=l.repeat,m=l.maxRepeats,h=l.tempo,f=l.minTempo,C=l.maxTempo,g=l.tickLag,N=l.volume,b=l.minVolume,V=l.maxVolume,v=l.ready;return(0,o.createComponentVNode)(2,a.Section,{title:"Instrument",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"info",content:"Help",onClick:function(){return c("help")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"file",content:"New",onClick:function(){return c("newsong")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Import",onClick:function(){return c("import")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Playback",children:[(0,o.createComponentVNode)(2,a.Button,{selected:u,disabled:0===s.length||p<0,icon:"play",content:"Play",onClick:function(){return c("play")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"stop",content:"Stop",onClick:function(){return c("stop")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Repeat",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0",maxValue:m,value:p,stepPixelSize:"59",onChange:function(e,t){return c("repeat",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tempo",children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:h>=C,content:"-",as:"span",mr:"0.5rem",onClick:function(){return c("tempo",{"new":h+g})}}),(0,r.round)(600/h)," BPM",(0,o.createComponentVNode)(2,a.Button,{disabled:h<=f,content:"+",as:"span",ml:"0.5rem",onClick:function(){return c("tempo",{"new":h-g})}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:b,maxValue:V,value:N,stepPixelSize:"6",onDrag:function(e,t){return c("setvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:v?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Ready"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,o.createComponentVNode)(2,d)]})},d=function(e,t){var n,c,l=(0,i.useBackend)(t),s=l.act,d=l.data,u=d.allowedInstrumentNames,p=d.instrumentLoaded,m=d.instrument,h=d.canNoteShift,f=d.noteShift,C=d.noteShiftMin,g=d.noteShiftMax,N=d.sustainMode,b=d.sustainLinearDuration,V=d.sustainExponentialDropoff,v=d.legacy,x=d.sustainDropoffVolume,y=d.sustainHeldNote;return 1===N?(n="Linear",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"0.1",maxValue:"5",value:b,step:"0.5",stepPixelSize:"85",format:function(e){return(0,r.round)(100*e)/100+" seconds"},onChange:function(e,t){return s("setlinearfalloff",{"new":t/10})}})):2===N&&(n="Exponential",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"1.025",maxValue:"10",value:V,step:"0.01",format:function(e){return(0,r.round)(1e3*e)/1e3+"% per decisecond"},onChange:function(e,t){return s("setexpfalloff",{"new":t})}})),u.sort(),(0,o.createComponentVNode)(2,a.Box,{my:-1,children:(0,o.createComponentVNode)(2,a.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,o.createComponentVNode)(2,a.Section,{mt:-1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:v?"Legacy":"Synthesized"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current",children:p?(0,o.createComponentVNode)(2,a.Dropdown,{options:u,selected:m,width:"40%",onSelected:function(e){return s("switchinstrument",{name:e})}}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None!"})}),!(v||!h)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:C,maxValue:g,value:f,stepPixelSize:"2",format:function(e){return e+" keys / "+(0,r.round)(e/12*100)/100+" octaves"},onChange:function(e,t){return s("setnoteshift",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain Mode",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:["Linear","Exponential"],selected:n,onSelected:function(e){return s("setsustainmode",{"new":e})}}),c]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0.01",maxValue:"100",value:x,stepPixelSize:"6",onChange:function(e,t){return s("setdropoffvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,o.createComponentVNode)(2,a.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"Yes":"No",onClick:function(){return s("togglesustainhold")}})})],4)]}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){return s("reset")}})]})})})},u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.playing,s=c.lines,d=c.editing;return(0,o.createComponentVNode)(2,a.Section,{title:"Editor",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"plus",content:"Add Line",onClick:function(){return r("newline",{line:s.length+1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"chevron-up":"chevron-down",onClick:function(){return r("edit")}})],4),children:!!d&&(s.length>0?(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t+1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"pen",onClick:function(){return r("modifyline",{line:t+1})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"trash",onClick:function(){return r("deleteline",{line:t+1})}})],4),children:e},t)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Song is empty."}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ItemPixelShift=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ItemPixelShift=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.pixel_x,d=l.pixel_y,u=l.max_shift_x,p=l.max_shift_y,m=l.random_drop_on;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"X-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:s===-u,onClick:function(){return c("shift_left")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-u,maxValue:u,onChange:function(e,t){return c("custom_x",{pixel_x:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:s===u,onClick:function(){return c("shift_right")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Y-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:d===p,onClick:function(){return c("shift_up")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:d,minValue:-p,maxValue:p,onChange:function(e,t){return c("custom_y",{pixel_y:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:d===-p,onClick:function(){return c("shift_down")}})]})]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){return c("move_to_top")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return c("toggle")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=(0,o.createComponentVNode)(2,i.Section,{title:"Keycard Authentication Device",children:(0,o.createComponentVNode)(2,i.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(l.swiping||l.busy){var d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return l.hasSwiped||l.ertreason||"Emergency Response Team"!==l.event?l.hasConfirm?d=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Waiting for second person to confirm..."})):d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Fill out the reason for your ERT request."}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,"Emergency Response Team"===l.event&&(0,o.createComponentVNode)(2,i.Section,{title:"Reason for ERT Call",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){return c("ert")}})})}),(0,o.createComponentVNode)(2,i.Section,{title:l.event,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){return c("reset")}}),children:d})]})})}return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,(0,o.createComponentVNode)(2,i.Section,{title:"Choose Action",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Red Alert",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){return c("triggerevent",{triggerevent:"Red Alert"})},content:"Red Alert"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ERT",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",onClick:function(){return c("triggerevent",{triggerevent:"Emergency Response Team"})},content:"Call ERT"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},content:"Revoke"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},content:"Revoke"})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.LaborClaimConsole=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.can_go_home,s=c.emagged,d=c.id_inserted,u=c.id_name,p=c.id_points,m=c.id_goal,h=c.unclaimed_points,f=s?0:1,C=s?"ERR0R":l?"Completed!":"Insufficient";return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:!!d&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/m,ranges:{good:[f,Infinity],bad:[-Infinity,f]},children:p+" / "+m+" "+C})||!!s&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Move shuttle",disabled:!l,onClick:function(){return r("move_shuttle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unclaimed points",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!d||!h,onClick:function(){return r("claim_points")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:d?u:"-------------",onClick:function(){return r("handle_id")}})})]})})},s=function(e,t){var n=(0,i.useBackend)(t).data.ores;return(0,o.createComponentVNode)(2,a.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LawManager=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.LawManager=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.isAdmin,p=d.isSlaved,m=d.isMalf,h=d.isAIMalf,f=d.view;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!(!u||!p)&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["This unit is slaved to ",p,"."]}),!(!m&&!h)&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Law Management",selected:0===f,onClick:function(){return s("set_view",{set_view:0})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Lawsets",selected:1===f,onClick:function(){return s("set_view",{set_view:1})}})]}),!(0!==f)&&(0,o.createComponentVNode)(2,c),!(1!==f)&&(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_zeroth_laws,d=c.zeroth_laws,u=c.has_ion_laws,p=c.ion_laws,m=c.ion_law_nr,h=c.has_inherent_laws,f=c.inherent_laws,C=c.has_supplied_laws,g=c.supplied_laws,N=c.channels,b=c.channel,V=c.isMalf,v=c.isAdmin,x=c.zeroth_law,y=c.ion_law,k=c.inherent_law,w=c.supplied_law,_=c.supplied_law_position;return(0,o.createFragment)([!!l&&(0,o.createComponentVNode)(2,s,{title:"ERR_NULL_VALUE",laws:d,ctx:t}),!!u&&(0,o.createComponentVNode)(2,s,{title:m,laws:p,ctx:t}),!!h&&(0,o.createComponentVNode)(2,s,{title:"Inherent",laws:f,ctx:t}),!!C&&(0,o.createComponentVNode)(2,s,{title:"Supplied",laws:g,ctx:t}),(0,o.createComponentVNode)(2,i.Section,{title:"Statement Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Statement Channel",children:N.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.channel,selected:e.channel===b,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,i.Button,{content:"State Laws",onClick:function(){return a("state_laws")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,i.Button,{content:"Notify",onClick:function(){return a("notify_laws")}})})]})}),!!V&&(0,o.createComponentVNode)(2,i.Section,{title:"Add Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Type"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"60%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Actions"})]}),!(!v||l)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Zero"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:x}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_zeroth_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_zeroth_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ion"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:y}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_ion_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_ion_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:k}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_inherent_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_inherent_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:w}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:_,onClick:function(){return a("change_supplied_law_position")}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_supplied_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_supplied_law")}})]})]})]})})],0)},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.law_sets;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name+" - "+e.header,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Load Laws",icon:"download",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.laws.has_ion_laws>0&&e.laws.ion_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_zeroth_laws>0&&e.laws.zeroth_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_inherent_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_supplied_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)}))]})},e.name)}))})},s=function(e,t){var n=(0,r.useBackend)(e.ctx),a=n.act,c=n.data.isMalf;return(0,o.createComponentVNode)(2,i.Section,{title:e.title+" Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"69%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"21%",children:"State?"})]}),e.laws.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.index}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.law}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:e.state?"Yes":"No",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:e.state?0:1})}}),!!c&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("edit_law",{edit_law:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){return a("delete_law",{delete_law:e.ref})}})],4)]})]},e.law)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.MechBayConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,s=l&&l.mech,d=s&&s.cell,u=s&&s.name;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||!d&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechaControlConsole=void 0;var o=n(0),r=(n(15),n(1)),i=n(2),a=n(3),c=n(18);t.MechaControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.beacons,u=s.stored_data;return u.length?(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Log",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:["(",e.time,")"]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,c.decodeHtmlEntities)(e.message)})]},e.time)}))})})}):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.uid})},children:"Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.uid})},children:"View Log"}),(0,o.createComponentVNode)(2,i.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.uid})}})],4),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,c.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mecha beacons found."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MedicalRecords=void 0;var o=n(0),r=n(1),i=n(2),a=n(51),c=n(3),l=n(140),s=n(141),d=n(145),u={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},p=function(e,t){(0,a.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.MedicalRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,p=u.loginState,C=u.screen;return p.logged_in?(2===C?n=(0,o.createComponentVNode)(2,m):3===C?n=(0,o.createComponentVNode)(2,h):4===C?n=(0,o.createComponentVNode)(2,f):5===C?n=(0,o.createComponentVNode)(2,N):6===C&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal),(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,d.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,s.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return a("search",{t1:t})}}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}}),(0,o.createVNode)(1,"br")],4,t)}))})],4)},h=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all")}})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.medical,s=c.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,i.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,g)}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"spinner":"print",disabled:s,iconSpin:!!s,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,i.Box,{height:"20px",display:"inline-block",children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return p(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"right",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"General records lost!"})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,prewrap:!0,children:[e.value,(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return p(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,i.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,i.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return c("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.virus;return c.sort((function(e,t){return e.name>t.name?1:-1})),c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,t)}))},b=function(e,t){var n=(0,r.useBackend)(t).data.medbots;return 0===n.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},V=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.screen;return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,o.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:u[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.MiningVendor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);var l={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.MiningVendor=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.has_id,s=c.id;return(0,o.createComponentVNode)(2,a.NoticeBox,{success:l,children:l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return r("logoff")}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),s=c.has_id,d=c.id,u=c.items,m=(0,i.useLocalState)(t,"search",""),h=m[0],f=(m[1],(0,i.useLocalState)(t,"sort","Alphabetical")),C=f[0],g=(f[1],(0,i.useLocalState)(t,"descending",!1)),N=g[0],b=(g[1],(0,r.createSearch)(h,(function(e){return e[0]}))),V=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(b).map((function(e){return e[1].affordable=s&&d.points>=e[1].price,e[1]})).sort(l[C]);if(0!==n.length)return N&&(n=n.reverse()),V=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:V?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),s=(c[0],c[1]),d=(0,i.useLocalState)(t,"descending",!1),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return s(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return p(!u)}})})]})})},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=e.title,s=e.items,d=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},d,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!c.has_id||c.id.points=0||(r[n]=e[n]);return r}t.Multitool=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,p=l.multitoolMenuId,v=l.buffer,x=l.bufferName,y=l.bufferTag,k=l.canBufferHaveTag,w=l.isAttachedAlreadyInBuffer,_=l.attachedName,B=!("default_no_machine"===p);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Configuration menu",py:.3,children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:_,noMachine:"default_no_machine"===p,noMachineText:"No machine attached"}),function(e){switch(e){case"default_no_machine":case"no_options":return(0,o.createComponentVNode)(2,h);case"access_denied":return(0,o.createComponentVNode)(2,f);case"tag_only":return(0,o.createComponentVNode)(2,C);case"frequency_and_tag":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C)],4);case"air_sensor":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,N)],4);case"general_air_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,b)],4);case"large_tank_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,b)],4);default:return"WE SHOULDN'T BE HERE!"}}(p)]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Divider)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:w?"Added":"Add machine",icon:"save",disabled:!B||w,onClick:function(){return r("buffer_add")}}),(0,o.createComponentVNode)(2,a.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!v,onClick:function(){return r("buffer_flush")}})],4),children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:x,noMachine:!v,noMachineElem:(0,o.createComponentVNode)(2,d,{text:""})}),!!v&&(0,o.createComponentVNode)(2,m,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:k?(0,o.createComponentVNode)(2,u,{text:y,defaultText:"",color:"silver"}):(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})};var s=function(e,t){var n=e.iconName,r=e.machineName,i=e.noMachine,c=e.noMachineText,l=e.noMachineElem,s=i?c:r||"Unknown machine",d=s===c,u=s===c||"Unknown machine"===s;return i&&l?l:(0,o.createComponentVNode)(2,a.Flex,{mt:.1,mb:1.9,children:[!i&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{mr:1,size:1.1,name:n})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,o.createComponentVNode)(2,a.Box,{as:"span",wordWrap:"break-word",color:d?"label":"silver",fontSize:"1.1rem",bold:!0,italic:u,children:s})})]})},d=function(e,t){var n=e.text;return(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:n})},u=function(e,t){var n=e.text,r=e.defaultText,i=l(e,["text","defaultText"]);return n?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"span",wordWrap:"break-word"},i,{children:n}))):(0,o.createComponentVNode)(2,d,{text:r})},p=function(e,t){var n=e.noConfirm,r=void 0!==n&&n,i=l(e,["noConfirm"]);return r?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({},i))):(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button.Confirm,Object.assign({},i)))},m=function(e,t){var n=e.label,r=e.wrapContent,i=e.noWrapContent,c=e.compactLabel,s=void 0!==c&&c,d=l(e,["label","wrapContent","noWrapContent","compactLabel"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},d,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:s?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:s?"auto":0,maxWidth:s?"none":20,color:"label",nowrap:!0,children:n}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:r}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:.1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:i})]})))},h=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},f=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.attachedTag;return(0,o.createComponentVNode)(2,m,{label:"ID tag",wrapContent:(0,o.createComponentVNode)(2,u,{text:c,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Set",icon:"wrench",onClick:function(){return r("set_tag")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!c,onClick:function(){return r("clear_tag")}})],4)})},g=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.frequency,d=l.minFrequency,u=l.maxFrequency,p=l.canReset;return(0,o.createComponentVNode)(2,m,{label:"Frequency",noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},onChange:function(e,t){return c("set_frequency",{frequency:10*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:!p,tooltip:"Reset",onClick:function(){return c("reset_frequency")}})],4)})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.bolts,s=[{bitflag:1,checked:c.pressureCheck,label:"Monitor pressure"},{bitflag:2,checked:c.temperatureCheck,label:"Monitor temperature"},{bitflag:4,checked:c.oxygenCheck,label:"Monitor oxygen concentration"},{bitflag:8,checked:c.toxinsCheck,label:"Monitor plasma concentration"},{bitflag:16,checked:c.nitrogenCheck,label:"Monitor nitrogen concentration"},{bitflag:32,checked:c.carbonDioxideCheck,label:"Monitor carbon dioxide concentration"}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Floor bolts",noWrapContent:(0,o.createComponentVNode)(2,a.Button,{icon:l?"check":"times",selected:l,content:l?"YES":"NO",onClick:function(){return r("toggle_bolts")}})}),s.map((function(e){return(0,o.createComponentVNode)(2,m,{label:e.label,noWrapContent:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.checked,onClick:function(){return r("toggle_flag",{bitflag:e.bitflag})}})},e.bitflag)}))],0)},b=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.sensors;return(0,o.createComponentVNode)(2,a.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,o.createComponentVNode)(2,a.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){return r("add_sensor")}}),children:[(0,o.createComponentVNode)(2,m,{mr:0,compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:11.3})]})}),Object.keys(c).map((function(e){return(0,o.createComponentVNode)(2,m,{mr:0,label:(0,o.createComponentVNode)(2,a.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{align:"center",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:e}),c[e]?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:c[e]}):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"edit",onClick:function(){return r("change_label",{sensor_tag:e})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!c[e],onClick:function(){return r("clear_label",{sensor_tag:e})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:.5}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){return r("del_sensor",{sensor_tag:e})}})})]})},e)}))]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.inputTag,s=c.outputTag,d=c.bufferTag,h=c.bufferFitsInput,f=c.bufferFitsOutput,C=c.doNotLinkAndNotify;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Input",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:l,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!l,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:l&&d===l,disabled:!h,onClick:function(){return r("link_input")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!l,onClick:function(){return r("unlink_input")}})],4)}),(0,o.createComponentVNode)(2,m,{label:"Output",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:s,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!s,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:s&&d===s,disabled:!f,onClick:function(){return r("link_output")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!s,onClick:function(){return r("unlink_output")}})],4)})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.Newscaster=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(49),l=n(3),s=n(51),d=n(145);function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var p=["security","engineering","medical","science","service","supply"],m={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}};t.Newscaster=function(e,t){var n,c=(0,i.useBackend)(t),u=c.act,p=c.data,m=p.is_security,g=p.is_admin,N=p.is_silent,V=p.is_printing,v=p.screen,x=p.channels,y=p.channel_idx,k=void 0===y?-1:y,w=(0,i.useLocalState)(t,"menuOpen",!1),_=w[0],B=w[1],S=(0,i.useLocalState)(t,"viewingPhoto",""),L=S[0],A=(S[1],(0,i.useLocalState)(t,"censorMode",!1)),E=A[0],I=A[1];0===v||2===v?n=(0,o.createComponentVNode)(2,f):1===v&&(n=(0,o.createComponentVNode)(2,C));var D=x.reduce((function(e,t){return e+t.unread}),0);return(0,o.createComponentVNode)(2,l.Window,{theme:m&&"security",children:[L?(0,o.createComponentVNode)(2,b):(0,o.createComponentVNode)(2,s.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,a.Section,{stretchContents:!0,className:(0,r.classes)(["Newscaster__menu",_&&"Newscaster__menu--open"]),children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{flex:"0 1 content",children:[(0,o.createComponentVNode)(2,h,{icon:"bars",title:"Toggle Menu",onClick:function(){return B(!_)}}),(0,o.createComponentVNode)(2,h,{icon:"newspaper",title:"Headlines",selected:0===v,onClick:function(){return u("headlines")},children:D>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:D>=10?"9+":D})}),(0,o.createComponentVNode)(2,h,{icon:"briefcase",title:"Job Openings",selected:1===v,onClick:function(){return u("jobs")}}),(0,o.createComponentVNode)(2,a.Divider)]}),(0,o.createComponentVNode)(2,a.Box,{flex:"2",overflowY:"auto",overflowX:"hidden",children:x.map((function(e){return(0,o.createComponentVNode)(2,h,{icon:e.icon,title:e.name,selected:2===v&&x[k-1]===e,onClick:function(){return u("channel",{uid:e.uid})},children:e.unread>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:e.unread>=10?"9+":e.unread})},e)}))}),(0,o.createComponentVNode)(2,a.Box,{width:"100%",flex:"0 0 content",children:[(0,o.createComponentVNode)(2,a.Divider),(!!m||!!g)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,h,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"wanted_notice")}}),(0,o.createComponentVNode)(2,h,{security:!0,icon:E?"minus-square":"minus-square-o",title:"Censor Mode: "+(E?"On":"Off"),mb:"0.5rem",onClick:function(){return I(!E)}}),(0,o.createComponentVNode)(2,a.Divider)],4),(0,o.createComponentVNode)(2,h,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"create_story")}}),(0,o.createComponentVNode)(2,h,{icon:"plus-circle",title:"New Channel",onClick:function(){return(0,s.modalOpen)(t,"create_channel")}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,h,{icon:V?"spinner":"print",iconSpin:V,title:V?"Printing...":"Print Newspaper",onClick:function(){return u("print_newspaper")}}),(0,o.createComponentVNode)(2,h,{icon:N?"volume-mute":"volume-up",title:"Mute: "+(N?"On":"Off"),onClick:function(){return u("toggle_mute")}})]})]})}),(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,d.TemporaryNotice),n]})]})})]})};var h=function(e,t){(0,i.useBackend)(t).act;var n=e.icon,c=void 0===n?"":n,l=e.iconSpin,s=e.selected,d=void 0!==s&&s,p=e.security,m=void 0!==p&&p,h=e.onClick,f=e.title,C=e.children,g=u(e,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Newscaster__menuButton",d&&"Newscaster__menuButton--selected",m&&"Newscaster__menuButton--security"]),onClick:h},g,{children:[d&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,o.createComponentVNode)(2,a.Icon,{name:c,spin:l,size:"2"}),(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--title",children:f}),C]})))},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.screen,d=c.is_admin,u=c.channel_idx,p=c.channel_can_manage,m=c.channels,h=c.stories,f=c.wanted,C=(0,i.useLocalState)(t,"fullStories",[]),N=C[0],b=(C[1],(0,i.useLocalState)(t,"censorMode",!1)),V=b[0],v=(b[1],2===l&&u>-1?m[u-1]:null);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!f&&(0,o.createComponentVNode)(2,g,{story:f,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:v?v.icon:"newspaper",mr:"0.5rem"}),v?v.name:"Headlines"],0),flexGrow:"1",children:h.length>0?h.slice().reverse().map((function(e){return!N.includes(e.uid)&&e.body.length+3>128?Object.assign({},e,{body_short:e.body.substr(0,124)+"..."}):e})).map((function(e){return(0,o.createComponentVNode)(2,g,{story:e},e)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no stories at this time."]})}),!!v&&(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"info-circle",mr:"0.5rem"}),(0,o.createTextVNode)("About")],4),buttons:(0,o.createFragment)([V&&(0,o.createComponentVNode)(2,a.Button,{disabled:!!v.admin&&!d,selected:v.censored,icon:v.censored?"comment-slash":"comment",content:v.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){return r("censor_channel",{uid:v.uid})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"cog",content:"Manage",onClick:function(){return(0,s.modalOpen)(t,"manage_channel",{uid:v.uid})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:v.description||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:v.author||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Public",children:v["public"]?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Views",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"eye",mr:"0.5rem"}),h.reduce((function(e,t){return e+t.view_count}),0).toLocaleString()]})]})})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.jobs,s=c.wanted,d=Object.entries(l).reduce((function(e,t){t[0];return e+t[1].length}),0);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!s&&(0,o.createComponentVNode)(2,g,{story:s,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"briefcase",mr:"0.5rem"}),(0,o.createTextVNode)("Job Openings")],4),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:d>0?p.map((function(e){return Object.assign({},m[e],{id:e,jobs:l[e]})})).filter((function(e){return!!e&&e.jobs.length>0})).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+e.id]),title:e.title,buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:e.fluff_text}),children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{"class":(0,r.classes)(["Newscaster__jobOpening",!!e.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",e.title]},e.title)}))},e.id)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",children:["Interested in serving Nanotrasen?",(0,o.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,o.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=e.story,u=e.wanted,p=void 0!==u&&u,m=(0,i.useLocalState)(t,"fullStories",[]),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"censorMode",!1),g=C[0];C[1];return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__story",p&&"Newscaster__story--wanted"]),title:(0,o.createFragment)([p&&(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle",mr:"0.5rem"}),(2&d.censor_flags?"[REDACTED]":d.title)||"News from "+d.author],0),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[!p&&g&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.createComponentVNode)(2,a.Button,{enabled:2&d.censor_flags,icon:2&d.censor_flags?"comment-slash":"comment",content:2&d.censor_flags?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){return l("censor_story",{uid:d.uid})}})}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",d.author," |\xa0",!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"eye"}),(0,o.createTextVNode)(" "),d.view_count.toLocaleString(),(0,o.createTextVNode)(" |\xa0")],0),(0,o.createComponentVNode)(2,a.Icon,{name:"clock"})," ",(0,c.timeAgo)(d.publish_time,s.world_time)]})]})}),children:(0,o.createComponentVNode)(2,a.Box,{children:2&d.censor_flags?"[REDACTED]":(0,o.createFragment)([!!d.has_photo&&(0,o.createComponentVNode)(2,N,{name:"story_photo_"+d.uid+".png",float:"right",ml:"0.5rem"}),(d.body_short||d.body).split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),d.body_short&&(0,o.createComponentVNode)(2,a.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){return f([].concat(h,[d.uid]))}}),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})],0)})})},N=function(e,t){var n=e.name,r=u(e,["name"]),c=(0,i.useLocalState)(t,"viewingPhoto",""),l=(c[0],c[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"img",className:"Newscaster__photo",src:n,onClick:function(){return l(n)}},r)))},b=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Newscaster__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),c=!!e.args.uid&&r.channels.filter((function(t){return t.uid===e.args.uid})).pop();if("manage_channel"!==e.id||c){var l="manage_channel"===e.id,d=!!e.args.is_admin,u=e.args.scanned_user,p=(0,i.useLocalState)(t,"author",(null==c?void 0:c.author)||u||"Unknown"),m=p[0],h=p[1],f=(0,i.useLocalState)(t,"name",(null==c?void 0:c.name)||""),C=f[0],g=f[1],N=(0,i.useLocalState)(t,"description",(null==c?void 0:c.description)||""),b=N[0],V=N[1],v=(0,i.useLocalState)(t,"icon",(null==c?void 0:c.icon)||"newspaper"),x=v[0],y=v[1],k=(0,i.useLocalState)(t,"isPublic",!!l&&!!(null==c?void 0:c["public"])),w=k[0],_=k[1],B=(0,i.useLocalState)(t,"adminLocked",1===(null==c?void 0:c.admin)||!1),S=B[0],L=B[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:l?"Manage "+c.name:"Create New Channel",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!d,width:"100%",value:m,onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:C,onInput:function(e,t){return g(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:b,onInput:function(e,t){return V(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Icon",children:[(0,o.createComponentVNode)(2,a.Input,{disabled:!d,value:x,width:"35%",mr:"0.5rem",onInput:function(e,t){return y(t)}}),(0,o.createComponentVNode)(2,a.Icon,{name:x,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Stories?",children:(0,o.createComponentVNode)(2,a.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){return _(!w)}})}),d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:S,icon:S?"lock":"lock-open",content:S?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return L(!S)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===m.trim().length||0===C.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:m,name:C.substr(0,49),description:b.substr(0,128),icon:x,"public":w?1:0,admin_locked:S?1:0}),(0,i.deleteLocalState)(t,"author","name","description","icon","public")}})]})}(0,s.modalClose)(t)};(0,s.modalRegisterBodyOverride)("create_channel",V),(0,s.modalRegisterBodyOverride)("manage_channel",V),(0,s.modalRegisterBodyOverride)("create_story",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.channels,u=c.channel_idx,p=void 0===u?-1:u,m=!!e.args.is_admin,h=e.args.scanned_user,f=d.slice().sort((function(e,t){if(p<0)return 0;var n=d[p-1];return n.uid===e.uid?-1:n.uid===t.uid?1:void 0})).filter((function(e){return m||!e.frozen&&(e.author===h||!!e["public"])})),C=(0,i.useLocalState)(t,"author",h||"Unknown"),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"channel",f.length>0?f[0].name:""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"title",""),k=y[0],w=y[1],_=(0,i.useLocalState)(t,"body",""),B=_[0],S=_[1],L=(0,i.useLocalState)(t,"adminLocked",!1),A=L[0],E=L[1];return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Create New Story",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Author",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!m,width:"100%",value:g,onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:v,options:f.map((function(e){return e.name})),mb:"0",width:"100%",onSelected:function(e){return x(e)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:k,onInput:function(e,t){return w(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:B,onInput:function(e,t){return S(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){return r(l?"eject_photo":"attach_photo")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,title:k,maxHeight:"13.5rem",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"}),B.split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})]})})}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:A,icon:A?"lock":"lock-open",content:A?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return E(!A)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===g.trim().length||0===v.trim().length||0===k.trim().length||0===B.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,"create_story","",{author:g,channel:v,title:k.substr(0,127),body:B.substr(0,1023),admin_locked:A?1:0}),(0,i.deleteLocalState)(t,"author","channel","title","body")}})]})})),(0,s.modalRegisterBodyOverride)("wanted_notice",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.wanted,u=!!e.args.is_admin,p=e.args.scanned_user,m=(0,i.useLocalState)(t,"author",(null==d?void 0:d.author)||p||"Unknown"),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"name",(null==d?void 0:d.title.substr(8))||""),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"description",(null==d?void 0:d.body)||""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"adminLocked",1===(null==d?void 0:d.admin_locked)||!1),k=y[0],w=y[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:"Manage Wanted Notice",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authority",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!u,width:"100%",value:h,onInput:function(e,t){return f(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",value:g,maxLength:"128",onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",value:v,maxLength:"512",rows:"4",onInput:function(e,t){return x(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){return r(l?"eject_photo":"attach_photo")}}),!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"})]}),u&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:k,icon:k?"lock":"lock-open",content:k?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return w(!k)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!d,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){r("clear_wanted_notice"),(0,s.modalClose)(t),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===h.trim().length||0===g.trim().length||0===v.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:h,name:g.substr(0,127),description:v.substr(0,511),admin_locked:k?1:0}),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaBloodScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3);t.NinjaBloodScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.vialIcons,d=l.noVialIcon,u=l.bloodOwnerNames,p=l.bloodOwnerSpecies,m=l.bloodOwnerTypes,h=l.blockButtons,f=l.scanStates,C="Button_blue",g="Button_disabled",N=["NoticeBox_red","NoticeBox","NoticeBox_blue"];return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"\u041e\u0431\u0440\u0430\u0437\u0446\u044b",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0446\u0430 \u043a\u0440\u043e\u0432\u0438. \u041c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u0440\u043e\u0432\u044c\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0430\u043c \u043a\u043b\u0430\u043d. \u0420\u0435\u0430\u0433\u0435\u043d\u0442\u044b \u0438\u043c \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043c\u0443\u0442\u0441\u044f \u0438\u043b\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c",tooltipPosition:"bottom-left"}),children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"center",children:[1,2,3].map((function(e,t){return(0,o.createComponentVNode)(2,a.FlexItem,{direction:"column",width:"33.3%",ml:t?2:0,children:[(0,o.createComponentVNode)(2,i.Section,{title:u[t]?"\u041a\u0440\u043e\u0432\u044c":"\u041d\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043d\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:N[f[t]],success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:h?g:C,height:"100%",width:"100%",disabled:h,onClick:function(){return c("vial_out",{button_num:t+1})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(s[t]||d),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:u[t]||" - ",content:"\u0420\u0430\u0441\u0430: "+(p[t]||" - ")+"\n\u0422\u0438\u043f \u043a\u0440\u043e\u0432\u0438: "+(m[t]||" - "),position:"bottom"})]})})]},t)}))}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:0===h?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043a\u0440\u043e\u0432\u044c \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u043d\u0443.",tooltipPosition:"bottom",onClick:function(){return c("scan_blood")}})})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data.progressBar;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"green",value:n,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",mt:1,children:n?"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 "+n+"%":"\u0420\u0435\u0436\u0438\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f"}),2)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaMindScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NinjaMindScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.occupantIcon,s=c.occupant_name,d=c.occupant_health,u=c.scanned_occupants,p="none"===s?1:0;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{shrink:1,alignContent:"left",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+l,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,alignContent:"right",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0418\u043c\u044f",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:d})]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u044b\u0442\u044c \u0438\u0437 \u0435\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u043b\u0430\u043d\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.",tooltipPosition:"bottom-left",onClick:function(){return a("scan_occupant")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e",width:"250px",textAlign:"center",disabled:p,tooltip:"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u043a\u0430\u043f\u0441\u0443\u043b\u044b",tooltipPosition:"bottom-left",onClick:function(){return a("go_out")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u0445\u0438\u0449\u0435\u043d. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u0440\u0430\u0437\u0431\u043e\u043b\u0442\u0430\u043b \u043e \u0432\u0430\u0441.",tooltipPosition:"bottom-left",onClick:function(){return a("teleport_out")}})]})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043c\u0438 \u043b\u044e\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,o.createComponentVNode)(2,i.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Box,{children:e.scanned_occupant})})},e.scanned_occupant)}))})})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NuclearBomb=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return l.extended?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Disk",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return c("auth")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Code",children:(0,o.createComponentVNode)(2,i.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){return c("code")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Arming & Disarming",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Bolted to floor",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authfull,content:l.anchored?"YES":"NO",onClick:function(){return c("toggle_anchor")}})}),l.authfull&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",children:(0,o.createComponentVNode)(2,i.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){return c("set_time")}})})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",color:l.timer?"red":"",children:l.time+"s"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){return c("toggle_safety")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Arm/Disarm",children:(0,o.createComponentVNode)(2,i.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){return c("toggle_armed")}})})]})})]})}):(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Deployment",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){return c("deploy")}})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(15),i=n(1),a=n(3),c=n(2),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,r=(0,i.useBackend)(t),l=r.act,s=r.data,d=s.hasOccupant,u=s.choice;return n=u?(0,o.createComponentVNode)(2,h):d?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var p=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[n.stat][0],children:l[n.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),s.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]])},t)},t)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:u[n.temperatureSuitability+3],children:[(0,r.round)(n.btCelsius),"\xb0C, ",(0,r.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Current Procedures",level:"2",children:n.inSurgery?n.surgeries.map((function(e){var t=e.bodypartName,n=e.surgeryName,r=e.stepName;return(0,o.createComponentVNode)(2,c.Section,{title:t,level:"4",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Procedure",children:n}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Next Step",children:r})]})},t)})):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No procedures ongoing."})})],4)},m=function(){return(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,l=a.verbose,s=a.health,d=a.healthAlarm,u=a.oxy,p=a.oxyAlarm,m=a.crit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"On":"Off",onClick:function(){return r(s?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:d,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("health_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:p,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("oxy_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,c.Button,{selected:m,icon:m?"toggle-on":"toggle-off",content:m?"On":"Off",onClick:function(){return r(m?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Orbit=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt},m=function(e,t){var n=e.name,o=t.name;if(!n||!o)return 0;var r=n.match(d),i=o.match(d);return r&&i&&n.replace(d,"")===o.replace(d,"")?parseInt(r[1],10)-parseInt(i[1],10):p(n,o)},h=function(e,t){var n=(0,i.useBackend)(t).act,r=e.searchText,c=e.source,l=e.title,s=c.filter(u(r));return s.sort(m),c.length>0&&(0,o.createComponentVNode)(2,a.Section,{title:l+" - ("+c.length+")",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return n("orbit",{ref:e.ref})}},e.name)}))})},f=function(e,t){var n=(0,i.useBackend)(t).act,r=e.color,c=e.thing;return(0,o.createComponentVNode)(2,a.Button,{color:r,onClick:function(){return n("orbit",{ref:c.ref})},children:c.name})};t.Orbit=function(e,t){for(var n,r=(0,i.useBackend)(t),s=r.act,d=r.data,C=d.alive,g=d.antagonists,N=(d.auto_observe,d.dead),b=d.ghosts,V=d.misc,v=d.npcs,x=(0,i.useLocalState)(t,"searchText",""),y=x[0],k=x[1],w={},_=l(g);!(n=_()).done;){var B=n.value;w[B.antag]===undefined&&(w[B.antag]=[]),w[B.antag].push(B)}var S=Object.entries(w);S.sort((function(e,t){return p(e[0],t[0])}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:"search",mr:1})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:y,onInput:function(e,t){return k(t)},onEnter:function(e,t){return function(e){for(var t=0,n=[S.map((function(e){return e[0],e[1]})),C,b,N,v,V];t0&&(0,o.createComponentVNode)(2,a.Section,{title:"Antagonists",children:S.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:t,level:2,children:n.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"bad",thing:e},e.name)}))},t)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Alive - ("+C.length+")",children:C.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"good",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Ghosts - ("+b.length+")",children:b.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"grey",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,h,{title:"Dead",source:N,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"NPCs",source:v,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"Misc",source:V,searchText:y})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemption=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3),l=function(e){return e.toLocaleString("en-US")+" pts"},s={bananium:"clown",tranquillite:"mime"};t.OreRedemption=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"content",mb:"0.5rem",children:(0,o.createComponentVNode)(2,d,{height:"100%"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",overflow:"hidden",children:[(0,o.createComponentVNode)(2,u,{height:"62%"}),(0,o.createComponentVNode)(2,p,{height:"38%"})]})]})})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.id,d=c.points,u=c.disk,p=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({},p,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"average",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID card",children:s?(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:s.name,tooltip:"Ejects the ID card.",onClick:function(){return a("eject_id")},style:{"white-space":"pre-wrap"}}):(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){return a("insert_id")}})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Collected points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.points)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed points",color:d>0?"good":"grey",bold:d>0&&"good",children:l(d)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!s,icon:"hand-holding-usd",content:"Claim",onClick:function(){return a("claim")}})})]}),(0,o.createComponentVNode)(2,i.Divider),u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Design disk",children:(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,icon:"eject",content:u.name,tooltip:"Ejects the design disk.",onClick:function(){return a("eject_disk")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stored design",children:(0,o.createComponentVNode)(2,i.Box,{color:u.design&&(u.compatible?"good":"bad"),children:u.design||"N/A"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!u.design||!u.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){return a("download")},mb:"0"})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.sheets),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,h,{ore:e},e.id)}))]})))},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.alloys),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,f,{ore:e},e.id)}))]})))},m=function(e,t){var n;return(0,o.createComponentVNode)(2,i.Box,{className:"OreHeader",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:e.title}),null==(n=e.columns)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:e[1],textAlign:"center",color:"label",bold:!0,children:e[0]})}))]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,a=e.ore;if(!(a.value&&a.amount<=0)||["$metal","$glass"].indexOf(a.id)>-1){var c=a.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"45%",align:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+(s[c]||c)+".png",verticalAlign:"middle",ml:"0rem"}),a.name]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",color:a.amount>0?"good":"gray",bold:a.amount>0,align:"center",children:a.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",children:a.value}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(a.amount,50),stepPixelSize:6,onChange:function(e,t){return n(a.value?"sheet":"alloy",{id:a.id,amount:t})}})})]})})}},f=function(e,t){var n=(0,r.useBackend)(t).act,c=e.ore,l=c.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"7%",align:"middle",children:(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+l+".png",verticalAlign:"middle",ml:"`0rem"})}),(0,o.createComponentVNode)(2,a.FlexItem,{basis:"30%",textAlign:"middle",align:"center",children:c.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"35%",textAlign:"middle",color:c.amount>0?"good":"gray",align:"center",children:c.description}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"10%",textAlign:"center",color:c.amount>0?"good":"gray",bold:c.amount>0,align:"center",children:c.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(c.amount,50),stepPixelSize:6,onChange:function(e,t){return n(c.value?"sheet":"alloy",{id:c.id,amount:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PAI=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(572);t.PAI=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.app_template,p=d.app_icon,m=d.app_title,h=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(u);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p,mr:1}),m,"pai_main_menu"!==u&&(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){return s("MASTER_back")}})]}),p:1,children:(0,o.createComponentVNode)(2,h)})})})}},function(e,t,n){var o={"./pai_advsecrecords.js":573,"./pai_atmosphere.js":574,"./pai_bioscan.js":575,"./pai_camera_bug.js":576,"./pai_directives.js":577,"./pai_doorjack.js":578,"./pai_encoder.js":579,"./pai_main_menu.js":580,"./pai_manifest.js":581,"./pai_medrecords.js":582,"./pai_messenger.js":583,"./pai_radio.js":584,"./pai_sec_chem.js":585,"./pai_secrecords.js":586,"./pai_signaler.js":587};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=572},function(e,t,n){"use strict";t.__esModule=!0,t.pai_advsecrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pai_advsecrecords=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Records",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_atmosphere=void 0;var o=n(0),r=n(1),i=n(195);t.pai_atmosphere=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.AtmosScan,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_bioscan=void 0;var o=n(0),r=n(1),i=n(2);t.pai_bioscan=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.app_data),c=a.holder,l=a.dead,s=a.health,d=a.brute,u=a.oxy,p=a.tox,m=a.burn,h=a.reagents,f=a.addictions,C=a.fractures,g=a.internal_bleeding;return c?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:s/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"blue",children:u})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxin Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"green",children:p})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:m})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:d})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Reagents",children:h?h.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:(0,o.createComponentVNode)(2,i.Box,{color:e.overdosed?"bad":"good",children:[" ",e.volume," ",e.overdosed?"OVERDOSED":""," "]})},e.id)})):"Reagents not found."}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Addictions",children:f?f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.addiction_name,children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[" Stage: ",e.stage," "]})},e.id)})):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Addictions not found."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fractures",children:(0,o.createComponentVNode)(2,i.Box,{color:C?"bad":"good",children:["Fractures ",C?"":"not"," detected."]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Bleedings",children:(0,o.createComponentVNode)(2,i.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_camera_bug=void 0;var o=n(0),r=n(1),i=n(2);t.pai_camera_bug=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Monitor",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_directives=void 0;var o=n(0),r=n(1),i=n(2);t.pai_directives=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.master,s=c.dna,d=c.prime,u=c.supplemental;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master",children:l?l+" ("+s+")":"None"}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Request DNA",children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){return a("getdna")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Prime Directive",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_doorjack=void 0;var o=n(0),r=n(1),i=n(2);t.pai_doorjack=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data.app_data,d=s.cable,u=s.machine,p=s.inprogress;s.progress,s.aborted;return n=u?(0,o.createComponentVNode)(2,i.Button,{selected:!0,content:"Connected"}):(0,o.createComponentVNode)(2,i.Button,{content:d?"Extended":"Retracted",color:d?"orange":null,onClick:function(){return l("cable")}}),u&&(a=(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hack",children:[(0,o.createComponentVNode)(2,i.Box,{color:p?"green":"red",children:[" In progress: ",p?"Yes":"No"," "]}),p?(0,o.createComponentVNode)(2,i.Button,{mt:1,color:"red",content:"Abort",onClick:function(){return l("cancel")}}):(0,o.createComponentVNode)(2,i.Button,{mt:1,content:"Start",onClick:function(){return l("jack")}})]})),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cable",children:n}),a]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_encoder=void 0;var o=n(0),r=n(1),i=n(2);t.pai_encoder=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.radio_name,s=c.radio_rank;return(0,o.createComponentVNode)(2,i.Section,{title:"Your name and rank in radio channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Your current name and rank",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new name",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newname",{newname:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new rank",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newrank",{newrank:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_main_menu=void 0;var o=n(0),r=n(1),i=n(2);t.pai_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.available_software,s=c.installed_software,d=c.installed_toggles,u=c.available_ram,p=c.emotions,m=c.current_emotion,h=[];return s.map((function(e){return h[e.key]=e.name})),d.map((function(e){return h[e.key]=e.name})),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available RAM",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Software",children:[l.filter((function(e){return!h[e.key]})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name+" ("+e.cost+")",icon:e.icon,disabled:e.cost>u,onClick:function(){return a("purchaseSoftware",{key:e.key})}},e.key)})),0===l.filter((function(e){return!h[e.key]})).length&&"No software available!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Software",children:[s.filter((function(e){return"mainmenu"!==e.key})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,onClick:function(){return a("startSoftware",{software_key:e.key})}},e.key)})),0===s.length&&"No software installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Toggles",children:[d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,selected:e.active,onClick:function(){return a("setToggle",{toggle_key:e.key})}},e.key)})),0===d.length&&"No toggles installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Select Emotion",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name,selected:e.id===m,onClick:function(){return a("setEmotion",{emotion:e.id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pai_manifest=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.CrewManifest,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_medrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_medrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_messenger=void 0;var o=n(0),r=n(1),i=n(196);t.pai_messenger=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return a.app_data.active_convo?(0,o.createComponentVNode)(2,i.ActiveConversation,{data:a.app_data}):(0,o.createComponentVNode)(2,i.MessengerList,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_radio=void 0;var o=n(0),r=n(1),i=n(15),a=n(2);t.pai_radio=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.app_data,s=l.minFrequency,d=l.maxFrequency,u=l.frequency,p=l.broadcasting;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(e){return(0,i.toFixed)(e,1)},onChange:function(e,t){return c("freq",{freq:t})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"Reset",icon:"undo",onClick:function(){return c("freq",{freq:"145.9"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggleBroadcast")},selected:p,content:p?"Enabled":"Disabled"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_sec_chem=void 0;var o=n(0),r=n(1),i=n(2);t.pai_sec_chem=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.holder,s=c.dead,d=c.health,u=c.current_chemicals,p=c.available_chemicals;return l?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Chemicals",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Chemicals",children:[p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name+" ("+e.cost+")",tooltip:e.desc,disabled:e.cost>u,onClick:function(){return a("secreteChemicals",{key:e.key})}},e.key)})),0===p.length&&"No chemicals available!"]})]})}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_secrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_secrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pai_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDA=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(589);t.PDA=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data),p=u.app;if(!u.owner)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var m=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(p.template);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Box,{mb:8}),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.idInserted,s=c.idLink,d=c.stationTime,u=c.cartridge_name;return(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[l?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",color:"transparent",onClick:function(){return a("Authenticate")},content:s})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No ID Inserted"}),u?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sd-card",color:"transparent",onClick:function(){return a("Eject")},content:"Eject "+u})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No Cartridge Inserted"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"right",bold:!0,m:1,children:d})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app;return(0,o.createComponentVNode)(2,i.Box,{className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){a("Home")}})})]})})}},function(e,t,n){var o={"./pda_atmos_scan.js":590,"./pda_janitor.js":591,"./pda_main_menu.js":592,"./pda_manifest.js":593,"./pda_medical.js":594,"./pda_messenger.js":196,"./pda_mob_hunt.js":595,"./pda_mule.js":596,"./pda_notes.js":597,"./pda_power.js":598,"./pda_secbot.js":599,"./pda_security.js":600,"./pda_signaler.js":601,"./pda_status_display.js":602,"./pda_supplyrecords.js":603};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=589},function(e,t,n){"use strict";t.__esModule=!0,t.pda_atmos_scan=void 0;var o=n(0),r=n(1),i=n(195);t.pda_atmos_scan=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.AtmosScan,{data:n})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_janitor=void 0;var o=n(0),r=n(1),i=n(2);t.pda_janitor=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.janitor),c=a.user_loc,l=a.mops,s=a.buckets,d=a.cleanbots,u=a.carts;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Locations",children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Bucket Locations",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))}),d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cleanbot Locations",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_main_menu=void 0;var o=n(0),r=(n(15),n(1)),i=n(2);t.pda_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.owner,s=c.ownjob,d=c.idInserted,u=c.categories,p=c.pai,m=c.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:u.map((function(e){var t=c.apps[e];return t&&t.length?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.uid in m?e.notify_icon:e.icon,iconSpin:e.uid in m,color:e.uid in m?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.uid})}},e.uid)}))},e):null}))})}),!!p&&(0,o.createComponentVNode)(2,i.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pda_manifest=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.CrewManifest)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_medical=void 0;var o=n(0),r=n(1),i=n(103);t.pda_medical=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mob_hunt=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mob_hunt=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.connected,s=c.wild_captures,d=c.no_collection,u=c.entry;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection Status",children:l?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:["Connected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){return a("Disconnect")}})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:["Disconnected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){return a("Reconnect")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Wild Captures",children:s})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Collection",mt:2,buttons:(0,o.createComponentVNode)(2,i.Box,{children:!d&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Previous",icon:"arrow-left",onClick:function(){return a("Prev")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Next",icon:"arrow-right",onClick:function(){return a("Next")}})]})}),children:d?"Your collection is empty! Go capture some Nano-Mobs!":u?(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:u.sprite,style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[u.nickname&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nickname",children:u.nickname}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.real_name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:u.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Primary Type",children:u.type1}),u.type2&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secondary Type",children:u.type2}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sd-card",onClick:function(){return a("Transfer")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Release",icon:"arrow-up",onClick:function(){return a("Release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){return a("Rename")}}),!!u.is_hacked&&(0,o.createComponentVNode)(2,i.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){return a("Set_Trap")}})]})]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Mob entry missing!"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mule=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mule=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.mulebot.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.mulebot.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.mulebot,s=l.botstatus,d=l.active,u=s.mode,p=s.loca,m=s.load,h=s.powr,f=s.dest,C=s.home,g=s.retn,N=s.pick;switch(u){case 0:n="Ready";break;case 1:n="Loading/Unloading";break;case 2:case 12:n="Navigating to delivery location";break;case 3:n="Navigating to Home";break;case 4:n="Waiting for clear path";break;case 5:case 6:n="Calculating navigation path";break;case 7:n="Unable to locate destination";break;default:n=u}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:[h,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Home",children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:(0,o.createComponentVNode)(2,i.Button,{content:f?f+" (Set)":"None (Set)",onClick:function(){return c("SetDest")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Load",children:(0,o.createComponentVNode)(2,i.Button,{content:m?m+" (Unload)":"None",disabled:!m,onClick:function(){return c("Unload")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Pickup",children:(0,o.createComponentVNode)(2,i.Button,{content:N?"Yes":"No",selected:N,onClick:function(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Return",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Yes":"No",selected:g,onClick:function(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Proceed",icon:"play",onClick:function(){return c("Start")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Return Home",icon:"home",onClick:function(){return c("ReturnHome")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_notes=void 0;var o=n(0),r=n(1),i=n(2);t.pda_notes=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.note;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:c}),(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_power=void 0;var o=n(0),r=n(1),i=n(198);t.pda_power=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.PowerMonitorMainContent)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_secbot=void 0;var o=n(0),r=n(1),i=n(2);t.pda_secbot=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.beepsky.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.beepsky.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.beepsky,s=l.botstatus,d=l.active,u=s.mode,p=s.loca;switch(u){case 0:n="Ready";break;case 1:n="Apprehending target";break;case 2:case 3:n="Arresting target";break;case 4:n="Starting patrol";break;case 5:n="On patrol";break;case 6:n="Responding to summons"}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Go",icon:"play",onClick:function(){return c("Go")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Summon",icon:"arrow-down",onClick:function(){return c("Summon")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_security=void 0;var o=n(0),r=n(1),i=n(103);t.pda_security=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pda_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_status_display=void 0;var o=n(0),r=n(1),i=n(2);t.pda_status_display=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){return a("Status",{statdisp:"alert",alert:"redalert"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){return a("Status",{statdisp:"alert",alert:"default"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){return a("Status",{statdisp:"alert",alert:"lockdown"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){return a("Status",{statdisp:"alert",alert:"biohazard"})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_supplyrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pda_supplyrecords=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.supply),c=a.shuttle_loc,l=a.shuttle_time,s=a.shuttle_moving,d=a.approved,u=a.approved_count,p=a.requests,m=a.requests_count;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:s?(0,o.createComponentVNode)(2,i.Box,{children:["In transit ",l]}):(0,o.createComponentVNode)(2,i.Box,{children:c})})}),(0,o.createComponentVNode)(2,i.Section,{mt:1,title:"Requested Orders",children:m>0&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.OrderedBy,'"']},e)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Approved Orders",children:u>0&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.ApprovedBy,'"']},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDAColorRow=t.PDAPainter=void 0;var o=n(0),r=n(1),i=n(3),a=n(2);t.PDAPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.statusLabel,u=s.pdaTypes,p=s.hasPDA,m=s.pdaIcon,h=s.pdaOwnerName,f=s.pdaJobName;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"\u041e\u0431\u0449\u0435\u0435",buttons:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:p?"eject":"exclamation-triangle",selected:p,content:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c":"-----",tooltip:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c PDA",tooltipPosition:"left",onClick:function(){return l(p?"eject_pda":"insert_pda")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0418\u043c\u044f",children:h||"\u041d/\u0414"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",children:f||"\u041d/\u0414"})]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:"column",flex:"1",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"160px",src:p?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,o.createComponentVNode)(2,a.LabeledList,{m:"5px",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:d})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{m:"5px",fluid:!0,disabled:!p,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044c PDA",confirmContent:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0437\u0430\u0432\u043e\u0434\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",tooltipPosition:"top",onClick:function(){return l("erase_pda")}})]})})})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:(0,o.createComponentVNode)(2,a.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Table,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c,{selectedPda:e,selectedPdaImage:u[e][0]},e)}))})})})})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.hasPDA,l=e.selectedPda,s=e.selectedPdaImage;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,disabled:!c,icon:s,content:l,confirmContent:"\u041f\u043e\u043a\u0440\u0430\u0441\u0438\u0442\u044c?",textAlign:"left",onClick:function(){return i("choose_pda",{selectedPda:l,selectedPdaImage:s})}})})]})};t.PDAColorRow=c},function(e,t,n){"use strict";t.__esModule=!0,t.Pacman=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.Pacman=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.broken,u=s.anchored,p=s.active,m=s.fuel_type,h=s.fuel_usage,f=s.fuel_stored,C=s.fuel_cap,g=s.is_ai,N=s.tmp_current,b=s.tmp_max,V=s.tmp_overheat,v=s.output_max,x=s.power_gen,y=s.output_set,k=s.has_fuel,w=f/C,_=N/b,B=y*x,S=Math.round(f/h),L=Math.round(S/60),A=S>120?L+" minutes":S+" seconds";return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(d||!u)&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:[!!d&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!u&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!u&&(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!k,selected:p,onClick:function(){return l("toggle_power")}}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",className:"ml-1",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power setting",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:y,minValue:1,maxValue:v,step:1,className:"mt-1",onDrag:function(e,t){return l("change_power",{change_power:t})}}),"(",(0,c.formatPower)(B),")"]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:_,ranges:{green:[-Infinity,.33],orange:[.33,.66],red:[.66,Infinity]},children:[N," \u2103"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[V>50&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),V>20&&V<=50&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"WARNING: Overheating!"}),V>1&&V<=20&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Temperature High"}),0===V&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fuel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:p||g||!k,onClick:function(){return l("eject_fuel")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Type",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:w,ranges:{red:[-Infinity,.33],orange:[.33,.66],green:[.66,Infinity]},children:[Math.round(f/1e3)," dm\xb3"]})})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xb3/s"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel depletion",children:[!!k&&(h?A:"N/A"),!k&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PersonalCrafting=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.busy,p=d.category,m=d.display_craftable_only,h=d.display_compact,f=d.prev_cat,C=d.next_cat,g=d.subcategory,N=d.prev_subcat,b=d.next_subcat;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,o.createComponentVNode)(2,i.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){return s("toggle_recipes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Compact Mode",icon:h?"check-square-o":"square-o",selected:h,onClick:function(){return s("toggle_compact")}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:f,icon:"arrow-left",onClick:function(){return s("backwardCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:C,icon:"arrow-right",onClick:function(){return s("forwardCat")}})]}),g&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:N,icon:"arrow-left",onClick:function(){return s("backwardSubCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:b,icon:"arrow-right",onClick:function(){return s("forwardSubCat")}})]}),h?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)}))]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Photocopier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(24);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne?this.substring(0,e)+"...":this};t.Photocopier=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data;"mode_aipic"!==d.mode||d.isAI||s("mode_copy");for(var u,p,m=(0,c.sortBy)((function(e){return e.category}))(d.forms||[]),h=[],f=l(m);!(u=f()).done;){var C=u.value;h.includes(C.category)||h.push(C.category)}return p=""===d.category?m:m.filter((function(e){return e.category===d.category})),(0,o.createComponentVNode)(2,a.Window,{theme:d.ui_theme,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u0442\u043e\u043d\u0435\u0440\u0430",color:d.toner>0?"good":"bad",children:d.toner}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u043b\u043e\u0442 \u0441\u043a\u0430\u043d\u0435\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:d.isAI||null===d.copyitem,content:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c",onClick:function(){return s("remove")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",children:[d.copies,(0,o.createComponentVNode)(2,i.Button,{icon:"minus",ml:2,disabled:!(d.copies>1),onClick:function(){return s("min")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"plus",disabled:!(d.copies<=d.toner),onClick:function(){return s("add")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043c",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"clone",disabled:0===d.toner,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",selected:"mode_copy"===d.mode?"selected":null,onClick:function(){return s("mode_copy")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"file",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c",selected:"mode_print"===d.mode?"selected":null,onClick:function(){return s("mode_print")}}),!!d.isAI&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",disabled:0===d.toner,content:"\u0424\u043e\u0442\u043e \u0438\u0437 \u0414\u0411",selected:"mode_aipic"===d.mode?"selected":null,onClick:function(){return s("mode_aipic")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c",children:["mode_copy"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.copyitem&&!d.ass,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",onClick:function(){return s("copy")}}),"mode_print"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.form,content:"\u041f\u0435\u0447\u0430\u0442\u044c",onClick:function(){return s("print_form")}}),"mode_aipic"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c \u0444\u043e\u0442\u043e",onClick:function(){return s("aipic")}})]})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0411\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044f"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u043e\u0440\u043c\u0430",children:""===d.form_id?"\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u0430":d.form_id})}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b",selected:""===d.category?"selected":null,onClick:function(){return s("choose_category",{category:null})},mb:1})}),h.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:e,selected:d.category===e?"selected":null,onClick:function(){return s("choose_category",{category:e})},mb:1},e)},e)}))]})]}),(0,o.createComponentVNode)(2,i.NoticeBox,{color:d.info_box_color,children:d.info_box})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:""===d.category?"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b":d.category}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e.id+": "+e.altername.trimLongStr(30),tooltip:e.id+": "+e.altername,selected:d.form===e.path?"selected":null,onClick:function(){return s("choose_form",{path:e.path,id:e.id})},mb:1},e.path)},e.path)}))})]})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PodTracking=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PodTracking=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.pods);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Position",children:[e.podx,", ",e.pody,", ",e.podz]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Passengers",children:e.passengers})]})},e.name)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PoolController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);var c={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},l=function(e,t){var n=e.tempKey,a=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["tempKey"]),l=c[n];if(!l)return null;var s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.currentTemp,m=l.label,h=l.icon,f=n===p;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({selected:f,onClick:function(){u("setTemp",{temp:n})}},a,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:h}),m]})))};t.PoolController=function(e,t){for(var n=(0,r.useBackend)(t).data,s=n.emagged,d=n.currentTemp,u=c[d]||c.normal,p=u.label,m=u.color,h=[],f=0,C=Object.entries(c);f0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Supplies",icon:"box",onClick:function(){return c("setScreen",{setScreen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})}})})]}),!!d&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:u?"Speaker Off":"Speaker On",selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")}})})]})},l=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data,d=s.department;switch(e.purpose){case"ASSISTANCE":n=s.assist_dept,a="Request assistance from another department";break;case"SUPPLIES":n=s.supply_dept,a="Request supplies from another department";break;case"INFO":n=s.info_dept,a="Relay information to another department"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.filter((function(e){return e!==d})).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:[(0,o.createComponentVNode)(2,i.Button,{content:"Message",icon:"envelope",onClick:function(){return l("writeInput",{write:e,priority:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){return l("writeInput",{write:e,priority:2})}})]},e)}))})})},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act;a.data;switch(e.type){case"SUCCESS":n="Message sent successfully";break;case"FAIL":n="Request supplies from another department"}return(0,o.createComponentVNode)(2,i.Section,{title:n,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})}})})},d=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data;switch(e.type){case"MESSAGES":n=s.message_log,a="Message Log";break;case"SHIPPING":n=s.shipping_log,a="Shipping label print log"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{className:"RequestConsole__message",children:e},e)}))})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.recipient,s=c.message,d=c.msgVerified,u=c.msgStamped;return(0,o.createComponentVNode)(2,i.Section,{title:"Message Authentication",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Recipient",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",color:"green",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stamped by",color:"blue",children:u})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){return a("department",{department:l})}})]})},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.message,s=c.announceAuth;return(0,o.createComponentVNode)(2,i.Section,{title:"Station-Wide Announcement",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.Button,{content:l||"Edit Message",icon:"edit",onClick:function(){return a("writeAnnouncement")}}),s?(0,o.createComponentVNode)(2,i.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,o.createComponentVNode)(2,i.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&l),onClick:function(){return a("sendAnnouncement")}})]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.shipDest,s=c.msgVerified,d=c.ship_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Print Shipping Label",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",children:s})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(l&&s),onClick:function(){return a("printLabel")}}),(0,o.createComponentVNode)(2,i.Section,{title:"Destinations",mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,i.Button,{content:l===e?"Selected":"Select",selected:l===e,onClick:function(){return a("shipSelect",{shipSelect:e})}})},e)}))})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RequestManager=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.RequestManager=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data.requests),p=(0,i.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(l).map((function(e){var t=e[0];e[1];return[t,!0]})))),m=p[0],h=(p[1],(0,i.useLocalState)(t,"searchText")),f=h[0],C=h[1],g=u.filter((function(e){return m[e.req_type]}));if(f){var N=f.toLowerCase();g=g.filter((function(e){return(0,r.decodeHtmlEntities)(e.message).toLowerCase().includes(N)||e.owner_name.toLowerCase().includes(N)}))}return(0,o.createComponentVNode)(2,c.Window,{title:"Request Manager",width:575,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Requests",buttons:(0,o.createComponentVNode)(2,a.Input,{value:f,onInput:function(e,t){return C(t)},placeholder:"Search...",mr:1}),children:g.map((function(e){return(0,o.createVNode)(1,"div","RequestManager__row",[(0,o.createVNode)(1,"div","RequestManager__rowContents",[(0,o.createVNode)(1,"h2","RequestManager__header",[(0,o.createVNode)(1,"span","RequestManager__headerText",[e.owner_name,null===e.owner&&" [DC]"],0),(0,o.createVNode)(1,"span","RequestManager__timestamp",e.timestamp_str,0)],4),(0,o.createVNode)(1,"div","RequestManager__message",[(0,o.createComponentVNode)(2,s,{requestType:e.req_type}),(0,r.decodeHtmlEntities)(e.message)],0)],4),null!==e.owner&&(0,o.createComponentVNode)(2,d,{request:e})],0,null,e.id)}))})})})};var l={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},s=function(e){var t=e.requestType;return(0,o.createVNode)(1,"b","RequestManager__"+t,[l[t],(0,o.createTextVNode)(":")],0)},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n._,e.request);return(0,o.createVNode)(1,"div","RequestManager__controlsContainer",[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("pp",{id:c.id})},children:"PP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("vv",{id:c.id})},children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("sm",{id:c.id})},children:"SM"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("tp",{id:c.id})},children:"TP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("logs",{id:c.id})},children:"LOGS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("bless",{id:c.id})},children:"BLESS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("smite",{id:c.id})},children:"SMITE"}),"request_prayer"!==c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("rply",{id:c.id})},children:"RPLY"}),"request_ert"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("ertreply",{id:c.id})},children:"ERTREPLY"}),"request_nuke"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("getcode",{id:c.id})},children:"GETCODE"})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CurrentLevels=void 0;var o=n(0),r=n(1),i=n(2);t.CurrentLevels=function(e,t){var n=(0,r.useBackend)(t).data.tech_levels;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),n.map((function(e,t){var n=e.name,r=e.level,a=e.desc;return(0,o.createComponentVNode)(2,i.Box,{children:[t>0?(0,o.createComponentVNode)(2,i.Divider):null,(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:["* Level: ",r]}),(0,o.createComponentVNode)(2,i.Box,{children:["* Summary: ",a]})]},n)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.DataDiskMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67),l=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;return l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:l.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_tech")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_tech")}}),(0,o.createComponentVNode)(2,u)]})]}):null},s=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;if(!l)return null;var s=l.name,d=l.lathe_types,p=l.materials,m=d.join(", ");return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:s}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lathe Types",children:m}):null,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required Materials"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["- ",(0,o.createVNode)(1,"span",null,e.name,0,{style:{"text-transform":"capitalize"}})," x ",e.amount]},e.name)})),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_design")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_design")}}),(0,o.createComponentVNode)(2,u)]})]})},d=function(e,t){var n=(0,r.useBackend)(t).data.disk_type;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"This disk is empty."}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{submenu:c.SUBMENU.DISK_COPY,icon:"arrow-down",content:"tech"===n?"Load Tech to Disk":"Load Design to Disk"}),(0,o.createComponentVNode)(2,u)]})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type;return l?(0,o.createComponentVNode)(2,i.Button,{content:"Eject Disk",icon:"eject",onClick:function(){c("tech"===l?"eject_tech":"eject_design")}}):null},p=function(e,t){var n=(0,r.useBackend)(t).data,a=n.disk_data,c=n.disk_type;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk Contents",children:function(){if(!a)return(0,o.createComponentVNode)(2,d);switch(c){case"design":return(0,o.createComponentVNode)(2,s);case"tech":return(0,o.createComponentVNode)(2,l);default:return null}}()})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type,s=a.to_copy;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var t=e.name,n=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:t,children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){c("tech"===l?"copy_tech":"copy_design",{id:n})}})},n)}))})})})};t.DataDiskMenu=function(e,t){return(0,r.useBackend)(t).data.disk_type?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,p)}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.DISK_COPY,render:function(){return(0,o.createComponentVNode)(2,m)}})],4):null}},function(e,t,n){"use strict";t.__esModule=!0,t.DeconstructionMenu=void 0;var o=n(0),r=n(1),i=n(2);t.DeconstructionMenu=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_item;return a.linked_destroy?l?(0,o.createComponentVNode)(2,i.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:["Name: ",l.name]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.origin_tech.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+e.name,children:[e.object_level," ",e.current_level?(0,o.createFragment)([(0,o.createTextVNode)("(Current: "),e.current_level,(0,o.createTextVNode)(")")],0):null]},e.name)}))}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Options:",16)}),(0,o.createComponentVNode)(2,i.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){c("deconstruct")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject Item",icon:"eject",onClick:function(){c("eject_item")}})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,o.createComponentVNode)(2,i.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheCategory=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheCategory=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.category,d=c.matching_designs,u=4===c.menu?"build":"imprint";return(0,o.createComponentVNode)(2,i.Section,{title:s,children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,i.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:d.map((function(e){var t=e.id,n=e.name,r=e.can_build,a=e.materials;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:n,disabled:r<1,onClick:function(){return l(u,{id:t,amount:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=5?(0,o.createComponentVNode)(2,i.Button,{content:"x5",onClick:function(){return l(u,{id:t,amount:5})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=10?(0,o.createComponentVNode)(2,i.Button,{content:"x10",onClick:function(){return l(u,{id:t,amount:10})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a.map((function(e){return(0,o.createFragment)([" | ",(0,o.createVNode)(1,"span",e.is_red?"color-red":null,[e.amount,(0,o.createTextVNode)(" "),e.name],0)],0)}))})]},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheChemicalStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheChemicalStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_chemicals,s=4===a.menu;return(0,o.createComponentVNode)(2,i.Section,{title:"Chemical Storage",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Purge All",icon:"trash",onClick:function(){c(s?"disposeallP":"disposeallI")}}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){var t=e.volume,n=e.name,r=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+t+" of "+n,children:(0,o.createComponentVNode)(2,i.Button,{content:"Purge",icon:"trash",onClick:function(){c(s?"disposeP":"disposeI",{id:r})}})},r)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheMainMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.menu,d=c.categories,u=4===s?"Protolathe":"Circuit Imprinter";return(0,o.createComponentVNode)(2,i.Section,{title:u+" Menu",children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,a.LatheSearch),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",content:e,onClick:function(){l("setCategory",{category:e})}})},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterials=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterials=function(e,t){var n=(0,r.useBackend)(t).data,a=n.total_materials,c=n.max_materials,l=n.max_chemicals,s=n.total_chemicals;return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,o.createComponentVNode)(2,i.Table,{width:"auto",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a}),c?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+c}):null]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),l?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+l}):null]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterialStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterialStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_materials;return(0,o.createComponentVNode)(2,i.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){var t=e.id,n=e.amount,r=e.name,l=function(e){var n=4===a.menu?"lathe_ejectsheet":"imprinter_ejectsheet";c(n,{id:t,amount:e})},s=Math.floor(n/2e3),d=n<1,u=1===s?"":"s";return(0,o.createComponentVNode)(2,i.Table.Row,{className:d?"color-grey":"color-yellow",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"210px",children:["* ",n," of ",r]}),(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"110px",children:["(",s," sheet",u,")"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:n>=2e3?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"1x",icon:"eject",onClick:function(){return l(1)}}),(0,o.createComponentVNode)(2,i.Button,{content:"C",icon:"eject",onClick:function(){return l("custom")}}),n>=1e4?(0,o.createComponentVNode)(2,i.Button,{content:"5x",icon:"eject",onClick:function(){return l(5)}}):null,(0,o.createComponentVNode)(2,i.Button,{content:"All",icon:"eject",onClick:function(){return l(50)}})],0):null})]},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMenu=void 0;var o=n(0),r=n(1),i=n(199),a=n(52),c=n(2),l=n(67);t.LatheMenu=function(e,t){var n=(0,r.useBackend)(t).data,s=n.menu,d=n.linked_lathe,u=n.linked_imprinter;return 4!==s||d?5!==s||u?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,a.LatheMainMenu)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CATEGORY,render:function(){return(0,o.createComponentVNode)(2,a.LatheCategory)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheMaterialStorage)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheChemicalStorage)}})]}):(0,o.createComponentVNode)(2,c.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,o.createComponentVNode)(2,c.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheSearch=void 0;var o=n(0),r=n(1),i=n(2);t.LatheSearch=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"Search...",onChange:function(e,t){return n("search",{to_search:t})}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.MainMenu=function(e,t){var n=(0,r.useBackend)(t).data,l=n.disk_type,s=n.linked_destroy,d=n.linked_lathe,u=n.linked_imprinter,p=n.tech_levels;return(0,o.createComponentVNode)(2,i.Section,{title:"Main Menu",children:[(0,o.createComponentVNode)(2,i.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!l,menu:c.MENU.DISK,submenu:c.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!s,menu:c.MENU.DESTROY,submenu:c.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,menu:c.MENU.LATHE,submenu:c.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!u,menu:c.MENU.IMPRINTER,submenu:c.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{menu:c.MENU.SETTINGS,submenu:c.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"12px"}),(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){var t=e.name,n=e.level;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavbar=void 0;var o=n(0),r=n(52),i=n(2),a=n(67);t.RndNavbar=function(){return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__RndNavbar",children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e!==a.MENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{menu:a.MENU.MAIN,submenu:a.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{submenu:function(e){return e!==a.SUBMENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.DISK,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.LATHE,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.IMPRINTER,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.SETTINGS,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}})]})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e===a.MENU.LATHE||e===a.MENU.IMPRINTER},submenu:a.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavButton=void 0;var o=n(0),r=n(1),i=n(2);t.RndNavButton=function(e,t){var n=e.icon,a=e.children,c=e.disabled,l=e.content,s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.menu,m=d.submenu,h=p,f=m;return null!==e.menu&&e.menu!==undefined&&(h=e.menu),null!==e.submenu&&e.submenu!==undefined&&(f=e.submenu),(0,o.createComponentVNode)(2,i.Button,{content:l,icon:n,disabled:c,onClick:function(){u("nav",{menu:h,submenu:f})},children:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.SettingsMenu=function(e,t){var n=(0,r.useBackend)(t),l=n.data,s=n.act,d=l.sync,u=l.admin,p=l.linked_destroy,m=l.linked_lathe,h=l.linked_imprinter;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Sync Database with Network",icon:"sync",disabled:!d,onClick:function(){s("sync")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Connect to Research Network",icon:"plug",disabled:d,onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,content:"Device Linkage Menu",icon:"link",menu:c.MENU.SETTINGS,submenu:c.SUBMENU.SETTINGS_DEVICES}),1===u?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){return s("maxresearch")}}):null]})})}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage Menu",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){return s("find_device")}}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",children:(0,o.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"destroy"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Protolathe",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){s("disconnect",{item:"lathe"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),h?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"imprinter"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RobotSelfDiagnosis=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18),l=function(e,t){var n=e/t;return n<=.2?"good":n<=.5?"average":"bad"};t.RobotSelfDiagnosis=function(e,t){var n=(0,r.useBackend)(t).data.component_data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.capitalize)(e.name),children:e.installed<=0?(0,o.createComponentVNode)(2,i.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:-1===e.installed?"Destroyed":"Missing"})})}):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"72%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",color:l(e.brute_damage,e.max_damage),children:e.brute_damage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",color:l(e.electronic_damage,e.max_damage),children:e.electronic_damage})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Powered",color:e.powered?"good":"bad",children:e.powered?"Yes":"No"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Enabled",color:e.status?"good":"bad",children:e.status?"Yes":"No"})]})})]})},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.can_hack,u=s.safety,p=s.show_detonate_all,m=s.cyborgs,h=void 0===m?[]:m;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,i.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,c,{cyborgs:h,can_hack:d})]})})};var c=function(e,t){var n=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(t)),c=a.act,l=a.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return c("hackbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return c("stopbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{uid:e.uid})}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,i.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,i.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,i.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.uid)})):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cyborg units detected within access parameters."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Safe=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Safe=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),u=d.dial,p=d.open;d.locked,d.contents;return(0,o.createComponentVNode)(2,a.Window,{theme:"safe",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,o.createComponentVNode)(2,i.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,o.createVNode)(1,"br"),p?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!p&&(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.dial,s=c.open,d=c.locked,u=function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:s||t&&!d,icon:"arrow-"+(t?"right":"left"),content:(t?"Right":"Left")+" "+e,iconRight:t,onClick:function(){return a(t?"turnleft":"turnright",{num:e})},style:{"z-index":10}})};return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){return a("open")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{position:"absolute",children:[u(50),u(10),u(1)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[u(1,!0),u(10,!0),u(50,!0)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--number",children:l})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.contents;return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--contents",overflow:"auto",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mb:"0.5rem",onClick:function(){return a("retrieve",{index:t+1})},children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,o.createVNode)(1,"br")],4,e)}))})},s=function(e,t){return(0,o.createComponentVNode)(2,i.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,o.createComponentVNode)(2,i.Box,{children:["1. Turn the dial left to the first number.",(0,o.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,o.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,o.createVNode)(1,"br"),"4. Open the safe."]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.satellites,d=l.notice,u=l.meteor_shield,p=l.meteor_shield_coverage,m=l.meteor_shield_coverage_max,h=l.meteor_shield_coverage_percentage;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,i.Section,{title:"Station Shield Coverage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:h>=100?"good":"average",value:p,maxValue:m,children:[h," %"]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Satellite Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"#"+e.id,children:[e.mode," ",(0,o.createComponentVNode)(2,i.Button,{content:e.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){return c("toggle",{id:e.id})}})]},e.id)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecureStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SecureStorage=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.emagged,d=l.locked,u=l.l_set,p=l.l_setshort,m=l.current_code,h=function(e){var t=e.buttonValue,n=e.color;return n||(n="default"),(0,o.createComponentVNode)(2,i.Button,{disabled:s||p,type:"button",color:n,onClick:function(){return c("setnumber",{buttonValue:t})},children:t})};return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,i.Flex,{spacing:"1",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"Code Panel",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"1"}),(0,o.createComponentVNode)(2,h,{buttonValue:"2"}),(0,o.createComponentVNode)(2,h,{buttonValue:"3"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"4"}),(0,o.createComponentVNode)(2,h,{buttonValue:"5"}),(0,o.createComponentVNode)(2,h,{buttonValue:"6"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"7"}),(0,o.createComponentVNode)(2,h,{buttonValue:"8"}),(0,o.createComponentVNode)(2,h,{buttonValue:"9"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"R",color:"red"}),(0,o.createComponentVNode)(2,h,{buttonValue:"0"}),(0,o.createComponentVNode)(2,h,{buttonValue:"E",color:"green"})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Status",children:s||p?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:s?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),s?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secure Code",children:(0,o.createComponentVNode)(2,i.Box,{color:u?"red":"green",children:u?"*****":"NOT SET. ENTER NEW."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:d?"red":"green",children:d?"Locked":"Unlocked"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{children:m||"Waiting for input"})}),(0,o.createComponentVNode)(2,i.Button,{top:".35em",left:".5em",disabled:d,color:"red",content:"Lock",icon:"lock",onClick:function(){return c("close")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(51),d=n(140),u=n(141),p=n(145),m={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},h=function(e,t){(0,s.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,r=(0,i.useBackend)(t),c=(r.act,r.data),m=c.loginState,h=c.currentPage;return m.logged_in?(1===h?n=(0,o.createComponentVNode)(2,C):2===h?n=(0,o.createComponentVNode)(2,b):3===h&&(n=(0,o.createComponentVNode)(2,V)),(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:[(0,o.createComponentVNode)(2,s.ComplexModal),(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,d.LoginInfo),(0,o.createComponentVNode)(2,p.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,a.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,u.LoginScreen)})})};var f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.currentPage,s=c.general;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===l,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===l,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]}),3===l&&s&&!s.empty&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===l,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"file"}),"Record: ",s.fields[0].value]})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.records,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","name")),p=u[0],h=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),f=h[0];h[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Table,{className:"SecurityRecords__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,g,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,g,{id:"id",children:"ID"}),(0,o.createComponentVNode)(2,g,{id:"rank",children:"Assignment"}),(0,o.createComponentVNode)(2,g,{id:"fingerprint",children:"Fingerprint"}),(0,o.createComponentVNode)(2,g,{id:"status",children:"Criminal Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.name+"|"+e.id+"|"+e.rank+"|"+e.fingerprint+"|"+e.status}))).sort((function(e,t){var n=f?1:-1;return e[p].localeCompare(t[p])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"SecurityRecords__listRow--"+m[e.status],onClick:function(){return c("view",{uid_gen:e.uid_gen,uid_sec:e.uid_sec})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fingerprint}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.status})]},e.id)}))]})})]})},g=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.isPrinting,d=(0,i.useLocalState)(t,"searchText",""),u=(d[0],d[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Record",icon:"plus",onClick:function(){return r("new_general")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Cell Log",ml:"0.25rem",onClick:function(){return(0,s.modalOpen)(t,"print_cell_log")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",width:"100%",onInput:function(e,t){return u(t)}})})]})},b=function(e,t){var n=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("delete_security_all")},mb:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){return n("delete_cell_logs")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.isPrinting,s=c.general,d=c.security;return s&&s.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Record",onClick:function(){return r("print_record")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated to this crew member!",tooltipPosition:"bottom-left",content:"Delete Record",onClick:function(){return r("delete_general")}})],4),children:(0,o.createComponentVNode)(2,v)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",level:2,mt:"-12px",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:d.empty,content:"Delete Record",onClick:function(){return r("delete_security")}}),children:(0,o.createComponentVNode)(2,x)})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},v=function(e,t){var n=(0,i.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{float:"left",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(""+e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",right:"0",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},x=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)(t,"comment_add")}}),children:0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:e.header||"Auto-generated"}),(0,o.createVNode)(1,"br"),e.text||e,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("comment_delete",{id:t+1})}})]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Create New Record",mt:"0.5rem",onClick:function(){return c("new_security")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SeedExtractor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3),l={title:"Seeds",plantName:"Plant",lifespan:"Lifespan",endurance:"Endurance",maturation:"Maturation",production:"Production",yield:"Yield",potency:"Potency",searchTooltip:"Search..",sortByTooltip:"Sort by",dispOneTooltip:"Dispense one",dispAllTooltip:"Dispense all",inStock:"in stock",noContents:"No seeds loaded.",emptySearchResult:"No items matching your criteria was found!"},s={plantName:function(e,t){return e.display_name!==t.display_name?e.display_name>t.display_name?1:-1:0},lifespan:function(e,t){return e.life-t.life},endurance:function(e,t){return e.endr-t.endr},maturation:function(e,t){return e.matr-t.matr},production:function(e,t){return e.prod-t.prod},yield:function(e,t){return e.yld-t.yld},potency:function(e,t){return e.potn-t.potn}};t.SeedExtractor=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),s=r.total,d=r.capacity,h=r.contents;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,u),m:0,p:0,children:(0,o.createComponentVNode)(2,p,{seedsTotal:s,seedsCapacity:d})}),h?(0,o.createVNode)(1,"div","Divider Divider__noMargin"):(0,o.createComponentVNode)(2,a.NoticeBox,{m:0,children:[" ",l.noContents," "]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:1,stretchContents:!0,mt:0,children:!!h&&(0,o.createComponentVNode)(2,m)})]})})};var d=function(e,t){var n=e.name,r=e.alpha,c=(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1}),s=c[0],d=c[1];return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,iconRight:!0,icon:s.field!==n?"":s.desc?r?"sort-alpha-down":"sort-amount-down":r?"sort-alpha-up":"sort-amount-up",color:"transparent",textColor:"white",content:l[n],tooltip:l.sortByTooltip+" "+n.toLowerCase(),tooltipPosition:"bottom",onClick:function(){s.field!==e.name?d({field:n,desc:!1}):d({field:n,desc:!s.desc})}})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]);return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",width:"50vw",style:{display:"block"},children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:"filter"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:l.searchTooltip,width:"100%",onInput:function(e,t){return r(t)}})})]})})},p=function(e,t){var n=e.seedsTotal,r=e.seedsCapacity;return(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",bold:!0,align:"baseline",mt:0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",children:(0,o.createComponentVNode)(2,d,{name:"plantName",alpha:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"lifespan"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"endurance"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"maturation"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"production"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"yield"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"potency"})})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,color:"average",children:[n,"/",r]})]})},m=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data.contents),d=(0,i.useLocalState)(t,"search",""),u=d[0],p=(d[1],(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1})),m=p[0],f=(p[1],(0,r.createSearch)(u,(function(e){return e.display_name+e.strain_text}))),C=c.filter(f).sort(s[m.field]);m.desc&&(C=C.reverse());var g=0===C.length;return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[!!g&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[" ",l.emptySearchResult," "]}),!g&&(0,o.createComponentVNode)(2,a.Box,{className:"SeedExtractor__Contents",children:C.map((function(e){return(0,o.createComponentVNode)(2,h,{displayName:e.display_name,descriptionText:e.strain_text,lifespanVal:e.life,enduranceVal:e.endr,maturationVal:e.life,productionVal:e.prod,yieldVal:e.yld,potencyVal:e.potn,vendIdx:e.vend,pileStock:e.quantity},e.vend)}))})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,e.key,e.displayName),s=e.descriptionText,d=e.lifespanVal,u=e.enduranceVal,p=e.maturationVal,m=e.productionVal,h=e.yieldVal,f=e.potencyVal,C=e.vendIdx,g=e.pileStock;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",className:"SeedExtractor__contents--row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",textAlign:"left",bold:!0,children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:c})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",py:1,children:(0,o.createVNode)(1,"table",null,[(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:d}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:u}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:p}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:m}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:h}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:f})]}),2),2),(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,s,0,{style:{"font-size":"90%","padding-top":"0.5em"}}),2)],4,{style:{width:"100%",border:"0"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,py:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{color:"good",children:[g," ",l.inStock]}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"25px",pt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"1",tooltip:"Dispense one",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:1})}}),(0,o.createComponentVNode)(2,a.NumberInput,{width:"40px",minValue:0,value:0,maxValue:g,step:1,stepPixelSize:3,onChange:function(e,t){return r("vend",{index:C,amount:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:g})}})]})]})})]}),(0,o.createComponentVNode)(2,a.Divider)],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsoleContent=t.ShuttleConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=e.type,u=void 0===s?"shuttle":s,p=e.blind_drop,m=l.authorization_required;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:240,children:[!!m&&(0,o.createComponentVNode)(2,i.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,children:(0,o.createComponentVNode)(2,i.Icon,{name:"minus-circle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,ml:2,color:"bad",children:"shuttle"===u?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:"18px",mt:4,children:(0,o.createComponentVNode)(2,i.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return c("request")}})})]}),(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d,{type:u,blind_drop:p})})]})};var c=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.id===t})))?void 0:n.name},l=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.name===t})))?void 0:n.id},s={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=e.type,p=e.blind_drop,m=d.status,h=d.locked,f=d.authorization_required,C=d.destination,g=d.docked_location,N=d.timer_str,b=d.locations,V=void 0===b?[]:b;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:s[m]||"bad",ml:1,children:m||"Not Available"})]}),(0,o.createComponentVNode)(2,i.Section,{title:"shuttle"===u?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",buttons:"shuttle"!==u&&0===V.length&&!!p&&(0,o.createComponentVNode)(2,i.Button,{color:"bad",icon:"exclamation-triangle",disabled:f||!p,content:"Blind Drop",onClick:function(){return a("random")}}),children:0===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"bad",children:"Not Available"})||1===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"average",children:c(V,C)})||(0,o.createComponentVNode)(2,i.Dropdown,{mb:1.7,over:!0,width:"240px",options:V.map((function(e){return e.name})),disabled:h||f,selected:c(V,C)||"Select a Destination",onSelected:function(e){return a("set_destination",{destination:l(V,e)})}})})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:"Depart",disabled:!c(V,C)||h||f||"Idle"!==m,icon:"arrow-up",textAlign:"center",onClick:function(){return a("move",{shuttle_id:C})}})]})]})};t.ShuttleConsoleContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleManipulator=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},icon:"info-circle",content:"Status"},"Status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},icon:"file-import",content:"Templates"},"Templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},icon:"tools",content:"Modification"},"Modification")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.shuttles;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:e.id}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Timer",children:e.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Mode",children:e.mode}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:e.status}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){return a("fast_travel",{id:e.id})}})]})]})},e.name)}))})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.templates_tabs,s=c.existing_shuttle,d=c.templates;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e===s.id,icon:"file",content:e,onClick:function(){return a("select_template_category",{cat:e})}},e)}))}),!!s&&d[s.id].templates.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Load Template",icon:"download",onClick:function(){return a("select_template",{shuttle_id:e.shuttle_id})}})})]})},e.name)}))]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.existing_shuttle,s=c.selected;return(0,o.createComponentVNode)(2,i.Box,{children:[l?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: "+l.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l.status}),l.timer&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Timer",children:l.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:l.id})}})})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: None"}),s?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: "+s.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",icon:"eye",onClick:function(){return a("preview",{shuttle_id:s.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",icon:"download",onClick:function(){return a("load",{shuttle_id:s.shuttle_id})}})]})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: None"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.hasOccupant?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,g));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[r,(0,o.createComponentVNode)(2,f)]})})};var p=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,C)],4)},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data,d=s.occupant,p=s.auto_eject_dead;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,content:p?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(p?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(d.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[d.stat][0],children:l[d.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxTemp,value:d.bodyTemperature/d.maxTemp,color:u[d.temperatureSuitability+3],children:[(0,r.round)(d.btCelsius,0),"\xb0C,",(0,r.round)(d.btFaren,0),"\xb0F"]})}),!!d.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.bloodMax,value:d.bloodLevel/d.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[d.bloodPercent,"%, ",d.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[d.pulse," BPM"]})],4)]})})},h=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]],0)},t)},t)}))})})},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.hasOccupant,s=c.isBeakerLoaded,d=c.beakerMaxSpace,u=c.beakerFreeSpace,p=c.dialysis&&u>0;return(0,o.createComponentVNode)(2,a.Section,{title:"Dialysis",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!s||u<=0||!l,selected:p,icon:p?"toggle-on":"toggle-off",content:p?"Active":"Inactive",onClick:function(){return r("togglefilter")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:u/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[u,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.occupant,s=c.chemicals,d=c.maxchem,u=c.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Chemicals",flexGrow:"1",children:s.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:e.occ_amount/d,color:i,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[e.pretty_amount,"/",d,"u"]}),u.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>d||2===l.stat,icon:"syringe",content:"Inject "+t+"u",title:"Inject "+t+"u of "+e.title+" into the occupant",mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SlotMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SlotMachine=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return null===s.money?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"Could not scan your card or could not find account!"}),(0,o.createComponentVNode)(2,i.Box,{children:"Please wear or hold your ID and try again."})]})})}):(n=1===s.plays?s.plays+" player has tried their luck today!":s.plays+" players have tried their luck today!",(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{lineHeight:2,children:n}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Credits Remaining",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:s.money})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"50 credits to spin",children:(0,o.createComponentVNode)(2,i.Button,{icon:"coins",disabled:s.working,content:s.working?"Spinning...":"Spin",onClick:function(){return l("spin")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,lineHeight:2,color:s.resultlvl,children:s.result})]})})}))}},function(e,t,n){"use strict";t.__esModule=!0,t.Smartfridge=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Smartfridge=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.secure,d=l.can_dry,u=l.drying,p=l.contents;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[!!s&&(0,o.createComponentVNode)(2,i.Section,{title:"Secure",children:(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Secure Access: Please have your identification ready."})}),!!d&&(0,o.createComponentVNode)(2,i.Section,{title:"Drying rack",children:(0,o.createComponentVNode)(2,i.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){return c("drying")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Contents",children:[!p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:" No products loaded. "}),!!p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"45%",children:e.display_name}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"25%",children:["(",e.quantity," in stock)"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){return c("vend",{index:e.vend,amount:1})}}),(0,o.createComponentVNode)(2,i.NumberInput,{width:"40px",minValue:0,value:0,maxValue:e.quantity,step:1,stepPixelSize:3,onChange:function(t,n){return c("vend",{index:e.vend,amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all. ",onClick:function(){return c("vend",{index:e.vend,amount:e.quantity})}})]})]},e)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(1),i=n(2),a=n(100),c=n(3);t.Smes=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.capacityPercent,u=(s.capacity,s.charge),p=s.inputAttempt,m=s.inputting,h=s.inputLevel,f=s.inputLevelMax,C=s.inputAvailable,g=s.outputAttempt,N=s.outputting,b=s.outputLevel,V=s.outputLevelMax,v=s.outputUsed,x=(d>=100?"good":m&&"average")||"bad",y=(N?"good":u>0&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*d,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return l("tryinput")},children:p?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:x,children:(d>=100?"Fully Charged":m&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===h,onClick:function(){return l("input",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===h,onClick:function(){return l("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:h/1e3,fillValue:C/1e3,minValue:0,maxValue:f/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("input",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:h===f,onClick:function(){return l("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:h===f,onClick:function(){return l("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(C)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return l("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:y,children:N?"Sending":u>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===b,onClick:function(){return l("output",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===b,onClick:function(){return l("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:b/1e3,minValue:0,maxValue:V/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("output",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:b===V,onClick:function(){return l("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:b===V,onClick:function(){return l("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(v)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.generated,d=l.generated_ratio,u=l.tracking_state,p=l.tracking_rate,m=l.connected_panels,h=l.connected_tracker,f=l.cdir,C=l.direction,g=l.rotating_direction;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return c("refresh")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar panels",color:m>0?"good":"bad",children:m})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:d,children:s+" W"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[f,"\xb0 (",C,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[2===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Automated "}),1===u&&(0,o.createComponentVNode)(2,i.Box,{children:[" ",p,"\xb0/h (",g,") "]}),0===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Tracker offline "})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[2!==u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(e,t){return c("cdir",{cdir:t})}}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===u,onClick:function(){return c("track",{track:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===u,onClick:function(){return c("track",{track:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===u,disabled:!h,onClick:function(){return c("track",{track:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[1===u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onDrag:function(e,t){return c("tdir",{tdir:t})}}),0===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Tracker offline "}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{mb:.5,title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){return c("jump",{ID:e.uids})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){return c("spawn",{ID:e.uids})}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:e.desc}),!!e.fluff&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:e.fluff}),!!e.important_info&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsole=t.SpiderOS=void 0;var o=n(0),r=n(1),i=n(2),a=n(64),c=n(3);t.SpiderOS=function(e,t){var n,a=(0,r.useBackend)(t),f=a.act,C=a.data;return 0===C.suit_tgui_state?n=(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"60%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,p)})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})]}):1===C.suit_tgui_state&&(n=(0,o.createComponentVNode)(2,i.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h,{allMessages:C.current_load_text,finishedTimeout:3e3,current_initialisation_phase:C.current_initialisation_phase,end_terminal:C.end_terminal,onFinished:function(){return f("set_UI_state",{suit_tgui_state:0})}})]})})),(0,o.createComponentVNode)(2,c.Window,{theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:n})})})};var l=function(e,t){var n=(0,r.useBackend)(t).data,a=n.allStylesPreview,c=n.style_preview_icon_state;return(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u041d\u0430\u0448\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u044f \u043e\u0431\u043e\u0440\u043e\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043f\u0440\u0438 \u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0443\u0431\u0438\u0439\u0446\u044b.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+a[c],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})})})})},s=function(e,t){var n,a,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data,p=u.designs,m=u.design_choice,h=u.scarf_design_choice,f=u.colors,C=u.color_choice,g=u.genders,N=u.preferred_clothes_gender,b=u.suit_state,V=u.preferred_scarf_over_hood,v=u.show_charge_UI,x=u.has_martial_art,y=u.show_concentration_UI;return n=0===b?"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c":"\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c",a=0===V?"\u041a\u0430\u043f\u044e\u0448\u043e\u043d":"\u0428\u0430\u0440\u0444",c=1===V?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c \u0448\u0430\u0440\u0444\u0430",content:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:h,onSelected:function(e){return d("set_scarf_design",{scarf_design_choice:e})}})}):null,l=x?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f",content:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{selected:y,width:"78px",textAlign:"left",content:y?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_concentration")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043b\u0438 \u0432\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432\u043e\u0433\u043e \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-left"})]})}):null,(0,o.createComponentVNode)(2,i.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,width:"100%",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:m,onSelected:function(e){return d("set_design",{design_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:f,selected:C,onSelected:function(e){return d("set_color",{color_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0416\u0435\u043d\u0441\u043a\u0438\u0439/\u041c\u0443\u0436\u0441\u043a\u043e\u0439",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:g,selected:N,onSelected:function(e){return d("set_gender",{preferred_clothes_gender:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041a\u0430\u043f\u044e\u0448\u043e\u043d",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===b?"":"Button_disabled",width:"78px",selected:V,disabled:b,textAlign:"left",content:a,onClick:function(){return d("toggle_scarf")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043a\u0430\u043f\u044e\u0448\u043e\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043e\u0441\u044b. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 \u0433\u043e\u043b\u043e\u0432\u0430 \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430! \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u0430\u043d\u043e-\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0433\u0440\u043e\u0437\u044b \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u044f \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443! \u0423\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0430\u043d\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0443\u0431\u043e\u0440\u043e\u0432 \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0435.',tooltipPosition:"top-left"})]}),c,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Button,{selected:v,width:"78px",textAlign:"left",content:v?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_charge")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u0440\u044f\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430.",tooltipPosition:"top-left"})]}),l]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+C,success:0,danger:0,mt:-1.2,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:n,tooltip:"\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u043d\u0451\u043c \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043b\u044e\u0431\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0441\u0442\u044e\u043c \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u0430\u0440\u044f\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-left",onClick:function(){return d("initialise_suit")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data.allActionsPreview;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041c\u043e\u043b\u043e\u0434\u044b\u043c \u0443\u0431\u0438\u0439\u0446\u0430\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0445 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a. \n\u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043c\u0438\u0441\u0441\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u0432\u044b\u0434\u0430\u0434\u0443\u0442 \u0438\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_teleport,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u0438 \u0448\u0430\u0442\u0442\u043b",content:"\u0412 \u0432\u0430\u0448\u0435\u043c \u0414\u043e\u0434\u0437\u0451 \u0435\u0441\u0442\u044c \u043b\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f, \u043d\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043d\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u043e\u043d\u043d\u0435\u043b\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \n\u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \n\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0448\u0430\u0442\u0442\u043b\u0430, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0442\u0435\u0442\u044c \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432\u0430\u043c, \u0447\u0442\u043e \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043a\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043b\u0430 \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043b\u0438\u0446, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.headset_green,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a",content:"\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0439, \u043d\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043c\u043e\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0438. \u0412 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0431\u043e\u0440\u0433\u043e\u043c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u043d\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043e\u043d \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u0438 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0438 \u0438/\u0438\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u0430\u043c \u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0441\u0432\u044f\u0437\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438- \u0447\u0435\u0441\u043a\u0438 \u0443\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0432\u0430\u043c \u0441\u0430\u043c\u0438\u043c \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_sleeper,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0445\u0438\u0449\u0435\u043d\u0438\u0435 \u044d\u043a\u0438\u043f\u0430\u0436\u0430",content:"\u041f\u043e\u0440\u043e\u0439 \u043a\u043b\u0430\u043d\u0443 \u043d\u0443\u0436\u043d\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0434\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0443\u0436\u043e\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u0440\u0443\u043f\u0438\u0446\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u043e\u0445\u0438\u0449\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \n\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0445\u0438- \u0442\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u043a\u0430\u0444\u0430\u043d\u0434\u0440\u044b, \u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043f\u0430\u0441 \u043d\u0430- \u0440\u0443\u0447\u043d\u0438\u043a\u043e\u0432, \u043a\u0438\u0441\u043b\u043e\u0440\u043e\u0434\u0430 \u0438 \u0431\u0430\u043b\u043b\u043e- \u043d\u043e\u0432. \n\u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043b\u044e\u0434\u0435\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043c\u043f\u0443\u043b\u044c\u0441, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0442\u0430\u043d\u044f \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. ",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ai_face,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043d\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0430\u0431\u043e- \u0442\u0430\u0436 \u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u0440\u043e- \u0446\u0435\u0441\u0441 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043e\u0442 \u043d\u0430\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \n\u041f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u043a\u043b\u0430\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439. \u0422\u0430\u043a \u0436\u0435 \u0432\u0437\u043b\u043e\u043c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u043b\u0451\u0433\u043a\u0430\u044f - \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u0435\u0441\u0442\u044c \u0432\u0435\u0437\u0434\u0435. \u0410 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f. \u041d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c \u0435\u0441\u043b\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0434\u0435\u0439\u0441\u0442- \u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c \u0435\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_borg,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0440\u043e\u0431\u043e\u0442\u043e\u0432",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044f \u0432\u0430\u0448\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0438\u0441\u0441\u0438\u0438 \u0434\u043b\u044f \u0438\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u043c\u044b \u0434\u0430\u0451\u043c \u0432\u0430\u043c \u043e\u0441\u043e\u0431\u044b\u0439 "\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0449\u0438\u0439" \u0438\u0445 \u043f\u0440\u0438\u0431\u043e\u0440, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438. \n\u041f\u0440\u0438 \u0432\u0437\u043b\u043e\u043c\u0435 \u043a\u0438\u0431\u043e\u0440\u0433\u0430 \u0442\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c(\u0412\u0437\u043b\u043e\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f) \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u043d\u0443 \u0438 \u0432\u0430\u043c \u043b\u0438\u0447\u043d\u043e \u0441\u043b\u0443\u0433\u0443 \u0441\u043f\u043e\u0441\u043e\u0431- \u043d\u043e\u0433\u043e \u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u0430\u043a \u0432 \u0441\u0430\u0431\u043e\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0442\u0430\u043a \u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u0435\u0447\u0435\u043d\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0440\u043e\u0431\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u0430\u0449\u0451\u043d \u043b\u0438\u0447\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043d\u043e\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0438\u043d\u043f\u043e\u0438\u043d\u0442\u0435\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0435\u043c\u0443 \u043d\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u043e\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043a\u0430\u0442\u0430\u043d\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u043e\u043a\u0430\u0446\u0438\u044e!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.server,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",content:"\u041d\u0430 \u043d\u0430\u0443\u0447\u043d\u044b\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0447\u0451\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e- \u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0445\u043e- \u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435 \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0443- \u043f\u0430\u044e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043d\u043e \u0433\u0440\u044b\u0437\u0443\u0442\u0441\u044f \u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u044f. \u0427\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443. \n\u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0440\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0430 \u0438\u0445 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044f\u043d\u044b. \n\u041d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u043d\u0435 \u0434\u0440\u0435\u043c\u043b\u044e\u0442. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0437\u043b\u043e\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0451\u043d \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0418\u0418. \u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u044d\u0442\u043e\u043c\u0443.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.buckler,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043b\u0438",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u043e\u0433\u0430\u0442\u044b\u0435 \u0448\u0438\u0448\u043a\u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0437\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044f\u0437\u0430\u043d \u0434\u043e\u0436\u0438\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u043c\u0435\u043d\u044b! \n * \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b! \n * \u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0442\u043e \u0438\u043b\u0438 \u0447\u0442\u043e \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0434\u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043c\u0438\u0441\u0441\u0438\u044f \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e. \u041d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044f \u0431\u0435\u0437 \u043d\u0443\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u043d\u0430 \u0432\u0430\u0441 \u0441\u0430\u043c\u0438\u0445 \u043d\u0435 \u0432\u0435\u043b\u0438 \u043e\u0445\u043e\u0442\u0443! \n\u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0430\u043d \u043d\u0435 \u043e\u0434\u043e\u0431\u0440\u044f\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b "\u0417\u0430\u0449\u0438\u0442\u044b" \u0446\u0435\u043b\u0438. \u041d\u0435\u0442 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043d\u0438\u043c \u0442\u0430\u043c! \u041d\u0435 \u043f\u043e\u0440\u0442\u0438\u0442\u0435 \u043d\u0430\u0448\u0443 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e \u0432 \u0433\u043b\u0430\u0437\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.cash,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041a\u0440\u0430\u0436\u0430 \u0434\u0435\u043d\u0435\u0433",content:"\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e. \u0418\u043d\u043e\u0433\u0434\u0430 \u043a\u043b\u0430\u043d \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u043d\u044c- \u0433\u0430\u0445. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b \u0437\u0430\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u043d\u0430\u043c. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u0434\u0438\u043c \u0432\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043b\u044f \u0432\u0430\u0441 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0442\u0440\u0443\u0434\u043d\u0430\u044f, \u043d\u043e \u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0445 \u043a\u0440\u0430\u0436. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043a\u0430\u0440\u0442 \u0438 \u043e\u0431\u043d\u0430\u043b\u0438\u0447\u0438- \u0432\u0430\u043d\u0438\u044f \u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u0438 \u043e\u0433\u0440\u0430\u0431\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435. \u0414\u043e\u0441\u0442\u0430\u043d\u044c\u0442\u0435 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438!",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.handcuff,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430",content:"\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0447\u0443\u0436\u043e\u0439 \u043f\u043e\u0437\u043e\u0440 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0447\u0435\u043c \u0441\u043c\u0435\u0440\u0442\u044c. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432\u0430\u043c \u043f\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u044c \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043f\u043e \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0443\u043f\u0435\u043a\u043b\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0446\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0434. \u041d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0441\u0440\u043e\u043a \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 - \u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0435\u0442\u043e\u0434. \u0426\u0435\u043b\u044c \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u044e\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043b\u0438\u0447\u0438\u043d\u043e\u0439 \u0446\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u0441\u043b\u0438\u0448- \u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041b\u0438\u0448\u043d\u044f\u044f \u0434\u044b\u0440\u0430 \u0432 \u043e\u0431\u0448\u0438\u0432\u043a\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u0442\u0440\u0443\u043f\u044b - \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0448\u0430\u043d\u0441\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0430.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.spider_charge,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0440\u044b\u0432 \u043e\u0442\u0434\u0435\u043b\u0430",content:"\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 \u0431\u043e\u043c\u0431\u044b. \u042d\u0444\u0444\u0435\u043a- \u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0440\u0443\u0434\u0438\u044f \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0433\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0441\u044f\u0442 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u043e\u0431\u044c\u0435\u043a\u0442, \u043e\u043d\u0438 \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u041d\u043e \u0440\u0435\u0434\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b \u0441\u0434\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u043d\u0430 \u043f\u043e\u0434\u0440\u044b\u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u0430. \n\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0437\u0440\u044b\u0432\u0430 \u043d\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044c \u043e\u0445\u043e\u0442\u0430. \n \u041d\u0430\u0448\u0438 \u0431\u043e\u043c\u0431\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u0435\u043b\u044f\u043c\u0438. \u041d\u0438\u043a\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u0430\u0441 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043b\u0438\u0448\u044c \u0432 \u0437\u043e\u043d\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0421\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.BSM,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u0440\u043e\u0432\u0438",content:'"\u0417\u043d\u0430\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430" - \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u0438\u043d\u0430. \n\u0417\u0430 \u0433\u043e\u0434\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u043d\u0430 \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e- \u0442\u043e\u0440\u044b\u0445. \u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b. \u041a\u0440\u043e\u0432\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430\u0448\u0438\u043c \u0443\u0447\u0451\u043d\u044b\u043c. \n\u0418\u043c\u0435\u044e\u0449\u0430\u044f\u0441\u044f \u0443 \u0432\u0430\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043d\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043b\u044f \u043a\u0440\u043e\u0432\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b \u043d\u0435 \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430\u043c. \n\u0414\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u0440\u043e\u0432\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c 3 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043f\u043e\u043c\u0435- \u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043f\u0440\u043e\u0431\u0438\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \n\u041f\u0440\u0438\u043c\u0435\u0441\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.changeling,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0413\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u044b",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043e\u0437\u043e\u043c\u043d\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044f \u0432\u044b\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u043c\u0435\u044e\u0442 \u043a\u0440\u0430\u0441\u0442\u044c \u0433\u0435\u043d\u044b \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \n\u0421\u0432\u043e\u0438\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431- \u043b\u0435\u043c, \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u044b. \n\u042d\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043e\u043b\u044c \u0436\u0435 \u0445\u0438\u0442\u0440\u044b \u0441\u043a\u043e\u043b\u044c \u0438 \u0441\u043a\u0440\u044b\u0442\u043d\u044b. \u041d\u0435 \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0438 \u043e \u0447\u0451\u043c! \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0430\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0433\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u0430 \u043d\u0435 \u0437\u0430\u043f\u0438\u0445- \u043d\u0443\u0432 \u0435\u0433\u043e \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e \u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442\u043e\u0432. \u041d\u043e \u043e\u043d\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u043d\u0430 \u0434\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0438\u0445 \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0430\u0439\u0442\u0435 \u0438\u043c \u043f\u043e\u043f\u043b\u044f\u0441\u0430\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443. \u0418 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0445\u0440\u0430\u043d\u0430 \u0443\u0436\u0435 \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043d\u0438\u0445. \n\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c \u0441 \u044d\u0442\u0438\u043c...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.vampire,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u043c\u043f\u0438\u0440\u044b",content:"\u0414\u0435\u0448\u0451\u0432\u044b\u0435 \u0440\u043e\u043c\u0430\u043d\u044b, \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432\u0430\u043c\u043f\u0438\u0440\u043e\u0432 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a\u043e\u0432 \u043f\u044c\u044e\u0449\u0438\u0445 \u043a\u0440\u043e\u0432\u044c \u043b\u044e\u0434\u0435\u0439 \u0432 \u043d\u043e\u0447\u0438 \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e- \u0449\u0438\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e- \u0441\u0442\u044f\u043c\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0440\u043e\u043c\u0430\u043d\u0442\u0438\u0447\u043d\u044b... \n\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043d\u043e \u043d\u0430\u0448\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435- \u043d\u0438\u044f \u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0439 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0422\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432\u0430\u043c\u043f\u0438\u0440 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u0438\u043b\u0438 \u0443\u0433\u0440\u043e\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u044b \u0432\u043e\u043b\u044c\u043d\u044b \u0435\u0433\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \n\u0412\u0430\u043c\u043f\u0438\u0440\u044b \u043e\u0447\u0435\u043d\u044c \u043e\u043f\u0430\u0441\u043d\u044b \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438, \u043e\u043d\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043e\u0433\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u0438 \u043f\u043e\u0440\u0430\u0431\u043e\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c \u0441\u0432\u043e\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0438\u043c, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u0442\u0435 - \u043e\u043d\u0438 \u043b\u0438\u0448\u044c \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.syndicate,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442",content:"\u041d\u0430\u0448\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435. \u0421\u0431\u043e\u0440\u0438\u0449\u0435 \u043c\u043e\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043f\u043e\u0434\u043f\u043e\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043c\u0430\u043b\u043e... \n\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0430\u0437\u043e\u0432. \u041d\u043e \u0441\u0430\u043c\u043e\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043e\u0439 \u044d\u0442\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b - \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u044c \u043a \u041d\u0422. \n\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0430. \n\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u044e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041c\u044b \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u043c \u0438\u043c.",position:"bottom-left"})]})]})})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.allActionsPreview,s=c.blocked_TGUI_rows,d=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,o.createComponentVNode)(2,i.Section,{title:"\u041c\u043e\u0434\u0443\u043b\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u0414\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 3 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432",tooltipPosition:"bottom"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0440\u0438\u0437\u0440\u0430\u043a",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0421\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043e\u0432, \u043d\u0430\u043f\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043d\u0438 \u0438 \u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0440\u0438\u043c\u043e\u0439 \u0443\u0433\u0440\u043e\u0437\u043e\u0439, \u0432\u0441\u0451 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0437\u043d\u0430\u043b! \u0411\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b \u043a\u0430\u043a \u043f\u0440\u0438\u0437\u0440\u0430\u043a!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"smoke",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.smoke,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0414\u042b\u041c\u041e\u0412\u0410\u042f \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0432\u0440\u0430\u0433\u043e\u0432. \n\u042d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0437\u043e\u0440\u043e\u043c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0435\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0430\u043d\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043a \u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0433\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"ninja_cloak",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_cloak,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041d\u0415\u0412\u0418\u0414\u0418\u041c\u041e\u0421\u0422\u042c",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u043a\u0440\u044b\u0432\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u0425\u043e\u0442\u044c \u043f\u043e\u043b\u0435 \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0445\u043b\u0430\u0434\u043d\u043e\u043a\u0440\u043e\u0432\u0435\u043d. \n\u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 15 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"ninja_clones",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_clones,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u041a\u041b\u041e\u041d\u042b",content:"\u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043e\u0440\u0438\u0435\u043d\u0442\u0438- \u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043f\u0430\u0440\u044b \u043c\u0435\u0442\u0440\u043e\u0432. \n\u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e. \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0435\u0440\u0435\u0442\u044c \u0432\u0430\u0441 \u0437\u0430 4-\u043c\u044f \u0441\u0442\u0435\u043d\u0430\u043c\u0438. \u0411\u0443\u0434\u044c\u0442\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b. \n\u041a\u043b\u043e\u043d\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041a\u043b\u043e\u043d\u044b \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0443\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u0432. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 8 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"chameleon",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chameleon,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0425\u0410\u041c\u0415\u041b\u0415\u041e\u041d",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u0433\u043e\u043b\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438\u0441\u043a\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0441\u043b\u0443\u0445\u043e\u0432\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \n\u042d\u0442\u043e \u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0438 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u044d\u043a\u0438\u043f\u0430\u0436\u0430. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0430\u043c\u0435\u043b\u0435\u043e\u043d \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"ninja_spirit_form",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_spirit_form,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0424\u041e\u0420\u041c\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044b \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u044d\u0442\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438. \n\u0414\u0435\u043b\u0430\u044f \u0432\u0430\u0448\u0435 \u0442\u0435\u043b\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b. \n\u042d\u0442\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0441 \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0443\u043b\u044c \u0438 \u043b\u0435\u0437\u0432\u0438\u0439! \n\u041d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u043d\u044f\u0442\u044c \u0441 \u0441\u0435\u0431\u044f \u043d\u0430\u0440\u0443\u0447\u043d\u0438\u043a\u0438, \u0431\u043e\u043b\u044b \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043e\u0431\u0430 \u0438\u043b\u0438 \u044f\u0449\u0438\u043a\u0430, \u043e\u043a\u0430\u0436\u0438\u0441\u044c \u0432\u044b \u0442\u0430\u043c \u0437\u0430\u043f\u0435\u0440\u0442\u044b... \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u0430. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u0443\u0445\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438! \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 25 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0417\u043c\u0435\u0439",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435! \u0422\u0440\u044e\u043a\u0438, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u0449\u0438\u0442\u044b. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u043e\u0439 \u0441 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0438\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u0445\u043e\u0434\u044f \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0433\u0440\u044b\u0437\u0443\u043d\u044b, \u0447\u044c\u0451 \u043b\u043e\u0433\u043e\u0432\u043e \u043d\u0430\u0432\u0435\u0441\u0442\u0438\u043b \u0437\u043c\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"kunai",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.kunai,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041e\u0415\u041d\u041d\u041e\u0415 \u0414\u0416\u041e\u0425\u042c\u0401",content:"\u0422\u0430\u043a \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a \u0428\u044d\u043d\u0431\u044f\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u0438\u043d\u0436\u0430\u043b \u043d\u0430 \u0446\u0435\u043f\u0438. \n\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u0442\u044f\u043d\u0443\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u041e\u0440\u0443\u0436\u0438\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u0438\u0445 \u0431\u043e\u0451\u0432, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0436\u0435\u0440\u0442\u0432\u044b - \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0440\u043e\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 5 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"chem_injector",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chem_injector,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041b\u042f\u042e\u0429\u0418\u0419 \u041a\u041e\u041a\u0422\u0415\u0419\u041b\u042c",content:"\u0412\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0435\u0447\u0435\u0431\u043d\u0443\u044e \u0441\u043c\u0435\u0441\u044c. \u0421\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u041f\u0440\u0435\u043f\u0430\u0440\u0430\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442- \n\u0432\u0435\u043d\u043d\u043e-\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441\u044b \u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0430! \n\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u043e\u0437\u0438\u0440\u043e\u0432\u043a\u0435 \u043e\u043d\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 30 \u0435\u0434. \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c! \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0438\u043c\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044f\u0434\u0430. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emergency_blink",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emergency_blink,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041a\u0421\u0422\u0420\u0415\u041d\u041d\u0410\u042f \u0422\u0415\u041b\u0415\u041f\u041e\u0420\u0422\u0410\u0426\u0418\u042f",content:"\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0435\u0442\u0440\u043e\u0432. \n\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u043e\u0437\u0433\u043e\u0432\u044b\u0435 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0432\u043e\u0438\u043d\u044b \u043a\u043b\u0430\u043d\u0430, \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043e \u0441\u043d\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"caltrop",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.caltrop,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e-\u0427\u0415\u0421\u041d\u041e\u041a",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043b\u0442\u0440\u043e\u043f\u044b, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u044a\u0435\u0441\u0442\u043d\u044b\u043c \u0447\u0435\u0441\u043d\u043e\u043a\u043e\u043c. \n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043f\u0440\u0435\u0441\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043b\u043e\u0432\u0443\u0448\u043a\u0438. \n\u041b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 - \u0435\u0441\u043b\u0438 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c. \n\u0411\u043e\u043b\u044c \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043e\u0431\u043e\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d- \u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u0412\u044b \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u043e\u0442 \u043d\u0438\u0445. \u041d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0436\u0435 \u043b\u043e\u0432\u0443\u0448\u043a\u0438! \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"cloning",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.cloning,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0422\u041e\u0420\u041e\u0419 \u0428\u0410\u041d\u0421",content:"\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u043d\u043e\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u043c\u0438\u0441\u0441\u0438\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043b\u0430\u043f\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430. \u041c\u043e\u0449\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432\u0430\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 \u0442\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430. \n\u042d\u0442\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u043d\u0441, \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u0430\u0441 \u043a \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043b\u0435\u0447\u0438\u0432 \u043b\u044e\u0431\u044b\u0435 \u0442\u0440\u0430\u0432\u043c\u044b. \n\u041c\u044b \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u043f\u0440\u043e \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u043d\u0430. \u041d\u043e \u0443\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0430\u0441, \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043d\u0430 \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044e. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u043b\u044c",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u042f\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043b\u044e\u0434\u044f\u043c. \u0421\u0438\u043b\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043e\u0440\u0443\u0434\u0438\u044f \u0432\u044b\u0448\u0435 \u0438\u0445 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a \u0447\u0442\u043e \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043e\u044e \u0434\u043e\u0431\u044b\u0447\u0443. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0432\u043a\u0443\u0441 \u0441\u0442\u0430\u043b\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"shuriken",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.shuriken,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u0421\u042e\u0420\u0418\u041a\u0415\u041d\u042b",content:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u0443\u0441\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u0432 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0430\u0445 \u043a\u043e\u0441\u0442\u044e\u043c\u0430. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u043e \u0442\u0440\u0438 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u0430, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e. \n\u0421\u044e\u0440\u0438\u043a\u0435\u043d\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438\u0437\u043d\u0443\u0440\u044f\u044e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u043d\u0430\u043d\u043e\u0441\u044f\u0442 \u0441\u043b\u0430\u0431\u044b\u0439 \u043e\u0436\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043a\u043b\u043e, \u043a\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043d\u0430\u0440\u044f\u0434\u044b. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 300 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"adrenal",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.adrenal,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u041f\u041b\u0415\u0421\u041a \u0410\u0414\u0420\u0415\u041d\u0410\u041b\u0418\u041d\u0410",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043c\u043e\u0449\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0441 \u0432 \u0431\u043e\u044e \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0449\u0443\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u043a\u043b\u0435\u043c\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043e\u0433\u043b\u0443\u0448\u0430\u044e\u0449\u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432. \n\u041a\u043e\u0441\u0442\u044e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0440\u0430\u043d\u0430. \u0427\u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0451\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u044f \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0436\u0435\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0443\u0440\u0430\u043d\u0430 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emp",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emp,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e\u041c\u0410\u0413\u041d\u0418\u0422\u041d\u042b\u0419 \u0412\u0417\u0420\u042b\u0412",content:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0435 \u0432\u043e\u043b\u043d\u044b \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043f\u043e\u0434\u0440\u044b\u0432\u0430\u044e\u0442 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0430\u044e\u0442 - \u043a\u0438\u0431\u043e\u0440\u0433\u043e\u0432, \u0434\u0440\u043e\u043d\u043e\u0432, \u041a\u041f\u0411, \u044d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0440\u0443\u0436\u0438\u0435, \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0421\u0432\u0435\u0442\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044f\u0437\u0438 \u0438 \u0442.\u0434. \n\u042d\u0442\u043e\u0442 \u0432\u0437\u0440\u044b\u0432 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0432 \u0431\u043e\u044e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043d\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044c. \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c. \n\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0435\u043c \u043e\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0437\u043e\u0440\u0430. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043e\u0441\u043b\u0435\u043f\u043d\u0443\u0442\u044c, \u043f\u0440\u0438 \u043f\u043e\u0434\u0440\u044b\u0432\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044b\u0432 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"energynet",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.energynet,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0410\u042f \u0421\u0415\u0422\u042c",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043b\u043e\u0432\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0432\u0430\u043c\u0438 \u0446\u0435\u043b\u044c \u0432 \u043e\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043b\u043e\u0432\u0443\u0448\u043a\u0443. \n\u0418\u0437 \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u0432 \u0435\u0451 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c. \n\u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0430\u0433\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432 \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u043d\u0430\u0434\u043e\u0435\u0434\u043b\u0438\u0432\u044b\u0445 \u043e\u0445\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u043e\u0442\u043e\u0432. \n\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0441\u0435\u0442\u044c \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043e\u0442\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043a \u0436\u0435 \u0441\u0435\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u0435\u0442\u0438 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"spider_red",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.spider_red,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0411\u041e\u0415\u0412\u041e\u0415 \u0418\u0421\u041a\u0423\u0421\u0421\u0422\u0412\u041e \n\u041f\u041e\u041b\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041e\u0412\u042b",content:"\u0411\u043e\u0435\u0432\u043e\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043d\u0438\u043d\u0434\u0437\u044f \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0451\u043c\u043e\u0432. \n\u0412 \u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u0451\u043c\u044b: \n\u0412\u044b\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0443\u043a\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044b\u0440\u043e\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043b\u0430\u0434\u043e\u043d\u044c\u044e - \u043e\u0442\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442 \u0432\u0430\u0441, \u043b\u0438\u0448\u0430\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0441\u0438\u044f. \n\u041f\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043d\u0438\u0435 \u0448\u0435\u0438 - \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0435\u0437\u0433\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043b\u0435\u0436\u0430\u0447\u0443\u044e \u0436\u0435\u0440\u0442\u0432\u0443 \u043a\u0430\u0442\u0430\u043d\u043e\u0439 \u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u043a\u0435. \n\u042d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u043e\u0440\u043d\u0430\u0434\u043e - \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0432\u043e\u043a\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0434\u044b\u043c\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0448\u0430\u043d\u0441\u043e\u043c \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u043d\u044f\u0440\u044f\u0434\u044b \u0432\u0440\u0430\u0433\u043e\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.",position:"right"})]})]})]})]})})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0442\u0442\u043b\u043e\u043c",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0442\u0442\u043b\u043e\u043c. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0448\u0430\u0442\u0442\u043b\u0430!",tooltipPosition:"right"}),children:(0,o.createComponentVNode)(2,i.Flex,{ml:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.status?l.status:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.player_pos}),!!l.shuttle&&(!!l.docking_ports_len&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0442\u0442\u043b",children:l.docking_ports.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",content:e.name,onClick:function(){return c("move",{move:e.id})}},e.name)}))})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"Status",color:"red",children:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e",disabled:!l.status,onClick:function(){return c("request")}})})],0))]})})})};t.ShuttleConsole=p;var m=function(e,t){var n=(0,r.useBackend)(t).data,a=n.randomPercent,c=n.allActionsPreview,l=n.color_choice;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:l,value:a,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+l,mt:1,children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+c["spider_"+l],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Loading ",a+"%"]}),2)})})},h=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={lastText:"text do be there",currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.tick=function(){var e=this.props,t=this.state;e.allMessages===t.lastText||e.end_terminal?e.end_terminal&&(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout)):(t.currentDisplay.push(e.allMessages),t.lastText=e.allMessages)},a.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){return(0,o.createComponentVNode)(2,i.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.StationAlertConsoleContent=t.StationAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t).data.alarms||[],a=n.Fire||[],c=n.Atmosphere||[],l=n.Power||[];return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Fire Alarms",children:(0,o.createVNode)(1,"ul",null,[0===a.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),a.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Atmospherics Alarms",children:(0,o.createVNode)(1,"ul",null,[0===c.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),c.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Alarms",children:(0,o.createVNode)(1,"ul",null,[0===l.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),l.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)})],4)};t.StationAlertConsoleContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SuitStorage=function(e,t){var n=(0,r.useBackend)(t).data.uv;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[!!n&&(0,o.createComponentVNode)(2,i.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,o.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.helmet,d=c.suit,u=c.magboots,p=c.mask,m=c.storage,h=c.open,f=c.locked;return(0,o.createComponentVNode)(2,i.Section,{title:"Stored Items",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:f?"Unlock":"Lock",icon:f?"unlock":"lock",disabled:h,onClick:function(){return a("toggle_lock")}}),(0,o.createComponentVNode)(2,i.Button,{content:h?"Close unit":"Open unit",icon:h?"times-circle":"expand",color:h?"red":"green",disabled:f,onClick:function(){return a("toggle_open")}})],4),children:h&&!f?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,l,{object:s,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,o.createComponentVNode)(2,l,{object:d,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,o.createComponentVNode)(2,l,{object:u,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,o.createComponentVNode)(2,l,{object:p,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,o.createComponentVNode)(2,l,{object:m,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:f?"lock":"exclamation-circle",size:"5",mb:3}),(0,o.createVNode)(1,"br"),f?"The unit is locked.":"The unit is closed."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.object),l=e.label,s=e.missingText,d=e.eject;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:l,children:(0,o.createComponentVNode)(2,i.Box,{my:.5,children:c?(0,o.createComponentVNode)(2,i.Button,{my:-1,icon:"eject",content:c,onClick:function(){return a(d)}}):(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",textAlign:"center",content:"Start Disinfection Cycle",disabled:c.locked,onClick:function(){return a("cook")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SupermatterMonitor=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(80);t.SupermatterMonitor=function(e,t){var n=(0,r.useBackend)(t);n.act;return 0===n.data.active?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,s)};var l=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Detected Supermatter Shards",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Refresh",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:0===s.supermatters.length?(0,o.createVNode)(1,"h3",null,"No shards detected",16):(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.TableCell,{children:"Area"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Integrity"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Details"})]}),s.supermatters.map((function(e){return(0,o.createComponentVNode)(2,c.TableRow,{children:[(0,o.createComponentVNode)(2,c.TableCell,{children:e.area_name}),(0,o.createComponentVNode)(2,c.TableCell,{children:[e.integrity,"%"]}),(0,o.createComponentVNode)(2,c.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"View",onClick:function(){return l("view",{view:e.uid})}})})]},e)}))]})})})})})},s=function(e,t){var n,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Crystal Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"caret-square-left",content:"Back",onClick:function(){return d("back")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[95,Infinity],average:[80,94],bad:[-Infinity,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,i.Box,{color:(l=u.SM_power,l>300?"bad":l>150?"average":"good"),children:[u.SM_power," MeV/cm3"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:(c=u.SM_ambienttemp,c>5e3?"bad":c>4e3?"average":"good"),children:[u.SM_ambienttemp," K"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:(n=u.SM_ambientpressure,n>1e4?"bad":n>5e3?"average":"good"),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Gas Composition",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndicateComputerSimple=void 0;var o=n(0),r=n(1),i=n(2),a=(n(64),n(3));t.SyndicateComputerSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:l.rows.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.title,buttons:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontitle,disabled:e.buttondisabled,tooltip:e.buttontooltip,tooltipPosition:"left",onClick:function(){return c(e.buttonact)}}),children:[e.status,!!e.bullets&&(0,o.createComponentVNode)(2,i.Box,{children:e.bullets.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]},e.title)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndieCargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.SyndieCargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.is_public,s=void 0===l?0:l,d=i.cash,u=i.wait_time,p=i.is_cooldown,m=i.telepads_status,h=i.adminAddCash,f=m,C="",g=0,N="";return"Pads not linked!"===m?(g=0,C="Attempts to link telepads to the console.",N="Link pads"):p?p&&(N="Cooldown...",C="Pads are cooling off...",g=1,f=1!==u?m+" (ETA: "+u+" seconds)":m+" (ETA: "+u+" second)"):(g=0,C="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",N="Teleport"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Money Available",children:[d,(0,o.createComponentVNode)(2,c.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){return r("withdraw",d)}}),(0,o.createComponentVNode)(2,c.Button,{content:h,tooltip:"Bless the players with da money!",onClick:function(){return r("add_money",d)}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Telepads Status",children:f}),0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:N,tooltip:C,disabled:g,onClick:function(){return r("teleport")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Syndicate Black Market Log",onClick:function(){return r("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Credits)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TTSSeedsExplorerContent=t.TTSSeedsExplorer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={0:"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},l={"\u041c\u0443\u0436\u0441\u043a\u043e\u0439":{icon:"mars",color:"blue"},"\u0416\u0435\u043d\u0441\u043a\u0438\u0439":{icon:"venus",color:"purple"},"\u041b\u044e\u0431\u043e\u0439":{icon:"venus-mars",color:"white"}},s=function(e,t,n,r){return void 0===r&&(r=null),e.map((function(e){var a,c=null!=(a=e[r])?a:e;return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:t.includes(e),content:c,onClick:function(){t.includes(e)?n(t.filter((function(t){var n;return(null!=(n=t[r])?n:t)!==e}))):n([e].concat(t))}},c)}))};t.TTSSeedsExplorer=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.providers,p=d.seeds,m=d.selected_seed,h=d.phrases,f=d.donator_level,C=p.map((function(e){return e.category})).filter((function(e,t,n){return n.indexOf(e)===t})),g=p.map((function(e){return e.gender})).filter((function(e,t,n){return n.indexOf(e)===t})),N=p.map((function(e){return e.donator_level})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return c[e]})),b=(0,r.useLocalState)(t,"selectedProviders",u),V=b[0],v=b[1],x=(0,r.useLocalState)(t,"selectedGenders",g),y=x[0],k=x[1],w=(0,r.useLocalState)(t,"selectedCategories",C),_=w[0],B=w[1],S=(0,r.useLocalState)(t,"selectedDonatorLevels",N),L=S[0],A=S[1],E=(0,r.useLocalState)(t,"selectedPhrase",h[0]),I=E[0],D=E[1],T=(0,r.useLocalState)(t,"searchtext",""),F=T[0],M=T[1],P=s(u,V,v,"name"),O=s(g,y,k),R=s(C,_,B),j=s(N,L,A),U=(0,o.createComponentVNode)(2,i.Dropdown,{options:h,selected:I.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(e){return D(e)}}),z=(0,o.createComponentVNode)(2,i.Input,{placeholder:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435...",fluid:!0,onInput:function(e,t){return M(t)}}),W=p.sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return n>o?1:n0&&m!==e.name?"orange":"white",children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:m===e.name?.5:.25,textAlign:"left",children:e.category}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:m===e.name?"white":l[e.gender].color,textAlign:"left",children:(0,o.createComponentVNode)(2,i.Icon,{mx:1,size:1.2,name:l[e.gender].icon})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:e.donator_level>0&&(0,o.createFragment)([c[e.donator_level],(0,o.createComponentVNode)(2,i.Icon,{ml:1,mr:2,name:"coins"})],0)})]},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b",children:P}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u043b",children:O}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",children:R}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438",children:j}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:U}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0438\u0441\u043a",children:z})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0413\u043e\u043b\u043e\u0441\u0430 ("+W.length+"/"+p.length+")",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Table,{children:H})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.BlockQuote,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0447\u0430\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,o.createComponentVNode)(2,i.Box,{mt:2,italic:!0,children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c Discord-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})],4)};t.TTSSeedsExplorerContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.TachyonArrayContent=t.TachyonArray=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TachyonArray=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.records,u=void 0===d?[]:d,p=s.explosion_target,m=s.toxins_tech,h=s.printing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shift's Target",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Administration",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||h,align:"center",onClick:function(){return l("print_logs")}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){return l("delete_logs")}})]})]})}),u.length?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Records"})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records,l=void 0===c?[]:c;return(0,o.createComponentVNode)(2,i.Section,{title:"Logged Explosions",children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Epicenter"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Actual Size"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Theoretical Size"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.logged_time}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.epicenter}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.actual_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.theoretical_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return a("delete_record",{index:e.index})}})})]},e.index)}))]})})})})};t.TachyonArrayContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Tank=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return n=s.has_mask?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.connected?"check":"times",content:s.connected?"Internals On":"Internals Off",selected:s.connected,onClick:function(){return l("internals")}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tank Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:s.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Release Pressure",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:s.ReleasePressure===s.minReleasePressure,tooltip:"Min",onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,value:parseFloat(s.releasePressure),width:"65px",unit:"kPa",minValue:s.minReleasePressure,maxValue:s.maxReleasePressure,onChange:function(e,t){return l("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:s.ReleasePressure===s.maxReleasePressure,tooltip:"Max",onClick:function(){return l("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"",disabled:s.ReleasePressure===s.defaultReleasePressure,tooltip:"Reset",onClick:function(){return l("pressure",{pressure:"reset"})}})]}),n]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.o_tanks,d=l.p_tanks;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Oxygen Tank ("+s+")",disabled:0===s,icon:"arrow-circle-down",onClick:function(){return c("oxygen")}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Plasma Tank ("+d+")",disabled:0===d,icon:"arrow-circle-down",onClick:function(){return c("plasma")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsCore=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsCore=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data.ion),p=(0,r.useLocalState)(t,"tabIndex",0),m=p[0],h=p[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[1===u&&(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===m,onClick:function(){return h(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===m,onClick:function(){return h(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===m,onClick:function(){return h(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);case 2:return(0,o.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(m)]})})};var c=function(){return(0,o.createComponentVNode)(2,i.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.active,s=c.sectors_available,d=c.nttc_toggle_jobs,u=c.nttc_toggle_job_color,p=c.nttc_toggle_name_color,m=c.nttc_toggle_command_bold,h=c.nttc_job_indicator_type,f=c.nttc_setting_language,C=c.network_id;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){return a("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Radio Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcements",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"On":"Off",selected:d,icon:"user-tag",onClick:function(){return a("nttc_toggle_jobs")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:u?"On":"Off",selected:u,icon:"clipboard-list",onClick:function(){return a("nttc_toggle_job_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){return a("nttc_toggle_name_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Command Amplification",children:(0,o.createComponentVNode)(2,i.Button,{content:m?"On":"Off",selected:m,icon:"volume-up",onClick:function(){return a("nttc_toggle_command_bold")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Advanced",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcement Format",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"Unset",selected:h,icon:"pencil-alt",onClick:function(){return a("nttc_job_indicator_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Language Conversion",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"Unset",selected:f,icon:"globe",onClick:function(){return a("nttc_setting_language")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:C||"Unset",selected:C,icon:"server",onClick:function(){return a("network_id")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){return a("import")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){return a("export")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.link_password,s=c.relay_entries;return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linkage Password",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"Unset",selected:l,icon:"lock",onClick:function(){return a("change_password")}})})}),(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Unlink"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:1===e.status?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Online"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Offline"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",onClick:function(){return a("unlink",{addr:e.addr})}})})]},e.addr)}))]})]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.filtered_users;return(0,o.createComponentVNode)(2,i.Section,{title:"User Filtering",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Add User",icon:"user-plus",onClick:function(){return a("add_filter")}}),children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"90%"},children:"User"}),(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Remove",icon:"user-times",onClick:function(){return a("remove_filter",{user:e})}})})]},e)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsRelay=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsRelay=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.linked,p=d.active,m=d.network_id;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Relay Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"power-off",onClick:function(){return s("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){return s("network_id")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Link Status",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Linked"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Unlinked"})})]})}),1===u?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.linked_core_id,s=c.linked_core_addr,d=c.hidden_link;return(0,o.createComponentVNode)(2,i.Section,{title:"Link Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core Address",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hidden Link",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"Yes":"No",icon:d?"eye-slash":"eye",selected:d,onClick:function(){return a("toggle_hidden_link")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unlink",children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return a("unlink")}})})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.cores;return(0,o.createComponentVNode)(2,i.Section,{title:"Detected Cores",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Link"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Link",icon:"link",onClick:function(){return a("link",{addr:e.addr})}})})]},e.addr)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Teleporter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(188);t.Teleporter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.targetsTeleport?s.targetsTeleport:{},u=s.calibrated,p=s.calibrating,m=s.powerstation,h=s.regime,f=s.teleporterhub,C=s.target,g=s.locked,N=s.accuracy;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(!m||!f)&&(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:[f,!m&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Powerstation not linked "}),m&&!f&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Teleporter hub not linked "})]}),m&&f&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Regime",children:[(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to another teleport hub. ",color:1===h?"good":null,onClick:function(){return l("setregime",{regime:1})},children:"Gate"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"One-way teleport. ",color:0===h?"good":null,onClick:function(){return l("setregime",{regime:0})},children:"Teleporter"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:2===h?"good":null,disabled:!g,onClick:function(){return l("setregime",{regime:2})},children:"GPS"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Teleport target",children:[0===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),1===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),2===h&&(0,o.createComponentVNode)(2,i.Box,{children:C})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Calibration",children:["None"!==C&&(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,c.GridColumn,{size:"2",children:p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"In Progress"})||(u||N>=3)&&(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Optimal"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Sub-Optimal"})}),(0,o.createComponentVNode)(2,c.GridColumn,{size:"3",children:(0,o.createComponentVNode)(2,i.Box,{"class":"ml-1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!(!u&&!p),onClick:function(){return l("calibrate")}})})})]}),"None"===C&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(g&&m&&f&&2===h)&&(0,o.createComponentVNode)(2,i.Section,{title:"GPS",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-around",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return l("load")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return l("eject")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ThiefKit=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ThiefKit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.uses,d=l.possible_uses,u=l.multi_uses,p=l.kits,m=l.choosen_kits;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041d\u0430\u0431\u043e\u0440 \u0413\u0438\u043b\u044c\u0434\u0438\u0438 \u0412\u043e\u0440\u043e\u0432:",children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:[(0,o.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0433\u0438\u043b\u044c\u0434\u0438\u0438 \u0432\u043e\u0440\u043e\u0432.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"\u041d\u0430\u0431\u043e\u0440 \u0432\u043e\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043d\u0433\u0435\u0440\u0430. \u041d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0451\u043c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u0448\u044c \u0432\u043d\u0443\u0442\u0440\u044c.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"p",null,(0,o.createVNode)(1,"b",null,"\u041a\u0430\u043a\u043e\u0435 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442?:",16),2),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u0432:"),(0,o.createComponentVNode)(2,i.Box,{as:"span",color:s<=0?"good":s=d,onClick:function(){return c("randomKit")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c",disabled:e.was_taken||s>=d,onClick:function(){return c("takeKit",{item:e.type})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:!e.was_taken,onClick:function(){return c("undoKit",{item:e.type})}})]}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:e.desc})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b:",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:m&&m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",onClick:function(){return c("undoKit",{item:e.type})}}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:" "})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",color:sp}),children:(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:(0,a.decodeHtmlEntities)(e.desc)})},(0,a.decodeHtmlEntities)(e.name))}))})]})]})},f=function(e,t){var n=(0,c.useBackend)(t),s=(n.act,n.data.exploitable),u=(0,c.useLocalState)(t,"selectedRecord",s[0]),p=u[0],m=u[1],h=(0,c.useLocalState)(t,"searchText",""),f=h[0],C=h[1],g=function(e,t){void 0===t&&(t="");var n=(0,a.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)}(s,f);return(0,o.createComponentVNode)(2,l.Section,{title:"Exploitable Records",children:(0,o.createComponentVNode)(2,l.Flex,{children:[(0,o.createComponentVNode)(2,d.FlexItem,{basis:20,children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(e,t){return C(t)}}),(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,children:g.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:e===p,onClick:function(){return m(e)},children:e.name},e)}))})]}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Name: "+p.name,children:[(0,o.createComponentVNode)(2,l.Box,{children:["Age: ",p.age]}),(0,o.createComponentVNode)(2,l.Box,{children:["Fingerprint: ",p.fingerprint]}),(0,o.createComponentVNode)(2,l.Box,{children:["Rank: ",p.rank]}),(0,o.createComponentVNode)(2,l.Box,{children:["Sex: ",p.sex]}),(0,o.createComponentVNode)(2,l.Box,{children:["Species: ",p.species]})]})})]})})};(0,p.modalRegisterBodyOverride)("become_contractor",(function(e,t){var n,r,i,a=(0,c.useBackend)(t).data,d=(a.contractor||{}).time_left,u=!!(null==a||null==(n=a.contractor)?void 0:n.available),m=!!(null==a||null==(r=a.contractor)?void 0:r.affordable),h=!!(null==a||null==(i=a.contractor)?void 0:i.accepted);return(0,o.createComponentVNode)(2,l.Section,{level:"2",m:"-1rem",pb:"1rem",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{name:"suitcase"}),(0,o.createTextVNode)("\xa0 Contracting Opportunity")],4),children:[(0,o.createComponentVNode)(2,l.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,o.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,o.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer."]}),(0,o.createComponentVNode)(2,l.Button.Confirm,{disabled:!u||h,italic:!u,bold:u,icon:u&&!h&&"check",color:"good",content:h?"Accepted":u?["Accept Offer",(0,o.createComponentVNode)(2,s.Countdown,{timeLeft:d,format:function(e,t){return" ("+t+")"}},"countdown")]:m?"Offer expired":"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,p.modalAnswer)(t,e.id,1)}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.VampireSpecMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VampireSpecMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,u)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Hemomancer",children:[(0,o.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Vampiric claws",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood Barrier",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood tendrils",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Sanguine pool",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Predator senses",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood eruption",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"The blood bringers rite",16),(0,o.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Hemomancer",onClick:function(){return a("hemomancer")}})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Umbrae",children:[(0,o.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Cloak of darkness",16),(0,o.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow anchor",16),(0,o.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow snare",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dark passage",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Extinguish",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,o.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Eternal darkness",16),(0,o.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,o.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,o.createComponentVNode)(2,i.Button,{content:"Umbrae",onClick:function(){return a("umbrae")}})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Gargantua",children:[(0,o.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rejuvenate",16),(0,o.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell",16),(0,o.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Seismic stomp",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood rush",16),(0,o.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell II",16),(0,o.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Overwhelming force",16),(0,o.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Demonic grasp",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Charge",16),(0,o.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Gargantua",onClick:function(){return a("gargantua")}})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Dantalion",children:[(0,o.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Enthrall",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall cap",16),(0,o.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall commune",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Subspace swap",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Pacify",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Decoy",16),(0,o.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rally thralls",16),(0,o.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood bond",16),(0,o.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Mass Hysteria",16),(0,o.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Dantalion",onClick:function(){return a("dantalion")}})]})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Bestia",children:[(0,o.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Check Trophies",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect",16),(0,o.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect Cap",16),(0,o.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Infected Trophy",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Lunge",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Mark the Prey",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Anabiosis",16),(0,o.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Summon Bats",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,o.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Bestia",onClick:function(){return a("bestia")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VampireTrophiesStatus=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e){return(Math.round(10*e)/10).toFixed(1)};t.VampireTrophiesStatus=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,N)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.hearts,l=a.lungs,s=a.livers,d=a.kidneys,u=a.eyes,p=a.ears,m=a.trophies_max_gen,h=a.trophies_max_crit,f=a.icon_hearts,C=a.icon_lungs,g=a.icon_livers,N=a.icon_kidneys,b=a.icon_eyes,V=a.icon_ears;return(0,o.createComponentVNode)(2,i.Section,{title:"Trophies",color:"red",textAlign:"center",verticalAlign:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",width:"16.6%",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"data:image/jpeg;base64,"+f,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,textColor:cp;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:l.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{color:(s<=0?"bad":s<=l.max_amount/2&&"average")||"good",children:[s," in stock"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,disabled:N,icon:g,content:C,textAlign:"left",onClick:function(){return a("vend",{inum:l.inum})}})})]})};t.Vending=function(e,t){var n,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.user,p=d.guestNotice,m=d.userMoney,h=d.chargesMoney,f=d.product_records,C=void 0===f?[]:f,g=d.coin_records,N=void 0===g?[]:g,b=d.hidden_records,V=void 0===b?[]:b,v=d.stock,x=(d.vend_ready,d.coin_name),y=d.inserted_item_name,k=d.panel_open,w=d.speaker,_=d.imagelist;return n=[].concat(C,N),d.extended_inventory&&(n=[].concat(n,V)),n=n.filter((function(e){return!!e})),(0,o.createComponentVNode)(2,a.Window,{title:"Vending Machine",resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,i.Section,{title:"User",children:u&&(0,o.createComponentVNode)(2,i.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,u.name,0),","," ",(0,o.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[m,(0,o.createTextVNode)(" credits")],0),"."]})||(0,o.createComponentVNode)(2,i.Box,{color:"light-grey",children:p})}),!!x&&(0,o.createComponentVNode)(2,i.Section,{title:"Coin",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){return s("remove_coin",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:x})}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Item",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){return s("eject_item",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:y})}),!!k&&(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:(0,o.createComponentVNode)(2,i.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){return s("toggle_voice",{})}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Products",children:(0,o.createComponentVNode)(2,i.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,c,{product:e,productStock:v[e.name],productImage:_[e.path]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VolumeMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VolumeMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.channels;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",overflow:"auto",children:l.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.25rem",color:"label",mt:t>0&&"0.5rem",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:0})}})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",mx:"1rem",children:(0,o.createComponentVNode)(2,i.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:e.volume,onChange:function(t,n){return c("volume",{channel:e.num,volume:n})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:100})}})})})]})})],4,e.num)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VotePanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VotePanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.remaining,d=l.question,u=l.choices,p=l.user_vote,m=l.counts,h=l.show_counts,f=l.show_cancel;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:d,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,children:["Time remaining: ",Math.round(s/10),"s"]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e+(h?" ("+(m[e]||0)+")":""),onClick:function(){return c("vote",{target:e})},selected:e===p})},e)})),!!f&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Cancel",onClick:function(){return c("cancel")}})},"Cancel")]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Wires=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.wires||[],d=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!d.length&&(0,o.createComponentVNode)(2,i.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Workshop=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(102),l=n(3);var s=function(e,t,n){return null===e.requirements||!(e.requirements.brass>t)&&!(e.requirements.power>n)};t.Workshop=function(e,t){var n=(0,i.useBackend)(t),r=n.act,s=n.data,p=s.brass_amount,m=s.power_amount,h=s.building,f=s.buildStart,C=s.buildEnd,g=s.worldTime,N=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),b=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,o.createComponentVNode)(2,l.Window,{theme:"clockwork",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brass",children:[N,(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return r("dispense")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:b})]})})]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar.Countdown,{start:f,current:g,end:C,bold:!0,children:["Building ",h,"\xa0(",(0,o.createComponentVNode)(2,c.Countdown,{current:g,timeLeft:C-g,format:function(e,t){return t.substr(3)}}),")"]})})]})})};var d=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),l=(c[0],c[1],(0,i.useLocalState)(t,"descending",!1)),s=l[0],d=l[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"arrow-down":"arrow-up",height:"19px",tooltip:s?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return d(!s)}})})]})})},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.items,d=(0,i.useLocalState)(t,"search",""),u=d[0],m=(d[1],(0,i.useLocalState)(t,"sort","Alphabetical")),h=(m[0],m[1],(0,i.useLocalState)(t,"descending",!1)),f=h[0],C=(h[1],(0,r.createSearch)(u,(function(e){return e[0]}))),g=!1,N=Object.entries(l).map((function(e,t){var n=Object.entries(e[1]).filter(C).map((function(e){return e[1].affordable=s(e[1],c.brass_amount,c.power_amount),e[1]}));if(0!==n.length)return f&&(n=n.reverse()),g=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:g?N:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,d=e.title,u=e.items,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:d},p,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hammer",disabled:!s(e,l.brass_amount,l.power_amount),onClick:function(){return c("make",{cat:d,name:e.name})},children:(0,r.toTitleCase)((0,r.toTitleCase)(e.name))}),(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,r.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,a.Box,{children:"No resources required."})}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}}]); \ No newline at end of file +!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=200)}([function(e,t,n){"use strict";t.__esModule=!0;var o=n(415);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(t[e]=o[e])}))},function(e,t,n){"use strict";t.__esModule=!0,t.useSharedState=t.deleteLocalState=t.useLocalState=t.useBackend=t.backendReducer=t.backendDeleteSharedState=t.backendSetSharedState=t.backendUpdate=void 0;var o=n(23),r=n(49);t.backendUpdate=function(e){return{type:"backend/update",payload:e}};var i=function(e,t){return{type:"backend/setSharedState",payload:{key:e,nextState:t}}};t.backendSetSharedState=i;var a=function(e){return{type:"backend/deleteSharedState",payload:e}};t.backendDeleteSharedState=a;t.backendReducer=function(e,t){var n=t.type,o=t.payload;if("backend/update"===n){var i=Object.assign({},e.config,{},o.config),a=Object.assign({},e.data,{},o.static_data,{},o.data),c=Object.assign({},e.shared);if(o.shared)for(var l=0,s=Object.keys(o.shared);l1?n-1:0),r=1;r0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(6),r=n(108),i=n(19),a=n(69),c=n(112),l=n(152),s=r("wks"),d=o.Symbol,u=l?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=u("Symbol."+e)),s[e]}},function(e,t,n){"use strict";var o=n(9),r=n(146),i=n(10),a=n(36),c=Object.defineProperty;t.f=o?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return c(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.rad2deg=t.keyOfMatchingRange=t.inRange=t.toFixed=t.round=t.scale=t.clamp01=t.clamp=void 0;t.clamp=function(e,t,n){return en?n:e};t.clamp01=function(e){return e<0?0:e>1?1:e};t.scale=function(e,t,n){return(e-t)/(n-t)};t.round=function(e,t){return!e||isNaN(e)?e:(t|=0,i=(e*=n=Math.pow(10,t))>0|-(e<0),r=Math.abs(e%1)>=.4999999999854481,o=Math.floor(e),r&&(e=o+(i>0)),(r?e:Math.round(e))/n);var n,o,r,i};t.toFixed=function(e,t){return void 0===t&&(t=0),Number(e).toFixed(Math.max(t,0))};var o=function(e,t){return t&&e>=t[0]&&e<=t[1]};t.inRange=o;t.keyOfMatchingRange=function(e,t){for(var n=0,r=Object.keys(t);n0&&(t.style=l),t};t.computeBoxProps=C;var g=function(e){var t=e.textColor||e.color,n=e.backgroundColor;return(0,o.classes)([s(t)&&"color-"+t,s(n)&&"color-bg-"+n])};t.computeBoxClassName=g;var N=function(e){var t=e.as,n=void 0===t?"div":t,o=e.className,a=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["as","className","children"]);if("function"==typeof a)return a(C(e));var l="string"==typeof o?o+" "+g(c):g(c),s=C(c);return(0,r.createVNode)(i.VNodeFlags.HtmlElement,n,l,a,i.ChildFlags.UnknownChildren,s)};t.Box=N,N.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";function o(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},function(e,t,n){"use strict";var o=n(81),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===i.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";var o=n(55),r=n(68),i=n(16),a=n(12),c=n(74),l=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,d=4==e,u=6==e,p=5==e||u;return function(m,h,f,C){for(var g,N,b=i(m),V=r(b),v=o(h,f,3),x=a(V.length),y=0,k=C||c,w=t?k(m,x):n?k(m,0):undefined;x>y;y++)if((p||y in V)&&(N=v(g=V[y],y,b),e))if(t)w[y]=N;else if(N)switch(e){case 3:return!0;case 5:return g;case 6:return y;case 2:l.call(w,g)}else if(d)return!1;return u?-1:s||d?d:w}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){"use strict";var o=n(9),r=n(83),i=n(53),a=n(28),c=n(36),l=n(19),s=n(146),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(n){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}t.__esModule=!0,t.winset=t.winget=t.runCommand=t.callByondAsync=t.callByond=t.IS_IE8=void 0;var r=window.Byond,i=function(){var e=navigator.userAgent.match(/Trident\/(\d+).+?;/i);if(!e)return null;var t=e[1];return t?parseInt(t,10):null}(),a=null!==i&&i<=6;t.IS_IE8=a;var c=function(e,t){void 0===t&&(t={}),r.call(e,t)};t.callByond=c;var l=function(e,t){void 0===t&&(t={}),window.__callbacks__=window.__callbacks__||[];var n=window.__callbacks__.length,o=new Promise((function(e){window.__callbacks__.push(e)}));return r.call(e,Object.assign({},t,{callback:"__callbacks__["+n+"]"})),o};t.callByondAsync=l;t.runCommand=function(e){return c("winset",{command:e})};var s=function(){var e,t=(e=regeneratorRuntime.mark((function n(e,t){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l("winget",{id:e,property:t});case 2:return o=n.sent,n.abrupt("return",o[t]);case 4:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,l,"next",e)}function l(e){o(a,r,i,c,l,"throw",e)}c(undefined)}))});return function(e,n){return t.apply(this,arguments)}}();t.winget=s;t.winset=function(e,t,n){var o;return c("winset",((o={})[e+"."+t]=n,o))}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var o in e)t.call(e,o)&&n.push(e[o]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),o((function(e,n){var o;return Object.assign(((o={})[t]=n,o),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],o=0;oc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n"+a+""}},function(e,t,n){"use strict";var o=n(5);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(53);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:o)(e)}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var o,r,i,a=n(148),c=n(6),l=n(8),s=n(32),d=n(19),u=n(84),p=n(70),m=c.WeakMap;if(a){var h=new m,f=h.get,C=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},r=function(e){return f.call(h,e)||{}},i=function(e){return C.call(h,e)}}else{var N=u("state");p[N]=!0,o=function(e,t){return s(e,N,t),t},r=function(e){return d(e,N)?e[N]:{}},i=function(e){return d(e,N)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var o=n(19),r=n(16),i=n(84),a=n(119),c=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";var o=n(150),r=n(6),i=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var o=n(5);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(9),a=n(132),c=n(11),l=n(89),s=n(61),d=n(53),u=n(32),p=n(12),m=n(164),h=n(179),f=n(36),C=n(19),g=n(86),N=n(8),b=n(45),V=n(57),v=n(54).f,x=n(180),y=n(21).forEach,k=n(60),w=n(14),_=n(22),B=n(37),S=n(91),L=B.get,A=B.set,E=w.f,I=_.f,D=Math.round,T=r.RangeError,F=l.ArrayBuffer,M=l.DataView,P=c.NATIVE_ARRAY_BUFFER_VIEWS,O=c.TYPED_ARRAY_TAG,R=c.TypedArray,j=c.TypedArrayPrototype,U=c.aTypedArrayConstructor,z=c.isTypedArray,W=function(e,t){for(var n=0,o=t.length,r=new(U(e))(o);o>n;)r[n]=t[n++];return r},H=function(e,t){E(e,t,{get:function(){return L(this)[t]}})},K=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return Y(e,t=f(t,!0))?d(2,e[t]):I(e,t)},q=function(e,t,n){return!(Y(e,t=f(t,!0))&&N(n)&&C(n,"value"))||C(n,"get")||C(n,"set")||n.configurable||C(n,"writable")&&!n.writable||C(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)};i?(P||(_.f=G,w.f=q,H(j,"buffer"),H(j,"byteOffset"),H(j,"byteLength"),H(j,"length")),o({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:G,defineProperty:q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",l="get"+e,d="set"+e,f=r[c],C=f,g=C&&C.prototype,w={},_=function(e,t){E(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[l](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var r=L(e);n&&(o=(o=D(o))<0?0:o>255?255:255&o),r.view[d](t*i+r.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};P?a&&(C=t((function(e,t,n,o){return s(e,C,c),S(N(t)?K(t)?o!==undefined?new f(t,h(n,i),o):n!==undefined?new f(t,h(n,i)):new f(t):z(t)?W(C,t):x.call(C,t):new f(m(t)),e,C)})),V&&V(C,R),y(v(f),(function(e){e in C||u(C,e,f[e])})),C.prototype=g):(C=t((function(e,t,n,o){s(e,C,c);var r,a,l,d=0,u=0;if(N(t)){if(!K(t))return z(t)?W(C,t):x.call(C,t);r=t,u=h(n,i);var f=t.byteLength;if(o===undefined){if(f%i)throw T("Wrong length");if((a=f-u)<0)throw T("Wrong length")}else if((a=p(o)*i)+u>f)throw T("Wrong length");l=a/i}else l=m(t),r=new F(a=l*i);for(A(e,{buffer:r,byteOffset:u,byteLength:a,length:l,view:new M(r)});d=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?r-1:0),c=1;c1?o-1:0),i=1;i"+e+"<\/script>"},h=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;h=o?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):((t=s("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=r(e),n=new p,p.prototype=null,n[u]=e):n=h(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var o=n(14).f,r=n(19),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(13),r=n(45),i=n(14),a=o("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:r(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var o=n(10),r=n(34),i=n(13)("species");e.exports=function(e,t){var n,a=o(e).constructor;return a===undefined||(n=o(a)[i])==undefined?t:r(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.timeAgo=t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{command:"#526aff",procedure:"#e3027a",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Soviet",freq:1217,color:"#f7941d"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#3cfd1e"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"}];var o=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),r=o.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return r&&r.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=o.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color};t.timeAgo=function(e,t){if(e>t)return"in the future";var n=(t/=10)-(e/=10);if(n>3600){var o=Math.round(n/3600);return o+" hour"+(1===o?"":"s")+" ago"}if(n>60){var r=Math.round(n/60);return r+" minute"+(1===r?"":"s")+" ago"}var i=Math.round(n);return i+" second"+(1===i?"":"s")+" ago"}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var o=n(0),r=n(7),i=n(23),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.direction,o=e.wrap,a=e.align,l=e.alignContent,s=e.justify,d=e.inline,u=e.spacing,p=void 0===u?0:u,m=e.spacingPrecise,h=void 0===m?0:m,f=c(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,r.classes)(["Flex",i.IS_IE8&&("column"===n?"Flex--ie8--column":"Flex--ie8"),d&&"Flex--inline",p>0&&"Flex--spacing--"+p,h>0&&"Flex--spacingPrecise--"+h,t]),style:Object.assign({},f.style,{"flex-direction":n,"flex-wrap":o,"align-items":a,"align-content":l,"justify-content":s})},f)};t.computeFlexProps=l;var s=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},l(e))))};t.Flex=s,s.defaultHooks=r.pureComponentHooks;var d=function(e){var t=e.className,n=e.grow,o=e.order,l=e.shrink,s=e.basis,d=void 0===s?e.width:s,u=e.align,p=c(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,r.classes)(["Flex__item",i.IS_IE8&&"Flex__item--ie8",t]),style:Object.assign({},p.style,{"flex-grow":n,"flex-shrink":l,"flex-basis":(0,a.unit)(d),order:o,"align-self":u})},p)};t.computeFlexItemProps=d;var u=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},d(e))))};t.FlexItem=u,u.defaultHooks=r.pureComponentHooks,s.Item=u},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalClose=t.modalAnswer=t.modalRegisterBodyOverride=t.modalOpen=void 0;var o=n(0),r=n(1),i=n(2),a={};t.modalOpen=function(e,t,n){var o=(0,r.useBackend)(e),i=o.act,a=o.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,o){var i=(0,r.useBackend)(e),a=i.act,c=i.data;if(c.modal){var l=Object.assign(c.modal.args||{},o||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(l)})}};t.modalAnswer=c;var l=function(e,t){(0,(0,r.useBackend)(e).act)("modal_close",{id:t})};t.modalClose=l;t.ComplexModal=function(e,t){var n=(0,r.useBackend)(t).data;if(n.modal){var s,d,u=n.modal,p=u.id,m=u.text,h=u.type,f=(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),C="auto";if(a[p])d=a[p](n.modal,t);else if("input"===h){var g=n.modal.value;s=function(e){return c(t,p,g)},d=(0,o.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){g=t}}),f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,p,g)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===h){var N="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;d=(0,o.createComponentVNode)(2,i.Dropdown,{options:N,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,p,e)}}),C="initial"}else"bento"===h?d=(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:r+1===parseInt(n.modal.value,10),onClick:function(){return c(t,p,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===h&&(f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,p,0)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,p,1)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:s,mx:"auto",overflowY:C,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline",children:m}),d,f]})}}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=t.RndRoute=t.RndNavButton=t.RndNavbar=t.MainMenu=t.LatheSearch=t.LatheMenu=t.LatheMaterialStorage=t.LatheMaterials=t.LatheMainMenu=t.LatheChemicalStorage=t.LatheCategory=t.DeconstructionMenu=t.DataDiskMenu=t.CurrentLevels=void 0;var o=n(618);t.CurrentLevels=o.CurrentLevels;var r=n(619);t.DataDiskMenu=r.DataDiskMenu;var i=n(620);t.DeconstructionMenu=i.DeconstructionMenu;var a=n(621);t.LatheCategory=a.LatheCategory;var c=n(622);t.LatheChemicalStorage=c.LatheChemicalStorage;var l=n(623);t.LatheMainMenu=l.LatheMainMenu;var s=n(624);t.LatheMaterials=s.LatheMaterials;var d=n(625);t.LatheMaterialStorage=d.LatheMaterialStorage;var u=n(626);t.LatheMenu=u.LatheMenu;var p=n(627);t.LatheSearch=p.LatheSearch;var m=n(628);t.MainMenu=m.MainMenu;var h=n(629);t.RndNavbar=h.RndNavbar;var f=n(630);t.RndNavButton=f.RndNavButton;var C=n(199);t.RndRoute=C.RndRoute;var g=n(631);t.SettingsMenu=g.SettingsMenu},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(151),r=n(110).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(34);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var o=n(36),r=n(14),i=n(53);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var o=n(10),r=n(162);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var o=n(70),r=n(8),i=n(19),a=n(14).f,c=n(69),l=n(78),s=c("meta"),d=0,u=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})},m=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!u(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!u(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return l&&m.REQUIRED&&u(e)&&!i(e,s)&&p(e),e}};o[s]=!0},function(e,t,n){"use strict";var o=n(35);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(39),r=n(14),i=n(13),a=n(9),c=i("species");e.exports=function(e){var t=o(e),n=r.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var o=n(25),r="["+n(93)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),c=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.logger=t.createLogger=void 0;n(182);var o=n(23),r=0,i=1,a=2,c=3,l=4,s=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=a){var c=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;(0,o.callByond)("",{src:window.__ref__,action:"tgui:log",log:c})}},d=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;o=0||(r[n]=e[n]);return r}(e,["className","label","labelColor","color","textAlign","verticalAlign","buttons","content","children","noColon"]),g=f?"":":";return(0,o.createVNode)(1,"tr",(0,r.classes)(["LabeledList__row",t]),[(0,o.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+g:null}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"td",color:l,textAlign:s,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?undefined:2},C,{children:[p,m]}))),u&&(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};t.LabeledListItem=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,o.createVNode)(1,"tr","LabeledList__row",(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=s,s.defaultHooks=r.pureComponentHooks,c.Item=l,c.Divider=s},function(e,t,n){"use strict";function o(e){return null==e}e.exports.isNothing=o,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:o(e)?[]:[e]},e.exports.repeat=function(e,t){var n,o="";for(n=0;nd;)if((c=l[d++])!=c)return!0}else for(;s>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var o=n(5),r=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=l&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var o=n(151),r=n(110);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(8),r=n(59),i=n(13)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var o=n(5),r=n(13),i=n(113),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var o=n(26);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var o=n(10),r=n(115),i=n(12),a=n(55),c=n(116),l=n(159),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,d,u){var p,m,h,f,C,g,N,b=a(t,n,d?2:1);if(u)p=e;else{if("function"!=typeof(m=c(e)))throw TypeError("Target is not iterable");if(r(m)){for(h=0,f=i(e.length);f>h;h++)if((C=d?b(o(N=e[h])[0],N[1]):b(e[h]))&&C instanceof s)return C;return new s(!1)}p=m.call(e)}for(g=p.next;!(N=g.call(p)).done;)if("object"==typeof(C=l(p,b,N.value,d))&&C&&C instanceof s)return C;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.collapsing,c=e.children,l=a(e,["className","collapsing","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"table",(0,r.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Table=c,c.defaultHooks=r.pureComponentHooks;var l=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"tr",(0,r.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.className,n=e.collapsing,c=e.header,l=a(e,["className","collapsing","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"td",(0,r.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(l))))};t.TableCell=s,s.defaultHooks=r.pureComponentHooks,c.Row=l,c.Cell=s},function(e,t,n){"use strict";function o(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=o},function(e,t,n){"use strict";var o=n(66);e.exports=new o({include:[n(193)],implicit:[n(505),n(506)],explicit:[n(507),n(512),n(513),n(514)]})},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){"use strict";var o=n(108),r=n(69),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){"use strict";var o=n(39);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(117),r=n(35),i=n(13)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var o=n(13)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var o=n(34),r=n(16),i=n(68),a=n(12),c=function(e){return function(t,n,c,l){o(n);var s=r(t),d=i(s),u=a(s.length),p=e?u-1:0,m=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=m;break}if(p+=m,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=m)p in d&&(l=n(l,d[p],p,s));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var o=n(6),r=n(9),i=n(120),a=n(32),c=n(77),l=n(5),s=n(61),d=n(33),u=n(12),p=n(164),m=n(247),h=n(38),f=n(57),C=n(54).f,g=n(14).f,N=n(114),b=n(46),V=n(37),v=V.get,x=V.set,y=o.ArrayBuffer,k=y,w=o.DataView,_=w&&w.prototype,B=Object.prototype,S=o.RangeError,L=m.pack,A=m.unpack,E=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},T=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return L(e,23,4)},M=function(e){return L(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return v(this)[t]}})},O=function(e,t,n,o){var r=p(n),i=v(e);if(r+t>i.byteLength)throw S("Wrong index");var a=v(i.buffer).bytes,c=r+i.byteOffset,l=a.slice(c,c+t);return o?l:l.reverse()},R=function(e,t,n,o,r,i){var a=p(n),c=v(e);if(a+t>c.byteLength)throw S("Wrong index");for(var l=v(c.buffer).bytes,s=a+c.byteOffset,d=o(+r),u=0;uW;)(j=z[W++])in k||a(k,j,y[j]);U.constructor=k}f&&h(_)!==B&&f(_,B);var H=new w(new k(2)),K=_.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||c(_,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){s(this,k,"ArrayBuffer");var t=p(e);x(this,{bytes:N.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},w=function(e,t,n){s(this,w,"DataView"),s(e,k,"DataView");var o=v(e).byteLength,i=d(t);if(i<0||i>o)throw S("Wrong offset");if(i+(n=n===undefined?o-i:u(n))>o)throw S("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},r&&(P(k,"byteLength"),P(w,"buffer"),P(w,"byteLength"),P(w,"byteOffset")),c(w.prototype,{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return A(O(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return A(O(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){R(this,1,e,E,t)},setUint8:function(e,t){R(this,1,e,E,t)},setInt16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){R(this,4,e,F,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){R(this,8,e,M,t,arguments.length>2?arguments[2]:undefined)}});b(k,"ArrayBuffer"),b(w,"DataView"),e.exports={ArrayBuffer:k,DataView:w}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(72),a=n(26),c=n(58),l=n(79),s=n(61),d=n(8),u=n(5),p=n(87),m=n(46),h=n(91);e.exports=function(e,t,n){var f=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),g=f?"set":"add",N=r[e],b=N&&N.prototype,V=N,v={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return C&&!d(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof N||!(C||b.forEach&&!u((function(){(new N).entries().next()})))))V=n.getConstructor(t,e,f,g),c.REQUIRED=!0;else if(i(e,!0)){var y=new V,k=y[g](C?{}:-0,1)!=y,w=u((function(){y.has(1)})),_=p((function(e){new N(e)})),B=!C&&u((function(){for(var e=new N,t=5;t--;)e[g](t,t);return!e.has(-0)}));_||((V=t((function(t,n){s(t,V,e);var o=h(new N,t,V);return n!=undefined&&l(n,o[g],o,f),o}))).prototype=b,b.constructor=V),(w||B)&&(x("delete"),x("has"),f&&x("get")),(B||k)&&x(g),C&&b.clear&&delete b.clear}return v[e]=V,o({global:!0,forced:V!=N},v),m(V,e),C||n.setStrong(V,e,f),V}},function(e,t,n){"use strict";var o=n(8),r=n(57);e.exports=function(e,t,n){var i,a;return r&&"function"==typeof(i=t.constructor)&&i!==n&&o(a=i.prototype)&&a!==n.prototype&&r(e,a),e}},function(e,t,n){"use strict";var o=Math.expm1,r=Math.exp;e.exports=!o||o(10)>22025.465794806718||o(10)<22025.465794806718||-2e-17!=o(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:o},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(40),r=n(6),i=n(5);e.exports=o||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}))},function(e,t,n){"use strict";var o=n(10);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o,r,i=n(95),a=n(126),c=RegExp.prototype.exec,l=String.prototype.replace,s=c,d=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=/()??/.exec("")[1]!==undefined;(d||p||u)&&(s=function(e){var t,n,o,r,a=this,s=u&&a.sticky,m=i.call(a),h=a.source,f=0,C=e;return s&&(-1===(m=m.replace("y","")).indexOf("g")&&(m+="g"),C=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",C=" "+C,f++),n=new RegExp("^(?:"+h+")",m)),p&&(n=new RegExp("^"+h+"$(?!\\s)",m)),d&&(t=a.lastIndex),o=c.call(s?n:a,C),s?o?(o.input=o.input.slice(f),o[0]=o[0].slice(f),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:d&&o&&(a.lastIndex=a.global?o.index+o[0].length:t),p&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r")})),d="$0"==="a".replace(/./,"$0"),u=i("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),m=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,u){var h=i(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),C=f&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!C||"replace"===e&&(!s||!d||p)||"split"===e&&!m){var g=/./[h],N=n(h,""[e],(function(e,t,n,o,r){return t.exec===a?f&&!r?{done:!0,value:g.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=N[0],V=N[1];o(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return V.call(e,this,t)}:function(e){return V.call(e,this)})}u&&c(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var o=n(35),r=n(96);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.AccessList=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);function c(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt?2+3*s-c:0;return((0,o.toFixed)(p,m)+" "+u+n).trim()};t.formatSiUnit=a;t.formatPower=function(e,t){return void 0===t&&(t=0),a(e,t,"W")};t.formatMoney=function(e,t){if(void 0===t&&(t=0),!Number.isFinite(e))return e;var n=(0,o.round)(e,t);t>0&&(n=(0,o.toFixed)(e,t));var r=(n=String(n)).length,i=n.indexOf(".");-1===i&&(i=r);for(var a="",c=0;c0&&c=0||(r[n]=e[n]);return r}(e,["format"]),i=new Date(this.state.value).toISOString().slice(11,19);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({as:"span"},n,{children:t?t(this.state.value,i):i})))},i}(o.Component);t.Countdown=i,i.defaultProps={rate:1e3}},function(e,t,n){"use strict";t.__esModule=!0,t.SimpleRecords=void 0;var o=n(0),r=n(1),i=n(18),a=n(43),c=n(24),l=n(2);t.SimpleRecords=function(e,t){var n=e.data.records;return(0,o.createComponentVNode)(2,l.Box,{children:n?(0,o.createComponentVNode)(2,d,{data:e.data,recordType:e.recordType}):(0,o.createComponentVNode)(2,s,{data:e.data})})};var s=function(e,t){var n=(0,r.useBackend)(t).act,s=e.data.recordsList,d=(0,r.useLocalState)(t,"searchText",""),u=d[0],p=d[1],m=function(e,t){void 0===t&&(t="");var n=(0,i.createSearch)(t,(function(e){return e.Name}));return(0,a.flow)([(0,c.filter)((function(e){return null==e?void 0:e.Name})),t&&(0,c.filter)(n),(0,c.sortBy)((function(e){return e.Name}))])(s)}(0,u);return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(e,t){return p(t)}}),m.map((function(e){return(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:e.Name,icon:"user",onClick:function(){return n("Records",{target:e.uid})}})},e)}))]})},d=function(e,t){var n,i=(0,r.useBackend)(t).act,a=e.data.records,c=a.general,s=a.medical,d=a.security;switch(e.recordType){case"MED":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Medical Data",children:s?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Security Data",children:d?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Status",children:d.criminal}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Crimes",children:d.mi_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.mi_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Crimes",children:d.ma_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.ma_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Security record lost!"})})}return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Button,{content:"Back",icon:"arrow-left",onClick:function(){return i("Back")}}),(0,o.createComponentVNode)(2,l.Section,{level:2,title:"General Data",children:c?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Name",children:c.name}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Sex",children:c.sex}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Species",children:c.species}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Age",children:c.age}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Rank",children:c.rank}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Fingerprint",children:c.fingerprint}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Physical Status",children:c.p_stat}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Mental Status",children:c.m_stat})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"General record lost!"})}),n]})}},function(e,t,n){"use strict";var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(r){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,n){"use strict";var o=n(6),r=n(8),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){"use strict";var o=n(6),r=n(32);e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){"use strict";var o=n(147),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var o=n(40),r=n(147);(e.exports=function(e,t){return r[e]||(r[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var o=n(39),r=n(54),i=n(111),a=n(10);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(5);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var o,r,i=n(6),a=n(85),c=i.process,l=c&&c.versions,s=l&&l.v8;s?r=(o=s.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,c=r(a>1?arguments[1]:undefined,n),l=a>2?arguments[2]:undefined,s=l===undefined?n:r(l,n);s>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var o=n(13),r=n(76),i=o("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(86),r=n(76),i=n(13)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){"use strict";var o={};o[n(13)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){"use strict";var o=n(4),r=n(232),i=n(38),a=n(57),c=n(46),l=n(32),s=n(26),d=n(13),u=n(40),p=n(76),m=n(161),h=m.IteratorPrototype,f=m.BUGGY_SAFARI_ITERATORS,C=d("iterator"),g=function(){return this};e.exports=function(e,t,n,d,m,N,b){r(n,t,d);var V,v,x,y=function(e){if(e===m&&S)return S;if(!f&&e in _)return _[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",w=!1,_=e.prototype,B=_[C]||_["@@iterator"]||m&&_[m],S=!f&&B||y(m),L="Array"==t&&_.entries||B;if(L&&(V=i(L.call(new e)),h!==Object.prototype&&V.next&&(u||i(V)===h||(a?a(V,h):"function"!=typeof V[C]&&l(V,C,g)),c(V,k,!0,!0),u&&(p[k]=g))),"values"==m&&B&&"values"!==B.name&&(w=!0,S=function(){return B.call(this)}),u&&!b||_[C]===S||l(_,C,S),p[t]=S,m)if(v={values:y("values"),keys:N?S:y("keys"),entries:y("entries")},b)for(x in v)(f||w||!(x in _))&&s(_,x,v[x]);else o({target:t,proto:!0,forced:f||w},v);return v}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var o=n(12),r=n(122),i=n(25),a=Math.ceil,c=function(e){return function(t,n,c){var l,s,d=String(i(t)),u=d.length,p=c===undefined?" ":String(c),m=o(n);return m<=u||""==p?d:(l=m-u,(s=r.call(p,a(l/p.length))).length>l&&(s=s.slice(0,l)),e?d+s:s+d)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var o=n(33),r=n(25);e.exports="".repeat||function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var o,r,i,a=n(6),c=n(5),l=n(35),s=n(55),d=n(154),u=n(105),p=n(173),m=a.location,h=a.setImmediate,f=a.clearImmediate,C=a.process,g=a.MessageChannel,N=a.Dispatch,b=0,V={},v=function(e){if(V.hasOwnProperty(e)){var t=V[e];delete V[e],t()}},x=function(e){return function(){v(e)}},y=function(e){v(e.data)},k=function(e){a.postMessage(e+"",m.protocol+"//"+m.host)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return V[++b]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},o(b),b},f=function(e){delete V[e]},"process"==l(C)?o=function(e){C.nextTick(x(e))}:N&&N.now?o=function(e){N.now(x(e))}:g&&!p?(i=(r=new g).port2,r.port1.onmessage=y,o=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(k)||"file:"===m.protocol?o="onreadystatechange"in u("script")?function(e){d.appendChild(u("script")).onreadystatechange=function(){d.removeChild(this),v(e)}}:function(e){setTimeout(x(e),0)}:(o=k,a.addEventListener("message",y,!1))),e.exports={set:h,clear:f}},function(e,t,n){"use strict";var o=n(8),r=n(35),i=n(13)("match");e.exports=function(e){var t;return o(e)&&((t=e[i])!==undefined?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var o=n(5);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var o=n(33),r=n(25),i=function(e){return function(t,n){var i,a,c=String(r(t)),l=o(n),s=c.length;return l<0||l>=s?e?"":undefined:(i=c.charCodeAt(l))<55296||i>56319||l+1===s||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):i:e?c.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var o=n(125);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var o=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){"use strict";var o=n(127).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){"use strict";var o=n(5),r=n(93);e.exports=function(e){return o((function(){return!!r[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||r[e].name!==e}))}},function(e,t,n){"use strict";var o=n(6),r=n(5),i=n(87),a=n(11).NATIVE_ARRAY_BUFFER_VIEWS,c=o.ArrayBuffer,l=o.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new c(2),1,undefined).length}))},function(e,t,n){"use strict";t.__esModule=!0,t.hotKeyReducer=t.hotKeyMiddleware=t.releaseHeldKeys=t.KEY_MINUS=t.KEY_EQUAL=t.KEY_Z=t.KEY_Y=t.KEY_X=t.KEY_W=t.KEY_V=t.KEY_U=t.KEY_T=t.KEY_S=t.KEY_R=t.KEY_Q=t.KEY_P=t.KEY_O=t.KEY_N=t.KEY_M=t.KEY_L=t.KEY_K=t.KEY_J=t.KEY_I=t.KEY_H=t.KEY_G=t.KEY_F=t.KEY_E=t.KEY_D=t.KEY_C=t.KEY_B=t.KEY_A=t.KEY_9=t.KEY_8=t.KEY_7=t.KEY_6=t.KEY_5=t.KEY_4=t.KEY_3=t.KEY_2=t.KEY_1=t.KEY_0=t.KEY_SPACE=t.KEY_ESCAPE=t.KEY_ALT=t.KEY_CTRL=t.KEY_SHIFT=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=void 0;var o=n(23),r=(0,n(63).createLogger)("hotkeys");t.KEY_BACKSPACE=8;t.KEY_TAB=9;t.KEY_ENTER=13;t.KEY_SHIFT=16;t.KEY_CTRL=17;t.KEY_ALT=18;t.KEY_ESCAPE=27;t.KEY_SPACE=32;t.KEY_0=48;t.KEY_1=49;t.KEY_2=50;t.KEY_3=51;t.KEY_4=52;t.KEY_5=53;t.KEY_6=54;t.KEY_7=55;t.KEY_8=56;t.KEY_9=57;t.KEY_A=65;t.KEY_B=66;t.KEY_C=67;t.KEY_D=68;t.KEY_E=69;t.KEY_F=70;t.KEY_G=71;t.KEY_H=72;t.KEY_I=73;t.KEY_J=74;t.KEY_K=75;t.KEY_L=76;t.KEY_M=77;t.KEY_N=78;t.KEY_O=79;t.KEY_P=80;t.KEY_Q=81;t.KEY_R=82;t.KEY_S=83;t.KEY_T=84;t.KEY_U=85;t.KEY_V=86;t.KEY_W=87;t.KEY_X=88;t.KEY_Y=89;t.KEY_Z=90;t.KEY_EQUAL=187;t.KEY_MINUS=189;var i=[17,18,16],a=[27,13,32,9,17,16,18],c={},l=function(e,t,n,o){var r="";return e&&(r+="Ctrl+"),t&&(r+="Alt+"),n&&(r+="Shift+"),r+=o>=48&&o<=90?String.fromCharCode(o):"["+o+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,o=e.altKey,r=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:o,shiftKey:r,hasModifierKeys:n||o||r,keyString:l(n,o,r,t)}},d=function(e,t){if(!e.defaultPrevented){var n=e.target&&e.target.localName;if("input"!==n&&"textarea"!==n){var i=s(e),l=i.keyCode,d=i.ctrlKey,u=i.shiftKey,p=function(e){var t={16:"Shift",17:"Ctrl",18:"Alt",33:"Northeast",34:"Southeast",35:"Southwest",36:"Northwest",37:"West",38:"North",39:"East",40:"South",45:"Insert",46:"Delete"};return t[e]?t[e]:e>=48&&e<=57||e>=65&&e<=90?String.fromCharCode(e):e>=96&&e<=105?"Numpad"+(e-96):e>=112&&e<=123?"F"+(e-111):188===e?",":189===e?"-":190===e?".":void 0}(l);if(!a.includes(l)){if("keyup"===t&&c[l])return r.debug("passthrough",t,i),(0,o.callByond)("",{__keyup:p});if(!d&&!u)return"keydown"!==t||c[l]?void 0:(r.debug("passthrough",t,i),(0,o.callByond)("",{__keydown:p}))}}}},u=function(){for(var e=0,t=Object.keys(c);e=0||(r[n]=e[n]);return r}var h=(0,l.createLogger)("Button"),f=function(e){var t=e.className,n=e.fluid,l=e.icon,p=e.color,f=e.disabled,C=e.selected,g=e.tooltip,N=e.tooltipPosition,b=e.ellipsis,V=e.content,v=e.iconRotation,x=e.iconColor,y=e.iconSpin,k=e.iconRight,w=e.children,_=e.onclick,B=e.onClick,S=m(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconColor","iconSpin","iconRight","children","onclick","onClick"]),L=!(!V&&!w);return _&&h.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid",f&&"Button--disabled",C&&"Button--selected",L&&"Button--hasContent",b&&"Button--ellipsis",k&&"Button--iconRight",p&&"string"==typeof p?"Button--color--"+p:"Button--color--default",t]),tabIndex:!f&&"0",unselectable:i.IS_IE8,onclick:function(e){(0,c.refocusLayout)(),!f&&B&&B(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===a.KEY_SPACE||t===a.KEY_ENTER?(e.preventDefault(),void(!f&&B&&B(e))):t===a.KEY_ESCAPE?(e.preventDefault(),void(0,c.refocusLayout)()):void 0}},S,{children:[l&&!k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),V,w,l&&k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),g&&(0,o.createComponentVNode)(2,u.Tooltip,{content:g,position:N})]})))};t.Button=f,f.defaultHooks=r.pureComponentHooks;var C=function(e){var t=e.checked,n=m(e,["checked"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=C,f.Checkbox=C;var g=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}p(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,r=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,l=t.icon,s=t.color,d=t.content,u=t.onClick,p=m(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?r:d,icon:this.state.clickedOnce?c:l,color:this.state.clickedOnce?a:s,onClick:function(){return e.state.clickedOnce?u():e.setClickedOnce(!0)}},p)))},t}(o.Component);t.ButtonConfirm=g,f.Confirm=g;var N=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={inInput:!1},t}p(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,i=t.content,c=t.icon,l=t.iconRotation,p=t.iconSpin,h=t.tooltip,f=t.tooltipPosition,C=t.color,g=void 0===C?"default":C,N=(t.placeholder,t.maxLength,m(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},N,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,o.createComponentVNode)(2,d.Icon,{name:c,rotation:l,spin:p}),(0,o.createVNode)(1,"div",null,i,0),(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===a.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===a.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),h&&(0,o.createComponentVNode)(2,u.Tooltip,{content:h,position:f})]})))},t}(o.Component);t.ButtonInput=N,f.Input=N},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var o=n(0),r=n(7),i=n(17);var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,l=e.className,s=e.style,d=void 0===s?{}:s,u=e.rotation,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["name","size","spin","className","style","rotation"]);n&&(d["font-size"]=100*n+"%"),"number"==typeof u&&(d.transform="rotate("+u+"deg)");var m=a.test(t),h=t.replace(a,"");return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,r.classes)([l,m?"far":"fas","fa-"+h,c&&"fa-spin"]),style:d},p)))};t.Icon=c,c.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(136),l=n(17);var s=function(e){var t,n;function s(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,o.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),l=n.origin-e.screenY;if(t.dragging){var s=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+l*a/c,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+s,o,i),n.origin=e.screenY}else Math.abs(l)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state,n=t.dragging,s=t.editing,d=t.value,u=t.suppressingFlicker,p=this.props,m=p.className,h=p.fluid,f=p.animated,C=p.value,g=p.unit,N=p.minValue,b=p.maxValue,V=p.height,v=p.width,x=p.lineHeight,y=p.fontSize,k=p.format,w=p.onChange,_=p.onDrag,B=C;(n||u)&&(B=d);var S=function(e){return(0,o.createVNode)(1,"div","NumberInput__content",e+(g?" "+g:""),0,{unselectable:a.IS_IE8})},L=f&&!n&&!u&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B,format:k,children:S})||S(k?k(B):B);return(0,o.createComponentVNode)(2,l.Box,{className:(0,i.classes)(["NumberInput",h&&"NumberInput--fluid",m]),minWidth:v,minHeight:V,lineHeight:x,fontSize:y,onMouseDown:this.handleDragStart,children:[(0,o.createVNode)(1,"div","NumberInput__barContainer",(0,o.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,r.clamp)((B-N)/(b-N)*100,0,100)+"%"}}),2),L,(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?undefined:"none",height:V,"line-height":x,"font-size":y},onBlur:function(t){if(s){var n=(0,r.clamp)(t.target.value,N,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,N,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},s}(o.Component);t.NumberInput=s,s.defaultHooks=i.pureComponentHooks,s.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var o=n(0),r=n(1),i=n(2);t.LoginInfo=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState;if(c)return(0,o.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout",color:"good",float:"right",onClick:function(){return a("login_logout")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:!l.id,content:"Eject ID",color:"good",float:"right",onClick:function(){return a("login_eject")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var o=n(0),r=n(1),i=n(2);t.LoginScreen=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState,s=c.isAI,d=c.isRobot,u=c.isAdmin;return(0,o.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){return a("login_insert")}})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){return a("login_login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login_login",{login_type:2})}}),!!d&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login_login",{login_type:3})}}),!!u&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){return a("login_login",{login_type:4})}})]})})})}},function(e,t,n){"use strict";var o=n(66);e.exports=new o({explicit:[n(498),n(499),n(500)]})},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var o=n(0),r=n(2),i=n(522),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!t&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:[(0,o.createComponentVNode)(2,r.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Box,{float:"right",display:"inline",children:a(e,t)}),(0,o.createComponentVNode)(2,r.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewManifest=void 0;var o=n(0),r=n(1),i=n(2),a=n(18),c=n(49).COLORS.department,l=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel"],s=function(e){return-1!==l.indexOf(e)||"Quartermaster"===e},d=function(e){return e.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"50%",children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"35%",children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"15%",children:"Active"})]}),e.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{color:(t=e.rank,-1!==l.indexOf(t)?"green":"Quartermaster"===t?"yellow":"orange"),bold:s(e.rank),children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.rank)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.active})]},e.name+e.rank);var t}))]})};t.CrewManifest=function(e,t){var n;(0,r.useBackend)(t).act;e.data?n=e.data:n=(0,r.useBackend)(t).data;var a=n.manifest,l=a.heads,s=a.pro,u=a.sec,p=a.eng,m=a.med,h=a.sci,f=a.ser,C=a.sup,g=a.misc;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.command,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:d(l)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.procedure,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:d(s)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.security,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:d(u)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.engineering,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:d(p)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.medical,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:d(m)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.science,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:d(h)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.service,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:d(f)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.supply,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:d(C)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:d(g)})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var o=n(0),r=n(1),i=n(2);t.TemporaryNotice=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.temp;if(l){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(105);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var o=n(6),r=n(106),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var o=n(6),r=n(107),i=o.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},function(e,t,n){"use strict";var o=n(19),r=n(109),i=n(22),a=n(14);e.exports=function(e,t){for(var n=r(t),c=a.f,l=i.f,s=0;sl;)o(c,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){"use strict";var o=n(112);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(10),a=n(73);e.exports=o?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),c=o.length,l=0;c>l;)r.f(e,n=o[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(39);e.exports=o("document","documentElement")},function(e,t,n){"use strict";var o=n(28),r=n(54).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(t){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(13);t.f=o},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),c=i(n.length),l=r(e,c),s=r(t,c),d=arguments.length>2?arguments[2]:undefined,u=a((d===undefined?c:r(d,c))-s,c-l),p=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=p,s+=p;return n}},function(e,t,n){"use strict";var o=n(59),r=n(12),i=n(55);e.exports=function a(e,t,n,c,l,s,d,u){for(var p,m=l,h=0,f=!!d&&i(d,u,3);h0&&o(p))m=a(e,t,p,r(p.length),m,s-1)-1;else{if(m>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[m]=p}m++}h++}return m}},function(e,t,n){"use strict";var o=n(10);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&o(i.call(e)),a}}},function(e,t,n){"use strict";var o=n(28),r=n(47),i=n(76),a=n(37),c=n(118),l=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var o,r,i,a=n(38),c=n(32),l=n(19),s=n(13),d=n(40),u=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):p=!0),o==undefined&&(o={}),d||l(o,u)||c(o,u,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(28),r=n(33),i=n(12),a=n(41),c=n(27),l=Math.min,s=[].lastIndexOf,d=!!s&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0}),m=d||!u||!p;e.exports=m?function(e){if(d)return s.apply(this,arguments)||0;var t=o(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:s},function(e,t,n){"use strict";var o=n(33),r=n(12);e.exports=function(e){if(e===undefined)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var o=n(34),r=n(8),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var o=[],r=0;r1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return C(this,0===e?0:e,t)}}:{add:function(e){return C(this,e=0===e?0:e,e)}}),u&&o(d.prototype,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var o=t+" Iterator",r=f(t),i=f(o);s(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:o(1+e)}},function(e,t,n){"use strict";var o=n(8),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseInt,c=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=r(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var o=n(9),r=n(73),i=n(28),a=n(83).f,c=function(e){return function(t){for(var n,c=i(t),l=r(c),s=l.length,d=0,u=[];s>d;)n=l[d++],o&&!a.call(c,n)||u.push(e?[n,c[n]]:c[n]);return u}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(6);e.exports=o.Promise},function(e,t,n){"use strict";var o=n(85);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){"use strict";var o,r,i,a,c,l,s,d,u=n(6),p=n(22).f,m=n(35),h=n(124).set,f=n(173),C=u.MutationObserver||u.WebKitMutationObserver,g=u.process,N=u.Promise,b="process"==m(g),V=p(u,"queueMicrotask"),v=V&&V.value;v||(o=function(){var e,t;for(b&&(e=g.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=undefined,n}}i=undefined,e&&e.enter()},b?a=function(){g.nextTick(o)}:C&&!f?(c=!0,l=document.createTextNode(""),new C(o).observe(l,{characterData:!0}),a=function(){l.data=c=!c}):N&&N.resolve?(s=N.resolve(undefined),d=s.then,a=function(){d.call(s,o)}):a=function(){h.call(u,o)}),e.exports=v||function(e){var t={fn:e,next:undefined};i&&(i.next=t),r||(r=t,a()),i=t}},function(e,t,n){"use strict";var o=n(10),r=n(8),i=n(176);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(34),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var o=n(4),r=n(96);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var o=n(85);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o)},function(e,t,n){"use strict";var o=n(376);e.exports=function(e,t){var n=o(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var o=n(16),r=n(12),i=n(116),a=n(115),c=n(55),l=n(11).aTypedArrayConstructor;e.exports=function(e){var t,n,s,d,u,p,m=o(e),h=arguments.length,f=h>1?arguments[1]:undefined,C=f!==undefined,g=i(m);if(g!=undefined&&!a(g))for(p=(u=g.call(m)).next,m=[];!(d=p.call(u)).done;)m.push(d.value);for(C&&h>2&&(f=c(f,arguments[2],2)),n=r(m.length),s=new(l(this))(n),t=0;n>t;t++)s[t]=C?f(m[t],t):m[t];return s}},function(e,t,n){"use strict";var o=n(77),r=n(58).getWeakData,i=n(10),a=n(8),c=n(61),l=n(79),s=n(21),d=n(19),u=n(37),p=u.set,m=u.getterFor,h=s.find,f=s.findIndex,C=0,g=function(e){return e.frozen||(e.frozen=new N)},N=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};N.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=f(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var u=e((function(e,o){c(e,u,t),p(e,{type:t,id:C++,frozen:undefined}),o!=undefined&&l(o,e[s],e,n)})),h=m(t),f=function(e,t,n){var o=h(e),a=r(i(t),!0);return!0===a?g(o).set(t,n):a[o.id]=n,e};return o(u.prototype,{"delete":function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t)["delete"](e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&d(n,t.id)}}),o(u.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return f(this,e,t)}}:{add:function(e){return f(this,e,!0)}}),u}}},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=void 0;var o=n(418),r=n(23);function i(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var a,c,l,s,d,u=(0,n(63).createLogger)("drag"),p=!1,m=!1,h=[0,0],f=function(e){return(0,r.winget)(e,"pos").then((function(e){return[e.x,e.y]}))},C=function(e,t){return(0,r.winset)(e,"pos",t[0]+","+t[1])},g=function(){var e,t=(e=regeneratorRuntime.mark((function n(e){var t,o,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u.log("setting up"),a=e.config.window,n.next=4,f(a);case 4:t=n.sent,h=[t[0]-window.screenLeft,t[1]-window.screenTop],o=N(t),r=o[0],i=o[1],r&&C(a,i),u.debug("current state",{ref:a,screenOffset:h});case 9:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,l,"next",e)}function l(e){i(a,o,r,c,l,"throw",e)}c(undefined)}))});return function(e){return t.apply(this,arguments)}}();t.setupDrag=g;var N=function(e){var t=e[0],n=e[1],o=!1;return t<0?(t=0,o=!0):t+window.innerWidth>window.screen.availWidth&&(t=window.screen.availWidth-window.innerWidth,o=!0),n<0?(n=0,o=!0):n+window.innerHeight>window.screen.availHeight&&(n=window.screen.availHeight-window.innerHeight,o=!0),[o,[t,n]]};t.dragStartHandler=function(e){u.log("drag start"),p=!0,c=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",V),document.addEventListener("mouseup",b),V(e)};var b=function y(e){u.log("drag end"),V(e),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",y),p=!1},V=function(e){p&&(e.preventDefault(),C(a,(0,o.vecAdd)([e.screenX,e.screenY],h,c)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],u.log("resize start",l),m=!0,c=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),x(n)}};var v=function k(e){u.log("resize end",d),x(e),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",k),m=!1},x=function(e){m&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),c,[1,1]))))[0]=Math.max(d[0],250),d[1]=Math.max(d[1],120),function(e,t){(0,r.winset)(e,"size",t[0]+","+t[1])}(a,d))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var o=n(0),r=n(7);t.Tooltip=function(e){var t=e.content,n=e.title,i=e.position,a=void 0===i?"bottom":i,c="string"==typeof t&&t.length>35,l=!(0,r.isFalsy)(n)?n+"\n \n"+t:t;return(0,o.createVNode)(1,"div",(0,r.classes)(["Tooltip",c&&"Tooltip--long",a&&"Tooltip--"+a]),null,1,{"data-tooltip":l})}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=t.getBoundingBox=void 0;var o=n(0),r=n(7),i=n(443),a=n(23),c=n(63),l=n(17);function s(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var d=(0,c.createLogger)("ByondUi"),u=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r}(e,["className","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Dimmer"].concat(t))},a,{children:(0,o.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var o=n(0),r=n(7);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,o.createVNode)(1,"div",(0,r.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(80),i=n(7);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=l,c.defaultHooks=i.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var o=n(0),r=n(15),i=n(7),a=n(136);var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},l=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,o.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,o=t.value,r=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,r),value:o,internalValue:o}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,l=t.stepPixelSize,s=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),d=c(e,s)-n.origin;if(t.dragging){var u=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+d*a/l,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+u,o,i),n.origin=c(e,s)}else Math.abs(d)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,l=t.suppressingFlicker,s=this.props,d=s.animated,u=s.value,p=s.unit,m=s.minValue,h=s.maxValue,f=s.format,C=s.onChange,g=s.onDrag,N=s.children,b=s.height,V=s.lineHeight,v=s.fontSize,x=u;(n||l)&&(x=c);var y=function(e){return e+(p?" "+p:"")},k=d&&!n&&!l&&(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:f,children:y})||y(f?f(x):x),w=(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:b,"line-height":V,"font-size":v},onBlur:function(t){if(i){var n=(0,r.clamp)(t.target.value,m,h);e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,m,h);return e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return N({dragging:n,editing:i,value:u,displayValue:x,displayElement:k,inputElement:w,handleDragStart:this.handleDragStart})},i}(o.Component);t.DraggableControl=l,l.defaultHooks=i.pureComponentHooks,l.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Slider=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.fillValue,v=e.color,x=e.ranges,y=void 0===x?{}:x,k=e.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=k!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=V!==undefined&&null!==V,h=((0,r.scale)(n,u,d),(0,r.scale)(null!=V?V:a,u,d)),f=(0,r.scale)(a,u,d),C=v||(0,r.keyOfMatchingRange)(null!=V?V:n,y)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,b,(0,c.computeBoxClassName)(w)]),[(0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(h)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(h,f))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(f)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",_?k:l,0),s],0,Object.assign({},(0,c.computeBoxProps)(w),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(23),l=n(2),s=n(49),d=n(183),u=n(133),p=n(63),m=n(135);var h=(0,p.createLogger)("Window"),f=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var p=l.prototype;return p.componentDidMount=function(){(0,m.refocusLayout)()},p.render=function(){var e=this.props,t=e.resizable,n=e.theme,l=e.children,p=(0,a.useBackend)(this.context),f=p.config,C=p.debugLayout,N=f.observer?f.statusa?"average":t>c?"bad":"good"),children:[e.val,e.units]},e.entry);var t,n,r,a,c}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MessengerList=t.ActiveConversation=t.pda_messenger=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);t.pda_messenger=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data);return r.active_convo?(0,o.createComponentVNode)(2,c,{data:r}):(0,o.createComponentVNode)(2,l,{data:r})};var c=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.convo_name,s=c.convo_job,d=c.messages,u=c.active_convo,p=(0,i.useLocalState)(t,"clipboardMode",!1),m=p[0],h=p[1],f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{height:"97%",overflowY:"auto",children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{textAlign:e.sent?"right":"left",position:"relative",mb:1,children:[(0,o.createComponentVNode)(2,a.Icon,{fontSize:2.5,color:e.sent?"#3e6189":"#565656",position:"absolute",left:e.sent?null:"0px",right:e.sent?"0px":null,bottom:"-5px",style:{"z-index":"0",transform:e.sent?"scale(-1, 1)":null},name:"comment"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,backgroundColor:e.sent?"#3e6189":"#565656",p:1,maxWidth:"100%",position:"relative",textAlign:"left",style:{"z-index":"1","border-radius":"5px","word-break":"normal","word-wrap":"break-word"},children:e.message})]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]});return m&&(f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{color:e.sent?"#2185d0":"#aaaaaa",style:{"word-break":"normal"},children:[e.sent?"You:":"Them:"," ",e.message]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),f]})};t.ActiveConversation=c;var l=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=r.convopdas,l=r.pdas,d=r.charges,u=r.silent,p=r.toff,m=(0,i.useLocalState)(t,"searchTerm",""),h=m[0],f=m[1];return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,a.Button,{selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return n("Toggle Ringer")},children:["Ringer: ",u?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return n("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",onClick:function(){return n("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})}),!c.length&&!l.length&&(0,o.createComponentVNode)(2,a.Box,{children:"No current conversations"})||(0,o.createComponentVNode)(2,a.Box,{children:["Search: ",(0,o.createComponentVNode)(2,a.Input,{value:h,onInput:function(e,t){f(t)}}),(0,o.createComponentVNode)(2,s,{title:"Current Conversations",data:r,pdas:c,msgAct:"Select Conversation",searchTerm:h}),(0,o.createComponentVNode)(2,s,{title:"Other PDAs",pdas:l,msgAct:"Message",data:r,searchTerm:h})]})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Messenger Offline."})]})};t.MessengerList=l;var s=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=e.pdas,l=e.title,s=e.msgAct,d=e.searchTerm,u=r.charges,p=r.plugins;return c&&c.length?(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:c.filter((function(e){return e.Name.toLowerCase().includes(d.toLowerCase())})).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return n(s,{target:e.uid})}}),!!u&&p.map((function(t){return(0,o.createComponentVNode)(2,a.Button,{icon:t.icon,content:t.name,onClick:function(){return n("Messenger Plugin",{plugin:t.uid,target:e.uid})}},t.uid)}))]},e.uid)}))}):(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:"No PDAs found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(15),i=n(1),a=n(2);t.Signaler=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.code,s=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return n("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(e,t){return n("code",{code:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return n("signal")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitorMainContent=t.PowerMonitor=void 0;var o=n(0),r=n(24),i=n(43),a=n(15),c=n(7),l=n(18),s=n(1),d=n(2),u=n(3),p=6e5;t.PowerMonitor=function(e,t){return(0,o.createComponentVNode)(2,u.Window,{resizeable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var m=function(e,t){var n=(0,s.useBackend)(t),r=(n.act,n.data),i=r.powermonitor,a=r.can_select_monitor;return(0,o.createComponentVNode)(2,d.Box,{m:0,children:[!i&&a&&(0,o.createComponentVNode)(2,h),i&&(0,o.createComponentVNode)(2,f)]})};t.PowerMonitorMainContent=m;var h=function(e,t){var n=(0,s.useBackend)(t),r=n.act,i=n.data.powermonitors;return i?(0,o.createComponentVNode)(2,d.Section,{title:"Select Power Monitor",children:Object.keys(i).sort((function(e,t){return i[e]50?"battery-half":"battery-quarter")||"C"===t&&"bolt"||"F"===t&&"battery-full"||"M"===t&&"slash",color:"N"===t&&(n>50?"yellow":"red")||"C"===t&&"yellow"||"F"===t&&"green"||"M"===t&&"orange"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(n)+"%"})],4)};C.defaultHooks=c.pureComponentHooks;var g=function(e){var t,n;switch(e.status){case"AOn":t=!0,n=!0;break;case"AOff":t=!0,n=!1;break;case"On":t=!1,n=!0;break;case"Off":t=!1,n=!1}var r=(n?"On":"Off")+" ["+(t?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:n?"good":"bad",content:t?undefined:"M",title:r})};g.defaultHooks=c.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.RndRoute=void 0;var o=n(1);t.RndRoute=function(e,t){var n=e.render,r=(0,o.useBackend)(t).data,i=r.menu,a=r.submenu,c=function(e,t){return null===e||e===undefined||("function"==typeof e?e(t):e===t)};return c(e.menu,i)&&c(e.submenu,a)?n():null}},function(e,t,n){e.exports=n(201)},function(e,t,n){"use strict";n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(227),n(229),n(230),n(231),n(160),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(248),n(249),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(177),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414);var o=n(0),r=n(416);n(417);n(182);var i=n(1),a=n(23),c=n(183),l=n(63);n(419),n(420),n(421),n(422),n(423);var s=n(424);n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438);var d,u=n(439),p=(Date.now(),(0,s.createStore)()),m=!0,h=function(){for(p.subscribe((function(){!function(){try{var e=p.getState();m&&(l.logger.log("initial render",e),(0,c.setupDrag)(e));var t=(0,n(134).getRoutedComponent)(e),r=(0,o.createComponentVNode)(2,s.StoreProvider,{store:p,children:(0,o.createComponentVNode)(2,t)});d||(d=document.getElementById("react-root")),(0,o.render)(r,d)}catch(i){throw l.logger.error("rendering error",i),i}m&&(m=!1)}()})),(0,u.captureExternalLinks)(),window.update=function(e){var t="string"==typeof e?function(e){var t=function(e,t){return"object"==typeof t&&null!==t&&t.__number__?parseFloat(t.__number__):t};a.IS_IE8&&(t=undefined);try{return JSON.parse(e,t)}catch(o){l.logger.log(o),l.logger.log("What we got:",e);var n=o&&o.message;throw new Error("JSON parsing error: "+n)}}(e):e;p.dispatch((0,i.backendUpdate)(t))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}(0,r.loadCSS)("font-awesome.css")};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(39),a=n(40),c=n(9),l=n(112),s=n(152),d=n(5),u=n(19),p=n(59),m=n(8),h=n(10),f=n(16),C=n(28),g=n(36),N=n(53),b=n(45),V=n(73),v=n(54),x=n(155),y=n(111),k=n(22),w=n(14),_=n(83),B=n(32),S=n(26),L=n(108),A=n(84),E=n(70),I=n(69),D=n(13),T=n(156),F=n(29),M=n(46),P=n(37),O=n(21).forEach,R=A("hidden"),j=D("toPrimitive"),U=P.set,z=P.getterFor("Symbol"),W=Object.prototype,H=r.Symbol,K=i("JSON","stringify"),Y=k.f,G=w.f,q=x.f,X=_.f,J=L("symbols"),$=L("op-symbols"),Z=L("string-to-symbol-registry"),Q=L("symbol-to-string-registry"),ee=L("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,oe=c&&d((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=Y(W,t);o&&delete W[t],G(e,t,n),o&&e!==W&&G(W,t,o)}:G,re=function(e,t){var n=J[e]=b(H.prototype);return U(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===W&&ae($,t,n),h(e);var o=g(t,!0);return h(n),u(J,o)?(n.enumerable?(u(e,R)&&e[R][o]&&(e[R][o]=!1),n=b(n,{enumerable:N(0,!1)})):(u(e,R)||G(e,R,N(1,{})),e[R][o]=!0),oe(e,o,n)):G(e,o,n)},ce=function(e,t){h(e);var n=C(t),o=V(n).concat(pe(n));return O(o,(function(t){c&&!se.call(n,t)||ae(e,t,n[t])})),e},le=function(e,t){return t===undefined?b(e):ce(b(e),t)},se=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===W&&u(J,t)&&!u($,t))&&(!(n||!u(this,t)||!u(J,t)||u(this,R)&&this[R][t])||n)},de=function(e,t){var n=C(e),o=g(t,!0);if(n!==W||!u(J,o)||u($,o)){var r=Y(n,o);return!r||!u(J,o)||u(n,R)&&n[R][o]||(r.enumerable=!0),r}},ue=function(e){var t=q(C(e)),n=[];return O(t,(function(e){u(J,e)||u(E,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=q(t?$:C(e)),o=[];return O(n,(function(e){!u(J,e)||t&&!u(W,e)||o.push(J[e])})),o};(l||(S((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,t=I(e),n=function o(e){this===W&&o.call($,e),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),oe(this,t,N(1,e))};return c&&ne&&oe(W,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return z(this).tag})),S(H,"withoutSetter",(function(e){return re(I(e),e)})),_.f=se,w.f=ae,k.f=de,v.f=x.f=ue,y.f=pe,T.f=function(e){return re(D(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||S(W,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),O(V(ee),(function(e){F(e)})),o({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=String(e);if(u(Z,t))return Z[t];var n=H(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(u(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:le,defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){y.f(1)}))},{getOwnPropertySymbols:function(e){return y.f(f(e))}}),K)&&o({target:"JSON",stat:!0,forced:!l||d((function(){var e=H();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=t,(m(t)||e!==undefined)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!ie(t))return t}),r[1]=t,K.apply(null,r)}});H.prototype[j]||B(H.prototype,j,H.prototype.valueOf),M(H,"Symbol"),E[R]=!0},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(6),a=n(19),c=n(8),l=n(14).f,s=n(149),d=i.Symbol;if(r&&"function"==typeof d&&(!("description"in d.prototype)||d().description!==undefined)){var u={},p=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof p?new d(e):e===undefined?d():d(e);return""===e&&(u[t]=!0),t};s(p,d);var m=p.prototype=d.prototype;m.constructor=p;var h=m.toString,f="Symbol(test)"==String(d("test")),C=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=h.call(e);if(a(u,e))return"";var n=f?t.slice(7,-1):t.replace(C,"$1");return""===n?undefined:n}}),o({global:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";n(29)("asyncIterator")},function(e,t,n){"use strict";n(29)("hasInstance")},function(e,t,n){"use strict";n(29)("isConcatSpreadable")},function(e,t,n){"use strict";n(29)("iterator")},function(e,t,n){"use strict";n(29)("match")},function(e,t,n){"use strict";n(29)("replace")},function(e,t,n){"use strict";n(29)("search")},function(e,t,n){"use strict";n(29)("species")},function(e,t,n){"use strict";n(29)("split")},function(e,t,n){"use strict";n(29)("toPrimitive")},function(e,t,n){"use strict";n(29)("toStringTag")},function(e,t,n){"use strict";n(29)("unscopables")},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(59),a=n(8),c=n(16),l=n(12),s=n(56),d=n(74),u=n(75),p=n(13),m=n(113),h=p("isConcatSpreadable"),f=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),C=u("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return t!==undefined?!!t:i(e)};o({target:"Array",proto:!0,forced:!f||!C},{concat:function(e){var t,n,o,r,i,a=c(this),u=d(a,0),p=0;for(t=-1,o=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(u,p++,i)}return u.length=p,u}})},function(e,t,n){"use strict";var o=n(4),r=n(157),i=n(47);o({target:"Array",proto:!0},{copyWithin:r}),i("copyWithin")},function(e,t,n){"use strict";var o=n(4),r=n(21).every,i=n(41),a=n(27),c=i("every"),l=a("every");o({target:"Array",proto:!0,forced:!c||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(114),i=n(47);o({target:"Array",proto:!0},{fill:r}),i("fill")},function(e,t,n){"use strict";var o=n(4),r=n(21).filter,i=n(75),a=n(27),c=i("filter"),l=a("filter");o({target:"Array",proto:!0,forced:!c||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(21).find,i=n(47),a=n(27),c=!0,l=a("find");"find"in[]&&Array(1).find((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var o=n(4),r=n(21).findIndex,i=n(47),a=n(27),c=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(33),l=n(74);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,e===undefined?1:c(e)),o}})},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(34),l=n(74);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),o=a(n.length);return c(e),(t=l(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var o=n(4),r=n(226);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var o=n(21).forEach,r=n(41),i=n(27),a=r("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var o=n(4),r=n(228);o({target:"Array",stat:!0,forced:!n(87)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(55),r=n(16),i=n(159),a=n(115),c=n(12),l=n(56),s=n(116);e.exports=function(e){var t,n,d,u,p,m,h=r(e),f="function"==typeof this?this:Array,C=arguments.length,g=C>1?arguments[1]:undefined,N=g!==undefined,b=s(h),V=0;if(N&&(g=o(g,C>2?arguments[2]:undefined,2)),b==undefined||f==Array&&a(b))for(n=new f(t=c(h.length));t>V;V++)m=N?g(h[V],V):h[V],l(n,V,m);else for(p=(u=b.call(h)).next,n=new f;!(d=p.call(u)).done;V++)m=N?i(u,g,[d.value,V],!0):d.value,l(n,V,m);return n.length=V,n}},function(e,t,n){"use strict";var o=n(4),r=n(71).includes,i=n(47);o({target:"Array",proto:!0,forced:!n(27)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var o=n(4),r=n(71).indexOf,i=n(41),a=n(27),c=[].indexOf,l=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),d=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!s||!d},{indexOf:function(e){return l?c.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(4)({target:"Array",stat:!0},{isArray:n(59)})},function(e,t,n){"use strict";var o=n(161).IteratorPrototype,r=n(45),i=n(53),a=n(46),c=n(76),l=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,s,!1,!0),c[s]=l,e}},function(e,t,n){"use strict";var o=n(4),r=n(68),i=n(28),a=n(41),c=[].join,l=r!=Object,s=a("join",",");o({target:"Array",proto:!0,forced:l||!s},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var o=n(4),r=n(163);o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var o=n(4),r=n(21).map,i=n(75),a=n(27),c=i("map"),l=a("map");o({target:"Array",proto:!0,forced:!c||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(56);o({target:"Array",stat:!0,forced:r((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(4),r=n(88).left,i=n(41),a=n(27),c=i("reduce"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(88).right,i=n(41),a=n(27),c=i("reduceRight"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(59),a=n(44),c=n(12),l=n(28),s=n(56),d=n(13),u=n(75),p=n(27),m=u("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),f=d("species"),C=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!m||!h},{slice:function(e,t){var n,o,d,u=l(this),p=c(u.length),m=a(e,p),h=a(t===undefined?p:t,p);if(i(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[f])&&(n=undefined):n=undefined,n===Array||n===undefined))return C.call(u,m,h);for(o=new(n===undefined?Array:n)(g(h-m,0)),d=0;m1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(34),i=n(16),a=n(5),c=n(41),l=[],s=l.sort,d=a((function(){l.sort(undefined)})),u=a((function(){l.sort(null)})),p=c("sort");o({target:"Array",proto:!0,forced:d||!u||!p},{sort:function(e){return e===undefined?s.call(i(this)):s.call(i(this),r(e))}})},function(e,t,n){"use strict";n(60)("Array")},function(e,t,n){"use strict";var o=n(4),r=n(44),i=n(33),a=n(12),c=n(16),l=n(74),s=n(56),d=n(75),u=n(27),p=d("splice"),m=u("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,f=Math.min;o({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,o,d,u,p,m,C=c(this),g=a(C.length),N=r(e,g),b=arguments.length;if(0===b?n=o=0:1===b?(n=0,o=g-N):(n=b-2,o=f(h(i(t),0),g-N)),g+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(C,o),u=0;ug-o+n;u--)delete C[u-1]}else if(n>o)for(u=g-o;u>N;u--)m=u+n-1,(p=u+o-1)in C?C[m]=C[p]:delete C[m];for(u=0;u>1,f=23===t?r(2,-24)-r(2,-77):0,C=e<0||0===e&&1/e<0?1:0,g=0;for((e=o(e))!=e||e===1/0?(s=e!=e?1:0,l=m):(l=i(a(e)/c),e*(d=r(2,-l))<1&&(l--,d*=2),(e+=l+h>=1?f/d:f*r(2,1-h))*d>=2&&(l++,d/=2),l+h>=m?(s=0,l=m):l+h>=1?(s=(e*d-1)*r(2,t),l+=h):(s=e*r(2,h-1)*r(2,t),l=0));t>=8;u[g++]=255&s,s/=256,t-=8);for(l=l<0;u[g++]=255&l,l/=256,p-=8);return u[--g]|=128*C,u},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,l=i-7,s=o-1,d=e[s--],u=127&d;for(d>>=7;l>0;u=256*u+e[s],s--,l-=8);for(n=u&(1<<-l)-1,u>>=-l,l+=t;l>0;n=256*n+e[s],s--,l-=8);if(0===u)u=1-c;else{if(u===a)return n?NaN:d?-1/0:1/0;n+=r(2,t),u-=c}return(d?-1:1)*n*r(2,u-t)}}},function(e,t,n){"use strict";var o=n(4),r=n(11);o({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(89),a=n(10),c=n(44),l=n(12),s=n(48),d=i.ArrayBuffer,u=i.DataView,p=d.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:r((function(){return!new d(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(p!==undefined&&t===undefined)return p.call(a(this),e);for(var n=a(this).byteLength,o=c(e,n),r=c(t===undefined?n:t,n),i=new(s(this,d))(l(r-o)),m=new u(this),h=new u(i),f=0;o9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(this.getUTCMonth()+1,2,0)+"-"+r(this.getUTCDate(),2,0)+"T"+r(this.getUTCHours(),2,0)+":"+r(this.getUTCMinutes(),2,0)+":"+r(this.getUTCSeconds(),2,0)+"."+r(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(36);o({target:"Date",proto:!0,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var o=n(32),r=n(256),i=n(13)("toPrimitive"),a=Date.prototype;i in a||o(a,i,r)},function(e,t,n){"use strict";var o=n(10),r=n(36);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!==e)}},function(e,t,n){"use strict";var o=n(26),r=Date.prototype,i=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&o(r,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(4)({target:"Function",proto:!0},{bind:n(165)})},function(e,t,n){"use strict";var o=n(8),r=n(14),i=n(38),a=n(13)("hasInstance"),c=Function.prototype;a in c||r.f(c,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var o=n(9),r=n(14).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;o&&!("name"in i)&&r(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(6);n(46)(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(167),i=Math.acosh,a=Math.log,c=Math.sqrt,l=Math.LN2;o({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:r(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var o=n(4),r=Math.asinh,i=Math.log,a=Math.sqrt;o({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var o=n(4),r=Math.atanh,i=Math.log;o({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var o=n(4),r=n(123),i=Math.abs,a=Math.pow;o({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var o=n(4),r=Math.floor,i=Math.log,a=Math.LOG2E;o({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*a):32}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.cosh,a=Math.abs,c=Math.E;o({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92);o({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{fround:n(271)})},function(e,t,n){"use strict";var o=n(123),r=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),l=i(2,127)*(2-c),s=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=r(e),d=o(e);return il||n!=n?d*Infinity:d*n}},function(e,t,n){"use strict";var o=n(4),r=Math.hypot,i=Math.abs,a=Math.sqrt;o({target:"Math",stat:!0,forced:!!r&&r(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,o,r=0,c=0,l=arguments.length,s=0;c0?(o=n/s)*o:n;return s===Infinity?Infinity:s*a(r)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=Math.imul;o({target:"Math",stat:!0,forced:r((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LOG10E;o({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{log1p:n(167)})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{sign:n(123)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(92),a=Math.abs,c=Math.exp,l=Math.E;o({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(l/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.exp;o({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(46)(Math,"Math",!0)},function(e,t,n){"use strict";var o=n(4),r=Math.ceil,i=Math.floor;o({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(26),c=n(19),l=n(35),s=n(91),d=n(36),u=n(5),p=n(45),m=n(54).f,h=n(22).f,f=n(14).f,C=n(62).trim,g=r.Number,N=g.prototype,b="Number"==l(p(N)),V=function(e){var t,n,o,r,i,a,c,l,s=d(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=C(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;cr)return NaN;return parseInt(i,o)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var v,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(b?u((function(){N.valueOf.call(n)})):"Number"!=l(n))?s(new g(V(t)),n,x):V(t)},y=o?m(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;y.length>k;k++)c(g,v=y[k])&&!c(x,v)&&f(x,v,h(g,v));x.prototype=N,N.constructor=x,a(r,"Number",x)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isFinite:n(285)})},function(e,t,n){"use strict";var o=n(6).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isInteger:n(168)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var o=n(4),r=n(168),i=Math.abs;o({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var o=n(4),r=n(292);o({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var o=n(4),r=n(169);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o=n(4),r=n(33),i=n(295),a=n(122),c=n(5),l=1..toFixed,s=Math.floor,d=function u(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)};o({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,o,c,l=i(this),u=r(e),p=[0,0,0,0,0,0],m="",h="0",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*p[n],p[n]=o%1e7,o=s(o/1e7)},C=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=s(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(d(10,o,1),0),o=t-1;o>=23;)C(1<<23),o-=23;C(1<0?m+((c=h.length)<=u?"0."+a.call("0",u-c)+h:h.slice(0,c-u)+"."+h.slice(c-u)):m+h}})},function(e,t,n){"use strict";var o=n(35);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var o=n(4),r=n(297);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(73),a=n(111),c=n(83),l=n(16),s=n(68),d=Object.assign,u=Object.defineProperty;e.exports=!d||r((function(){if(o&&1!==d({b:1},d(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=l(e),r=arguments.length,d=1,u=a.f,p=c.f;r>d;)for(var m,h=s(arguments[d++]),f=u?i(h).concat(u(h)):i(h),C=f.length,g=0;C>g;)m=f[g++],o&&!p.call(h,m)||(n[m]=h[m]);return n}:d},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0,sham:!n(9)},{create:n(45)})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(153)})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(14).f})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(170).entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(78),i=n(5),a=n(8),c=n(58).onFreeze,l=Object.freeze;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!r},{freeze:function(e){return l&&a(e)?l(c(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(79),i=n(56);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(28),a=n(22).f,c=n(9),l=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!c||l,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(109),a=n(28),c=n(22),l=n(56);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=c.f,s=i(o),d={},u=0;s.length>u;)(n=r(o,t=s[u++]))!==undefined&&l(d,t,n);return d}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(155).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(38),c=n(119);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{is:n(171)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isExtensible;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isFrozen;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isSealed;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(16),i=n(73);o({target:"Object",stat:!0,forced:n(5)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.set}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.preventExtensions;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.seal;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{seal:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{setPrototypeOf:n(57)})},function(e,t,n){"use strict";var o=n(117),r=n(26),i=n(321);o||r(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var o=n(117),r=n(86);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){"use strict";var o=n(4),r=n(170).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(169);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o,r,i,a,c=n(4),l=n(40),s=n(6),d=n(39),u=n(172),p=n(26),m=n(77),h=n(46),f=n(60),C=n(8),g=n(34),N=n(61),b=n(35),V=n(107),v=n(79),x=n(87),y=n(48),k=n(124).set,w=n(174),_=n(175),B=n(325),S=n(176),L=n(326),A=n(37),E=n(72),I=n(13),D=n(113),T=I("species"),F="Promise",M=A.get,P=A.set,O=A.getterFor(F),R=u,j=s.TypeError,U=s.document,z=s.process,W=d("fetch"),H=S.f,K=H,Y="process"==b(z),G=!!(U&&U.createEvent&&s.dispatchEvent),q=E(F,(function(){if(!(V(R)!==String(R))){if(66===D)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!R.prototype["finally"])return!0;if(D>=51&&/native code/.test(R))return!1;var e=R.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),X=q||!x((function(e){R.all(e)["catch"]((function(){}))})),J=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;w((function(){for(var r=t.value,i=1==t.state,a=0;o.length>a;){var c,l,s,d=o[a++],u=i?d.ok:d.fail,p=d.resolve,m=d.reject,h=d.domain;try{u?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===u?c=r:(h&&h.enter(),c=u(r),h&&(h.exit(),s=!0)),c===d.promise?m(j("Promise-chain cycle")):(l=J(c))?l.call(c,p,m):p(c)):m(r)}catch(f){h&&!s&&h.exit(),m(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)}))}},Z=function(e,t,n){var o,r;G?((o=U.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),s.dispatchEvent(o)):o={promise:t,reason:n},(r=s["on"+e])?r(o):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Q=function(e,t){k.call(s,(function(){var n,o=t.value;if(ee(t)&&(n=L((function(){Y?z.emit("unhandledRejection",o,e):Z("unhandledrejection",e,o)})),t.rejection=Y||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(s,(function(){Y?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},ne=function(e,t,n,o){return function(r){e(t,n,r,o)}},oe=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,$(e,t,!0))},re=function ie(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw j("Promise can't be resolved itself");var r=J(n);r?w((function(){var o={done:!1};try{r.call(n,ne(ie,e,o,t),ne(oe,e,o,t))}catch(i){oe(e,o,i,t)}})):(t.value=n,t.state=1,$(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};q&&(R=function(e){N(this,R,F),g(e),o.call(this);var t=M(this);try{e(ne(re,this,t),ne(oe,this,t))}catch(n){oe(this,t,n)}},(o=function(e){P(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=m(R.prototype,{then:function(e,t){var n=O(this),o=H(y(this,R));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=Y?z.domain:undefined,n.parent=!0,n.reactions.push(o),0!=n.state&&$(this,n,!1),o.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new o,t=M(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(oe,e,t)},S.f=H=function(e){return e===R||e===i?new r(e):K(e)},l||"function"!=typeof u||(a=u.prototype.then,p(u.prototype,"then",(function(e,t){var n=this;return new R((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(R,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:q},{Promise:R}),h(R,F,!1,!0),f(F),i=d(F),c({target:F,stat:!0,forced:q},{reject:function(e){var t=H(this);return t.reject.call(undefined,e),t.promise}}),c({target:F,stat:!0,forced:l||q},{resolve:function(e){return _(l&&this===i?R:this,e)}}),c({target:F,stat:!0,forced:X},{all:function(e){var t=this,n=H(t),o=n.resolve,r=n.reject,i=L((function(){var n=g(t.resolve),i=[],a=0,c=1;v(e,(function(e){var l=a++,s=!1;i.push(undefined),c++,n.call(t,e).then((function(e){s||(s=!0,i[l]=e,--c||o(i))}),r)})),--c||o(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=H(t),o=n.reject,r=L((function(){var r=g(t.resolve);v(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(e,t,n){"use strict";var o=n(6);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var o=n(4),r=n(40),i=n(172),a=n(5),c=n(39),l=n(48),s=n(175),d=n(26);o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=l(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof i||i.prototype["finally"]||d(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(5),l=r("Reflect","apply"),s=Function.apply;o({target:"Reflect",stat:!0,forced:!c((function(){l((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),l?l(e,t,n):s.call(e,t,n)}})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(8),l=n(45),s=n(165),d=n(5),u=r("Reflect","construct"),p=d((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),m=!d((function(){u((function(){}))})),h=p||m;o({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(m&&!p)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(s.apply(e,o))}var r=n.prototype,d=l(c(r)?r:Object.prototype),h=Function.apply.call(e,d,t);return c(h)?h:d}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(36),c=n(14);o({target:"Reflect",stat:!0,forced:n(5)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){i(e);var o=a(t,!0);i(n);try{return c.f(e,o,n),!0}catch(r){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(22).f;o({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(10),a=n(19),c=n(22),l=n(38);o({target:"Reflect",stat:!0},{get:function s(e,t){var n,o,d=arguments.length<3?e:arguments[2];return i(e)===d?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(d):r(o=l(e))?s(o,t,d):void 0}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(22);o({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(38);o({target:"Reflect",stat:!0,sham:!n(119)},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=Object.isExtensible;o({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{ownKeys:n(109)})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(10);o({target:"Reflect",stat:!0,sham:!n(78)},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(8),a=n(19),c=n(5),l=n(14),s=n(22),d=n(38),u=n(53);o({target:"Reflect",stat:!0,forced:c((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(d(e),"a",1,e)}))},{set:function p(e,t,n){var o,c,m=arguments.length<4?e:arguments[3],h=s.f(r(e),t);if(!h){if(i(c=d(e)))return p(c,t,n,m);h=u(0)}if(a(h,"value")){if(!1===h.writable||!i(m))return!1;if(o=s.f(m,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,l.f(m,t,o)}else l.f(m,t,u(0,n));return!0}return h.set!==undefined&&(h.set.call(m,n),!0)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(162),a=n(57);a&&o({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(91),c=n(14).f,l=n(54).f,s=n(125),d=n(95),u=n(126),p=n(26),m=n(5),h=n(37).set,f=n(60),C=n(13)("match"),g=r.RegExp,N=g.prototype,b=/a/g,V=/a/g,v=new g(b)!==b,x=u.UNSUPPORTED_Y;if(o&&i("RegExp",!v||x||m((function(){return V[C]=!1,g(b)!=b||g(V)==V||"/a/i"!=g(b,"i")})))){for(var y=function(e,t){var n,o=this instanceof y,r=s(e),i=t===undefined;if(!o&&r&&e.constructor===y&&i)return e;v?r&&!i&&(e=e.source):e instanceof y&&(i&&(t=d.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(v?new g(e,t):g(e,t),o?this:N,y);return x&&n&&h(c,{sticky:n}),c},k=function(e){e in y||c(y,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=l(g),_=0;w.length>_;)k(w[_++]);N.constructor=y,y.prototype=N,p(r,"RegExp",y)}f("RegExp")},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(95),a=n(126).UNSUPPORTED_Y;o&&("g"!=/./g.flags||a)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var o=n(26),r=n(10),i=n(5),a=n(95),c=RegExp.prototype,l=c.toString,s=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d="toString"!=l.name;(s||d)&&o(RegExp.prototype,"toString",(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(127).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o,r=n(4),i=n(22).f,a=n(12),c=n(128),l=n(25),s=n(129),d=n(40),u="".endsWith,p=Math.min,m=s("endsWith");r({target:"String",proto:!0,forced:!!(d||m||(o=i(String.prototype,"endsWith"),!o||o.writable))&&!m},{endsWith:function(e){var t=String(l(this));c(e);var n=arguments.length>1?arguments[1]:undefined,o=a(t.length),r=n===undefined?o:p(a(n),o),i=String(e);return u?u.call(t,i,r):t.slice(r-i.length,r)===i}})},function(e,t,n){"use strict";var o=n(4),r=n(44),i=String.fromCharCode,a=String.fromCodePoint;o({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(4),r=n(128),i=n(25);o({target:"String",proto:!0,forced:!n(129)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(127).charAt,r=n(37),i=n(118),a=r.set,c=r.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(12),a=n(25),c=n(130),l=n(98);o("match",1,(function(e,t,n){return[function(t){var n=a(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var a=r(e),s=String(this);if(!a.global)return l(a,s);var d=a.unicode;a.lastIndex=0;for(var u,p=[],m=0;null!==(u=l(a,s));){var h=String(u[0]);p[m]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),d)),m++}return 0===m?null:p}]}))},function(e,t,n){"use strict";var o=n(4),r=n(121).end;o({target:"String",proto:!0,forced:n(178)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(121).start;o({target:"String",proto:!0,forced:n(178)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(28),i=n(12);o({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,f=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var C=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,N=C?"$":"$0";return[function(n,o){var r=l(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r,o):t.call(String(r),n,o)},function(e,o){if(!C&&g||"string"==typeof o&&-1===o.indexOf(N)){var i=n(t,e,this,o);if(i.done)return i.value}var l=r(e),m=String(this),h="function"==typeof o;h||(o=String(o));var f=l.global;if(f){var V=l.unicode;l.lastIndex=0}for(var v=[];;){var x=d(l,m);if(null===x)break;if(v.push(x),!f)break;""===String(x[0])&&(l.lastIndex=s(m,a(l.lastIndex),V))}for(var y,k="",w=0,_=0;_=w&&(k+=m.slice(w,S)+D,w=S+B.length)}return k+m.slice(w)}];function b(e,n,o,r,a,c){var l=o+e.length,s=r.length,d=f;return a!==undefined&&(a=i(a),d=h),t.call(c,d,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(l);case"<":c=a[i.slice(1,-1)];break;default:var d=+i;if(0===d)return t;if(d>s){var u=m(d/10);return 0===u?t:u<=s?r[u-1]===undefined?i.charAt(1):r[u-1]+i.charAt(1):t}c=r[d-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(25),a=n(171),c=n(98);o("search",1,(function(e,t,n){return[function(t){var n=i(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var i=r(e),l=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var d=c(i,l);return a(i.lastIndex,s)||(i.lastIndex=s),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var o=n(97),r=n(125),i=n(10),a=n(25),c=n(48),l=n(130),s=n(12),d=n(98),u=n(96),p=n(5),m=[].push,h=Math.min,f=!p((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[o];if(!r(e))return t.call(o,e,i);for(var c,l,s,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,f=new RegExp(e.source,p+"g");(c=u.call(f,o))&&!((l=f.lastIndex)>h&&(d.push(o.slice(h,c.index)),c.length>1&&c.index=i));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?!s&&f.test("")||d.push(""):d.push(o.slice(h)),d.length>i?d.slice(0,i):d}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,r,n):o.call(String(r),t,n)},function(e,r){var a=n(o,e,this,r,o!==t);if(a.done)return a.value;var u=i(e),p=String(this),m=c(u,RegExp),C=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),N=new m(f?u:"^(?:"+u.source+")",g),b=r===undefined?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===d(N,p)?[p]:[];for(var V=0,v=0,x=[];v1?arguments[1]:undefined,t.length)),o=String(e);return u?u.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var o=n(4),r=n(62).trim;o({target:"String",proto:!0,forced:n(131)("trim")},{trim:function(){return r(this)}})},function(e,t,n){"use strict";var o=n(4),r=n(62).end,i=n(131)("trimEnd"),a=i?function(){return r(this)}:"".trimEnd;o({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var o=n(4),r=n(62).start,i=n(131)("trimStart"),a=i?function(){return r(this)}:"".trimStart;o({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("big")},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("blink")},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("bold")},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("italics")},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("link")},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("small")},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sub")},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sup")},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){"use strict";n(42)("Float32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(33);e.exports=function(e){var t=o(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(42)("Float64",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},function(e,t,n){"use strict";n(42)("Uint16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(11),r=n(157),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(114),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).filter,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("filter",(function(e){for(var t=r(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),o=0,l=t.length,s=new(c(n))(l);l>o;)s[o]=t[o++];return s}))},function(e,t,n){"use strict";var o=n(11),r=n(21).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(132);(0,n(11).exportTypedArrayStaticMethod)("from",n(180),o)},function(e,t,n){"use strict";var o=n(11),r=n(71).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(71).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(160),a=n(13)("iterator"),c=o.Uint8Array,l=i.values,s=i.keys,d=i.entries,u=r.aTypedArray,p=r.exportTypedArrayMethod,m=c&&c.prototype[a],h=!!m&&("values"==m.name||m.name==undefined),f=function(){return l.call(u(this))};p("entries",(function(){return d.call(u(this))})),p("keys",(function(){return s.call(u(this))})),p("values",f,!h),p(a,f,!h)},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(r(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(163),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).map,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var o=n(11),r=n(132),i=o.aTypedArrayConstructor;(0,o.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var o=n(11),r=n(88).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(88).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o1?arguments[1]:undefined,1),n=this.length,o=a(e),c=r(o.length),s=0;if(c+t>n)throw RangeError("Wrong length");for(;si;)d[i]=n[i++];return d}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(11),r=n(21).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(r(this),e)}))},function(e,t,n){"use strict";var o=n(11),r=n(12),i=n(44),a=n(48),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),o=n.length,l=i(e,o);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((t===undefined?o:i(t,o))-l))}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(5),a=o.Int8Array,c=r.aTypedArray,l=r.exportTypedArrayMethod,s=[].toLocaleString,d=[].slice,u=!!a&&i((function(){s.call(new a(1))}));l("toLocaleString",(function(){return s.apply(u?d.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(11).exportTypedArrayMethod,r=n(5),i=n(6).Uint8Array,a=i&&i.prototype||{},c=[].toString,l=[].join;r((function(){c.call({})}))&&(c=function(){return l.call(this)});var s=a.toString!=c;o("toString",c,s)},function(e,t,n){"use strict";var o,r=n(6),i=n(77),a=n(58),c=n(90),l=n(181),s=n(8),d=n(37).enforce,u=n(148),p=!r.ActiveXObject&&"ActiveXObject"in r,m=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},f=e.exports=c("WeakMap",h,l);if(u&&p){o=l.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var C=f.prototype,g=C["delete"],N=C.has,b=C.get,V=C.set;i(C,{"delete":function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)||t.frozen.has(e)}return N.call(this,e)},get:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new o),N.call(this,e)?V.call(this,e,t):n.frozen.set(e,t)}else V.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(90)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(181))},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(124);o({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(174),a=n(35),c=r.process,l="process"==a(c);o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(85),a=[].slice,c=function(e){return function(t,n){var o=arguments.length>2,r=o?a.call(arguments,2):undefined;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Se,t._HI=P,t._M=Le,t._MCCC=De,t._ME=Ee,t._MFCC=Te,t._MP=_e,t._MR=Ne,t.__render=Re,t.createComponentVNode=function(e,t,n,o,r){var a=new L(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),o,function(e,t,n){var o=(32768&e?t.render:t).defaultProps;if(i(o))return n;if(i(n))return d(o,null);return B(n,o)}(e,t,n),function(e,t,n){if(4&e)return n;var o=(32768&e?t.render:t).defaultHooks;if(i(o))return n;if(i(n))return o;return B(n,o)}(e,t,r),t);k.createVNode&&k.createVNode(a);return a},t.createFragment=I,t.createPortal=function(e,t){var n=P(e);return A(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,o,r){e||(e=t),je(n,e,o,r)}},t.createTextVNode=E,t.createVNode=A,t.directClone=D,t.findDOMfromVNode=b,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&M(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=je,t.rerender=Ye,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var o=Array.isArray;function r(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function l(e){return"string"==typeof e}function s(e){return null===e}function d(e,t){var n={};if(e)for(var o in e)n[o]=e[o];if(t)for(var r in t)n[r]=t[r];return n}function u(e){return!s(e)&&"object"==typeof e}var p={};t.EMPTY_OBJ=p;function m(e){return e.substr(2).toLowerCase()}function h(e,t){e.appendChild(t)}function f(e,t,n){s(n)?h(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,h=s(p),f=l(p)&&"$"===p[0];m||h||f?(n=n||t.slice(0,d),(m||f)&&(u=D(u)),(h||f)&&(u.key="$"+d),n.push(u)):n&&n.push(u),u.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=D(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||r(e)?E(e,null):o(e)?I(e,0,null):16384&e.flags?D(e):e}var O="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":R,"xml:lang":R,"xml:space":R};function U(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=U(0),W=U(null),H=U(!0);function K(e,t){var n=t.$EV;return n||(n=t.$EV=U(null)),n[e]||1==++z[e]&&(W[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?G(t,!0,e,$(t)):t.stopPropagation()}}(e):function(e){return function(t){G(t,!1,e,$(t))}}(e);return document.addEventListener(m(e),t),t}(e)),n}function Y(e,t){var n=t.$EV;n&&n[e]&&(0==--z[e]&&(document.removeEventListener(m(e),W[e]),W[e]=null),n[e]=null)}function G(e,t,n,o){var r=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&r.disabled)return;var i=r.$EV;if(i){var a=i[n];if(a&&(o.dom=r,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}r=r.parentNode}while(!s(r))}function q(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function X(){return this.defaultPrevented}function J(){return this.cancelBubble}function $(e){var t={dom:document};return e.isDefaultPrevented=X,e.isPropagationStopped=J,e.stopPropagation=q,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Z(e,t,n){if(e[t]){var o=e[t];o.event?o.event(o.data,n):o(n)}else{var r=t.toLowerCase();e[r]&&e[r](n)}}function Q(e,t){var n=function(n){var o=this.$V;if(o){var r=o.props||p,i=o.dom;if(l(e))Z(r,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(o,c)}}var se,de,ue=Q("onInput",me),pe=Q("onChange");function me(e,t,n){var o=e.value,r=t.value;if(i(o)){if(n){var a=e.defaultValue;i(a)||a===r||(t.defaultValue=a,t.value=a)}}else r!==o&&(t.defaultValue=o,t.value=o)}function he(e,t,n,o,r,i){64&e?ie(o,n):256&e?le(o,n,r,t):128&e&&me(o,n,r),i&&(n.$V=t)}function fe(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",oe),ee(e,"click",re)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",ue),t.onChange&&ee(e,"change",pe)}(t,n)}function Ce(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ne(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){S(e,t)||void 0===e.current||(e.current=t)}))}function be(e,t){Ve(e),V(e,t)}function Ve(e){var t,n=e.flags,o=e.children;if(481&n){t=e.ref;var r=e.props;ge(t);var a=e.childFlags;if(!s(r))for(var l=Object.keys(r),d=0,u=l.length;d0;for(var c in a&&(i=Ce(n))&&fe(t,o,n),n)we(c,null,n[c],o,r,i,null);a&&he(t,e,o,n,!0,i)}function Be(e,t,n){var o=P(e.render(t,e.state,n)),r=n;return c(e.getChildContext)&&(r=d(n,e.getChildContext())),e.$CX=r,o}function Se(e,t,n,o,r,i){var a=new t(n,o),l=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=r,a.$L=i,e.children=a,a.$BS=!1,a.context=o,a.props===p&&(a.props=n),l)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var d=a.$PS;if(!s(d)){var u=a.state;if(s(u))a.state=d;else for(var m in d)u[m]=d[m];a.$PS=null}a.$BR=!1}return a.$LI=Be(a,n,o),a}function Le(e,t,n,o,r,i){var a=e.flags|=16384;481&a?Ee(e,t,n,o,r,i):4&a?function(e,t,n,o,r,i){var a=Se(e,e.type,e.props||p,n,o,i);Le(a.$LI,t,a.$CX,o,r,i),De(e.ref,a,i)}(e,t,n,o,r,i):8&a?(!function(e,t,n,o,r,i){Le(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||p,e.ref,t):e.type(e.props||p,t)}(e,n)),t,n,o,r,i)}(e,t,n,o,r,i),Te(e,i)):512&a||16&a?Ae(e,t,r):8192&a?function(e,t,n,o,r,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=T());2===c?Le(a,n,r,o,r,i):Ie(a,n,t,o,r,i)}(e,n,t,o,r,i):1024&a&&function(e,t,n,o,r){Le(e.children,e.ref,t,!1,null,r);var i=T();Ae(i,n,o),e.dom=i.dom}(e,n,t,r,i)}function Ae(e,t,n){var o=e.dom=document.createTextNode(e.children);s(t)||f(t,o,n)}function Ee(e,t,n,o,r,a){var c=e.flags,l=e.props,d=e.className,u=e.children,p=e.childFlags,m=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&c)>0);if(i(d)||""===d||(o?m.setAttribute("class",d):m.className=d),16===p)w(m,u);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&u.flags&&(e.children=u=D(u)),Le(u,m,n,h,null,a)):8!==p&&4!==p||Ie(u,m,n,h,null,a)}s(t)||f(t,m,r),s(l)||_e(e,c,l,m,o),Ne(e.ref,m,a)}function Ie(e,t,n,o,r,i){for(var a=0;a0,s!==d){var h=s||p;if((c=d||p)!==p)for(var f in(u=(448&r)>0)&&(m=Ce(c)),c){var C=h[f],g=c[f];C!==g&&we(f,C,g,l,o,m,e)}if(h!==p)for(var N in h)i(c[N])&&!i(h[N])&&we(N,h[N],null,l,o,m,e)}var b=t.children,V=t.className;e.className!==V&&(i(V)?l.removeAttribute("class"):o?l.setAttribute("class",V):l.className=V);4096&r?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,b):Me(e.childFlags,t.childFlags,e.children,b,l,n,o&&"foreignObject"!==t.type,null,e,a);u&&he(r,t,l,c,!1,m);var v=t.ref,x=e.ref;x!==v&&(ge(x),Ne(v,l,a))}(e,t,o,r,m,u):4&m?function(e,t,n,o,r,i,a){var l=t.children=e.children;if(s(l))return;l.$L=a;var u=t.props||p,m=t.ref,h=e.ref,f=l.state;if(!l.$N){if(c(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(u,o),l.$UN)return;l.$BR=!1}s(l.$PS)||(f=d(f,l.$PS),l.$PS=null)}Pe(l,f,u,n,o,r,!1,i,a),h!==m&&(ge(h),Ne(m,l,a))}(e,t,n,o,r,l,u):8&m?function(e,t,n,o,r,a,l){var s=!0,d=t.props||p,u=t.ref,m=e.props,h=!i(u),f=e.children;h&&c(u.onComponentShouldUpdate)&&(s=u.onComponentShouldUpdate(m,d));if(!1!==s){h&&c(u.onComponentWillUpdate)&&u.onComponentWillUpdate(m,d);var C=t.type,g=P(32768&t.flags?C.render(d,u,o):C(d,o));Fe(f,g,n,o,r,a,l),t.children=g,h&&c(u.onComponentDidUpdate)&&u.onComponentDidUpdate(m,d)}else t.children=f}(e,t,n,o,r,l,u):16&m?function(e,t){var n=t.children,o=t.dom=e.dom;n!==e.children&&(o.nodeValue=n)}(e,t):512&m?t.dom=e.dom:8192&m?function(e,t,n,o,r,i){var a=e.children,c=t.children,l=e.childFlags,s=t.childFlags,d=null;12&s&&0===c.length&&(s=t.childFlags=2,c=t.children=T());var u=0!=(2&s);if(12&l){var p=a.length;(8&l&&8&s||u||!u&&c.length>p)&&(d=b(a[p-1],!1).nextSibling)}Me(l,s,a,c,n,o,r,d,e,i)}(e,t,n,o,r,u):function(e,t,n,o){var r=e.ref,i=t.ref,c=t.children;if(Me(e.childFlags,t.childFlags,e.children,c,r,n,!1,null,e,o),t.dom=e.dom,r!==i&&!a(c)){var l=c.dom;C(r,l),h(i,l)}}(e,t,o,u)}function Me(e,t,n,o,r,i,a,c,l,s){switch(e){case 2:switch(t){case 2:Fe(n,o,r,i,a,c,s);break;case 1:be(n,r);break;case 16:Ve(n),w(r,o);break;default:!function(e,t,n,o,r,i){Ve(e),Ie(t,n,o,r,b(e,!0),i),V(e,n)}(n,o,r,i,a,s)}break;case 1:switch(t){case 2:Le(o,r,i,a,c,s);break;case 1:break;case 16:w(r,o);break;default:Ie(o,r,i,a,c,s)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:w(n,t))}(n,o,r);break;case 2:xe(r),Le(o,r,i,a,c,s);break;case 1:xe(r);break;default:xe(r),Ie(o,r,i,a,c,s)}break;default:switch(t){case 16:ve(n),w(r,o);break;case 2:ye(r,l,n),Le(o,r,i,a,c,s);break;case 1:ye(r,l,n);break;default:var d=0|n.length,u=0|o.length;0===d?u>0&&Ie(o,r,i,a,c,s):0===u?ye(r,l,n):8===t&&8===e?function(e,t,n,o,r,i,a,c,l,s){var d,u,p=i-1,m=a-1,h=0,f=e[h],C=t[h];e:{for(;f.key===C.key;){if(16384&C.flags&&(t[h]=C=D(C)),Fe(f,C,n,o,r,c,s),e[h]=C,++h>p||h>m)break e;f=e[h],C=t[h]}for(f=e[p],C=t[m];f.key===C.key;){if(16384&C.flags&&(t[m]=C=D(C)),Fe(f,C,n,o,r,c,s),e[p]=C,p--,m--,h>p||h>m)break e;f=e[p],C=t[m]}}if(h>p){if(h<=m)for(u=(d=m+1)m)for(;h<=p;)be(e[h++],n);else!function(e,t,n,o,r,i,a,c,l,s,d,u,p){var m,h,f,C=0,g=c,N=c,V=i-c+1,x=a-c+1,y=new Int32Array(x+1),k=V===o,w=!1,_=0,B=0;if(r<4||(V|x)<32)for(C=g;C<=i;++C)if(m=e[C],Bc?w=!0:_=c,16384&h.flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B;break}!k&&c>a&&be(m,l)}else k||be(m,l);else{var S={};for(C=N;C<=a;++C)S[t[C].key]=C;for(C=g;C<=i;++C)if(m=e[C],Bg;)be(e[g++],l);y[c-N]=C+1,_>c?w=!0:_=c,16384&(h=t[c]).flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B}else k||be(m,l);else k||be(m,l)}if(k)ye(l,u,e),Ie(t,l,n,s,d,p);else if(w){var L=function(e){var t=0,n=0,o=0,r=0,i=0,a=0,c=0,l=e.length;l>Oe&&(Oe=l,se=new Int32Array(l),de=new Int32Array(l));for(;n>1]]0&&(de[n]=se[i-1]),se[i]=n)}i=r+1;var s=new Int32Array(i);a=se[i-1];for(;i-- >0;)s[i]=a,a=de[a],se[i]=0;return s}(y);for(c=L.length-1,C=x-1;C>=0;C--)0===y[C]?(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)=0;C--)0===y[C]&&(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)a?a:i,p=0;pa)for(p=u;p=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),v(n),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;v(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:y(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=o}catch(r){Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){"use strict";t.__esModule=!0,t.vecNormalize=t.vecLength=t.vecInverse=t.vecScale=t.vecDivide=t.vecMultiply=t.vecSubtract=t.vecAdd=t.vecCreate=void 0;var o=n(24);t.vecCreate=function(){for(var e=arguments.length,t=new Array(e),n=0;n3?c(a):null,b=String(a.key),V=String(a.char),v=a.location,x=a.keyCode||(a.keyCode=b)&&b.charCodeAt(0)||0,y=a.charCode||(a.charCode=V)&&V.charCodeAt(0)||0,k=a.bubbles,w=a.cancelable,_=a.repeat,B=a.locale,S=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in p)p.initKeyEvent(t,k,w,S,m,f,h,C,x,y);else if(0>>0),t=Element.prototype,n=t.querySelector,o=t.querySelectorAll;function r(t,n,o){t.setAttribute(e,null);var r=n.call(t,String(o).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,o,r){return n+"["+e+"]"+(r||" ")})));return t.removeAttribute(e),r}t.querySelector=function(e){return r(this,n,e)},t.querySelectorAll=function(e){return r(this,o,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,o=!1;function r(t,r,i){o=i,n=!1,e=undefined,t.dispatchEvent(r)}function i(e){this.value=e}function c(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,o?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return r(e,this.__ce__,!0),n},get:function(t){r(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return r(e,this.__ce__,!1),n},set:function(e,t){return r(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},c}();function n(){}function o(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=o.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}n.prototype=(Object.create||Object)(null),o.preventDefault=function(){};var r,i,a=e.CustomEvent,c=e.dispatchEvent,l=e.addEventListener,s=e.removeEventListener,d=0,u=function(){d++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",u,{once:!0}),c(new a("_")),c(new a("_")),s("_",u,{once:!0})}catch(h){}1!==d&&(i=new t,r=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,r,a){if(a&&"boolean"!=typeof a){var c,l,s,d=i.get(this),u=m(a);d||i.set(this,d=new n),t in d||(d[t]={handler:[],wrap:[]}),l=d[t],(c=p.call(l.handler,r))<0?(c=l.handler.push(r)-1,l.wrap[c]=s=new n):s=l.wrap[c],u in s||(s[u]=o(t,r,a),e.call(this,t,s[u],s[u].capture))}else e.call(this,t,r,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,o){if(o&&"boolean"!=typeof o){var r,a,c,l,s=i.get(this);if(s&&t in s&&(c=s[t],-1<(a=p.call(c.handler,n))&&(r=m(o))in(l=c.wrap[a]))){for(r in e.call(this,t,l[r],l[r].capture),delete l[r],l)return;c.handler.splice(a,1),c.wrap.splice(a,1),0===c.handler.length&&delete s[t]}}else e.call(this,t,n,o)}}(t.removeEventListener)}},e.EventTarget?r(EventTarget):(r(e.Text),r(e.Element||e.HTMLElement),r(e.HTMLDocument),r(e.Window||{prototype:e}),r(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict";!function(t,n){var o,r,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l=0,s={};function d(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function u(e){var t=s[e._html5shiv];return t||(t={},l++,e._html5shiv=l,s[l]=t),t}function p(e,t,o){return t||(t=n),r?t.createElement(e):(o||(o=u(t)),!(i=o.cache[e]?o.cache[e].cloneNode():c.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:o.frag.appendChild(i));var i}function m(e){e||(e=n);var t=u(e);return!h.shivCSS||o||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",o.insertBefore(n.lastChild,o.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(h,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",o="hidden"in e,r=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){o=!0,r=!0}}();var h={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:r,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:m,createElement:p,createDocumentFragment:function(e,t){if(e||(e=n),r)return e.createDocumentFragment();for(var o=(t=t||u(e)).frag.cloneNode(),i=0,a=d(),c=a.length;i1?r-1:0),a=1;a1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,i=new Array(r),a=0;a=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var i=(0,r.zipWith)(Math.min).apply(void 0,e),a=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),o!==undefined&&(i[1]=o[0],a[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,i,a,t)}))(e)}(i,C,a,l);if(g.length>0){var N=g[0],b=g[g.length-1];g.push([C[0]+h,b[1]]),g.push([C[0]+h,-h]),g.push([-h,-h]),g.push([-h,N[1]])}var V=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createVNode)(1,"div","Collapsible",[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},u,{children:s}))),2),d&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",d,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:a})],0)},a}(o.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=a||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,i.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(l))))};t.ColorBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(7),i=n(17),a=n(138);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},s.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},s.setSelected=function(e){this.setOpen(!1),this.props.onSelected(e)},s.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},s.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,s=t.over,d=t.noscroll,u=t.nochevron,p=t.width,m=(t.onClick,t.selected),h=t.disabled,f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),C=f.className,g=c(f,["className"]),N=s?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([d?"Dropdown__menu-noscroll":"Dropdown__menu",s&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,h&&"Button--disabled",C])},g,{onClick:function(){h&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",m,0),!!u||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,a.Icon,{name:N?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},s.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,i=this.inputRef.current;i&&!n&&o!==r&&(i.value=c(r))},s.setEditing=function(e){this.setState({editing:e})},s.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,e.disabled),l=e.multiline,s=e.cols,d=void 0===s?32:s,u=e.rows,p=void 0===u?4:u,m=a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"]),h=m.className,f=m.fluid,C=a(m,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Input",f&&"Input--fluid",c&&"Input--disabled",h])},C,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),l?(0,o.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:t,cols:d,rows:p,disabled:c},null,this.inputRef):(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t,disabled:c},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Knob=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.style,v=e.fillValue,x=e.color,y=e.ranges,k=void 0===y?{}:y,w=e.size,_=e.bipolar,B=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=v?v:a,u,d),h=(0,r.scale)(a,u,d),f=x||(0,r.keyOfMatchingRange)(null!=v?v:n,k)||"default",C=270*(h-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+f,_&&"Knob--bipolar",b,(0,c.computeBoxClassName)(S)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",B&&"Knob__popupValue--"+B]),l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),s],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},V)},S)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(50);function i(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var a=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(2),i=n(1),a=n(64),c=n(190),l=n(185);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1},u=function(e){function t(t){var n;n=e.call(this,t)||this;var o=window.innerHeight/2-256;return n.state={offsetX:0,offsetY:o,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},n.handleDragStart=function(e){n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd),d(e)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),o=e.screenX-n.originX,r=e.screenY-n.originY;return t.dragging?(n.offsetX+=o,n.offsetY+=r,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n})),d(e)},n.handleDragEnd=function(e){n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),d(e)},n.handleZoom=function(e,o){n.setState((function(e){var n=Math.min(Math.max(o,1),8),r=n/e.zoom;if(1!==r){e.zoom=n;var i=document.getElementsByClassName("NanoMap__container");if(i.length){var a=(0,l.getBoundingBox)(i[0]),c=a.size[0]/2-e.offsetX,s=a.size[1]/2-e.offsetY;e.offsetX+=c-c*r,e.offsetY+=s-s*r}return t.onZoom&&t.onZoom(e.zoom),e}}))},n}return s(t,e),t.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.dragging,a=t.offsetX,c=t.offsetY,l=t.zoom,s=void 0===l?1:l,d=this.props.children,u=510*s+"px",p={width:u,height:u,"margin-top":c+"px","margin-left":a+"px",overflow:"hidden",position:"relative","background-image":"url("+e.map+"_nanomap_z1.png)","background-size":"cover","background-repeat":"no-repeat",border:"1px solid rgba(0, 0, 0, .3)","text-align":"center",cursor:n?"move":"auto"};return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,o.createComponentVNode)(2,r.Box,{style:p,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,o.createComponentVNode)(2,r.Box,{children:d})}),(0,o.createComponentVNode)(2,h,{zoom:s,onZoom:this.handleZoom})]})},t}(o.Component);t.NanoMap=u;var p,m=function(e){function t(t){var n;n=e.call(this,t)||this;var o=(0,i.useBackend)(n.props.context).act;return n.state={color:n.props.color},n.handleClick=function(e){p!==undefined&&p.setState({color:"blue"}),o("switch_camera",{name:n.props.name}),p=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.setState({color:"green"})},n}return s(t,e),t.prototype.render=function(){var e=2*this.props.x*this.props.zoom-this.props.zoom-3,t=2*this.props.y*this.props.zoom-this.props.zoom-3;return(0,o.createComponentVNode)(2,r.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:t+"px",left:e+"px",children:(0,o.createComponentVNode)(2,r.Tooltip,{content:this.props.tooltip})},this.props.key)},t}(o.Component);u.NanoButton=m,u.Marker=function(e){var t=e.x,n=e.y,i=e.zoom,a=void 0===i?1:i,c=e.icon,l=e.tooltip,s=e.color,d=e.onClick,u=e.size,p=void 0===u?6:u,m=2*t*a-a-3,h=2*n*a-a-3;return(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:h+"px",left:m+"px",onClick:d,children:[(0,o.createComponentVNode)(2,r.Icon,{name:c,color:s,fontSize:p+"px"}),(0,o.createComponentVNode)(2,r.Tooltip,{content:l})]}),2)};var h=function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(e){return e+"x"},value:e.zoom,onDrag:function(t,n){return e.onZoom(t,n)}})})})})};u.Zoomer=h},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(7),i=n(17),a=n(186);t.Modal=function(e){var t,n=e.className,c=e.children,l=e.onEnter,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","children","onEnter"]);return l&&(t=function(e){13===e.keyCode&&l(e)}),(0,o.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",n,(0,i.computeBoxClassName)(s)]),c,0,Object.assign({},(0,i.computeBoxProps)(s))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),l=e.danger,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},s)))};t.NoticeBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBarCountdown=t.ProgressBar=void 0;var o=n(0),r=n(15),i=n(7),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.value,l=e.minValue,s=void 0===l?0:l,d=e.maxValue,u=void 0===d?1:d,p=e.color,m=e.ranges,h=void 0===m?{}:m,f=e.children,C=e.fractionDigits,g=void 0===C?0:C,N=c(e,["className","value","minValue","maxValue","color","ranges","children","fractionDigits"]),b=(0,r.scale)(n,s,u),V=f!==undefined,v=p||(0,r.keyOfMatchingRange)(n,h)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+v,t,(0,a.computeBoxClassName)(N)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(b)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",V?f:(0,r.toFixed)(100*b,g)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(N))))};t.ProgressBar=l,l.defaultHooks=i.pureComponentHooks;var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:Math.max(100*t.current,0)},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=Math.max(this.state.value+this.props.rate,0);e<=0&&clearInterval(this.timer),this.setState((function(t){return{value:e}}))},i.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),this.props.rate)},i.componentWillUnmount=function(){clearInterval(this.timer)},i.render=function(){var e=this.props,t=e.start,n=(e.current,e.end),r=c(e,["start","current","end"]),i=(this.state.value/100-t)/(n-t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({value:i},r)))},r}(o.Component);t.ProgressBarCountdown=s,s.defaultProps={rate:1e3},l.Countdown=s},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,l=e.buttons,s=e.content,d=e.stretchContents,u=e.noTopPadding,p=e.children,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","stretchContents","noTopPadding","children"]),h=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),f=!(0,r.isFalsy)(s)||!(0,r.isFalsy)(p);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,e.flexGrow&&"Section--flex",t])},m,{children:[h&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),f&&(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["Section__content",!!d&&"Section__content--stretchContents",!!u&&"Section__content--noTopPadding"]),children:[s,p]})]})))};t.Section=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(0),r=n(7),i=n(50);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.vertical,c=e.fill,l=a(e,["className","vertical","fill"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex,Object.assign({className:(0,r.classes)(["Stack",c&&"Stack--fill",n?"Stack--vertical":"Stack--horizontal",t]),direction:n?"column":"row"},l)))};t.Stack=c;c.Item=function(e){var t=e.className,n=a(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item",t])},n)))};c.Divider=function(e){var t=e.className,n=e.hidden,c=a(e,["className","hidden"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item","Stack__divider",n&&"Stack__divider--hidden",t])},c)))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(7),i=n(17),a=n(137);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.vertical,a=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},l)))}},function(e,t,n){"use strict";t.__esModule=!0,t.TimeDisplay=void 0;t.TimeDisplay=function(e){var t=e.totalSeconds;return function(e){return(!e||e<0)&&(e=0),[Math.floor(e/60).toString(10),(Math.floor(e)%60).toString(10)].map((function(e){return e.length<2?"0"+e:e})).join(":")}(void 0===t?0:t)}},function(e,t,n){var o={"./AICard.js":460,"./AIFixer.js":461,"./APC.js":462,"./ATM.js":463,"./AccountsUplinkTerminal.js":464,"./AgentCard.js":465,"./AiAirlock.js":466,"./AirAlarm.js":467,"./AirlockAccessController.js":468,"./AirlockElectronics.js":469,"./AppearanceChanger.js":470,"./AtmosAlertConsole.js":471,"./AtmosControl.js":472,"./AtmosFilter.js":473,"./AtmosMixer.js":474,"./AtmosPump.js":475,"./Autolathe.js":476,"./Biogenerator.js":477,"./BlueSpaceArtilleryControl.js":478,"./BluespaceRiftScanner.js":479,"./BluespaceRiftServer.js":480,"./BluespaceTap.js":481,"./BodyScanner.js":482,"./BorgPanel.js":483,"./BotClean.js":484,"./BotSecurity.js":485,"./BrigCells.js":486,"./BrigTimer.js":487,"./CameraConsole.js":488,"./Canister.js":489,"./CardComputer.js":490,"./CargoConsole.js":491,"./Changelog.js":492,"./ChemDispenser.js":521,"./ChemHeater.js":525,"./ChemMaster.js":526,"./CloningConsole.js":527,"./CommunicationsComputer.js":528,"./Contractor.js":529,"./ConveyorSwitch.js":530,"./CrewMonitor.js":531,"./Cryo.js":532,"./CryopodConsole.js":534,"./DNAModifier.js":535,"./DestinationTagger.js":536,"./DisposalBin.js":537,"./DnaVault.js":538,"./EFTPOS.js":539,"./ERTManager.js":540,"./Electropack.js":541,"./EvolutionMenu.js":542,"./ExosuitFabricator.js":543,"./ExternalAirlockController.js":544,"./FaxMachine.js":545,"./FloorPainter.js":546,"./GPS.js":547,"./GasAnalyzer.js":548,"./GasFreezer.js":550,"./GenericCrewManifest.js":551,"./GhostHudPanel.js":552,"./HandheldChemDispenser.js":553,"./Instrument.js":554,"./ItemPixelShift.js":555,"./KeycardAuth.js":556,"./LaborClaimConsole.js":557,"./LawManager.js":558,"./MechBayConsole.js":559,"./MechaControlConsole.js":560,"./MedicalRecords.js":561,"./MiningVendor.js":562,"./Multitool.js":563,"./Newscaster.js":564,"./NinjaBloodScan.js":565,"./NinjaMindScan.js":566,"./NuclearBomb.js":567,"./OperatingComputer.js":568,"./Orbit.js":569,"./OreRedemption.js":570,"./PAI.js":571,"./PDA.js":588,"./PDAPainter.js":604,"./Pacman.js":605,"./PersonalCrafting.js":606,"./Photocopier.js":607,"./PodTracking.js":608,"./PoolController.js":609,"./PortablePump.js":610,"./PortableScrubber.js":611,"./PortableTurret.js":612,"./PowerMonitor.js":198,"./RCD.js":613,"./RPD.js":614,"./Radio.js":615,"./RequestConsole.js":616,"./RequestManager.js":617,"./RndConsole.js":67,"./RobotSelfDiagnosis.js":632,"./RoboticsControlConsole.js":633,"./Safe.js":634,"./SatelliteControl.js":635,"./SecureStorage.js":636,"./SecurityRecords.js":637,"./SeedExtractor.js":638,"./ShuttleConsole.js":639,"./ShuttleManipulator.js":640,"./Sleeper.js":641,"./SlotMachine.js":642,"./Smartfridge.js":643,"./Smes.js":644,"./SolarControl.js":645,"./SpawnersMenu.js":646,"./SpiderOS.js":647,"./StationAlertConsole.js":648,"./SuitStorage.js":649,"./SupermatterMonitor.js":650,"./SyndicateComputerSimple.js":651,"./SyndieCargoConsole.js":652,"./TTSSeedsExplorer.js":653,"./TachyonArray.js":654,"./Tank.js":655,"./TankDispenser.js":656,"./TcommsCore.js":657,"./TcommsRelay.js":658,"./Teleporter.js":659,"./ThiefKit.js":660,"./TransferValve.js":661,"./Uplink.js":662,"./VampireSpecMenu.js":663,"./VampireTrophiesStatus.js":664,"./Vending.js":665,"./VolumeMixer.js":666,"./VotePanel.js":667,"./Wires.js":668,"./Workshop.js":669};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=459},function(e,t,n){"use strict";t.__esModule=!0,t.AICard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AICard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(0===l.has_ai)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var s=null;return s=l.integrity>=75?"green":l.integrity>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,l.name,0)}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:s,value:l.integrity/100})})})}),(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===l.flushing?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wipe",children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||0===l.integrity,confirmColor:"red",content:"Wipe AI",onClick:function(){return c("wipe")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AIFixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AIFixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(null===l.occupant)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No artificial intelligence detected.",16)})})})});var s=null;s=2!==l.stat&&null!==l.stat;var d=null;d=l.integrity>=75?"green":l.integrity>=25?"yellow":"red";var u=null;return u=l.integrity>=100,(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:(0,o.createVNode)(1,"h3",null,l.occupant,0)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:d,value:l.integrity/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:s?"green":"red",children:s?"Functional":"Non-Functional"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Start Repairs",children:(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:u||l.active,content:u?"Already Repaired":"Repair",onClick:function(){return c("fix")}})})]}),(0,o.createComponentVNode)(2,i.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.APC=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.APC=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d)})})};var l={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.locked&&!d.siliconUser,p=(d.normallyLocked,l[d.externalPower]||l[0]),m=l[d.chargingStatus]||l[0],h=d.powerChannels||[],f=s[d.malfStatus]||s[0],C=d.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main Breaker",color:p.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){return a("breaker")}}),children:["[ ",p.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return a("channel",t.auto)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return a("channel",t.on)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return a("channel",t.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,i.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){return a(f.action)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",selected:d.coverLocked,disabled:u,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",selected:d.nightshiftLights,onClick:function(){return a("toggle_nightshift")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Light Fallback",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.emergencyLights?"Engaged":"Disengaged",selected:d.emergencyLights,disabled:u,onClick:function(){return a("emergency_lighting")}})})]})})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ATM=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ATM=function(e,t){var n,m=(0,r.useBackend)(t),h=(m.act,m.data),f=h.view_screen,C=h.authenticated_account,g=h.ticks_left_locked_down,N=h.linked_db;if(g>0)n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(N)if(C)switch(f){case 1:n=(0,o.createComponentVNode)(2,l);break;case 2:n=(0,o.createComponentVNode)(2,s);break;case 3:n=(0,o.createComponentVNode)(2,p);break;default:n=(0,o.createComponentVNode)(2,d)}else n=(0,o.createComponentVNode)(2,u);else n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Section,{children:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.machine_id,s=c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,o.createComponentVNode)(2,i.Box,{children:"For all your monetary need!"}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:"info-circle"})," This terminal is ",(0,o.createVNode)(1,"i",null,l,0),", report this code when contacting Nanotrasen IT Support."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card",children:(0,o.createComponentVNode)(2,i.Button,{content:s,icon:"eject",onClick:function(){return a("insert_card")}})})})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.security_level;return(0,o.createComponentVNode)(2,i.Section,{title:"Select a new security level for this account",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Zero",icon:"unlock",selected:0===c,onClick:function(){return a("change_security_level",{new_security_level:0})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card and ask for a pin, but not verify the pin is correct."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"One",icon:"unlock",selected:1===c,onClick:function(){return a("change_security_level",{new_security_level:1})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Two",selected:2===c,icon:"unlock",onClick:function(){return a("change_security_level",{new_security_level:2})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"In addition to account number and pin, a card is required to access this account and process transactions."})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"targetAccNumber",0),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"fundsAmount",0),p=u[0],h=u[1],f=(0,r.useLocalState)(t,"purpose",0),C=f[0],g=f[1],N=c.money;return(0,o.createComponentVNode)(2,i.Section,{title:"Transfer Fund",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target account number",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Funds to transfer",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transaction Purpose",children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(e,t){return g(t)}})})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){return a("transfer",{target_acc_number:s,funds_amount:p,purpose:C})}}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"fundsAmount",0),s=l[0],d=l[1],u=c.owner_name,p=c.money;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Welcome, "+u,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){return a("logout")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",p]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Withdrawal Amount",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Withdraw Fund",icon:"sign-out-alt",onClick:function(){return a("withdrawal",{funds_amount:s})}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change account security level",icon:"lock",onClick:function(){return a("view_screen",{view_screen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){return a("view_screen",{view_screen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View transaction log",icon:"list",onClick:function(){return a("view_screen",{view_screen:3})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print balance statement",icon:"print",onClick:function(){return a("balance_statement")}})})]})],4)},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"accountID",null),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"accountPin",null),p=u[0],m=u[1];c.machine_id,c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Insert card or enter ID and pin to login",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account ID",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pin",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){return a("attempt_auth",{account_num:s,account_pin:p})}})})]})})},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.transaction_log);return(0,o.createComponentVNode)(2,i.Section,{title:"Transactions",children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Terminal"})]}),a.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{p:"1rem",children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.source_terminal})]},e)}))]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){return a("view_screen",{view_screen:0})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AccountsUplinkTerminal=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(140),d=n(141);t.AccountsUplinkTerminal=function(e,t){var n,r=(0,i.useBackend)(t),a=(r.act,r.data),c=a.loginState,p=a.currentPage;return c.logged_in?(1===p?n=(0,o.createComponentVNode)(2,u):2===p?n=(0,o.createComponentVNode)(2,h):3===p&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.LoginInfo),n]})})):(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var u=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.accounts,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","owner_name")),h=u[0],f=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),C=f[0];f[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Flex.Item,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",children:(0,o.createComponentVNode)(2,a.Table,{className:"AccountsUplinkTerminal__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,p,{id:"owner_name",children:"Account Holder"}),(0,o.createComponentVNode)(2,p,{id:"account_number",children:"Account Number"}),(0,o.createComponentVNode)(2,p,{id:"suspended",children:"Account Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.owner_name+"|"+e.account_number+"|"+e.suspended}))).sort((function(e,t){var n=C?1:-1;return e[h].localeCompare(t[h])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{onClick:function(){return c("view_account_detail",{index:e.account_index})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.owner_name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["#",e.account_number]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.suspended})]},e.id)}))]})})})]})},p=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.is_printing,s=(0,i.useLocalState)(t,"searchText",""),d=(s[0],s[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Account",icon:"plus",onClick:function(){return r("create_new_account")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account List",disabled:l,ml:"0.25rem",onClick:function(){return r("print_records")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(e,t){return d(t)}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.is_printing,s=c.account_number,d=c.owner_name,u=c.money,p=c.suspended,m=c.transactions;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"#"+s+" / "+d,mt:1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account Details",disabled:l,onClick:function(){return r("print_account_details")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Balance",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Status",color:p?"red":"green",children:[p?"Suspended":"Active",(0,o.createComponentVNode)(2,a.Button,{ml:1,content:p?"Unsuspend":"Suspend",icon:p?"unlock":"lock",onClick:function(){return r("toggle_suspension")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Transactions",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Terminal"})]}),m.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source_terminal})]},e)}))]})})],4)},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,(0,i.useLocalState)(t,"accName","")),l=c[0],s=c[1],d=(0,i.useLocalState)(t,"accDeposit",""),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Create Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name Here",onChange:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"0",onChange:function(e,t){return p(t)}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){return r("finalise_create_account",{holder_name:l,starting_funds:u})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AgentCardSLSlots=t.AgentCardAppearances=t.AgentCardInfo=t.AgentCard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AgentCard=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return(0,o.createComponentVNode)(2,c)}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.registered_name,s=c.sex,d=c.age,u=c.assignment,p=c.associated_account_number,m=c.blood_type,h=c.dna_hash,f=c.fingerprint_hash,C=c.photo,g=c.ai_tracking;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Card Info",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"[UNSET]",onClick:function(){return a("change_name")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sex",children:(0,o.createComponentVNode)(2,i.Button,{iconRight:!1,content:s||"[UNSET]",onClick:function(){return a("change_sex")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Age",children:(0,o.createComponentVNode)(2,i.Button,{content:d||"[UNSET]",onClick:function(){return a("change_age")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,i.Button,{content:u||"[UNSET]",onClick:function(){return a("change_occupation")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fingerprints",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"[UNSET]",onClick:function(){return a("change_fingerprints")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"[UNSET]",onClick:function(){return a("change_blood_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"DNA Hash",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"[UNSET]",onClick:function(){return a("change_dna_hash")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Money Account",children:(0,o.createComponentVNode)(2,i.Button,{content:p||"[UNSET]",onClick:function(){return a("change_money_account")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Photo",children:(0,o.createComponentVNode)(2,i.Button,{content:C?"Update":"[UNSET]",onClick:function(){return a("change_photo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Card Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card Info",children:(0,o.createComponentVNode)(2,i.Button,{content:"Delete Card Info",onClick:function(){return a("delete_info")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,i.Button,{content:"Reset Access",onClick:function(){return a("clear_access")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"AI Tracking",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Untrackable":"Trackable",onClick:function(){return a("change_ai_tracking")}})})]})})],4)};t.AgentCardInfo=c;var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.appearances;return(0,o.createComponentVNode)(2,i.Section,{title:"Card Appearance",children:c.map((function(e){return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+e.image,style:{"vertical-align":"middle",width:"64px",margin:"0px","margin-left":"0px"},onclick:function(){return a("change_appearance_new",{new_appearance:e.name})}},e.name)}))})};t.AgentCardAppearances=l;var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.saved_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.registered_name?e.registered_name+", "+e.assignment:"Slot "+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Clear",onClick:function(){return a("clear_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Save",onClick:function(){return a("save_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",disabled:!e.registered_name,onClick:function(){return a("load_slot",{slot:e.id})}})],4)},e.id)}))})})};t.AgentCardSLSlots=s},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}};t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=c[s.power.main]||c[0],u=c[s.power.backup]||c[0],p=c[s.shock]||c[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main",color:d.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[s.power.main?"Online":"Offline"," ",s.wires.main_power?s.power.main_timeleft>0&&"["+s.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[s.power.backup?"Online":"Offline"," ",s.wires.backup_power?s.power.backup_timeleft>0&&"["+s.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:!(s.wires.shock&&2!==s.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock||0===s.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===s.shock?"Safe":"Electrified"," ",(s.wires.shock?s.shock_timeleft>0&&"["+s.shock_timeleft+"s]":"[Wires have been cut!]")||-1===s.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.id_scanner?"power-off":"times",content:s.id_scanner?"Enabled":"Disabled",selected:s.id_scanner,disabled:!s.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!s.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.emergency?"power-off":"times",content:s.emergency?"Enabled":"Disabled",selected:s.emergency,onClick:function(){return l("emergency-toggle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.locked?"lock":"unlock",content:s.locked?"Lowered":"Raised",selected:s.locked,disabled:!s.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!s.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.lights?"power-off":"times",content:s.lights?"Enabled":"Disabled",selected:s.lights,disabled:!s.wires.lights,onClick:function(){return l("light-toggle")}}),children:!s.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.safe?"power-off":"times",content:s.safe?"Enabled":"Disabled",selected:s.safe,disabled:!s.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!s.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.speed?"power-off":"times",content:s.speed?"Enabled":"Disabled",selected:s.speed,disabled:!s.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!s.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.opened?"sign-out-alt":"sign-in-alt",content:s.opened?"Open":"Closed",selected:s.opened,disabled:s.locked||s.welded,onClick:function(){return l("open-close")}}),children:!(!s.locked&&!s.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),s.locked?"bolted":"",s.locked&&s.welded?" and ":"",s.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),!i&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u)],4)]})})};var l=function(e){return 0===e?"green":1===e?"orange":"red"},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,s=a.data,d=s.air,u=s.mode,p=s.atmos_alarm,m=s.locked,h=s.alarmActivated,f=s.rcon,C=s.target_temp;return n=0===d.danger.overall?0===p?"Optimal":"Caution: Atmos alert in area":1===d.danger.overall?"Caution":"DANGER: Internals Required",(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:d?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.pressure),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.pressure})," kPa",!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:3===u?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:3===u,icon:"exclamation-triangle",onClick:function(){return c("mode",{mode:3===u?1:3})}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.oxygen/100,fractionDigits:"1",color:l(d.danger.oxygen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.nitrogen/100,fractionDigits:"1",color:l(d.danger.nitrogen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.co2/100,fractionDigits:"1",color:l(d.danger.co2)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxins",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.plasma/100,fractionDigits:"1",color:l(d.danger.plasma)})}),d.contents.other>.1&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.other/100,fractionDigits:"1",color:l(d.danger.other)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.temperature),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature})," K / ",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature_c})," C\xa0",(0,o.createComponentVNode)(2,i.Button,{icon:"thermometer-full",content:C+" C",onClick:function(){return c("temperature")}}),(0,o.createComponentVNode)(2,i.Button,{content:d.thermostat_state?"On":"Off",selected:d.thermostat_state,icon:"power-off",onClick:function(){return c("thermostat_state")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local Status",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.overall),children:[n,!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:h?"Reset Alarm":"Activate Alarm",selected:h,onClick:function(){return c(h?"atmos_reset":"atmos_alarm")}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Control Settings",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Off",selected:1===f,onClick:function(){return c("set_rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Auto",selected:2===f,onClick:function(){return c("set_rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,i.Button,{content:"On",selected:3===f,onClick:function(){return c("set_rcon",{rcon:3})}})]})]}):(0,o.createComponentVNode)(2,i.Box,{children:"Unable to acquire air sample!"})})},d=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),a=n[0],c=n[1];return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===a,onClick:function(){return c(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===a,onClick:function(){return c(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===a,onClick:function(){return c(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog"})," Mode"]},"Mode"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===a,onClick:function(){return c(3)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},u=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),i=n[0];n[1];switch(i){case 0:return(0,o.createComponentVNode)(2,p);case 1:return(0,o.createComponentVNode)(2,m);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.vents.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"release"===e.direction?"Blowing":"Siphoning",icon:"release"===e.direction?"sign-out-alt":"sign-in-alt",onClick:function(){return a("command",{cmd:"direction",val:"release"===e.direction?0:1,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Checks",children:[(0,o.createComponentVNode)(2,i.Button,{content:"External",selected:1===e.checks,onClick:function(){return a("command",{cmd:"checks",val:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Internal",selected:2===e.checks,onClick:function(){return a("command",{cmd:"checks",val:2,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Pressure Target",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:e.external})," kPa\xa0",(0,o.createComponentVNode)(2,i.Button,{content:"Set",icon:"cog",onClick:function(){return a("command",{cmd:"set_external_pressure",id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset",icon:"redo-alt",onClick:function(){return a("command",{cmd:"set_external_pressure",val:101.325,id_tag:e.id_tag})}})]})]})},e.name)}))},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.scrubbers.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:0===e.scrubbing?"Siphoning":"Scrubbing",icon:0===e.scrubbing?"sign-in-alt":"filter",onClick:function(){return a("command",{cmd:"scrubbing",val:0===e.scrubbing?1:0,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,i.Button,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return a("command",{cmd:"widenet",val:0===e.widenet?1:0,id_tag:e.id_tag})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filtering",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return a("command",{cmd:"co2_scrub",val:0===e.filter_co2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return a("command",{cmd:"tox_scrub",val:0===e.filter_toxins?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return a("command",{cmd:"n2o_scrub",val:0===e.filter_n2o?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return a("command",{cmd:"o2_scrub",val:0===e.filter_o2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return a("command",{cmd:"n2_scrub",val:0===e.filter_n2?1:0,id_tag:e.id_tag})}})]})]})},e.name)}))},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.modes,s=c.presets,d=c.emagged,u=c.mode,p=c.preset;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"System Mode",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(!e.emagonly||e.emagonly&&!!d)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===u,onClick:function(){return a("mode",{mode:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"System Presets",children:[(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,o.createComponentVNode)(2,i.Table,{mt:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===p,onClick:function(){return a("preset",{preset:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})]})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.thresholds;return(0,o.createComponentVNode)(2,i.Section,{title:"Alarm Thresholds",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),e.settings.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:-1===e.selected?"Off":e.selected,onClick:function(){return a("command",{cmd:"set_threshold",env:e.env,"var":e.val})}})},e.val)}))]},e.name)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockAccessController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AirlockAccessController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.exterior_status,p=d.interior_status,m=d.processing;return n="open"===d.exterior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:m,onClick:function(){return s("force_ext")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext_door")}}),c="open"===d.interior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Interior Door",icon:"exclamation-triangle",disabled:m,color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int_door")}}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Door Status",children:"closed"===u.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Door Status",children:"closed"===p.state?"Locked":"Open"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:c})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(99);t.AirlockElectronics=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,s)]})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.unrestricted_dir;return(0,o.createComponentVNode)(2,i.Section,{title:"Access Control",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:"north"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"North"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:"south"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"South"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:"east"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"East"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:"west"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"West"})}})})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.selected_accesses,d=l.one_access,u=l.regions;return(0,o.createComponentVNode)(2,c.AccessList,{usedByRcd:1,rcdButtons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:d,content:"One",onClick:function(){return a("set_one_access",{access:"one"})}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,content:"All",onClick:function(){return a("set_one_access",{access:"all"})}})],4),accesses:u,selectedList:s,accessMod:function(e){return a("set",{access:e})},grantAll:function(){return a("grant_all")},denyAll:function(){return a("clear_all")},grantDep:function(e){return a("grant_region",{region:e})},denyDep:function(e){return a("deny_region",{region:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AppearanceChanger=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AppearanceChanger=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.change_race,u=s.species,p=s.specimen,m=s.change_gender,h=s.gender,f=s.has_gender,C=s.change_eye_color,g=s.change_skin_tone,N=s.change_skin_color,b=s.change_head_accessory_color,V=s.change_hair_color,v=s.change_secondary_hair_color,x=s.change_facial_hair_color,y=s.change_secondary_facial_hair_color,k=s.change_head_marking_color,w=s.change_body_marking_color,_=s.change_tail_marking_color,B=s.change_head_accessory,S=s.head_accessory_styles,L=s.head_accessory_style,A=s.change_hair,E=s.hair_styles,I=s.hair_style,D=s.change_hair_gradient,T=s.change_facial_hair,F=s.facial_hair_styles,M=s.facial_hair_style,P=s.change_head_markings,O=s.head_marking_styles,R=s.head_marking_style,j=s.change_body_markings,U=s.body_marking_styles,z=s.body_marking_style,W=s.change_tail_markings,H=s.tail_marking_styles,K=s.tail_marking_style,Y=s.change_body_accessory,G=s.body_accessory_styles,q=s.body_accessory_style,X=s.change_alt_head,J=s.alt_head_styles,$=s.alt_head_style,Z=!1;return(C||g||N||b||V||v||x||y||k||w||_)&&(Z=!0),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:e.specimen===p,onClick:function(){return l("race",{race:e.specimen})}},e.specimen)}))}),!!m&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Male",selected:"male"===h,onClick:function(){return l("gender",{gender:"male"})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Female",selected:"female"===h,onClick:function(){return l("gender",{gender:"female"})}}),!f&&(0,o.createComponentVNode)(2,i.Button,{content:"Genderless",selected:"plural"===h,onClick:function(){return l("gender",{gender:"plural"})}})]}),!!Z&&(0,o.createComponentVNode)(2,c),!!B&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head accessory",children:S.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headaccessorystyle,selected:e.headaccessorystyle===L,onClick:function(){return l("head_accessory",{head_accessory:e.headaccessorystyle})}},e.headaccessorystyle)}))}),!!A&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair",children:E.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.hairstyle,selected:e.hairstyle===I,onClick:function(){return l("hair",{hair:e.hairstyle})}},e.hairstyle)}))}),!!D&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Gradient",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Change Style",onClick:function(){return l("hair_gradient")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Offset",onClick:function(){return l("hair_gradient_offset")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Color",onClick:function(){return l("hair_gradient_colour")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Alpha",onClick:function(){return l("hair_gradient_alpha")}})]}),!!T&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial hair",children:F.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.facialhairstyle,selected:e.facialhairstyle===M,onClick:function(){return l("facial_hair",{facial_hair:e.facialhairstyle})}},e.facialhairstyle)}))}),!!P&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head markings",children:O.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headmarkingstyle,selected:e.headmarkingstyle===R,onClick:function(){return l("head_marking",{head_marking:e.headmarkingstyle})}},e.headmarkingstyle)}))}),!!j&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body markings",children:U.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodymarkingstyle,selected:e.bodymarkingstyle===z,onClick:function(){return l("body_marking",{body_marking:e.bodymarkingstyle})}},e.bodymarkingstyle)}))}),!!W&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail markings",children:H.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.tailmarkingstyle,selected:e.tailmarkingstyle===K,onClick:function(){return l("tail_marking",{tail_marking:e.tailmarkingstyle})}},e.tailmarkingstyle)}))}),!!Y&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body accessory",children:G.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodyaccessorystyle,selected:e.bodyaccessorystyle===q,onClick:function(){return l("body_accessory",{body_accessory:e.bodyaccessorystyle})}},e.bodyaccessorystyle)}))}),!!X&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alternate head",children:J.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.altheadstyle,selected:e.altheadstyle===$,onClick:function(){return l("alt_head",{alt_head:e.altheadstyle})}},e.altheadstyle)}))})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Colors",children:[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}].map((function(e){return!!c[e.key]&&(0,o.createComponentVNode)(2,i.Button,{content:e.text,onClick:function(){return a(e.action)}})}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.priority||[],d=l.minor||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===s.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})),0===d.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)}))],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(80),c=n(3);t.AtmosControl=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data,(0,r.useLocalState)(t,"tabIndex",0)),d=a[0],u=a[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.alarms;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Access"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,a.TableCell,{children:e.name}),(0,o.createComponentVNode)(2,a.TableCell,{children:(t=e.danger,0===t?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Good"}):1===t?(0,o.createComponentVNode)(2,i.Box,{color:"orange",bold:!0,children:"Warning"}):2===t?(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"DANGER"}):void 0)}),(0,o.createComponentVNode)(2,a.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Access",onClick:function(){return c("open_alarm",{aref:e.ref})}})})]},e.name);var t}))]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=c.alarms,p=c.stationLevel;return(0,o.createComponentVNode)(2,i.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,i.NanoMap,{onZoom:function(e){return d(e)},children:u.filter((function(e){return e.z===p})).map((function(e){return(0,o.createComponentVNode)(2,i.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:"circle",tooltip:e.name,color:(t=e.danger,0===t?"green":1===t?"orange":2===t?"red":void 0),onClick:function(){return a("open_alarm",{aref:e.ref})}},e.ref);var t}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.max_pressure,p=l.filter_type,m=l.filter_type_list;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_pressure")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filter",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gas_type===p,content:e.label,onClick:function(){return c("set_filter",{filter:e.gas_type})}},e.label)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.on,u=s.pressure,p=s.max_pressure,m=s.node1_concentration,h=s.node2_concentration;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===u,width:2.2,onClick:function(){return l("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:p,value:u,onDrag:function(e,t){return l("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:u===p,width:2.2,onClick:function(){return l("max_pressure")}})]}),(0,o.createComponentVNode)(2,c,{node_name:"Node 1",node_ref:m}),(0,o.createComponentVNode)(2,c,{node_name:"Node 2",node_ref:h})]})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.node_name),l=e.node_ref;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:c,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:0===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l-10)/100})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(e,t){return a("set_node",{node_name:c,concentration:t/100})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:100===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l+10)/100})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.rate,u=l.max_rate,p=l.gas_unit,m=l.step;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_rate")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:p,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_rate",{rate:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_rate")}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Autolathe=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=n(18),d=function(e,t,n,o){return null===e.requirements||!(e.requirements.metal*o>t)&&!(e.requirements.glass*o>n)};t.Autolathe=function(e,t){var n=(0,a.useBackend)(t),u=n.act,p=n.data,m=p.total_amount,h=(p.max_amount,p.metal_amount),f=p.glass_amount,C=p.busyname,g=(p.busyamt,p.showhacked,p.buildQueue),N=p.buildQueueLen,b=p.recipes,V=p.categories,v=(0,a.useSharedState)(t,"category",0),x=v[0],y=v[1];0===x&&(x="Tools");var k=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),_=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=(0,a.useSharedState)(t,"search_text",""),S=B[0],L=B[1],A=(0,s.createSearch)(S,(function(e){return e.name})),E="";N>0&&(E=g.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:g[t][0],onClick:function(){return u("remove_from_queue",{remove_from_queue:g.indexOf(e)+1})}},e)},t)})));var I=(0,r.flow)([(0,i.filter)((function(e){return(e.category.indexOf(x)>-1||S)&&(p.showhacked||!e.hacked)})),S&&(0,i.filter)(A),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(b),D="Build";S?D="Results for: '"+S+"':":x&&(D="Build ("+x+")");return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Section,{title:D,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:V,selected:x,onSelected:function(e){return y(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return L(t)},mb:1}),I.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&1===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,1),onClick:function(){return u("make",{make:e.uid,multiplier:1})},children:(0,s.toTitleCase)(e.name)}),e.max_multiplier>=10&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&10===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,10),onClick:function(){return u("make",{make:e.uid,multiplier:10})},children:"10x"}),e.max_multiplier>=25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&25===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,25),onClick:function(){return u("make",{make:e.uid,multiplier:25})},children:"25x"}),e.max_multiplier>25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&p.busyamt===e.max_multiplier,disabled:!d(e,p.metal_amount,p.glass_amount,e.max_multiplier),onClick:function(){return u("make",{make:e.uid,multiplier:e.max_multiplier})},children:[e.max_multiplier,"x"]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,s.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,c.Box,{children:"No resources required."})})]},e.ref)}))]}),2,{style:{float:"left",width:"68%"}}),(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:k}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Glass",children:w}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total",children:_}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Storage",children:[p.fill_percent,"% Full"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Building",children:(0,o.createComponentVNode)(2,c.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Build Queue",children:[E,(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Clear All",disabled:!p.buildQueueLen,onClick:function(){return u("clear_queue")}}),2,{align:"right"})]})],4,{style:{float:"right",width:"30%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Biogenerator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Biogenerator=function(){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d)]})})};var c=function(e,t){if((0,r.useBackend)(t).data.processing)return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{mb:"30px",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,o.createVNode)(1,"br"),"The biogenerator is processing..."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.biomass,l=a.container,s=a.container_curr_reagents,d=a.container_max_reagents;return(0,o.createComponentVNode)(2,i.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"5px",children:c}),(0,o.createComponentVNode)(2,i.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex,{height:"21px",mt:"8px",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"10px",color:"silver",children:"Container:"}),l?(0,o.createComponentVNode)(2,i.ProgressBar,{value:s,maxValue:d,children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:s+" / "+d+" units"})}):(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"None"})})]})]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_plants,s=c.container;return(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-right",content:"Activate",onClick:function(){return a("activate")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!s,tooltip:s?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){return a("detach_container")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-left",content:"Eject Plants",onClick:function(){return a("eject_plants")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.biomass,s=c.product_list,d=c.container,u=(0,r.useSharedState)(t,"vendAmount",1),p=u[0],m=u[1],h=Object.entries(s).map((function(e,t){var n=Object.entries(e[1]).map((function(e){return e[1]}));return(0,o.createComponentVNode)(2,i.Collapsible,{title:e[0],open:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{py:"2px",className:"candystripe",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",ml:"2px",children:e.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"20%",children:[e.cost*p,(0,o.createComponentVNode)(2,i.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"40%",children:e.needs_container&&!d?(0,o.createComponentVNode)(2,i.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438",tooltipPosition:"top-left"}):(0,o.createComponentVNode)(2,i.Button,{content:"Vend",disabled:l0?Math.floor(c/u):0,f=d?"@?%%!\u2116@"+u:u,C=c>=u,g=p-p%5+(p%5>0?5:0);return(0,o.createComponentVNode)(2,i.Section,{title:"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0420\u0430\u0437\u043b\u043e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:n}),(0,o.createComponentVNode)(2,i.ProgressBar,{color:0===m?"bad":m<100?"average":"good",value:a,maxValue:r,mt:1,mb:2,children:[m<=100?m:100," %"]}),(0,o.createComponentVNode)(2,i.Box,{children:["\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: ",(0,o.createComponentVNode)(2,i.Box,{color:c?C?"good":"average":"bad",as:"span",children:Math.floor(c)}),(0,o.createComponentVNode)(2,i.Button,{icon:"atom",tooltip:"\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043e\u043d\u0434\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c "+f+" \u0434\u0430\u043d\u043d\u044b\u0445.",content:p>0?"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 "+g+" \u0441\u0435\u043a\u0443\u043d\u0434":"\u0417\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c ("+h+")",disabled:!C||p>0,onClick:function(){return l("probe",{rift_id:t})},mx:2}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",content:s?"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",disabled:s||m<100,onClick:function(){return l("reward",{rift_id:t})},mt:1.4})]})]})}(e)})),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043a\u0430\u043d\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f&&f.map((function(e){return function(e){var t=e.scannerId,n=e.scannerName,r=e.scanStatus,a=e.canSwitch,s=e.switching,d=c[r],u="OFF"===d?[" ","silver"]:"NO_RIFTS"===d?["\u041d\u0435\u0442 \u0440\u0430\u0437\u043b\u043e\u043c\u043e\u0432","silver"]:"SOME_RIFTS"===d?["\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442","good"]:"DANGER"===d?["\u041e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c! \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u043a\u0430\u043d\u0435\u0440!","bad"]:void 0;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n,py:0,children:[s?(0,o.createComponentVNode)(2,i.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):a?(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:"OFF"===d?"bad":"good",onClick:function(){return l("toggle_scanner",{scanner_id:t})},ml:1,mr:1}):(0,o.createComponentVNode)(2,i.Icon,{name:"power-off",color:"OFF"===d?"bad":"good",ml:1.85,mr:1.79,my:.84}),"OFF"!==d&&(0,o.createComponentVNode)(2,i.Box,{as:"span",color:u[1],children:u[0]})]})}(e)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:h&&h.map((function(e){return function(e){var t=e.servName,n=e.servData;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n.length?n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{children:[e.riftName," \u2014 ",Math.floor(e.probePoints)," \u0434\u0430\u043d\u043d\u044b\u0445."]},t)})):(0,o.createComponentVNode)(2,i.Box,{children:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"})})}(e)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceTap=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.BluespaceTap=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.product||[],u=s.desiredLevel,p=s.inputLevel,m=s.points,h=s.totalPoints,f=s.powerUse,C=s.availablePower,g=s.maxLevel,N=s.emagged,b=s.safeLevels,V=s.nextLevelPower,v=u>p?"bad":"good";return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!N&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),!!(p>b)&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,o.createComponentVNode)(2,i.Collapsible,{title:"Input Management",children:(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Desired Level",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===u,tooltip:"Set to 0",onClick:function(){return l("set",{set_level:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:0===u,onClick:function(){return l("set",{set_level:p})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===u,tooltip:"Decrease one step",onClick:function(){return l("decrease")}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:u,fillValue:p,minValue:0,color:v,maxValue:g,stepPixelSize:20,step:1,onChange:function(e,t){return l("set",{set_level:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:u===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return l("increase")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:u===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return l("set",{set_level:g})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Power Use",children:(0,c.formatPower)(f)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power for next level",children:(0,c.formatPower)(V)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Surplus Power",children:(0,c.formatPower)(C)})]})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Points",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Points",children:h})]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{disabled:e.price>=m,onClick:function(){return l("vend",{target:e.key})},content:e.price})},e.key)}))})})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],d=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},p=function(e,t){for(var n=[],o=0;o0?e.filter((function(e){return!!e})).reduce((function(e,t){return(0,o.createFragment)([e,(0,o.createComponentVNode)(2,a.Box,{children:t},t)],0)}),null):null},h=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,r=n.occupied,a=n.occupant,l=void 0===a?{}:a,s=r?(0,o.createComponentVNode)(2,f,{occupant:l}):(0,o.createComponentVNode)(2,x);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:s})})};var f=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,C,{occupant:t}),(0,o.createComponentVNode)(2,g,{occupant:t}),(0,o.createComponentVNode)(2,N,{occupant:t}),(0,o.createComponentVNode)(2,V,{organs:t.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:t.intOrgan})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants",children:s.implant_len?(0,o.createComponentVNode)(2,a.Box,{children:s.implant.map((function(e){return e.name})).join(", ")}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"None"})})]})})},g=function(e){var t=e.occupant;return t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:s.map((function(e,n){if(t[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2]})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},N=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:p(d,(function(e,n,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,b,{value:t[e[1]],marginBottom:r100)&&"average":"bad")||!!e.status.robotic&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",q:!0,children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,mt:t>0&&"0.5rem",value:e.totalLoss/e.maxHealth,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([!!e.internalBleeding&&"Internal bleeding",!!e.lungRuptured&&"Ruptured lung",!!e.status.broken&&e.status.broken,h(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[m([!!e.status.splinted&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Splinted"}),!!e.status.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})]),m(e.shrapnel.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:(!e.dead?e.germ_level>100&&"average":"bad")||e.robotic>0&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/e.maxHealth,mt:t>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([h(e.germ_level)])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:m([1===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),2===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Assisted"}),!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},t)}))]})})},x=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.borg||{},d=l.cell||{},u=d.charge/d.maxcharge,p=l.channels||[],m=l.modules||[],h=l.upgrades||[],f=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,a.Window,{title:"Borg Panel",width:700,height:700,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:s.emagged?"check-square-o":"square-o",content:"Emagged",selected:s.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:s.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:s.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset Module",onClick:function(){return c("reset_module")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge",children:[d.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,i.ProgressBar,{value:u,children:d.charge+" / "+d.maxcharge}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Model",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:s.active_module===e.name?"check-square-o":"square-o",content:e.name+" module",selected:s.active_module===e.name,onClick:function(){return c("setmodule",{module:e.name})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Upgrades",children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:f.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Law Manager",selected:s.lawmanager,onClick:function(){return c("lawmanager")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:s.lawupdate,onClick:function(){return c("toggle_lawupdate")}})],4),children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotClean=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotClean=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.cleanblood;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Cleaning Settings",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){return c("blood")}})}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotSecurity=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotSecurity=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.check_id,b=l.check_weapons,V=l.check_warrant,v=l.arrest_mode,x=l.arrest_declare;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Who To Arrest",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentifiable Persons",disabled:d,onClick:function(){return c("authid")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:b,content:"Unauthorized Weapons",disabled:d,onClick:function(){return c("authweapon")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return c("authwarrant")}})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Arrest Procedure",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:d,onClick:function(){return c("arrtype")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:x,content:"Announce Arrests On Radio",disabled:d,onClick:function(){return c("arrdeclare")}})]}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigCells=void 0;var o=n(0),r=n(3),i=n(2),a=n(1),c=function(e,t){var n=e.cell,r=(0,a.useBackend)(t).act,c=n.cell_id,l=n.occupant,s=n.crimes,d=n.brigged_by,u=n.time_left_seconds,p=n.time_set_seconds,m=n.ref,h="";u>0&&(h+=" BrigCells__listRow--active");return(0,o.createComponentVNode)(2,i.Table.Row,{className:h,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:c}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:d}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:p})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:u})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{type:"button",onClick:function(){r("release",{ref:m})},children:"Release"})})]})},l=function(e){var t=e.cells;return(0,o.createComponentVNode)(2,i.Table,{className:"BrigCells__list",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Cell"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Occupant"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Crimes"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Brigged By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Left"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Release"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c,{cell:e},e.ref)}))]})};t.BrigCells=function(e,t){var n=(0,a.useBackend)(t),c=(n.act,n.data.cells);return(0,o.createComponentVNode)(2,r.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:(0,o.createComponentVNode)(2,l,{cells:c})})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:l.occupant}):l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:l.occupant}));var s="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(s="exclamation-triangle"));var d=[],u=0;for(u=0;u60||!l.isAllowed,onClick:function(){return c("start")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleOldContent=t.CameraConsoleMapContent=t.CameraConsole=void 0;var o=n(0),r=n(24),i=n(43),a=n(7),c=n(18),l=n(1),s=n(2),d=n(3),u=function(e,t){var n,o;if(!t)return[];var r=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[r-1])?void 0:n.name,null==(o=e[r+1])?void 0:o.name]},p=function(e,t){void 0===t&&(t="");var n=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){var n=(0,l.useLocalState)(t,"tabIndex",0),r=n[0],i=n[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,s.Tabs,{children:[(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:0===r,onClick:function(){return i(0)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:1===r,onClick:function(){return i(1)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"table"})," List"]},"List")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,m);case 1:return(0,o.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}(r)]})})})};var m=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,a=n.config,c=p(i.cameras),d=(0,l.useLocalState)(t,"zoom",1),m=d[0],h=d[1],f=i.mapRef,C=i.activeCamera,g=i.stationLevel,N=u(c,C),b=N[0],V=N[1];return(0,o.createComponentVNode)(2,s.Box,{height:"100%",display:"flex",children:[(0,o.createComponentVNode)(2,s.Box,{height:"100%",flex:"0 0 500px",display:"flex",children:(0,o.createComponentVNode)(2,s.NanoMap,{onZoom:function(e){return h(e)},children:c.filter((function(e){return e.z===g})).map((function(e){return(0,o.createComponentVNode)(2,s.NanoMap.NanoButton,{activeCamera:C,x:e.x,y:e.y,context:t,zoom:m,icon:"circle",tooltip:e.name,name:e.name,color:"blue",status:e.status},e.ref)}))})}),(0,o.createComponentVNode)(2,s.Box,{height:"100%",resizable:!0,className:"CameraConsole__new__right",children:[(0,o.createVNode)(1,"div","CameraConsole__header",[(0,o.createVNode)(1,"div","CameraConsole__title",[(0,o.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!b,onClick:function(){return r("switch_camera",{name:b})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}})],4)],4),(0,o.createComponentVNode)(2,s.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:f,parent:a.window,type:"map"}})]})]})};t.CameraConsoleMapContent=m;var h=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,c=n.config,m=i.mapRef,h=i.activeCamera,f=(0,l.useLocalState)(t,"searchText",""),C=f[0],g=f[1],N=p(i.cameras,C),b=u(N,h),V=b[0],v=b[1];return(0,o.createComponentVNode)(2,s.Box,{children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return g(t)}}),(0,o.createComponentVNode)(2,s.Section,{children:N.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid",e.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",h&&e.name===h.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,d.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!v,onClick:function(){return r("switch_camera",{name:v})}})],4),(0,o.createComponentVNode)(2,s.ByondUi,{className:"CameraConsole__map",params:{id:m,parent:c.window,type:"map"}})],4)]})};t.CameraConsoleOldContent=h},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(100),l=n(3);t.Canister=function(e,t){var n=(0,i.useBackend)(t),s=n.act,d=n.data,u=d.portConnected,p=d.tankPressure,m=d.releasePressure,h=d.defaultReleasePressure,f=d.minReleasePressure,C=d.maxReleasePressure,g=d.valveOpen,N=d.name,b=d.canLabel,V=d.colorContainer,v=d.color_index,x=d.hasHoldingTank,y=d.holdingTank,k="";v.prim&&(k=V.prim.options[v.prim].name);var w="";v.sec&&(w=V.sec.options[v.sec].name);var _="";v.ter&&(_=V.ter.options[v.ter].name);var B="";v.quart&&(B=V.quart.options[v.quart].name);var S=[],L=[],A=[],E=[],I=0;for(I=0;Ie.current_positions&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:e.total_positions-e.current_positions})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"0"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"-",disabled:d.cooldown_time||!e.can_close,onClick:function(){return s("make_job_unavailable",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"+",disabled:d.cooldown_time||!e.can_open,onClick:function(){return s("make_job_available",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:d.priority_jobs.indexOf(e.title)>-1?"Yes":""})||(0,o.createComponentVNode)(2,i.Button,{content:"Priority",selected:d.priority_jobs.indexOf(e.title)>-1,disabled:d.cooldown_time||!e.can_prioritize,onClick:function(){return s("prioritize_job",{job:e.title})}})})]},e.title)}))]})})],4):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 2:n=d.authenticated&&d.scan_name?d.modify_name?(0,o.createComponentVNode)(2,c.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(e){return s("set",{access:e})},grantAll:function(){return s("grant_all")},denyAll:function(){return s("clear_all")},grantDep:function(e){return s("grant_region",{region:e})},denyDep:function(e){return s("deny_region",{region:e})}}):(0,o.createComponentVNode)(2,i.Section,{title:"Card Missing",color:"red",children:"No card to modify."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 3:n=d.authenticated?d.records.length?(0,o.createComponentVNode)(2,i.Section,{title:"Records",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||0===d.records.length||d.target_dept,onClick:function(){return s("wipe_all_logs")}}),children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Crewman"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Old Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"New Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Authorized By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.transferee}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.oldvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.newvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.whodidit}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.reason}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.deletedby})]},e.timestamp)}))]}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||0===d.records.length,onClick:function(){return s("wipe_my_logs")}})})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Records",children:"No records."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 4:n=d.authenticated&&d.scan_name?(0,o.createComponentVNode)(2,i.Section,{title:"Your Team",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Sec Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.crimstat}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontext,disabled:!e.demotable,onClick:function(){return s("remote_demote",{remote_demote:e.name})}})})]},e.title)}))]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;default:n=(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,p,n]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.CargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n,r,i=(0,a.useBackend)(t),l=i.act,s=i.data,d=s.is_public,u=s.points,p=s.timeleft,m=s.moving,h=s.at_station;return m||h?!m&&h?(n="Docked at the station",r="Return Shuttle"):m&&(r="In Transit...",n=1!==p?"Shuttle is en route (ETA: "+p+" minutes)":"Shuttle is en route (ETA: "+p+" minute)"):(n="Docked off-station",r="Call Shuttle"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Points Available",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Status",children:n}),0===d&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:r,disabled:m,onClick:function(){return l("moveShuttle")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Central Command Messages",onClick:function(){return l("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Points)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Changelog=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(3),l=u(n(493)),s=u(n(494)),d=u(n(520));function u(e){return e&&e.__esModule?e:{"default":e}}function p(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var m={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},h=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},t.dateChoices=[],t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=u.prototype;return h.setData=function(e){this.setState({data:e})},h.setSelectedDate=function(e){this.setState({selectedDate:e})},h.setSelectedIndex=function(e){this.setState({selectedIndex:e})},h.getData=function(e,t){void 0===t&&(t=1);var n=(0,i.useBackend)(this.context).act,o=this;if(t>6)return this.setData("Failed to load data after 6 attempts");n("get_month",{date:e}),(0,d["default"])(e+".yml").then(function(){var n,r=(n=regeneratorRuntime.mark((function i(n){var r,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:r=i.sent,/^Cannot find/.test(r)?(a=50+50*t,o.setData("Loading changelog data"+".".repeat(t+3)),setTimeout((function(){o.getData(e,t+1)}),a)):o.setData(s["default"].load(r,{schema:s["default"].CORE_SCHEMA}));case 5:case"end":return i.stop()}}),i)})),function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){p(i,o,r,a,c,"next",e)}function c(e){p(i,o,r,a,c,"throw",e)}a(undefined)}))});return function(e){return r.apply(this,arguments)}}())},h.componentDidMount=function(){var e=this,t=(0,i.useBackend)(this.context).data.dates,n=void 0===t?[]:t;n&&(n.forEach((function(t){return e.dateChoices.push((0,l["default"])(t,"mmmm yyyy",!0))})),this.setSelectedDate(this.dateChoices[0]),this.getData(n[0]))},h.render=function(){var e=this,t=this.state,n=t.data,s=t.selectedDate,d=t.selectedIndex,u=(0,i.useBackend)(this.context).data.dates,p=this.dateChoices,h=p.length>0&&(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:0===d,icon:"chevron-left",onClick:function(){var t=d-1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:s,options:p,onSelected:function(t){var n=p.indexOf(t);return e.setData("Loading changelog data..."),e.setSelectedIndex(n),e.setSelectedDate(t),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[n])},selected:s,width:"150px"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:d===p.length-1,icon:"chevron-right",onClick:function(){var t=d+1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})})]}),f=(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createVNode)(1,"h1",null,"Paradise Station",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thanks to: ",16),(0,o.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Recent GitHub contributors can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,o.createTextVNode)(".")],0),h]}),C=(0,o.createComponentVNode)(2,a.Section,{children:[h,(0,o.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Coders: ",16),(0,o.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Spriters: ",16),(0,o.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,o.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Changelog#April_2010"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,o.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,o.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,o.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Some icons by "),(0,o.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,o.createTextVNode)(". All rights reserved. Licensed under a "),(0,o.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,o.createTextVNode)(".")],4)]}),g=/#\d+/,N="object"==typeof n&&Object.keys(n).length>0&&Object.entries(n).reverse().map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:(0,l["default"])(t,"d mmmm yyyy",!0),children:(0,o.createComponentVNode)(2,a.Box,{ml:3,children:Object.entries(n).map((function(e){var t=e[0],n=e[1];return(0,o.createFragment)([(0,o.createVNode)(1,"h4",null,[t,(0,o.createTextVNode)(" changed:")],0),(0,o.createComponentVNode)(2,a.Box,{ml:3,children:(0,o.createComponentVNode)(2,a.Table,{children:n.map((function(e){var t=Object.keys(e)[0],n=e[t],i=n.match(g),c=(0,o.createComponentVNode)(2,a.Table.Cell,{className:(0,r.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,o.createComponentVNode)(2,a.Icon,{color:m[t]?m[t].color:m.unknown.color,name:m[t]?m[t].icon:m.unknown.icon})});return null!==i&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:(0,o.createVNode)(1,"a",null,[(0,o.createTextVNode)(" "),n,(0,o.createTextVNode)(" ")],0,{href:"https://github.com/ss220-space/Paradise/pull/"+i[0].substring(1)})})]},t+n)||(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:n})]},t+n)}))})})],4,t)}))})},t)}));return(0,o.createComponentVNode)(2,c.Window,{title:"Changelog",width:675,height:650,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[f,N,"string"==typeof n&&(0,o.createVNode)(1,"p",null,n,0),C]})})},u}(o.Component);t.Changelog=h},function(e,t,n){"use strict";var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){var a,c,l,s=arguments,d=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,n,o){if(1!==s.length||"string"!==f(e)||/\d/.test(e)||(t=e,e=undefined),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(d.masks[t]||t||d.masks["default"])).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(o=!0));var i=function(){return n?"getUTC":"get"},C=function(){return e[i()+"Date"]()},g=function(){return e[i()+"Day"]()},N=function(){return e[i()+"Month"]()},b=function(){return e[i()+"FullYear"]()},V=function(){return e[i()+"Hours"]()},v=function(){return e[i()+"Minutes"]()},x=function(){return e[i()+"Seconds"]()},y=function(){return e[i()+"Milliseconds"]()},k=function(){return n?0:e.getTimezoneOffset()},w=function(){return m(e)},_=function(){return h(e)},B={d:function(){return C()},dd:function(){return u(C())},ddd:function(){return d.i18n.dayNames[g()]},DDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()],short:!0})},dddd:function(){return d.i18n.dayNames[g()+7]},DDDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()+7]})},m:function(){return N()+1},mm:function(){return u(N()+1)},mmm:function(){return d.i18n.monthNames[N()]},mmmm:function(){return d.i18n.monthNames[N()+12]},yy:function(){return String(b()).slice(2)},yyyy:function(){return u(b(),4)},h:function(){return V()%12||12},hh:function(){return u(V()%12||12)},H:function(){return V()},HH:function(){return u(V())},M:function(){return v()},MM:function(){return u(v())},s:function(){return x()},ss:function(){return u(x())},l:function(){return u(y(),3)},L:function(){return u(Math.floor(y()/10))},t:function(){return V()<12?d.i18n.timeNames[0]:d.i18n.timeNames[1]},tt:function(){return V()<12?d.i18n.timeNames[2]:d.i18n.timeNames[3]},T:function(){return V()<12?d.i18n.timeNames[4]:d.i18n.timeNames[5]},TT:function(){return V()<12?d.i18n.timeNames[6]:d.i18n.timeNames[7]},Z:function(){return o?"GMT":n?"UTC":(String(e).match(c)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+u(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+u(Math.floor(Math.abs(k())/60),2)+":"+u(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]},W:function(){return w()},WW:function(){return u(w())},N:function(){return _()}};return t.replace(a,(function(e){return e in B?B[e]():e.slice(1,e.length-1)}))});d.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},d.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var u=function(e,t){for(e=String(e),t=t||2;e.length>10),56320+(e-65536&1023))}for(var x=new Array(256),y=new Array(256),k=0;k<256;k++)x[k]=V(k)?1:0,y[k]=V(k);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function _(e,t){return new r(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function B(e,t){throw _(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,_(e,t))}var L={YAML:function(e,t,n){var o,r,i;null!==e.version&&B(e,"duplication of %YAML directive"),1!==n.length&&B(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&B(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&B(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&B(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],p.test(o)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,o)&&B(e,'there is a previously declared suffix for "'+o+'" tag handle'),m.test(r)||B(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=r}};function A(e,t,n,o){var r,i,a,c;if(t1&&(e.result+=o.repeat("\n",t-1))}function P(e,t){var n,o,r=e.tag,i=e.anchor,a=[],c=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&45===o&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,T(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,j(e,t,3,!1,!0),a.push(e.result),T(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)B(e,"bad indentation of a sequence entry");else if(e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt)&&(j(e,t,4,!0,r)&&(f?m=e.result:h=e.result),f||(I(e,d,u,p,m,h,i,a),p=m=h=null),T(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)B(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?B(e,"repeat of an indentation width identifier"):(u=t+i-1,d=!0)}if(C(a)){do{a=e.input.charCodeAt(++e.position)}while(C(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!f(a)&&0!==a)}for(;0!==a;){for(D(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!d||e.lineIndentu&&(u=e.lineIndent),f(a))p++;else{if(e.lineIndent0){for(r=a,i=0;r>0;r--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:B(e,"expected hexadecimal character");e.result+=v(i),e.position++}else B(e,"unknown escape sequence");n=o=e.position}else f(c)?(A(e,n,o,!0),M(e,T(e,!1,t)),n=o=e.position):e.position===e.lineStart&&F(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}(e,m)?w=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o)&&!N(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||B(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],T(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,c,l,s,d,u=e.kind,p=e.result;if(g(d=e.input.charCodeAt(e.position))||N(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(g(o=e.input.charCodeAt(e.position+1))||n&&N(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==d;){if(58===d){if(g(o=e.input.charCodeAt(e.position+1))||n&&N(o))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&N(d))break;if(f(d)){if(c=e.line,l=e.lineStart,s=e.lineIndent,T(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=l,e.lineIndent=s;break}}a&&(A(e,r,i,!1),M(e,e.line-c),r=i=e.position,a=!1),C(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return A(e,r,i,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,m,1===n)&&(w=!0,null===e.tag&&(e.tag="?")):(w=!0,null===e.tag&&null===e.anchor||B(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===V&&(w=s&&P(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(d=0,u=e.implicitTypes.length;d tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result)?(e.result=p.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):B(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||w}function U(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(T(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&B(e,"directive name must not be less than one character in length");0!==r;){for(;C(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!f(r));break}if(f(r))break;for(t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&D(e),l.call(L,n)?L[n](e,n,o):S(e,'unknown document directive "'+n+'"')}T(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,T(e,!0,-1)):a&&B(e,"directives end mark is expected"),j(e,e.lineIndent-1,4,!1,!0),T(e,!0,-1),e.checkLineBreaks&&d.test(e.input.slice(i,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,T(e,!0,-1)):e.position0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){n=" ... ",r+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return c=this.buffer.slice(r,a),o.repeat(" ",e)+n+c+i+"\n"+o.repeat(" ",e+this.position-r+n.length)+"^"},r.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=r},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(65),r=n(20);function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,c=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var o=n(65),r=n(20),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,o,r;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,o=1,r.forEach((function(e){t+=e*o,o*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,o,a,c,l,s,d,u=0,p=null;if(null===(t=r.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,o,a));if(c=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),d=new Date(Date.UTC(n,o,a,c,l,s,u)),p&&d.setTime(d.getTime()-p),d},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var o;try{o=n(508).Buffer}catch(a){}var r=n(20),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,a=i;for(n=0;n64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,c=i,l=0,s=[];for(t=0;t>16&255),s.push(l>>8&255),s.push(255&l)),l=l<<6|c.indexOf(r.charAt(t));return 0===(n=a%4*6)?(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)):18===n?(s.push(l>>10&255),s.push(l>>2&255)):12===n&&s.push(l>>4&255),o?o.from?o.from(s):new o(s):s},predicate:function(e){return o&&o.isBuffer(e)},represent:function(e){var t,n,o="",r=0,a=e.length,c=i;for(t=0;t>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]),r=(r<<8)+e[t];return 0===(n=a%3)?(o+=c[r>>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]):2===n?(o+=c[r>>10&63],o+=c[r>>4&63],o+=c[r<<2&63],o+=c[64]):1===n&&(o+=c[r>>2&63],o+=c[r<<4&63],o+=c[64],o+=c[64]),o}})},function(e,t,n){"use strict";(function(e){var o=n(509),r=n(510),i=n(511);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){var o=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function C(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:N(e,t,n,o,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):N(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function N(e,t,n,o,r){var i,a=1,c=e.length,l=t.length;if(o!==undefined&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,c/=2,l/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(i=n;ic&&(n=c-l),i=n;i>=0;i--){for(var u=!0,p=0;pr&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function w(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r239?4:s>223?3:s>191?2:1;if(r+u<=n)switch(u){case 1:s<128&&(d=s);break;case 2:128==(192&(i=e[r+1]))&&(l=(31&s)<<6|63&i)>127&&(d=l);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[r+1],a=e[r+2],c=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,o,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),o===undefined&&(o=0),r===undefined&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(o,r),d=e.slice(t,n),u=0;ur)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return V(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return y(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;ro)&&(n=o);for(var r="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function D(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function T(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function F(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,o,i){return i||F(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function P(e,t,n,o,i){return i||F(e,0,n,8),r.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=t===undefined?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(r*=256);)o+=this[e+--t]*r;return o},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=this[e],r=1,i=0;++i=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(104))},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),d=0,u=c>0?a-4:a;for(n=0;n>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,c=n-r;ac?c:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,i,a=[],c=t;c>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,o,r){var i,a,c=8*r-o-1,l=(1<>1,d=-7,u=n?r-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=c;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:(m?-1:1)*Infinity;a+=Math.pow(2,o),i-=s}return(m?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,c,l,s=8*i-r-1,d=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(c=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(t*l-1)*Math.pow(2,r),a+=u):(c=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+m]=255&c,m+=h,c/=256,r-=8);for(a=a<0;e[n+m]=255&a,m+=h,a/=256,s-=8);e[n+m-h]|=128*f}},function(e,t,n){"use strict";var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,n){"use strict";var o=n(20),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,a,c,l=[],s=e;for(t=0,n=s.length;t3)return!1;if("/"!==t[t.length-o.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),o="";return"/"===t[0]&&(n&&(o=n[1]),t=t.slice(1,t.length-o.length-1)),new RegExp(t,o)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var o;try{o=n(518)}catch(i){"undefined"!=typeof window&&(o=window.esprima)}var r=n(20);e.exports=new r("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=o.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(r){return!1}},construct:function(e){var t,n="("+e+")",r=o.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(8),a=n(15);function c(e,t,n){var a=null,c=function(e,t){n&&n(e,t),a&&a.visit(e,t)},l="function"==typeof n?c:null,s=!1;if(t){s="boolean"==typeof t.comment&&t.comment;var d="boolean"==typeof t.attachComment&&t.attachComment;(s||d)&&((a=new o.CommentHandler).attach=d,t.comment=!0,l=c)}var u,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),u=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,l):new i.Parser(e,t,l);var m=p?u.parseModule():u.parseScript();return s&&a&&(m.comments=a.comments),u.config.tokens&&(m.tokens=u.tokens),u.config.tolerant&&(m.errors=u.errorHandler.errors),m}t.parse=c,t.parseModule=function(e,t,n){var o=t||{};return o.sourceType="module",c(e,o,n)},t.parseScript=function(e,t,n){var o=t||{};return o.sourceType="script",c(e,o,n)},t.tokenize=function(e,t,n){var o,r=new a.Tokenizer(e,t);o=[];try{for(;;){var i=r.getNextToken();if(!i)break;n&&(i=n(i)),o.push(i)}}catch(c){r.errorHandler.tolerate(c)}return r.errorHandler.tolerant&&(o.errors=r.errors()),o};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===o.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];t.end.offset>=i.start&&(n.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var o=this.trailing[n];o.start>=e.end.offset&&t.unshift(o.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset);)t=i.node,this.stack.pop();if(t){for(var o=(t.leadingComments?t.leadingComments.length:0)-1;o>=0;--o){var r=t.leadingComments[o];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(o,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(o=this.leading.length-1;o>=0;--o){var i;(i=this.leading[o]).start<=e.start.offset&&(n.unshift(i.comment),this.leading.splice(o,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===o.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",o={type:n,value:e.value};if(e.range&&(o.range=e.range),e.loc&&(o.loc=e.loc),this.comments.push(o),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n(5),c=n(6),l=n(7),s=n(8),d=n(13),u=n(14);function p(e){var t;switch(e.type){case c.JSXSyntax.JSXIdentifier:t=e.name;break;case c.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case c.JSXSyntax.JSXMemberExpression:var o=e;t=p(o.object)+"."+p(o.property)}return t}d.TokenName[100]="JSXIdentifier",d.TokenName[101]="JSXText";var m=function(e){function t(t,n,o){return e.call(this,t,n,o)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,o=!1,r=!1,a=!1;!this.scanner.eof()&&n&&!o;){var c=this.scanner.source[this.scanner.index];if(c===e)break;if(o=";"===c,t+=c,++this.scanner.index,!o)switch(t.length){case 2:r="#"===c;break;case 3:r&&(n=(a="x"===c)||i.Character.isDecimalDigit(c.charCodeAt(0)),r=r&&!a);break;default:n=(n=n&&!(r&&!i.Character.isDecimalDigit(c.charCodeAt(0))))&&!(a&&!i.Character.isHexDigit(c.charCodeAt(0)))}}if(n&&o&&t.length>2){var l=t.substr(1,t.length-2);r&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):r||a||!u.XHTMLEntities[l]||(t=u.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:c=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],o="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)o+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),c=46===r&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var o={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(o)),o},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,o))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(r,i))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var o=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(o,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),o=this.matchJSX("/");return o&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,o,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),o=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,r,o))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;i=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(i),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],o=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:o,children:n});n=r.children,o=r.closing}return this.finalize(e,new a.JSXElement(t,n,o))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(s.Parser);t.JSXParser=m},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=function(e){this.type=o.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var i=function(e,t,n){this.type=o.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXElement=i;var a=function(){this.type=o.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var c=function(e){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=c;var l=function(e){this.type=o.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var s=function(e,t){this.type=o.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=s;var d=function(e,t){this.type=o.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=d;var u=function(e,t){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=u;var p=function(e,t,n){this.type=o.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=p;var m=function(e){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var h=function(e,t){this.type=o.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(e){this.type=o.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var i=function(e){this.type=o.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=i;var a=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=a;var c=function(e,t,n){this.type=o.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentExpression=c;var l=function(e,t){this.type=o.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var s=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=s;var d=function(e,t,n){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=d;var u=function(e,t,n){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=u;var p=function(e){this.type=o.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=m;var h=function(e){this.type=o.Syntax.BlockStatement,this.body=e};t.BlockStatement=h;var f=function(e){this.type=o.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var C=function(e,t){this.type=o.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=C;var g=function(e,t){this.type=o.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var N=function(e){this.type=o.Syntax.ClassBody,this.body=e};t.ClassBody=N;var b=function(e,t,n){this.type=o.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=b;var V=function(e,t,n){this.type=o.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=V;var v=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=v;var x=function(e,t,n){this.type=o.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=x;var y=function(e){this.type=o.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=y;var k=function(){this.type=o.Syntax.DebuggerStatement};t.DebuggerStatement=k;var w=function(e,t){this.type=o.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=w;var _=function(e,t){this.type=o.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=_;var B=function(){this.type=o.Syntax.EmptyStatement};t.EmptyStatement=B;var S=function(e){this.type=o.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=S;var L=function(e){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=L;var A=function(e,t,n){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=A;var E=function(e,t){this.type=o.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=E;var I=function(e){this.type=o.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=I;var D=function(e,t,n){this.type=o.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=D;var T=function(e,t,n){this.type=o.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=T;var F=function(e,t,n,r){this.type=o.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=F;var M=function(e,t,n,r){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=M;var P=function(e,t,n,r){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=P;var O=function(e){this.type=o.Syntax.Identifier,this.name=e};t.Identifier=O;var R=function(e,t,n){this.type=o.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=R;var j=function(e,t){this.type=o.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=j;var U=function(e){this.type=o.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var z=function(e){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=z;var W=function(e,t){this.type=o.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var H=function(e,t){this.type=o.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=H;var K=function(e,t){this.type=o.Syntax.Literal,this.value=e,this.raw=t};t.Literal=K;var Y=function(e,t){this.type=o.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=Y;var G=function(e,t,n,r,i){this.type=o.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this["static"]=i};t.MethodDefinition=G;var q=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=q;var X=function(e,t){this.type=o.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=o.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var $=function(e){this.type=o.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=$;var Z=function(e,t,n,r,i,a){this.type=o.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=a};t.Property=Z;var Q=function(e,t,n,r){this.type=o.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RegexLiteral=Q;var ee=function(e){this.type=o.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=o.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var ne=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var oe=function(e){this.type=o.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=oe;var re=function(e){this.type=o.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;var ie=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=ie;var ae=function(){this.type=o.Syntax.Super};t.Super=ae;var ce=function(e,t){this.type=o.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=ce;var le=function(e,t){this.type=o.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var se=function(e,t){this.type=o.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=se;var de=function(e,t){this.type=o.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=de;var ue=function(e,t){this.type=o.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=ue;var pe=function(){this.type=o.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=o.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var he=function(e,t,n){this.type=o.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=he;var fe=function(e,t){this.type=o.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var Ce=function(e,t,n){this.type=o.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=Ce;var ge=function(e,t){this.type=o.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var Ne=function(e,t){this.type=o.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=Ne;var be=function(e,t){this.type=o.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=be;var Ve=function(e,t){this.type=o.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=Ve;var ve=function(e,t){this.type=o.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ve},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(10),i=n(11),a=n(7),c=n(12),l=n(2),s=n(13),d=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new c.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=o,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=o||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,o=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(o,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(o,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(o,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var o=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,o},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var o=this.parseFormalParameters(),r=this.parsePropertyMethod(o);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,o.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,i.Messages.StrictOctalLiteral);var o=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,o));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),o=this.lookahead,r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(3===o.type){var p=o.value;this.nextToken(),l=this.match("["),r=(u=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===o.type&&!u&&"get"===o.value&&m)t="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(3===o.type&&!u&&"set"===o.value&&m)t="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(7===o.type&&"*"===o.value&&m)t="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!u)!l&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0;else if(3===o.type)if(p=this.finalize(n,new a.Identifier(o.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(n,new a.AssignmentPattern(p,h))}else d=!0,c=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,r,l,c,s,d))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,o=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:o},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],o=this.parseTemplateHead();for(n.push(o);!o.tail;)t.push(this.parseExpression()),o=this.parseTemplateElement(),n.push(o);return this.finalize(e,new a.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var o=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(o=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!o)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(i=0;i")){for(var l=0;l0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],i=t,c=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[i,n.value,c],s=[o];!((o=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&o<=s[s.length-1];){c=l.pop();var d=l.pop();s.pop(),i=l.pop(),r.pop();var u=this.startNode(r[r.length-1]);l.push(this.finalize(u,new a.BinaryExpression(d,i,c)))}l.push(this.nextToken().value),s.push(o),r.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var m=r.pop();p>1;){var h=r.pop(),f=m&&m.lineStart;u=this.startNode(h,f),d=l[p-1],t=this.finalize(u,new a.BinaryExpression(d,l[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,o,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var s=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var u=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var m=this.startNode(t);this.expect("=>");var h=void 0;if(this.match("{")){var f=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=f}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var C=h.type!==l.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=r?this.finalize(m,new a.AsyncArrowFunctionExpression(c.params,h,C)):this.finalize(m,new a.ArrowFunctionExpression(c.params,h,C)),this.context.strict=s,this.context.allowStrictDirective=d,this.context.allowYield=u,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var g=e;this.scanner.isRestrictedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var N=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(N,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),o=this.parsePattern([],e);this.context.strict&&o.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(o.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&o.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(o,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;o.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var o=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(o))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var o=[];!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else{if(this.match("...")){o.push(this.parseBindingRestElement(e,t));break}o.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new a.ArrayPattern(o))},e.prototype.parsePropertyPattern=function(e,t){var n,o,r=this.createNode(),i=!1,c=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var s=this.finalize(r,new a.Identifier(l.value));if(this.match("=")){e.push(l),c=!0,this.nextToken();var d=this.parseAssignmentExpression();o=this.finalize(this.startNode(l),new a.AssignmentPattern(s,d))}else this.match(":")?(this.expect(":"),o=this.parsePatternWithDefault(e,t)):(e.push(l),c=!0,o=s)}else i=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),o=this.parsePatternWithDefault(e,t);return this.finalize(r,new a.Property("init",n,i,o,!1,c))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),o=[];for(this.expect("{");!this.match("}");)o.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(o))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,o=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,o=this.finalize(this.startNode(n),new a.AssignmentPattern(o,i))}return o},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var o=null;return this.match("=")?(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,o))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(o,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(n,o))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var o=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=o}return this.finalize(t,new a.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,o=null,r=null,c=null,s=!0,d=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){o=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,1===p.length&&this.matchKeyword("in")){var m=p[0];m.init&&(m.id.type===l.Syntax.ArrayPattern||m.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseExpression(),o=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){o=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(u=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=u,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseExpression(),o=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(this.consumeSemicolon(),o=this.finalize(o,new a.VariableDeclaration(p,h)))):(o=this.finalize(o,new a.Identifier(h)),this.nextToken(),e=o,t=this.parseExpression(),o=null)}else{var f=this.lookahead;if(u=this.context.allowIn,this.context.allowIn=!1,o=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword("in"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseExpression(),o=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseAssignmentExpression(),o=null,s=!1;else{if(this.match(",")){for(var C=[o];this.match(",");)this.nextToken(),C.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(f),new a.SequenceExpression(C))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(c=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(d,new a.ForStatement(o,r,c,n)):s?this.finalize(d,new a.ForInStatement(e,t,n)):this.finalize(d,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var o=[],r=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();null===c.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),o.push(c)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,o))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var o=n,r="$"+o.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",o.name),this.context.labelSet[r]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var s=this.lookahead,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(s,i.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(s,i.Messages.GeneratorInLegacyContext),c=d}else c=this.parseStatement();delete this.context.labelSet[r],e=new a.LabeledStatement(o,c)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),o={},r=0;r0&&this.tolerateError(i.Messages.BadGetterArity);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(i.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var o=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=o}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),o="",r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,d=!0,l=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(u=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&m?(o="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):"set"===t.value&&m&&(o="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(o="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0),!o&&r&&this.match("(")&&(o="init",c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0),o||this.throwUnexpectedToken(this.lookahead),"init"===o&&(o="method"),l||(d&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!d&&this.isPropertyKey(r,"constructor")&&(("method"!==o||!s||c&&c.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,o="constructor")),this.finalize(n,new a.MethodDefinition(r,l,c,o,d))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var o=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(o,r,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,o=null;this.matchKeyword("extends")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,o,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null));else{var c=[],l=null,s=!1;for(this.expect("{");!this.match("}");)s=s||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):s?(o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(o,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,c,l))}return e},e}();t.Parser=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(o){Object.create&&Object.defineProperty&&(n=Object.create(o),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,o){var r="Line "+t+": "+o,i=this.constructError(r,n);return i.index=e,i.lineNumber=t,i.description=o,i},e.prototype.throwError=function(e,t,n,o){throw this.createError(e,t,n,o)},e.prototype.tolerateError=function(e,t,n,o){var r=this.createError(e,t,n,o);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(4),i=n(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function c(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,o=[];for(this.trackComment&&(o=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};o.push(a)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},o.push(a)),o},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(o))13===o&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===o){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(i)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(i)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var o=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(o)),t=!0}else{if(42!==n)break;this.index+=2,o=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(o))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,o=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(o))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,o=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(o))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,o=0;o1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=c(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+c(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+c(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var o=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=o}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",o=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(o=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return o||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&o.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"\uffff"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(n)}catch(r){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];o.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!0)}return a||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,o=this.scanHexEscape("u");if(null!==o)for(e+=o;n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(12),i=n(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(o=this.values[this.curly-4])&&!this.beforeFunctionExpression(o);else if("function"===this.values[this.curly-4]){var o;t=!(o=this.values[this.curly-5])||!this.beforeFunctionExpression(o)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),c=function(){function e(e,t){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;to&&" "!==e[u+1],u=i);else if(!C(a))return 5;p=p&&g(a)}s=s||d&&i-u-1>o&&" "!==e[u+1]}return l||s?n>9&&N(e)?5:s?4:3:p&&!r(e)?1:2}function V(e,t,n,o){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==d.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=o||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,c,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n"+v(t,e.indent)+x(m(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,r.lastIndex=c,y(e.slice(0,c),t)),a="\n"===e[0]||" "===e[0];var c;for(;o=r.exec(e);){var l=o[1],s=o[2];n=" "===s[0],i+=l+(a||n||""===s?"":"\n")+y(s,t),a=n}return i}(t,a),i));case 5:return'"'+function(e){for(var t,n,o,r="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(r+=u(1024*(t-55296)+n-56320+65536),i++):(o=s[t],r+=!o&&C(t)?e[i]:o||u(t));return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function v(e,t){var n=N(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function y(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,c=0,l="";n=r.exec(e);)(c=n.index)-i>t&&(o=a>i?a:c,l+="\n"+e.slice(i,o),i=o+1),a=c;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function k(e,t,n){var o,i,a,s,d,u;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+u+'" style');o=d.represent[u](t,u)}e.dump=o}return!0}return!1}function w(e,t,n,o,i,a){e.tag=null,e.dump=n,k(e,n,!1)||k(e,n,!0);var l=c.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>t);var s,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&d&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var i,a,c,l,s,d,u="",p=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(i=0,a=m.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,s&&(d+=h(e,t)),w(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,n){var o,r,i,a,c,l="",s=e.tag,d=Object.keys(n);for(o=0,r=d.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),w(e,t,a,!1,!1)&&(l+=c+=e.dump));e.tag=s,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;o&&0!==e.dump.length?(!function(e,t,n,o){var r,i,a="",c=e.tag;for(r=0,i=n.length;r "+e.dump)}return!0}function _(e,t){var n,o,r=[],i=[];for(function a(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r0}),(0,o.createComponentVNode)(2,p,{mode:g,bufferReagents:f}),(0,o.createComponentVNode)(2,m,{isCondiment:i,bufferNonEmpty:f.length>0}),(0,o.createComponentVNode)(2,C)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t).act,a=e.beaker,d=e.beakerReagents,u=e.bufferNonEmpty;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",flexGrow:"0",flexBasis:"300px",buttons:u?(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!c.condi&&(0,o.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})})),(0,l.modalRegisterBodyOverride)("change_patch_style",(function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(r,a){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:a+1===parseInt(n.modal.value,10),onClick:function(){return(0,l.modalAnswer)(t,e.id,a+1)},children:(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 32px;height: 32px;background: url(bandaid"+(a+1)+".png);background-size: 160%;background-position: left -9px bottom -14px;"})})},a)}))})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(49),l=n(51),s=n(3),d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,s=e.args,d=s.activerecord,u=s.realname,p=s.health,m=s.unidentity,h=s.strucenzymes,f=p.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:f.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:f[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:f[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:f[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:f[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:d})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",d),(0,o.createComponentVNode)(2,s.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,p)})]})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},p=function(e,t){var n,r=(0,i.useBackend)(t).data.menu;return 1===r?n=(0,o.createComponentVNode)(2,m):2===r&&(n=(0,o.createComponentVNode)(2,h)),n},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.loading,d=l.scantemp,u=l.occupant,p=l.locked,m=l.can_brainscan,h=l.scan_mode,f=l.numberofpods,C=l.pods,g=l.selected_pod,N=p&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:N,icon:N?"toggle-on":"toggle-off",content:N?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:N||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:d.color,children:d.text})}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"brain":"male",content:h?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||s,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:f?C.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.records;return c.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},t)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},f=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.scanner,s=c.numberofpods,d=c.autoallowed,u=c.autoprocess,p=c.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[s," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CommunicationsComputer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.CommunicationsComputer=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;n=s.authenticated?s.is_ai?"AI":1===s.authenticated?"Command":2===s.authenticated?"Captain":"ERROR: Report This Bug!":"Not Logged In";var d="View ("+s.messages.length+")",u=(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.is_ai&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.authenticated?"sign-out-alt":"id-card",selected:s.authenticated,content:s.authenticated?"Log Out ("+n+")":"Log In",onClick:function(){return l("auth")}})})})}),!!s.esc_section&&(0,o.createComponentVNode)(2,i.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!s.esc_status&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s.esc_status}),!!s.esc_callable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Call Shuttle",disabled:!s.authenticated,onClick:function(){return l("callshuttle")}})}),!!s.esc_recallable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Recall Shuttle",disabled:!s.authenticated||s.is_ai,onClick:function(){return l("cancelshuttle")}})}),!!s.lastCallLoc&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Last Call/Recall From",children:s.lastCallLoc})]})})],0),p="Make Priority Announcement";s.msg_cooldown>0&&(p+=" ("+s.msg_cooldown+"s)");var m=s.emagged?"Message [UNKNOWN]":"Message CentComm",h="Request Authentication Codes";s.cc_cooldown>0&&(m+=" ("+s.cc_cooldown+"s)",h+=" ("+s.cc_cooldown+"s)");var f,C=s.str_security_level,g=s.levels.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.icon,content:e.name,disabled:!s.authmax||e.id===s.security_level,onClick:function(){return l("newalertlevel",{level:e.id})}},e.name)})),N=s.stat_display.presets.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.name===s.stat_display.type,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:e.name})}},e.name)})),b=s.stat_display.alerts.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.alert===s.stat_display.icon,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:"alert",alert:e.alert})}},e.alert)}));if(s.current_message_title)f=(0,o.createComponentVNode)(2,i.Section,{title:s.current_message_title,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Return To Message List",disabled:!s.authenticated,onClick:function(){return l("messagelist")}}),children:(0,o.createComponentVNode)(2,i.Box,{children:s.current_message})});else{var V=s.messages.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"eye",content:"View",disabled:!s.authenticated||s.current_message_title===e.title,onClick:function(){return l("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",disabled:!s.authenticated,onClick:function(){return l("delmessage",{msgid:e.id})}})]},e.id)}));f=(0,o.createComponentVNode)(2,i.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:V})})}switch(s.menu_state){case 1:return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Captain-Only Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Alert",color:s.security_level_color,children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Change Alert",children:g}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:p,disabled:!s.authmax||s.msg_cooldown>0,onClick:function(){return l("announce")}})}),!!s.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageSyndicate")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!s.authmax,onClick:function(){return l("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageCentcomm")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nuclear Device",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",content:h,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("nukerequest")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,i.Button,{icon:"tv",content:"Change Status Displays",disabled:!s.authenticated,onClick:function(){return l("status")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,i.Button,{icon:"folder-open",content:d,disabled:!s.authenticated,onClick:function(){return l("messagelist")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!s.authenticated,onClick:function(){return l("RestartNanoMob")}})})]})})]})});case 2:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Presets",children:N}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alerts",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_1,disabled:!s.authenticated,onClick:function(){return l("setmsg1")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_2,disabled:!s.authenticated,onClick:function(){return l("setmsg2")}})})]})})]})});case 3:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,f]})});default:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",s.menu_state,"Please report this to NT Technical Support."]})})}}},function(e,t,n){"use strict";t.__esModule=!0,t.Contractor=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(102),l=n(3);var s={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},d=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"];t.Contractor=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,s=r.data;n=s.unauthorized?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){}})}):s.load_animation_completed?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"hidden",children:1===s.page?(0,o.createComponentVNode)(2,m,{height:"100%"}):(0,o.createComponentVNode)(2,f,{height:"100%"})})],4):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:d,finishedTimeout:3e3,onFinished:function(){return c("complete_load_animation")}})});var h=(0,i.useLocalState)(t,"viewingPhoto",""),N=h[0];h[1];return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:[N&&(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Contractor",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:n})})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.tc_available,s=c.tc_paid_out,d=c.completed_contracts,u=c.rep;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Summary",buttons:(0,o.createComponentVNode)(2,a.Box,{verticalAlign:"middle",mt:"0.25rem",children:[u," Rep"]})},e,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",children:[l," TC"]}),(0,o.createComponentVNode)(2,a.Button,{disabled:l<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){return r("claim")}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Earned",children:[s," TC"]})]})}),(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:d})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.page;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Tabs,Object.assign({},e,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"suitcase"}),"Contracts"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"shopping-cart"}),"Hub"]})]})))},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,d=l.contracts,u=l.contract_active,p=l.can_extract,m=!!u&&d.filter((function(e){return 1===e.status}))[0],f=m&&m.time_left>0,C=(0,i.useLocalState)(t,"viewingPhoto",""),g=(C[0],C[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!p||f,icon:"parachute-box",content:["Call Extraction",f&&(0,o.createComponentVNode)(2,c.Countdown,{timeLeft:m.time_left,format:function(e,t){return" ("+t.substr(3)+")"}})],onClick:function(){return r("extract")}})},e,{children:d.slice().sort((function(e,t){return 1===e.status?-1:1===t.status?1:e.status-t.status})).map((function(e){var t;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",color:1===e.status&&"good",children:e.target_name}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:e.has_photo&&(0,o.createComponentVNode)(2,a.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return g("target_photo_"+e.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,o.createComponentVNode)(2,a.Box,{width:"100%",children:[!!s[e.status]&&(0,o.createComponentVNode)(2,a.Box,{color:s[e.status][1],display:"inline-block",mt:1!==e.status&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:s[e.status][0]}),1===e.status&&(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){return r("abort")}})]}),children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"2",mr:"0.5rem",children:[e.fluff_message,!!e.completed_time&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",e.completed_time]}),!!e.dead_extraction&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!e.fail_reason&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",e.fail_reason]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{flexBasis:"100%",children:[(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xa0",h(e)]}),null==(t=e.difficulties)?void 0:t.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!!u,content:t.name+" ("+t.reward+" TC)",onClick:function(){return r("activate",{uid:e.uid,difficulty:n+1})}})})),!!e.objective&&(0,o.createComponentVNode)(2,a.Box,{color:"white",bold:!0,children:[e.objective.extraction_name,(0,o.createVNode)(1,"br"),"(",(e.objective.rewards.tc||0)+" TC",",\xa0",(e.objective.rewards.credits||0)+" Credits",")"]})]})]})},e.uid)}))})))},h=function(e){if(e.objective&&!(e.status>1)){var t=e.objective.locs.user_area_id,n=e.objective.locs.user_coords,i=e.objective.locs.target_area_id,c=e.objective.locs.target_coords,l=t===i;return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:l?"dot-circle-o":"arrow-alt-circle-right-o",color:l?"green":"yellow",rotation:l?null:-(0,r.rad2deg)(Math.atan2(c[1]-n[1],c[0]-n[0])),lineHeight:l?null:"0.85",size:"1.5"})})}},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.rep,s=c.buyables;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Purchases",overflow:"auto"},e,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:e.refundable&&(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Refund ("+e.cost+" Rep)",onClick:function(){return r("refund",{uid:e.uid})}}),children:[e.description,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:l-1&&(0,o.createComponentVNode)(2,a.Box,{as:"span",color:0===e.stock?"bad":"good",ml:"0.5rem",children:[e.stock," in stock"]})]},e.uid)}))})))},C=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=this.props,t=this.state;t.currentIndex<=e.allMessages.length?(this.setState((function(e){return{currentIndex:e.currentIndex+1}})),t.currentDisplay.push(e.allMessages[t.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))},i.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},i.componentWillUnmount=function(){clearTimeout(this.timer)},i.render=function(){return(0,o.createComponentVNode)(2,a.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component),g=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Contractor__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ConveyorSwitch=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ConveyorSwitch=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.slowFactor,d=l.oneWay,u=l.position;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Allow reverse",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,onClick:function(){return c("toggleOneWay")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Slowdown factor",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-left",onClick:function(){return c("slowFactor",{value:s-5})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-left",onClick:function(){return c("slowFactor",{value:s-1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Slider,{width:"100px",mx:"1px",value:s,fillValue:s,minValue:1,maxValue:50,step:1,format:function(e){return e+"x"},onChange:function(e,t){return c("slowFactor",{value:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-right",onClick:function(){return c("slowFactor",{value:s+1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-right",onClick:function(){return c("slowFactor",{value:s+5})}})," "]})]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitor=void 0;var o=n(0),r=n(24),i=n(18),a=n(1),c=n(2),l=n(80),s=n(49),d=n(3),u=function(e,t){return e.dead?"Deceased":parseInt(e.health,10)<=t?"Critical":1===parseInt(e.stat,10)?"Unconscious":"Living"},p=function(e,t){return e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"green"};t.CrewMonitor=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=(0,a.useLocalState)(t,"tabIndex",r.IndexToggler),l=i[0],s=i[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[r.isBS?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===l,onClick:function(){return s(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,r.isBP?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===l,onClick:function(){return s(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===l,onClick:function(){return s(2)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===l,onClick:function(){return s(3)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,f);case 1:return(0,o.createComponentVNode)(2,C);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}(l)]})})})};var m=function(e){var t=e.crewData,n=e.context,d=(0,a.useBackend)(n),m=d.act,h=d.data,f=(0,r.sortBy)((function(e){return e.name}))(t||[]),C=(0,a.useLocalState)(n,"search",""),g=C[0],N=C[1],b=(0,i.createSearch)(g,(function(e){return e.name+"|"+e.assignment+"|"+e.area}));return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(e,t){return N(t)}}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),f.filter(b).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{bold:!!e.is_command,children:[(0,o.createComponentVNode)(2,l.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.TableCell,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:p(e,h.critThreshold),children:u(e,h.critThreshold)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.oxy,children:e.oxy}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.toxin,children:e.tox}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.burn,children:e.fire}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.brute,children:e.brute}),")"]}):null]}),(0,o.createComponentVNode)(2,l.TableCell,{children:3===e.sensor_type?h.isAI?(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return m("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+")":"Not Available"})]},e.name)}))]})]})},h=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},f=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_command}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},C=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_security}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(0,a.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?"square":"circle"},m=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?10:6},h=function(e,t){return e.is_command&&i.isBS||e.is_security&&i.isBP?e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"violet":p(e,t)};return(0,o.createComponentVNode)(2,c.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,c.NanoMap,{onZoom:function(e){return d(e)},children:i.crewmembers.filter((function(e){return 3===e.sensor_type})).map((function(e){return(0,o.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:u(e),size:m(e),tooltip:e.name+" ("+e.assignment+")",color:h(e,i.critThreshold),onClick:function(){i.isAI&&r("track",{track:e.ref})}},e.ref)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(533),i=n(1),a=n(2),c=n(3),l=[{label:"\u0410\u0441\u0444\u0438\u043a\u0441\u0438\u044f",type:"oxyLoss"},{label:"\u0418\u043d\u0442\u043e\u043a\u0441\u0438\u043a\u0430\u0446\u0438\u044f",type:"toxLoss"},{label:"\u0420\u0430\u043d\u044b",type:"bruteLoss"},{label:"\u041e\u0436\u043e\u0433\u0438",type:"fireLoss"}],s=[["good","\u0412 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f"],["bad","\u0422\u0420\u0423\u041f"]];t.Cryo=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,d=c.isOperating,p=c.hasOccupant,m=c.occupant,h=void 0===m?[]:m,f=c.cellTemperature,C=c.cellTemperatureStatus,g=c.isBeakerLoaded,N=c.auto_eject_healthy,b=c.auto_eject_dead;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return r("ejectOccupant")},disabled:!p,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c"}),children:p?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",children:h.name||"\u0418\u043c\u044f \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:h.health,max:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.health)})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:s[h.stat][0],children:s[h.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.bodyTemperature)}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"\u041f\u0430\u0446\u0438\u0435\u043d\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d."]})})}),(0,o.createComponentVNode)(2,a.Section,{title:"\u041a\u0440\u0438\u043e\u043a\u0430\u043f\u0441\u0443\u043b\u0430",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("ejectBeaker")},disabled:!g,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0451\u043c\u043a\u043e\u0441\u0442\u044c"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0438\u0442\u0430\u043d\u0438\u0435",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return r(d?"switchOff":"switchOn")},selected:d,children:d?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:C,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return r(N?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:N?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0451\u0440\u0442\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return r(b?"auto_eject_dead_off":"auto_eject_dead_on")},children:b?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})})]})})],4)},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.isBeakerLoaded,s=c.beakerLabel,d=c.beakerVolume;return l?(0,o.createFragment)([s?"\xab"+s+"\xbb":(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430"}),(0,o.createComponentVNode)(2,a.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d,format:function(e){var t=Math.round(e);return(0,r.declensionRu)(t,"\u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u0438\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c")+" "+t+" "+(0,r.declensionRu)(t,"\u0435\u0434\u0438\u043d\u0438\u0446\u0430","\u0435\u0434\u0438\u043d\u0438\u0446\u044b","\u0435\u0434\u0438\u043d\u0438\u0446")}}):"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u0430"})],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430"})}},function(e,t,n){"use strict";t.__esModule=!0,t.declensionRu=void 0;t.declensionRu=function(e,t,n,o){var r=e%100;if(r>=10&&r<=20)return o;var i=r%10;return 1===i?t:i>=2&&i<=4?n:o}},function(e,t,n){"use strict";t.__esModule=!0,t.CryopodConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18);t.CryopodConsole=function(e,t){var n=(0,r.useBackend)(t).data,c=n.account_name,d=n.allow_items;return(0,o.createComponentVNode)(2,a.Window,{title:"Cryopod Console",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Hello, "+(c||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,o.createComponentVNode)(2,l),!!d&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t).data.frozen_crew;return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Crew",children:n.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:e.rank},t)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored crew!"})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data.frozen_items,s=function(e){var t=e.toString();return t.startsWith("the ")&&(t=t.slice(4,t.length)),(0,c.toTitleCase)(t)};return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l.length,content:"Drop All Items",color:"red",onClick:function(){return a("all_items")}}),children:l.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:s(e.name),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){return a("one_item",{item:e.uid})}})},e)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored items!"})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(51),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],d=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,r.useBackend)(t),l=(i.act,i.data),s=l.irradiating,d=l.dnaBlockSize,m=l.occupant;return t.dnaBlockSize=d,t.isDNAInvalid=!m.isViableSubject||!m.uniqueIdentity||!m.structuralEnzymes,s&&(n=(0,o.createComponentVNode)(2,V,{duration:s})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal),n,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.locked,d=c.hasOccupant,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,selected:s,icon:s?"toggle-on":"toggle-off",content:s?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d||s,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},p=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data,d=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,f)],4):"se"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f)],4):"buffer"===d?n=(0,o.createComponentVNode)(2,C):"rejuvenators"===d&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:d===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedUIBlock,s=c.selectedUISubBlock,d=c.selectedUITarget,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:d,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedSEBlock,s=c.selectedSESubBlock,d=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:d.structuralEnzymes,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.radiationIntensity,s=c.radiationDuration;return(0,o.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:s,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},C=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,o.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,N)],4)},g=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=e.id,s=e.name,d=e.buffer,u=c.isInjectorReady,p=s+(d.data?" - "+d.label:"");return(0,o.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,i.Section,{title:p,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!d.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!d.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:d.owner||(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!d.data&&(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.hasDisk,s=c.disk;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!l||!s.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?s.data?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:s.label?s.label:"No label"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner?s.owner:(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},b=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.isBeakerLoaded,s=c.beakerVolume,u=c.beakerLabel;return(0,o.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[d.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:e>s,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,o.createComponentVNode)(2,i.Button,{disabled:s<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:s})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:u||"No label"}),s?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[s," unit",1===s?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},V=function(e,t){return(0,o.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.dnaString),l=e.selectedBlock,s=e.selectedSubblock,d=e.blockSize,u=e.action,p=c.split(""),m=[],h=function(e){for(var t=e/d+1,n=[],r=function(r){var c=r+1;n.push((0,o.createComponentVNode)(2,i.Button,{selected:l===t&&s===c,content:p[e+r],mb:"0",onClick:function(){return a(u,{block:t,subblock:c})}}))},c=0;c0?"Yes":"No",selected:l.com>0,onClick:function(){return c("toggle_com")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Security",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.sec===e,content:e,onClick:function(){return c("set_sec",{set_sec:e})}},"sec"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Medical",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.med===e,content:e,onClick:function(){return c("set_med",{set_med:e})}},"med"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engineering",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.eng===e,content:e,onClick:function(){return c("set_eng",{set_eng:e})}},"eng"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Paranormal",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.par===e,content:e,onClick:function(){return c("set_par",{set_par:e})}},"par"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitor",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.jan===e,content:e,onClick:function(){return c("set_jan",{set_jan:e})}},"jan"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cyborg",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.cyb===e,content:e,onClick:function(){return c("set_cyb",{set_cyb:e})}},"cyb"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Slots",children:(0,o.createComponentVNode)(2,i.Box,{color:l.total>l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispatch",children:(0,o.createComponentVNode)(2,i.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){return c("dispatch_ert")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Electropack=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Electropack=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=s.power,u=s.code,p=s.frequency,m=s.minFrequency,h=s.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:h/10,value:p/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onChange:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(e,t){return l("code",{code:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EvolutionMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.EvolutionMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"changeling",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.can_respec;return(0,o.createComponentVNode)(2,i.Section,{title:"Evolution Points",height:5.5,children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{ml:2.5,disabled:!s,content:"Readapt",icon:"sync",onClick:function(){return a("readapt")}}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.ability_list,d=c.purchased_abilities,u=c.view_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Abilities",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){return a("set_view_mode",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){return a("set_view_mode",{mode:1})}})],4),children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{ml:.5,color:"#dedede",children:e.name}),d.includes(e.power_path)&&(0,o.createComponentVNode)(2,i.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,o.createComponentVNode)(2,i.Box,{as:"span",color:"label",children:["Cost: "," "]}),(0,o.createComponentVNode)(2,i.Box,{as:"span",bold:!0,color:"#1b945c",children:e.cost})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,o.createComponentVNode)(2,i.Button,{mr:.5,disabled:e.cost>l||d.includes(e.power_path),content:"Evolve",onClick:function(){return a("purchase",{power_path:e.power_path})}})})]}),!!u&&(0,o.createComponentVNode)(2,i.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:e.description+" "+e.helptext})]},t)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExosuitFabricator=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(2),l=n(102),s=n(3);var d={bananium:"clown",tranquillite:"mime"};t.ExosuitFabricator=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building;return(0,o.createComponentVNode)(2,s.Window,{theme:r.ui_theme,children:(0,o.createComponentVNode)(2,s.Window.Content,{className:"Exofab",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",width:"70%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"100%",children:(0,o.createComponentVNode)(2,p)}),i&&(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,m)})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,h)})]})})]})})})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.materials,s=i.capacity,d=Object.values(l).reduce((function(e,t){return e+t}),0);return(0,o.createComponentVNode)(2,c.Section,{title:"Materials",className:"Exofab__materials",buttons:(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.25rem",children:[(d/s*100).toPrecision(3),"% full"]}),children:["$metal","$glass","$silver","$gold","$uranium","$titanium","$plasma","$diamond","$bluespace","$bananium","$tranquillite","$plastic"].map((function(e){return(0,o.createComponentVNode)(2,f,{id:e,bold:"$metal"===e||"$glass"===e,onClick:function(){return r("withdraw",{id:e})}},e)}))})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.curCategory,d=l.categories,u=l.designs,p=l.syncing,m=(0,a.useLocalState)(t,"searchText",""),h=m[0],f=m[1],g=(0,i.createSearch)(h,(function(e){return e.name})),N=u.filter(g);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__designs",title:(0,o.createComponentVNode)(2,c.Dropdown,{selected:s,options:d,onSelected:function(e){return r("category",{cat:e})},width:"150px"}),height:"100%",buttons:(0,o.createComponentVNode)(2,c.Box,{mt:"-18px",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Queue all",onClick:function(){return r("queueall")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:p,iconSpin:p,icon:"sync-alt",content:p?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){return r("sync")}})]}),children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(e,t){return f(t)}}),N.map((function(e){return(0,o.createComponentVNode)(2,C,{design:e},e.id)})),0===N.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No designs found."})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building,s=r.buildStart,d=r.buildEnd,u=r.worldTime;return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__building",stretchContents:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar.Countdown,{start:s,current:u,end:d,bold:!0,children:[(0,o.createComponentVNode)(2,c.Box,{float:"left",children:(0,o.createComponentVNode)(2,c.Icon,{name:"cog",spin:!0})}),"Building ",i,"\xa0(",(0,o.createComponentVNode)(2,l.Countdown,{current:u,timeLeft:d-u,format:function(e,t){return t.substr(3)}}),")"]})})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.queue,s=i.processingQueue,d=Object.entries(i.queueDeficit).filter((function(e){return e[1]<0})),u=l.reduce((function(e,t){return e+t.time}),0);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__queue",title:"Queue",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:"Process",onClick:function(){return r("process")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:0===l.length,icon:"eraser",content:"Clear",onClick:function(){return r("unqueueall")}})]}),children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",direction:"column",children:0===l.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"The queue is empty."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--queue",grow:"1",overflow:"auto",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{color:e.notEnough&&"bad",children:[t+1,". ",e.name,t>0&&(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-up",onClick:function(){return r("queueswap",{from:t+1,to:t})}}),t0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--time",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Processing time:",(0,o.createComponentVNode)(2,c.Icon,{name:"clock",mx:"0.5rem"}),(0,o.createComponentVNode)(2,c.Box,{display:"inline",bold:!0,children:new Date(u/10*1e3).toISOString().substr(14,5)})]}),Object.keys(d).length>0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--deficit",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Lacking materials to complete:",d.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:-e[1],lineDisplay:!0})},e[0])}))]})],0)})})},f=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data),l=e.id,s=e.amount,u=e.lineDisplay,p=e.onClick,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["id","amount","lineDisplay","onClick"]),h=l.replace("$",""),f=i.materials[l]||0,C=s||f;if(!(C<=0&&"metal"!==h&&"glass"!==h)){var g=s&&s>f;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Flex,Object.assign({className:(0,r.classes)(["Exofab__material",u&&"Exofab__material--line"])},m,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,c.Button,{onClick:p,children:(0,o.createComponentVNode)(2,c.Box,{as:"img",src:"sheet-"+(d[h]||h)+".png"})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:u?(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",color:g&&"bad",children:C.toLocaleString("en-US")}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--name",children:h}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",children:[C.toLocaleString("en-US")," cm\xb3 (",Math.round(C/2e3*10)/10," sheets)"]})],4)})]})))}},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=e.design;return(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:l.notEnough||i.building,icon:"cog",content:l.name,onClick:function(){return r("build",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus-circle",onClick:function(){return r("queue",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--cost",children:Object.entries(l.cost).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:e[1],lineDisplay:!0})},e[0])}))}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--time",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"clock"}),l.time>0?(0,o.createFragment)([l.time/10,(0,o.createTextVNode)(" seconds")],0):"Instant"]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExternalAirlockController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ExternalAirlockController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.chamber_pressure,p=(d.exterior_status,d.interior_status),m=d.processing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Chamber Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:(n=u,c="good",n<80?c="bad":n<95||n>110?c="average":n>120&&(c="bad"),c),value:u,minValue:0,maxValue:1013,children:[u," kPa"]})})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Abort",icon:"ban",color:"red",disabled:!m,onClick:function(){return s("abort")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FaxMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.FaxMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){return c("scan")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Authorize",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:!l.scan_name&&!l.authenticated,content:l.authenticated?"Log Out":"Log In",onClick:function(){return c("auth")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fax Menu",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:l.network}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Document",children:[(0,o.createComponentVNode)(2,i.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){return c("paper")}}),!!l.paper&&(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){return c("dept")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Action",children:(0,o.createComponentVNode)(2,i.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){return c("send")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FloorPainter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data,e.image),a=e.isSelected,c=e.onSelect;return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"border-style":a?"solid":"none","border-width":"2px","border-color":"orange",padding:a?"2px":"4px"},onClick:c})};t.FloorPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.availableStyles,u=s.selectedStyle,p=s.selectedDir,m=s.directionsPreview,h=s.allStylesPreview;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Decal setup",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",onClick:function(){return l("cycle_style",{offset:-1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{options:d,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:"true",onSelected:function(e){return l("select_style",{style:e})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",onClick:function(){return l("cycle_style",{offset:1})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",mb:"5px",children:(0,o.createComponentVNode)(2,i.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,c,{image:h[e],isSelected:u===e,onSelect:function(){return l("select_style",{style:e})}})},"{style}")}))})}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Direction",children:(0,o.createComponentVNode)(2,i.Table,{style:{display:"inline"},children:["north","","south"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[e+"west",e,e+"east"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:""===e?(0,o.createComponentVNode)(2,i.Icon,{name:"arrows-alt",size:3}):(0,o.createComponentVNode)(2,c,{image:m[e],isSelected:e===p,onSelect:function(){return l("select_direction",{direction:e})}})},e)}))},e)}))})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GPS=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=function(e){return e?"("+e.join(", ")+")":"ERROR"};t.GPS=function(e,t){var n=(0,i.useBackend)(t).data,r=n.emped,l=n.active,m=n.area,h=n.position,f=n.saved;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:r?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,s,{emp:!0})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,d)}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{area:m,position:h})}),f&&(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{title:"Saved Position",position:f})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,p,{height:"100%"})})],0):(0,o.createComponentVNode)(2,s)],0)})})})};var s=function(e,t){var n=e.emp;return(0,o.createComponentVNode)(2,a.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,a.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:n?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),n?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.active,s=c.tag,d=c.same_z,u=(0,i.useLocalState)(t,"newTag",s),p=u[0],m=u[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tag",children:[(0,o.createComponentVNode)(2,a.Input,{width:"5rem",value:s,onEnter:function(){return r("tag",{newtag:p})},onInput:function(e,t){return m(t)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:s===p,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return r("tag",{newtag:p})},children:(0,o.createComponentVNode)(2,a.Icon,{name:"pen"})})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"compress":"expand",content:d?"Local Sector":"Global",onClick:function(){return r("same_z")}})})]})})},u=function(e,t){var n=e.title,r=e.area,i=e.position;return(0,o.createComponentVNode)(2,a.Section,{title:n||"Position",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",children:[r&&(0,o.createFragment)([r,(0,o.createVNode)(1,"br")],0),l(i)]})})},p=function(e,t){var n=(0,i.useBackend)(t).data,c=n.position,s=n.signals,d=n.upgraded;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Signals",overflow:"auto"},e,{children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return Object.assign({},e,{},function(e,t,n){if(e&&t){if(e[2]!==t[2]||1!==n)return null;var o=Math.atan2(t[1]-e[1],t[0]-e[0]),i=Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2));return{angle:(0,r.rad2deg)(o),distance:i}}}(c,e.position,d))})).map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:t%2==0&&"rgba(255, 255, 255, 0.05)",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:e.tag}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",color:"grey",children:e.area}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:e.distance!==undefined&&(0,o.createComponentVNode)(2,a.Box,{opacity:Math.max(1-Math.min(e.distance,100)/100,.5),children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.distance>0?"arrow-right":"circle",rotation:-e.angle}),"\xa0",Math.floor(e.distance)+"m"]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:l(e.position)})]},t)}))})})))}},function(e,t,n){"use strict";t.__esModule=!0,t.GasAnalyzer=t.GasAnalyzerHistory=t.GasAnalyzerContent=void 0;var o=n(0),r=n(1),i=n(549),a=n(2),c=n(3),l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.gasmixes,d=l.autoUpdating;return(0,o.createComponentVNode)(2,a.Section,{title:s[0].name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",onClick:function(){return c("autoscantoggle")},tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:(0,o.createComponentVNode)(2,i.GasmixParser)},s[0])};t.GasAnalyzerContent=l;var s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.historyGasmixes,s=c.historyViewMode,d=c.historyIndex;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Scan History",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){return i("clearhistory")},textAlign:"center",disabled:0===l.length}),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"50%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"kPa",onClick:function(){return i("modekpa")},textAlign:"center",selected:"kpa"===s})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"mol",onClick:function(){return i("modemol")},textAlign:"center",selected:"mol"===s})})]})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{content:t+1+". "+("mol"===s?e[0].total_moles.toFixed(2):e[0].pressure.toFixed(2)),onClick:function(){return i("input",{target:t+1})},textAlign:"left",selected:t+1===d,fluid:!0})},e[0])}))})]})};t.GasAnalyzerHistory=s;t.GasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),2,{style:{float:"left",width:"67%"}}),(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{width:"160px",children:(0,o.createComponentVNode)(2,s)}),2,{style:{float:"right",width:"33%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasmixParser=void 0;var o=n(0),r=n(1),i=n(2);t.GasmixParser=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.gasmixes);return a[0].total_moles?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Moles",children:(a[0].total_moles?a[0].total_moles:"-")+" mol"}),a[0].oxygen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:a[0].oxygen.toFixed(2)+" mol ("+100*(a[0].oxygen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].nitrogen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:a[0].nitrogen.toFixed(2)+" mol ("+100*(a[0].nitrogen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].carbon_dioxide?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:a[0].carbon_dioxide.toFixed(2)+" mol ("+100*(a[0].carbon_dioxide/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].toxins?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:a[0].toxins.toFixed(2)+" mol ("+100*(a[0].toxins/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].sleeping_agent?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrous Oxide",children:a[0].sleeping_agent.toFixed(2)+" mol ("+100*(a[0].sleeping_agent/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].agent_b?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent B",children:a[0].agent_b.toFixed(2)+" mol ("+100*(a[0].agent_b/a[0].total_moles).toFixed(2)+" %)"}):"",(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(a[0].total_moles?(a[0].temperature-273.15).toFixed(2):"-")+" \xb0C ("+(a[0].total_moles?a[0].temperature.toFixed(2):"-")+" K)"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Volume",children:(a[0].total_moles?a[0].volume:"-")+" L"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(a[0].total_moles?a[0].pressure.toFixed(2):"-")+" kPa"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Heat Capacity",children:a[0].heat_capacity+" / K"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Thermal Energy",children:a[0].thermal_energy})]}):(0,o.createComponentVNode)(2,i.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasFreezer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GasFreezer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.temperature,p=l.temperatureCelsius,m=l.min,h=l.max,f=l.target,C=l.targetCelsius,g=(u-m)/(h-m);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s?"power-off":"times",content:s?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b",selected:s,onClick:function(){return c("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435",children:[d," \u043a\u041f\u0430"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:g,ranges:{blue:[-Infinity,.5],red:[.5,Infinity]},children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:[g<.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"blue",ml:1,children:[u," \xb0K (",p," \xb0C)"]}),g>=.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"red",ml:1,children:[u," \xb0K (",p," \xb0C)"]})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0435\u043b\u0435\u0432\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",justify:"end",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:(f-m)/(h-m),children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:[f," \xb0K (",C," \xb0C)"]})})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",title:"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:m})}}),(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"\xb0K",minValue:Math.round(m),maxValue:Math.round(h),step:5,stepPixelSize:3,onDrag:function(e,t){return c("temp",{temp:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:h})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GenericCrewManifest=void 0;var o=n(0),r=n(2),i=n(3),a=n(144);t.GenericCrewManifest=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{noTopPadding:!0,children:(0,o.createComponentVNode)(2,a.CrewManifest)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GhostHudPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GhostHudPanel=function(e,t){var n=(0,r.useBackend)(t).data,l=n.security,s=n.medical,d=n.diagnostic,u=n.ahud;return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,c,{label:"Medical",type:"medical",is_active:s}),(0,o.createComponentVNode)(2,c,{label:"Security",type:"security",is_active:l}),(0,o.createComponentVNode)(2,c,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,c,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t).act,a=e.label,c=e.type,l=void 0===c?null:c,s=e.is_active,d=e.act_on,u=void 0===d?"hud_on":d,p=e.act_off,m=void 0===p?"hud_off":p;return(0,o.createComponentVNode)(2,i.Flex,{pt:.3,color:"label",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{pl:.5,align:"center",width:"80%",children:a}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{mr:.6,content:s?"On":"Off",icon:s?"toggle-on":"toggle-off",selected:s,onClick:function(){return n(s?m:u,{hud_type:l})}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.HandheldChemDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=[1,5,10,20,30,50];t.HandheldChemDispenser=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.amount,d=l.energy,u=l.maxEnergy,p=l.mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d,minValue:0,maxValue:u,ranges:{good:[.5*u,Infinity],average:[.25*u,.5*u],bad:[-Infinity,.25*u]},children:[d," / ",u," Units"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:"1",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",width:"14%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:s===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"dispense"===p,content:"Dispense",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"dispense"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"remove"===p,content:"Remove",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"remove"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"isolate"===p,content:"Isolate",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"isolate"})}})]})})]})})},s=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.chemicals,s=void 0===l?[]:l,d=c.current_reagent,u=[],p=0;p<(s.length+1)%3;p++)u.push(!0);return(0,o.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Selector":"Chemical Selector",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px",width:"30%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:d===e.id,width:"100%",height:"100%",align:"flex-start",content:e.title,onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),u.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Instrument=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Instrument=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)]})]})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act;if(n.data.help)return(0,o.createComponentVNode)(2,a.Modal,{maxWidth:"75%",height:.75*window.innerHeight+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,o.createVNode)(1,"h1",null,"Making a Song",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Type:"}),(0,o.createTextVNode)("\xa0Whether the instrument is legacy or synthesized."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Current:"}),(0,o.createTextVNode)("\xa0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,o.createTextVNode)("\xa0The pitch to apply to all notes of the song.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,o.createTextVNode)("\xa0How a played note fades out."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,o.createTextVNode)("\xa0The volume threshold at which a note is fully stopped.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,o.createTextVNode)("\xa0Whether the last note should be sustained indefinitely.")],4)],4),(0,o.createComponentVNode)(2,a.Button,{color:"grey",content:"Close",onClick:function(){return r("help")}})]})})})},s=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.lines,u=l.playing,p=l.repeat,m=l.maxRepeats,h=l.tempo,f=l.minTempo,C=l.maxTempo,g=l.tickLag,N=l.volume,b=l.minVolume,V=l.maxVolume,v=l.ready;return(0,o.createComponentVNode)(2,a.Section,{title:"Instrument",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"info",content:"Help",onClick:function(){return c("help")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"file",content:"New",onClick:function(){return c("newsong")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Import",onClick:function(){return c("import")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Playback",children:[(0,o.createComponentVNode)(2,a.Button,{selected:u,disabled:0===s.length||p<0,icon:"play",content:"Play",onClick:function(){return c("play")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"stop",content:"Stop",onClick:function(){return c("stop")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Repeat",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0",maxValue:m,value:p,stepPixelSize:"59",onChange:function(e,t){return c("repeat",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tempo",children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:h>=C,content:"-",as:"span",mr:"0.5rem",onClick:function(){return c("tempo",{"new":h+g})}}),(0,r.round)(600/h)," BPM",(0,o.createComponentVNode)(2,a.Button,{disabled:h<=f,content:"+",as:"span",ml:"0.5rem",onClick:function(){return c("tempo",{"new":h-g})}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:b,maxValue:V,value:N,stepPixelSize:"6",onDrag:function(e,t){return c("setvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:v?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Ready"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,o.createComponentVNode)(2,d)]})},d=function(e,t){var n,c,l=(0,i.useBackend)(t),s=l.act,d=l.data,u=d.allowedInstrumentNames,p=d.instrumentLoaded,m=d.instrument,h=d.canNoteShift,f=d.noteShift,C=d.noteShiftMin,g=d.noteShiftMax,N=d.sustainMode,b=d.sustainLinearDuration,V=d.sustainExponentialDropoff,v=d.legacy,x=d.sustainDropoffVolume,y=d.sustainHeldNote;return 1===N?(n="Linear",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"0.1",maxValue:"5",value:b,step:"0.5",stepPixelSize:"85",format:function(e){return(0,r.round)(100*e)/100+" seconds"},onChange:function(e,t){return s("setlinearfalloff",{"new":t/10})}})):2===N&&(n="Exponential",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"1.025",maxValue:"10",value:V,step:"0.01",format:function(e){return(0,r.round)(1e3*e)/1e3+"% per decisecond"},onChange:function(e,t){return s("setexpfalloff",{"new":t})}})),u.sort(),(0,o.createComponentVNode)(2,a.Box,{my:-1,children:(0,o.createComponentVNode)(2,a.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,o.createComponentVNode)(2,a.Section,{mt:-1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:v?"Legacy":"Synthesized"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current",children:p?(0,o.createComponentVNode)(2,a.Dropdown,{options:u,selected:m,width:"40%",onSelected:function(e){return s("switchinstrument",{name:e})}}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None!"})}),!(v||!h)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:C,maxValue:g,value:f,stepPixelSize:"2",format:function(e){return e+" keys / "+(0,r.round)(e/12*100)/100+" octaves"},onChange:function(e,t){return s("setnoteshift",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain Mode",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:["Linear","Exponential"],selected:n,onSelected:function(e){return s("setsustainmode",{"new":e})}}),c]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0.01",maxValue:"100",value:x,stepPixelSize:"6",onChange:function(e,t){return s("setdropoffvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,o.createComponentVNode)(2,a.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"Yes":"No",onClick:function(){return s("togglesustainhold")}})})],4)]}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){return s("reset")}})]})})})},u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.playing,s=c.lines,d=c.editing;return(0,o.createComponentVNode)(2,a.Section,{title:"Editor",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"plus",content:"Add Line",onClick:function(){return r("newline",{line:s.length+1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"chevron-up":"chevron-down",onClick:function(){return r("edit")}})],4),children:!!d&&(s.length>0?(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t+1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"pen",onClick:function(){return r("modifyline",{line:t+1})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"trash",onClick:function(){return r("deleteline",{line:t+1})}})],4),children:e},t)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Song is empty."}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ItemPixelShift=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ItemPixelShift=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.pixel_x,d=l.pixel_y,u=l.max_shift_x,p=l.max_shift_y,m=l.random_drop_on;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"X-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:s===-u,onClick:function(){return c("shift_left")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-u,maxValue:u,onChange:function(e,t){return c("custom_x",{pixel_x:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:s===u,onClick:function(){return c("shift_right")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Y-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:d===p,onClick:function(){return c("shift_up")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:d,minValue:-p,maxValue:p,onChange:function(e,t){return c("custom_y",{pixel_y:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:d===-p,onClick:function(){return c("shift_down")}})]})]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){return c("move_to_top")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return c("toggle")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=(0,o.createComponentVNode)(2,i.Section,{title:"Keycard Authentication Device",children:(0,o.createComponentVNode)(2,i.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(l.swiping||l.busy){var d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return l.hasSwiped||l.ertreason||"Emergency Response Team"!==l.event?l.hasConfirm?d=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Waiting for second person to confirm..."})):d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Fill out the reason for your ERT request."}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,"Emergency Response Team"===l.event&&(0,o.createComponentVNode)(2,i.Section,{title:"Reason for ERT Call",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){return c("ert")}})})}),(0,o.createComponentVNode)(2,i.Section,{title:l.event,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){return c("reset")}}),children:d})]})})}return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,(0,o.createComponentVNode)(2,i.Section,{title:"Choose Action",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Red Alert",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){return c("triggerevent",{triggerevent:"Red Alert"})},content:"Red Alert"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ERT",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",onClick:function(){return c("triggerevent",{triggerevent:"Emergency Response Team"})},content:"Call ERT"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},content:"Revoke"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},content:"Revoke"})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.LaborClaimConsole=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.can_go_home,s=c.emagged,d=c.id_inserted,u=c.id_name,p=c.id_points,m=c.id_goal,h=c.unclaimed_points,f=s?0:1,C=s?"ERR0R":l?"Completed!":"Insufficient";return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:!!d&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/m,ranges:{good:[f,Infinity],bad:[-Infinity,f]},children:p+" / "+m+" "+C})||!!s&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Move shuttle",disabled:!l,onClick:function(){return r("move_shuttle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unclaimed points",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!d||!h,onClick:function(){return r("claim_points")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:d?u:"-------------",onClick:function(){return r("handle_id")}})})]})})},s=function(e,t){var n=(0,i.useBackend)(t).data.ores;return(0,o.createComponentVNode)(2,a.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LawManager=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.LawManager=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.isAdmin,p=d.isSlaved,m=d.isMalf,h=d.isAIMalf,f=d.view;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!(!u||!p)&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["This unit is slaved to ",p,"."]}),!(!m&&!h)&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Law Management",selected:0===f,onClick:function(){return s("set_view",{set_view:0})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Lawsets",selected:1===f,onClick:function(){return s("set_view",{set_view:1})}})]}),!(0!==f)&&(0,o.createComponentVNode)(2,c),!(1!==f)&&(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_zeroth_laws,d=c.zeroth_laws,u=c.has_ion_laws,p=c.ion_laws,m=c.ion_law_nr,h=c.has_inherent_laws,f=c.inherent_laws,C=c.has_supplied_laws,g=c.supplied_laws,N=c.channels,b=c.channel,V=c.isMalf,v=c.isAdmin,x=c.zeroth_law,y=c.ion_law,k=c.inherent_law,w=c.supplied_law,_=c.supplied_law_position;return(0,o.createFragment)([!!l&&(0,o.createComponentVNode)(2,s,{title:"ERR_NULL_VALUE",laws:d,ctx:t}),!!u&&(0,o.createComponentVNode)(2,s,{title:m,laws:p,ctx:t}),!!h&&(0,o.createComponentVNode)(2,s,{title:"Inherent",laws:f,ctx:t}),!!C&&(0,o.createComponentVNode)(2,s,{title:"Supplied",laws:g,ctx:t}),(0,o.createComponentVNode)(2,i.Section,{title:"Statement Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Statement Channel",children:N.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.channel,selected:e.channel===b,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,i.Button,{content:"State Laws",onClick:function(){return a("state_laws")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,i.Button,{content:"Notify",onClick:function(){return a("notify_laws")}})})]})}),!!V&&(0,o.createComponentVNode)(2,i.Section,{title:"Add Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Type"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"60%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Actions"})]}),!(!v||l)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Zero"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:x}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_zeroth_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_zeroth_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ion"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:y}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_ion_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_ion_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:k}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_inherent_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_inherent_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:w}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:_,onClick:function(){return a("change_supplied_law_position")}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_supplied_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_supplied_law")}})]})]})]})})],0)},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.law_sets;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name+" - "+e.header,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Load Laws",icon:"download",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.laws.has_ion_laws>0&&e.laws.ion_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_zeroth_laws>0&&e.laws.zeroth_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_inherent_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_supplied_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)}))]})},e.name)}))})},s=function(e,t){var n=(0,r.useBackend)(e.ctx),a=n.act,c=n.data.isMalf;return(0,o.createComponentVNode)(2,i.Section,{title:e.title+" Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"69%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"21%",children:"State?"})]}),e.laws.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.index}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.law}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:e.state?"Yes":"No",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:e.state?0:1})}}),!!c&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("edit_law",{edit_law:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){return a("delete_law",{delete_law:e.ref})}})],4)]})]},e.law)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.MechBayConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,s=l&&l.mech,d=s&&s.cell,u=s&&s.name;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||!d&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechaControlConsole=void 0;var o=n(0),r=(n(15),n(1)),i=n(2),a=n(3),c=n(18);t.MechaControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.beacons,u=s.stored_data;return u.length?(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Log",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:["(",e.time,")"]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,c.decodeHtmlEntities)(e.message)})]},e.time)}))})})}):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.uid})},children:"Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.uid})},children:"View Log"}),(0,o.createComponentVNode)(2,i.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.uid})}})],4),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,c.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mecha beacons found."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MedicalRecords=void 0;var o=n(0),r=n(1),i=n(2),a=n(51),c=n(3),l=n(140),s=n(141),d=n(145),u={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},p=function(e,t){(0,a.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.MedicalRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,p=u.loginState,C=u.screen;return p.logged_in?(2===C?n=(0,o.createComponentVNode)(2,m):3===C?n=(0,o.createComponentVNode)(2,h):4===C?n=(0,o.createComponentVNode)(2,f):5===C?n=(0,o.createComponentVNode)(2,N):6===C&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal),(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,d.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,s.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return a("search",{t1:t})}}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}}),(0,o.createVNode)(1,"br")],4,t)}))})],4)},h=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all")}})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.medical,s=c.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,i.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,g)}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"spinner":"print",disabled:s,iconSpin:!!s,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,i.Box,{height:"20px",display:"inline-block",children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return p(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"right",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"General records lost!"})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,prewrap:!0,children:[e.value,(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return p(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,i.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,i.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return c("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.virus;return c.sort((function(e,t){return e.name>t.name?1:-1})),c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,t)}))},b=function(e,t){var n=(0,r.useBackend)(t).data.medbots;return 0===n.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},V=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.screen;return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,o.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:u[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.MiningVendor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);var l={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.MiningVendor=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.has_id,s=c.id;return(0,o.createComponentVNode)(2,a.NoticeBox,{success:l,children:l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return r("logoff")}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),s=c.has_id,d=c.id,u=c.items,m=(0,i.useLocalState)(t,"search",""),h=m[0],f=(m[1],(0,i.useLocalState)(t,"sort","Alphabetical")),C=f[0],g=(f[1],(0,i.useLocalState)(t,"descending",!1)),N=g[0],b=(g[1],(0,r.createSearch)(h,(function(e){return e[0]}))),V=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(b).map((function(e){return e[1].affordable=s&&d.points>=e[1].price,e[1]})).sort(l[C]);if(0!==n.length)return N&&(n=n.reverse()),V=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:V?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),s=(c[0],c[1]),d=(0,i.useLocalState)(t,"descending",!1),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return s(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return p(!u)}})})]})})},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=e.title,s=e.items,d=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},d,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!c.has_id||c.id.points=0||(r[n]=e[n]);return r}t.Multitool=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,p=l.multitoolMenuId,v=l.buffer,x=l.bufferName,y=l.bufferTag,k=l.canBufferHaveTag,w=l.isAttachedAlreadyInBuffer,_=l.attachedName,B=!("default_no_machine"===p);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Configuration menu",py:.3,children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:_,noMachine:"default_no_machine"===p,noMachineText:"No machine attached"}),function(e){switch(e){case"default_no_machine":case"no_options":return(0,o.createComponentVNode)(2,h);case"access_denied":return(0,o.createComponentVNode)(2,f);case"tag_only":return(0,o.createComponentVNode)(2,C);case"frequency_and_tag":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C)],4);case"air_sensor":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,N)],4);case"general_air_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,b)],4);case"large_tank_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,b)],4);default:return"WE SHOULDN'T BE HERE!"}}(p)]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Divider)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:w?"Added":"Add machine",icon:"save",disabled:!B||w,onClick:function(){return r("buffer_add")}}),(0,o.createComponentVNode)(2,a.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!v,onClick:function(){return r("buffer_flush")}})],4),children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:x,noMachine:!v,noMachineElem:(0,o.createComponentVNode)(2,d,{text:""})}),!!v&&(0,o.createComponentVNode)(2,m,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:k?(0,o.createComponentVNode)(2,u,{text:y,defaultText:"",color:"silver"}):(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})};var s=function(e,t){var n=e.iconName,r=e.machineName,i=e.noMachine,c=e.noMachineText,l=e.noMachineElem,s=i?c:r||"Unknown machine",d=s===c,u=s===c||"Unknown machine"===s;return i&&l?l:(0,o.createComponentVNode)(2,a.Flex,{mt:.1,mb:1.9,children:[!i&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{mr:1,size:1.1,name:n})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,o.createComponentVNode)(2,a.Box,{as:"span",wordWrap:"break-word",color:d?"label":"silver",fontSize:"1.1rem",bold:!0,italic:u,children:s})})]})},d=function(e,t){var n=e.text;return(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:n})},u=function(e,t){var n=e.text,r=e.defaultText,i=l(e,["text","defaultText"]);return n?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"span",wordWrap:"break-word"},i,{children:n}))):(0,o.createComponentVNode)(2,d,{text:r})},p=function(e,t){var n=e.noConfirm,r=void 0!==n&&n,i=l(e,["noConfirm"]);return r?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({},i))):(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button.Confirm,Object.assign({},i)))},m=function(e,t){var n=e.label,r=e.wrapContent,i=e.noWrapContent,c=e.compactLabel,s=void 0!==c&&c,d=l(e,["label","wrapContent","noWrapContent","compactLabel"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},d,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:s?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:s?"auto":0,maxWidth:s?"none":20,color:"label",nowrap:!0,children:n}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:r}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:.1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:i})]})))},h=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},f=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.attachedTag;return(0,o.createComponentVNode)(2,m,{label:"ID tag",wrapContent:(0,o.createComponentVNode)(2,u,{text:c,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Set",icon:"wrench",onClick:function(){return r("set_tag")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!c,onClick:function(){return r("clear_tag")}})],4)})},g=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.frequency,d=l.minFrequency,u=l.maxFrequency,p=l.canReset;return(0,o.createComponentVNode)(2,m,{label:"Frequency",noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},onChange:function(e,t){return c("set_frequency",{frequency:10*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:!p,tooltip:"Reset",onClick:function(){return c("reset_frequency")}})],4)})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.bolts,s=[{bitflag:1,checked:c.pressureCheck,label:"Monitor pressure"},{bitflag:2,checked:c.temperatureCheck,label:"Monitor temperature"},{bitflag:4,checked:c.oxygenCheck,label:"Monitor oxygen concentration"},{bitflag:8,checked:c.toxinsCheck,label:"Monitor plasma concentration"},{bitflag:16,checked:c.nitrogenCheck,label:"Monitor nitrogen concentration"},{bitflag:32,checked:c.carbonDioxideCheck,label:"Monitor carbon dioxide concentration"}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Floor bolts",noWrapContent:(0,o.createComponentVNode)(2,a.Button,{icon:l?"check":"times",selected:l,content:l?"YES":"NO",onClick:function(){return r("toggle_bolts")}})}),s.map((function(e){return(0,o.createComponentVNode)(2,m,{label:e.label,noWrapContent:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.checked,onClick:function(){return r("toggle_flag",{bitflag:e.bitflag})}})},e.bitflag)}))],0)},b=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.sensors;return(0,o.createComponentVNode)(2,a.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,o.createComponentVNode)(2,a.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){return r("add_sensor")}}),children:[(0,o.createComponentVNode)(2,m,{mr:0,compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:11.3})]})}),Object.keys(c).map((function(e){return(0,o.createComponentVNode)(2,m,{mr:0,label:(0,o.createComponentVNode)(2,a.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{align:"center",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:e}),c[e]?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:c[e]}):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"edit",onClick:function(){return r("change_label",{sensor_tag:e})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!c[e],onClick:function(){return r("clear_label",{sensor_tag:e})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:.5}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){return r("del_sensor",{sensor_tag:e})}})})]})},e)}))]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.inputTag,s=c.outputTag,d=c.bufferTag,h=c.bufferFitsInput,f=c.bufferFitsOutput,C=c.doNotLinkAndNotify;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Input",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:l,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!l,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:l&&d===l,disabled:!h,onClick:function(){return r("link_input")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!l,onClick:function(){return r("unlink_input")}})],4)}),(0,o.createComponentVNode)(2,m,{label:"Output",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:s,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!s,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:s&&d===s,disabled:!f,onClick:function(){return r("link_output")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!s,onClick:function(){return r("unlink_output")}})],4)})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.Newscaster=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(49),l=n(3),s=n(51),d=n(145);function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var p=["security","engineering","medical","science","service","supply"],m={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}};t.Newscaster=function(e,t){var n,c=(0,i.useBackend)(t),u=c.act,p=c.data,m=p.is_security,g=p.is_admin,N=p.is_silent,V=p.is_printing,v=p.screen,x=p.channels,y=p.channel_idx,k=void 0===y?-1:y,w=(0,i.useLocalState)(t,"menuOpen",!1),_=w[0],B=w[1],S=(0,i.useLocalState)(t,"viewingPhoto",""),L=S[0],A=(S[1],(0,i.useLocalState)(t,"censorMode",!1)),E=A[0],I=A[1];0===v||2===v?n=(0,o.createComponentVNode)(2,f):1===v&&(n=(0,o.createComponentVNode)(2,C));var D=x.reduce((function(e,t){return e+t.unread}),0);return(0,o.createComponentVNode)(2,l.Window,{theme:m&&"security",children:[L?(0,o.createComponentVNode)(2,b):(0,o.createComponentVNode)(2,s.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,a.Section,{stretchContents:!0,className:(0,r.classes)(["Newscaster__menu",_&&"Newscaster__menu--open"]),children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{flex:"0 1 content",children:[(0,o.createComponentVNode)(2,h,{icon:"bars",title:"Toggle Menu",onClick:function(){return B(!_)}}),(0,o.createComponentVNode)(2,h,{icon:"newspaper",title:"Headlines",selected:0===v,onClick:function(){return u("headlines")},children:D>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:D>=10?"9+":D})}),(0,o.createComponentVNode)(2,h,{icon:"briefcase",title:"Job Openings",selected:1===v,onClick:function(){return u("jobs")}}),(0,o.createComponentVNode)(2,a.Divider)]}),(0,o.createComponentVNode)(2,a.Box,{flex:"2",overflowY:"auto",overflowX:"hidden",children:x.map((function(e){return(0,o.createComponentVNode)(2,h,{icon:e.icon,title:e.name,selected:2===v&&x[k-1]===e,onClick:function(){return u("channel",{uid:e.uid})},children:e.unread>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:e.unread>=10?"9+":e.unread})},e)}))}),(0,o.createComponentVNode)(2,a.Box,{width:"100%",flex:"0 0 content",children:[(0,o.createComponentVNode)(2,a.Divider),(!!m||!!g)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,h,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"wanted_notice")}}),(0,o.createComponentVNode)(2,h,{security:!0,icon:E?"minus-square":"minus-square-o",title:"Censor Mode: "+(E?"On":"Off"),mb:"0.5rem",onClick:function(){return I(!E)}}),(0,o.createComponentVNode)(2,a.Divider)],4),(0,o.createComponentVNode)(2,h,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"create_story")}}),(0,o.createComponentVNode)(2,h,{icon:"plus-circle",title:"New Channel",onClick:function(){return(0,s.modalOpen)(t,"create_channel")}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,h,{icon:V?"spinner":"print",iconSpin:V,title:V?"Printing...":"Print Newspaper",onClick:function(){return u("print_newspaper")}}),(0,o.createComponentVNode)(2,h,{icon:N?"volume-mute":"volume-up",title:"Mute: "+(N?"On":"Off"),onClick:function(){return u("toggle_mute")}})]})]})}),(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,d.TemporaryNotice),n]})]})})]})};var h=function(e,t){(0,i.useBackend)(t).act;var n=e.icon,c=void 0===n?"":n,l=e.iconSpin,s=e.selected,d=void 0!==s&&s,p=e.security,m=void 0!==p&&p,h=e.onClick,f=e.title,C=e.children,g=u(e,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Newscaster__menuButton",d&&"Newscaster__menuButton--selected",m&&"Newscaster__menuButton--security"]),onClick:h},g,{children:[d&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,o.createComponentVNode)(2,a.Icon,{name:c,spin:l,size:"2"}),(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--title",children:f}),C]})))},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.screen,d=c.is_admin,u=c.channel_idx,p=c.channel_can_manage,m=c.channels,h=c.stories,f=c.wanted,C=(0,i.useLocalState)(t,"fullStories",[]),N=C[0],b=(C[1],(0,i.useLocalState)(t,"censorMode",!1)),V=b[0],v=(b[1],2===l&&u>-1?m[u-1]:null);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!f&&(0,o.createComponentVNode)(2,g,{story:f,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:v?v.icon:"newspaper",mr:"0.5rem"}),v?v.name:"Headlines"],0),flexGrow:"1",children:h.length>0?h.slice().reverse().map((function(e){return!N.includes(e.uid)&&e.body.length+3>128?Object.assign({},e,{body_short:e.body.substr(0,124)+"..."}):e})).map((function(e){return(0,o.createComponentVNode)(2,g,{story:e},e)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no stories at this time."]})}),!!v&&(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"info-circle",mr:"0.5rem"}),(0,o.createTextVNode)("About")],4),buttons:(0,o.createFragment)([V&&(0,o.createComponentVNode)(2,a.Button,{disabled:!!v.admin&&!d,selected:v.censored,icon:v.censored?"comment-slash":"comment",content:v.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){return r("censor_channel",{uid:v.uid})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"cog",content:"Manage",onClick:function(){return(0,s.modalOpen)(t,"manage_channel",{uid:v.uid})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:v.description||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:v.author||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Public",children:v["public"]?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Views",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"eye",mr:"0.5rem"}),h.reduce((function(e,t){return e+t.view_count}),0).toLocaleString()]})]})})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.jobs,s=c.wanted,d=Object.entries(l).reduce((function(e,t){t[0];return e+t[1].length}),0);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!s&&(0,o.createComponentVNode)(2,g,{story:s,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"briefcase",mr:"0.5rem"}),(0,o.createTextVNode)("Job Openings")],4),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:d>0?p.map((function(e){return Object.assign({},m[e],{id:e,jobs:l[e]})})).filter((function(e){return!!e&&e.jobs.length>0})).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+e.id]),title:e.title,buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:e.fluff_text}),children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{"class":(0,r.classes)(["Newscaster__jobOpening",!!e.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",e.title]},e.title)}))},e.id)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",children:["Interested in serving Nanotrasen?",(0,o.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,o.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=e.story,u=e.wanted,p=void 0!==u&&u,m=(0,i.useLocalState)(t,"fullStories",[]),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"censorMode",!1),g=C[0];C[1];return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__story",p&&"Newscaster__story--wanted"]),title:(0,o.createFragment)([p&&(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle",mr:"0.5rem"}),(2&d.censor_flags?"[REDACTED]":d.title)||"News from "+d.author],0),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[!p&&g&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.createComponentVNode)(2,a.Button,{enabled:2&d.censor_flags,icon:2&d.censor_flags?"comment-slash":"comment",content:2&d.censor_flags?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){return l("censor_story",{uid:d.uid})}})}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",d.author," |\xa0",!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"eye"}),(0,o.createTextVNode)(" "),d.view_count.toLocaleString(),(0,o.createTextVNode)(" |\xa0")],0),(0,o.createComponentVNode)(2,a.Icon,{name:"clock"})," ",(0,c.timeAgo)(d.publish_time,s.world_time)]})]})}),children:(0,o.createComponentVNode)(2,a.Box,{children:2&d.censor_flags?"[REDACTED]":(0,o.createFragment)([!!d.has_photo&&(0,o.createComponentVNode)(2,N,{name:"story_photo_"+d.uid+".png",float:"right",ml:"0.5rem"}),(d.body_short||d.body).split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),d.body_short&&(0,o.createComponentVNode)(2,a.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){return f([].concat(h,[d.uid]))}}),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})],0)})})},N=function(e,t){var n=e.name,r=u(e,["name"]),c=(0,i.useLocalState)(t,"viewingPhoto",""),l=(c[0],c[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"img",className:"Newscaster__photo",src:n,onClick:function(){return l(n)}},r)))},b=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Newscaster__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),c=!!e.args.uid&&r.channels.filter((function(t){return t.uid===e.args.uid})).pop();if("manage_channel"!==e.id||c){var l="manage_channel"===e.id,d=!!e.args.is_admin,u=e.args.scanned_user,p=(0,i.useLocalState)(t,"author",(null==c?void 0:c.author)||u||"Unknown"),m=p[0],h=p[1],f=(0,i.useLocalState)(t,"name",(null==c?void 0:c.name)||""),C=f[0],g=f[1],N=(0,i.useLocalState)(t,"description",(null==c?void 0:c.description)||""),b=N[0],V=N[1],v=(0,i.useLocalState)(t,"icon",(null==c?void 0:c.icon)||"newspaper"),x=v[0],y=v[1],k=(0,i.useLocalState)(t,"isPublic",!!l&&!!(null==c?void 0:c["public"])),w=k[0],_=k[1],B=(0,i.useLocalState)(t,"adminLocked",1===(null==c?void 0:c.admin)||!1),S=B[0],L=B[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:l?"Manage "+c.name:"Create New Channel",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!d,width:"100%",value:m,onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:C,onInput:function(e,t){return g(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:b,onInput:function(e,t){return V(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Icon",children:[(0,o.createComponentVNode)(2,a.Input,{disabled:!d,value:x,width:"35%",mr:"0.5rem",onInput:function(e,t){return y(t)}}),(0,o.createComponentVNode)(2,a.Icon,{name:x,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Stories?",children:(0,o.createComponentVNode)(2,a.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){return _(!w)}})}),d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:S,icon:S?"lock":"lock-open",content:S?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return L(!S)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===m.trim().length||0===C.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:m,name:C.substr(0,49),description:b.substr(0,128),icon:x,"public":w?1:0,admin_locked:S?1:0}),(0,i.deleteLocalState)(t,"author","name","description","icon","public")}})]})}(0,s.modalClose)(t)};(0,s.modalRegisterBodyOverride)("create_channel",V),(0,s.modalRegisterBodyOverride)("manage_channel",V),(0,s.modalRegisterBodyOverride)("create_story",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.channels,u=c.channel_idx,p=void 0===u?-1:u,m=!!e.args.is_admin,h=e.args.scanned_user,f=d.slice().sort((function(e,t){if(p<0)return 0;var n=d[p-1];return n.uid===e.uid?-1:n.uid===t.uid?1:void 0})).filter((function(e){return m||!e.frozen&&(e.author===h||!!e["public"])})),C=(0,i.useLocalState)(t,"author",h||"Unknown"),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"channel",f.length>0?f[0].name:""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"title",""),k=y[0],w=y[1],_=(0,i.useLocalState)(t,"body",""),B=_[0],S=_[1],L=(0,i.useLocalState)(t,"adminLocked",!1),A=L[0],E=L[1];return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Create New Story",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Author",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!m,width:"100%",value:g,onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:v,options:f.map((function(e){return e.name})),mb:"0",width:"100%",onSelected:function(e){return x(e)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:k,onInput:function(e,t){return w(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:B,onInput:function(e,t){return S(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){return r(l?"eject_photo":"attach_photo")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,title:k,maxHeight:"13.5rem",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"}),B.split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})]})})}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:A,icon:A?"lock":"lock-open",content:A?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return E(!A)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===g.trim().length||0===v.trim().length||0===k.trim().length||0===B.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,"create_story","",{author:g,channel:v,title:k.substr(0,127),body:B.substr(0,1023),admin_locked:A?1:0}),(0,i.deleteLocalState)(t,"author","channel","title","body")}})]})})),(0,s.modalRegisterBodyOverride)("wanted_notice",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.wanted,u=!!e.args.is_admin,p=e.args.scanned_user,m=(0,i.useLocalState)(t,"author",(null==d?void 0:d.author)||p||"Unknown"),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"name",(null==d?void 0:d.title.substr(8))||""),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"description",(null==d?void 0:d.body)||""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"adminLocked",1===(null==d?void 0:d.admin_locked)||!1),k=y[0],w=y[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:"Manage Wanted Notice",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authority",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!u,width:"100%",value:h,onInput:function(e,t){return f(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",value:g,maxLength:"128",onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",value:v,maxLength:"512",rows:"4",onInput:function(e,t){return x(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){return r(l?"eject_photo":"attach_photo")}}),!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"})]}),u&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:k,icon:k?"lock":"lock-open",content:k?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return w(!k)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!d,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){r("clear_wanted_notice"),(0,s.modalClose)(t),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===h.trim().length||0===g.trim().length||0===v.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:h,name:g.substr(0,127),description:v.substr(0,511),admin_locked:k?1:0}),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaBloodScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3);t.NinjaBloodScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.vialIcons,d=l.noVialIcon,u=l.bloodOwnerNames,p=l.bloodOwnerSpecies,m=l.bloodOwnerTypes,h=l.blockButtons,f=l.scanStates,C="Button_blue",g="Button_disabled",N=["NoticeBox_red","NoticeBox","NoticeBox_blue"];return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"\u041e\u0431\u0440\u0430\u0437\u0446\u044b",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0446\u0430 \u043a\u0440\u043e\u0432\u0438. \u041c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u0440\u043e\u0432\u044c\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0430\u043c \u043a\u043b\u0430\u043d. \u0420\u0435\u0430\u0433\u0435\u043d\u0442\u044b \u0438\u043c \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043c\u0443\u0442\u0441\u044f \u0438\u043b\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c",tooltipPosition:"bottom-left"}),children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"center",children:[1,2,3].map((function(e,t){return(0,o.createComponentVNode)(2,a.FlexItem,{direction:"column",width:"33.3%",ml:t?2:0,children:[(0,o.createComponentVNode)(2,i.Section,{title:u[t]?"\u041a\u0440\u043e\u0432\u044c":"\u041d\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043d\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:N[f[t]],success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:h?g:C,height:"100%",width:"100%",disabled:h,onClick:function(){return c("vial_out",{button_num:t+1})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(s[t]||d),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:u[t]||" - ",content:"\u0420\u0430\u0441\u0430: "+(p[t]||" - ")+"\n\u0422\u0438\u043f \u043a\u0440\u043e\u0432\u0438: "+(m[t]||" - "),position:"bottom"})]})})]},t)}))}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:0===h?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043a\u0440\u043e\u0432\u044c \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u043d\u0443.",tooltipPosition:"bottom",onClick:function(){return c("scan_blood")}})})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data.progressBar;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"green",value:n,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",mt:1,children:n?"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 "+n+"%":"\u0420\u0435\u0436\u0438\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f"}),2)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaMindScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NinjaMindScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.occupantIcon,s=c.occupant_name,d=c.occupant_health,u=c.scanned_occupants,p="none"===s?1:0;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{shrink:1,alignContent:"left",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+l,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,alignContent:"right",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0418\u043c\u044f",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:d})]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u044b\u0442\u044c \u0438\u0437 \u0435\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u043b\u0430\u043d\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.",tooltipPosition:"bottom-left",onClick:function(){return a("scan_occupant")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e",width:"250px",textAlign:"center",disabled:p,tooltip:"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u043a\u0430\u043f\u0441\u0443\u043b\u044b",tooltipPosition:"bottom-left",onClick:function(){return a("go_out")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u0445\u0438\u0449\u0435\u043d. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u0440\u0430\u0437\u0431\u043e\u043b\u0442\u0430\u043b \u043e \u0432\u0430\u0441.",tooltipPosition:"bottom-left",onClick:function(){return a("teleport_out")}})]})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043c\u0438 \u043b\u044e\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,o.createComponentVNode)(2,i.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Box,{children:e.scanned_occupant})})},e.scanned_occupant)}))})})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NuclearBomb=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return l.extended?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Disk",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return c("auth")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Code",children:(0,o.createComponentVNode)(2,i.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){return c("code")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Arming & Disarming",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Bolted to floor",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authfull,content:l.anchored?"YES":"NO",onClick:function(){return c("toggle_anchor")}})}),l.authfull&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",children:(0,o.createComponentVNode)(2,i.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){return c("set_time")}})})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",color:l.timer?"red":"",children:l.time+"s"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){return c("toggle_safety")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Arm/Disarm",children:(0,o.createComponentVNode)(2,i.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){return c("toggle_armed")}})})]})})]})}):(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Deployment",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){return c("deploy")}})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(15),i=n(1),a=n(3),c=n(2),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,r=(0,i.useBackend)(t),l=r.act,s=r.data,d=s.hasOccupant,u=s.choice;return n=u?(0,o.createComponentVNode)(2,h):d?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var p=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[n.stat][0],children:l[n.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),s.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]])},t)},t)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:u[n.temperatureSuitability+3],children:[(0,r.round)(n.btCelsius),"\xb0C, ",(0,r.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Current Procedures",level:"2",children:n.inSurgery?n.surgeries.map((function(e){var t=e.bodypartName,n=e.surgeryName,r=e.stepName;return(0,o.createComponentVNode)(2,c.Section,{title:t,level:"4",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Procedure",children:n}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Next Step",children:r})]})},t)})):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No procedures ongoing."})})],4)},m=function(){return(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,l=a.verbose,s=a.health,d=a.healthAlarm,u=a.oxy,p=a.oxyAlarm,m=a.crit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"On":"Off",onClick:function(){return r(s?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:d,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("health_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:p,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("oxy_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,c.Button,{selected:m,icon:m?"toggle-on":"toggle-off",content:m?"On":"Off",onClick:function(){return r(m?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Orbit=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt},m=function(e,t){var n=e.name,o=t.name;if(!n||!o)return 0;var r=n.match(d),i=o.match(d);return r&&i&&n.replace(d,"")===o.replace(d,"")?parseInt(r[1],10)-parseInt(i[1],10):p(n,o)},h=function(e,t){var n=(0,i.useBackend)(t).act,r=e.searchText,c=e.source,l=e.title,s=c.filter(u(r));return s.sort(m),c.length>0&&(0,o.createComponentVNode)(2,a.Section,{title:l+" - ("+c.length+")",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return n("orbit",{ref:e.ref})}},e.name)}))})},f=function(e,t){var n=(0,i.useBackend)(t).act,r=e.color,c=e.thing;return(0,o.createComponentVNode)(2,a.Button,{color:r,onClick:function(){return n("orbit",{ref:c.ref})},children:c.name})};t.Orbit=function(e,t){for(var n,r=(0,i.useBackend)(t),s=r.act,d=r.data,C=d.alive,g=d.antagonists,N=(d.auto_observe,d.dead),b=d.ghosts,V=d.misc,v=d.npcs,x=(0,i.useLocalState)(t,"searchText",""),y=x[0],k=x[1],w={},_=l(g);!(n=_()).done;){var B=n.value;w[B.antag]===undefined&&(w[B.antag]=[]),w[B.antag].push(B)}var S=Object.entries(w);S.sort((function(e,t){return p(e[0],t[0])}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:"search",mr:1})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:y,onInput:function(e,t){return k(t)},onEnter:function(e,t){return function(e){for(var t=0,n=[S.map((function(e){return e[0],e[1]})),C,b,N,v,V];t0&&(0,o.createComponentVNode)(2,a.Section,{title:"Antagonists",children:S.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:t,level:2,children:n.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"bad",thing:e},e.name)}))},t)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Alive - ("+C.length+")",children:C.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"good",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Ghosts - ("+b.length+")",children:b.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"grey",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,h,{title:"Dead",source:N,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"NPCs",source:v,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"Misc",source:V,searchText:y})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemption=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3),l=function(e){return e.toLocaleString("en-US")+" pts"},s={bananium:"clown",tranquillite:"mime"};t.OreRedemption=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"content",mb:"0.5rem",children:(0,o.createComponentVNode)(2,d,{height:"100%"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",overflow:"hidden",children:[(0,o.createComponentVNode)(2,u,{height:"62%"}),(0,o.createComponentVNode)(2,p,{height:"38%"})]})]})})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.id,d=c.points,u=c.disk,p=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({},p,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"average",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID card",children:s?(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:s.name,tooltip:"Ejects the ID card.",onClick:function(){return a("eject_id")},style:{"white-space":"pre-wrap"}}):(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){return a("insert_id")}})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.points)})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.total_points)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed Points",color:d>0?"good":"grey",bold:d>0&&"good",children:l(d)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!s,icon:"hand-holding-usd",content:"Claim",onClick:function(){return a("claim")}})})]}),(0,o.createComponentVNode)(2,i.Divider),u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Design disk",children:(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,icon:"eject",content:u.name,tooltip:"Ejects the design disk.",onClick:function(){return a("eject_disk")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stored design",children:(0,o.createComponentVNode)(2,i.Box,{color:u.design&&(u.compatible?"good":"bad"),children:u.design||"N/A"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!u.design||!u.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){return a("download")},mb:"0"})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.sheets),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,h,{ore:e},e.id)}))]})))},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.alloys),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,f,{ore:e},e.id)}))]})))},m=function(e,t){var n;return(0,o.createComponentVNode)(2,i.Box,{className:"OreHeader",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:e.title}),null==(n=e.columns)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:e[1],textAlign:"center",color:"label",bold:!0,children:e[0]})}))]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,a=e.ore;if(!(a.value&&a.amount<=0)||["$metal","$glass"].indexOf(a.id)>-1){var c=a.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"45%",align:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+(s[c]||c)+".png",verticalAlign:"middle",ml:"0rem"}),a.name]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",color:a.amount>0?"good":"gray",bold:a.amount>0,align:"center",children:a.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",children:a.value}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(a.amount,50),stepPixelSize:6,onChange:function(e,t){return n(a.value?"sheet":"alloy",{id:a.id,amount:t})}})})]})})}},f=function(e,t){var n=(0,r.useBackend)(t).act,c=e.ore,l=c.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"7%",align:"middle",children:(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+l+".png",verticalAlign:"middle",ml:"`0rem"})}),(0,o.createComponentVNode)(2,a.FlexItem,{basis:"30%",textAlign:"middle",align:"center",children:c.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"35%",textAlign:"middle",color:c.amount>0?"good":"gray",align:"center",children:c.description}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"10%",textAlign:"center",color:c.amount>0?"good":"gray",bold:c.amount>0,align:"center",children:c.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(c.amount,50),stepPixelSize:6,onChange:function(e,t){return n(c.value?"sheet":"alloy",{id:c.id,amount:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PAI=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(572);t.PAI=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.app_template,p=d.app_icon,m=d.app_title,h=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(u);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p,mr:1}),m,"pai_main_menu"!==u&&(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){return s("MASTER_back")}})]}),p:1,children:(0,o.createComponentVNode)(2,h)})})})}},function(e,t,n){var o={"./pai_advsecrecords.js":573,"./pai_atmosphere.js":574,"./pai_bioscan.js":575,"./pai_camera_bug.js":576,"./pai_directives.js":577,"./pai_doorjack.js":578,"./pai_encoder.js":579,"./pai_main_menu.js":580,"./pai_manifest.js":581,"./pai_medrecords.js":582,"./pai_messenger.js":583,"./pai_radio.js":584,"./pai_sec_chem.js":585,"./pai_secrecords.js":586,"./pai_signaler.js":587};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=572},function(e,t,n){"use strict";t.__esModule=!0,t.pai_advsecrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pai_advsecrecords=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Records",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_atmosphere=void 0;var o=n(0),r=n(1),i=n(195);t.pai_atmosphere=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.AtmosScan,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_bioscan=void 0;var o=n(0),r=n(1),i=n(2);t.pai_bioscan=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.app_data),c=a.holder,l=a.dead,s=a.health,d=a.brute,u=a.oxy,p=a.tox,m=a.burn,h=a.reagents,f=a.addictions,C=a.fractures,g=a.internal_bleeding;return c?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:s/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"blue",children:u})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxin Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"green",children:p})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:m})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:d})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Reagents",children:h?h.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:(0,o.createComponentVNode)(2,i.Box,{color:e.overdosed?"bad":"good",children:[" ",e.volume," ",e.overdosed?"OVERDOSED":""," "]})},e.id)})):"Reagents not found."}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Addictions",children:f?f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.addiction_name,children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[" Stage: ",e.stage," "]})},e.id)})):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Addictions not found."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fractures",children:(0,o.createComponentVNode)(2,i.Box,{color:C?"bad":"good",children:["Fractures ",C?"":"not"," detected."]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Bleedings",children:(0,o.createComponentVNode)(2,i.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_camera_bug=void 0;var o=n(0),r=n(1),i=n(2);t.pai_camera_bug=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Monitor",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_directives=void 0;var o=n(0),r=n(1),i=n(2);t.pai_directives=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.master,s=c.dna,d=c.prime,u=c.supplemental;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master",children:l?l+" ("+s+")":"None"}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Request DNA",children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){return a("getdna")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Prime Directive",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_doorjack=void 0;var o=n(0),r=n(1),i=n(2);t.pai_doorjack=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data.app_data,d=s.cable,u=s.machine,p=s.inprogress;s.progress,s.aborted;return n=u?(0,o.createComponentVNode)(2,i.Button,{selected:!0,content:"Connected"}):(0,o.createComponentVNode)(2,i.Button,{content:d?"Extended":"Retracted",color:d?"orange":null,onClick:function(){return l("cable")}}),u&&(a=(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hack",children:[(0,o.createComponentVNode)(2,i.Box,{color:p?"green":"red",children:[" In progress: ",p?"Yes":"No"," "]}),p?(0,o.createComponentVNode)(2,i.Button,{mt:1,color:"red",content:"Abort",onClick:function(){return l("cancel")}}):(0,o.createComponentVNode)(2,i.Button,{mt:1,content:"Start",onClick:function(){return l("jack")}})]})),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cable",children:n}),a]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_encoder=void 0;var o=n(0),r=n(1),i=n(2);t.pai_encoder=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.radio_name,s=c.radio_rank;return(0,o.createComponentVNode)(2,i.Section,{title:"Your name and rank in radio channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Your current name and rank",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new name",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newname",{newname:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new rank",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newrank",{newrank:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_main_menu=void 0;var o=n(0),r=n(1),i=n(2);t.pai_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.available_software,s=c.installed_software,d=c.installed_toggles,u=c.available_ram,p=c.emotions,m=c.current_emotion,h=[];return s.map((function(e){return h[e.key]=e.name})),d.map((function(e){return h[e.key]=e.name})),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available RAM",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Software",children:[l.filter((function(e){return!h[e.key]})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name+" ("+e.cost+")",icon:e.icon,disabled:e.cost>u,onClick:function(){return a("purchaseSoftware",{key:e.key})}},e.key)})),0===l.filter((function(e){return!h[e.key]})).length&&"No software available!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Software",children:[s.filter((function(e){return"mainmenu"!==e.key})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,onClick:function(){return a("startSoftware",{software_key:e.key})}},e.key)})),0===s.length&&"No software installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Toggles",children:[d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,selected:e.active,onClick:function(){return a("setToggle",{toggle_key:e.key})}},e.key)})),0===d.length&&"No toggles installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Select Emotion",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name,selected:e.id===m,onClick:function(){return a("setEmotion",{emotion:e.id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pai_manifest=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.CrewManifest,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_medrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_medrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_messenger=void 0;var o=n(0),r=n(1),i=n(196);t.pai_messenger=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return a.app_data.active_convo?(0,o.createComponentVNode)(2,i.ActiveConversation,{data:a.app_data}):(0,o.createComponentVNode)(2,i.MessengerList,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_radio=void 0;var o=n(0),r=n(1),i=n(15),a=n(2);t.pai_radio=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.app_data,s=l.minFrequency,d=l.maxFrequency,u=l.frequency,p=l.broadcasting;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(e){return(0,i.toFixed)(e,1)},onChange:function(e,t){return c("freq",{freq:t})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"Reset",icon:"undo",onClick:function(){return c("freq",{freq:"145.9"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggleBroadcast")},selected:p,content:p?"Enabled":"Disabled"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_sec_chem=void 0;var o=n(0),r=n(1),i=n(2);t.pai_sec_chem=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.holder,s=c.dead,d=c.health,u=c.current_chemicals,p=c.available_chemicals;return l?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Chemicals",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Chemicals",children:[p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name+" ("+e.cost+")",tooltip:e.desc,disabled:e.cost>u,onClick:function(){return a("secreteChemicals",{key:e.key})}},e.key)})),0===p.length&&"No chemicals available!"]})]})}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_secrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_secrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pai_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDA=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(589);t.PDA=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data),p=u.app;if(!u.owner)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var m=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(p.template);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Box,{mb:8}),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.idInserted,s=c.idLink,d=c.stationTime,u=c.cartridge_name;return(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[l?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",color:"transparent",onClick:function(){return a("Authenticate")},content:s})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No ID Inserted"}),u?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sd-card",color:"transparent",onClick:function(){return a("Eject")},content:"Eject "+u})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No Cartridge Inserted"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"right",bold:!0,m:1,children:d})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app;return(0,o.createComponentVNode)(2,i.Box,{className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){a("Home")}})})]})})}},function(e,t,n){var o={"./pda_atmos_scan.js":590,"./pda_janitor.js":591,"./pda_main_menu.js":592,"./pda_manifest.js":593,"./pda_medical.js":594,"./pda_messenger.js":196,"./pda_mob_hunt.js":595,"./pda_mule.js":596,"./pda_notes.js":597,"./pda_power.js":598,"./pda_secbot.js":599,"./pda_security.js":600,"./pda_signaler.js":601,"./pda_status_display.js":602,"./pda_supplyrecords.js":603};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=589},function(e,t,n){"use strict";t.__esModule=!0,t.pda_atmos_scan=void 0;var o=n(0),r=n(1),i=n(195);t.pda_atmos_scan=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.AtmosScan,{data:n})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_janitor=void 0;var o=n(0),r=n(1),i=n(2);t.pda_janitor=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.janitor),c=a.user_loc,l=a.mops,s=a.buckets,d=a.cleanbots,u=a.carts;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Locations",children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Bucket Locations",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))}),d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cleanbot Locations",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_main_menu=void 0;var o=n(0),r=(n(15),n(1)),i=n(2);t.pda_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.owner,s=c.ownjob,d=c.idInserted,u=c.categories,p=c.pai,m=c.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:u.map((function(e){var t=c.apps[e];return t&&t.length?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.uid in m?e.notify_icon:e.icon,iconSpin:e.uid in m,color:e.uid in m?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.uid})}},e.uid)}))},e):null}))})}),!!p&&(0,o.createComponentVNode)(2,i.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pda_manifest=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.CrewManifest)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_medical=void 0;var o=n(0),r=n(1),i=n(103);t.pda_medical=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mob_hunt=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mob_hunt=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.connected,s=c.wild_captures,d=c.no_collection,u=c.entry;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection Status",children:l?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:["Connected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){return a("Disconnect")}})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:["Disconnected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){return a("Reconnect")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Wild Captures",children:s})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Collection",mt:2,buttons:(0,o.createComponentVNode)(2,i.Box,{children:!d&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Previous",icon:"arrow-left",onClick:function(){return a("Prev")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Next",icon:"arrow-right",onClick:function(){return a("Next")}})]})}),children:d?"Your collection is empty! Go capture some Nano-Mobs!":u?(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:u.sprite,style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[u.nickname&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nickname",children:u.nickname}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.real_name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:u.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Primary Type",children:u.type1}),u.type2&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secondary Type",children:u.type2}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sd-card",onClick:function(){return a("Transfer")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Release",icon:"arrow-up",onClick:function(){return a("Release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){return a("Rename")}}),!!u.is_hacked&&(0,o.createComponentVNode)(2,i.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){return a("Set_Trap")}})]})]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Mob entry missing!"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mule=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mule=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.mulebot.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.mulebot.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.mulebot,s=l.botstatus,d=l.active,u=s.mode,p=s.loca,m=s.load,h=s.powr,f=s.dest,C=s.home,g=s.retn,N=s.pick;switch(u){case 0:n="Ready";break;case 1:n="Loading/Unloading";break;case 2:case 12:n="Navigating to delivery location";break;case 3:n="Navigating to Home";break;case 4:n="Waiting for clear path";break;case 5:case 6:n="Calculating navigation path";break;case 7:n="Unable to locate destination";break;default:n=u}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:[h,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Home",children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:(0,o.createComponentVNode)(2,i.Button,{content:f?f+" (Set)":"None (Set)",onClick:function(){return c("SetDest")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Load",children:(0,o.createComponentVNode)(2,i.Button,{content:m?m+" (Unload)":"None",disabled:!m,onClick:function(){return c("Unload")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Pickup",children:(0,o.createComponentVNode)(2,i.Button,{content:N?"Yes":"No",selected:N,onClick:function(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Return",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Yes":"No",selected:g,onClick:function(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Proceed",icon:"play",onClick:function(){return c("Start")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Return Home",icon:"home",onClick:function(){return c("ReturnHome")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_notes=void 0;var o=n(0),r=n(1),i=n(2);t.pda_notes=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.note;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:c}),(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_power=void 0;var o=n(0),r=n(1),i=n(198);t.pda_power=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.PowerMonitorMainContent)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_secbot=void 0;var o=n(0),r=n(1),i=n(2);t.pda_secbot=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.beepsky.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.beepsky.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.beepsky,s=l.botstatus,d=l.active,u=s.mode,p=s.loca;switch(u){case 0:n="Ready";break;case 1:n="Apprehending target";break;case 2:case 3:n="Arresting target";break;case 4:n="Starting patrol";break;case 5:n="On patrol";break;case 6:n="Responding to summons"}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Go",icon:"play",onClick:function(){return c("Go")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Summon",icon:"arrow-down",onClick:function(){return c("Summon")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_security=void 0;var o=n(0),r=n(1),i=n(103);t.pda_security=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pda_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_status_display=void 0;var o=n(0),r=n(1),i=n(2);t.pda_status_display=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){return a("Status",{statdisp:"alert",alert:"redalert"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){return a("Status",{statdisp:"alert",alert:"default"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){return a("Status",{statdisp:"alert",alert:"lockdown"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){return a("Status",{statdisp:"alert",alert:"biohazard"})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_supplyrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pda_supplyrecords=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.supply),c=a.shuttle_loc,l=a.shuttle_time,s=a.shuttle_moving,d=a.approved,u=a.approved_count,p=a.requests,m=a.requests_count;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:s?(0,o.createComponentVNode)(2,i.Box,{children:["In transit ",l]}):(0,o.createComponentVNode)(2,i.Box,{children:c})})}),(0,o.createComponentVNode)(2,i.Section,{mt:1,title:"Requested Orders",children:m>0&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.OrderedBy,'"']},e)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Approved Orders",children:u>0&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.ApprovedBy,'"']},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDAColorRow=t.PDAPainter=void 0;var o=n(0),r=n(1),i=n(3),a=n(2);t.PDAPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.statusLabel,u=s.pdaTypes,p=s.hasPDA,m=s.pdaIcon,h=s.pdaOwnerName,f=s.pdaJobName;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"\u041e\u0431\u0449\u0435\u0435",buttons:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:p?"eject":"exclamation-triangle",selected:p,content:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c":"-----",tooltip:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c PDA",tooltipPosition:"left",onClick:function(){return l(p?"eject_pda":"insert_pda")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0418\u043c\u044f",children:h||"\u041d/\u0414"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",children:f||"\u041d/\u0414"})]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:"column",flex:"1",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"160px",src:p?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,o.createComponentVNode)(2,a.LabeledList,{m:"5px",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:d})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{m:"5px",fluid:!0,disabled:!p,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044c PDA",confirmContent:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0437\u0430\u0432\u043e\u0434\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",tooltipPosition:"top",onClick:function(){return l("erase_pda")}})]})})})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:(0,o.createComponentVNode)(2,a.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Table,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c,{selectedPda:e,selectedPdaImage:u[e][0]},e)}))})})})})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.hasPDA,l=e.selectedPda,s=e.selectedPdaImage;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,disabled:!c,icon:s,content:l,confirmContent:"\u041f\u043e\u043a\u0440\u0430\u0441\u0438\u0442\u044c?",textAlign:"left",onClick:function(){return i("choose_pda",{selectedPda:l,selectedPdaImage:s})}})})]})};t.PDAColorRow=c},function(e,t,n){"use strict";t.__esModule=!0,t.Pacman=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.Pacman=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.broken,u=s.anchored,p=s.active,m=s.fuel_type,h=s.fuel_usage,f=s.fuel_stored,C=s.fuel_cap,g=s.is_ai,N=s.tmp_current,b=s.tmp_max,V=s.tmp_overheat,v=s.output_max,x=s.power_gen,y=s.output_set,k=s.has_fuel,w=f/C,_=N/b,B=y*x,S=Math.round(f/h),L=Math.round(S/60),A=S>120?L+" minutes":S+" seconds";return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(d||!u)&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:[!!d&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!u&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!u&&(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!k,selected:p,onClick:function(){return l("toggle_power")}}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",className:"ml-1",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power setting",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:y,minValue:1,maxValue:v,step:1,className:"mt-1",onDrag:function(e,t){return l("change_power",{change_power:t})}}),"(",(0,c.formatPower)(B),")"]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:_,ranges:{green:[-Infinity,.33],orange:[.33,.66],red:[.66,Infinity]},children:[N," \u2103"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[V>50&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),V>20&&V<=50&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"WARNING: Overheating!"}),V>1&&V<=20&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Temperature High"}),0===V&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fuel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:p||g||!k,onClick:function(){return l("eject_fuel")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Type",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:w,ranges:{red:[-Infinity,.33],orange:[.33,.66],green:[.66,Infinity]},children:[Math.round(f/1e3)," dm\xb3"]})})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xb3/s"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel depletion",children:[!!k&&(h?A:"N/A"),!k&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PersonalCrafting=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.busy,p=d.category,m=d.display_craftable_only,h=d.display_compact,f=d.prev_cat,C=d.next_cat,g=d.subcategory,N=d.prev_subcat,b=d.next_subcat;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,o.createComponentVNode)(2,i.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){return s("toggle_recipes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Compact Mode",icon:h?"check-square-o":"square-o",selected:h,onClick:function(){return s("toggle_compact")}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:f,icon:"arrow-left",onClick:function(){return s("backwardCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:C,icon:"arrow-right",onClick:function(){return s("forwardCat")}})]}),g&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:N,icon:"arrow-left",onClick:function(){return s("backwardSubCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:b,icon:"arrow-right",onClick:function(){return s("forwardSubCat")}})]}),h?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)}))]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Photocopier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(24);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne?this.substring(0,e)+"...":this};t.Photocopier=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data;"mode_aipic"!==d.mode||d.isAI||s("mode_copy");for(var u,p,m=(0,c.sortBy)((function(e){return e.category}))(d.forms||[]),h=[],f=l(m);!(u=f()).done;){var C=u.value;h.includes(C.category)||h.push(C.category)}return p=""===d.category?m:m.filter((function(e){return e.category===d.category})),(0,o.createComponentVNode)(2,a.Window,{theme:d.ui_theme,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u0442\u043e\u043d\u0435\u0440\u0430",color:d.toner>0?"good":"bad",children:d.toner}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u043b\u043e\u0442 \u0441\u043a\u0430\u043d\u0435\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:d.isAI||null===d.copyitem,content:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c",onClick:function(){return s("remove")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",children:[d.copies,(0,o.createComponentVNode)(2,i.Button,{icon:"minus",ml:2,disabled:!(d.copies>1),onClick:function(){return s("min")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"plus",disabled:!(d.copies<=d.toner),onClick:function(){return s("add")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043c",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"clone",disabled:0===d.toner,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",selected:"mode_copy"===d.mode?"selected":null,onClick:function(){return s("mode_copy")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"file",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c",selected:"mode_print"===d.mode?"selected":null,onClick:function(){return s("mode_print")}}),!!d.isAI&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",disabled:0===d.toner,content:"\u0424\u043e\u0442\u043e \u0438\u0437 \u0414\u0411",selected:"mode_aipic"===d.mode?"selected":null,onClick:function(){return s("mode_aipic")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c",children:["mode_copy"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.copyitem&&!d.ass,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",onClick:function(){return s("copy")}}),"mode_print"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.form,content:"\u041f\u0435\u0447\u0430\u0442\u044c",onClick:function(){return s("print_form")}}),"mode_aipic"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c \u0444\u043e\u0442\u043e",onClick:function(){return s("aipic")}})]})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0411\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044f"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u043e\u0440\u043c\u0430",children:""===d.form_id?"\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u0430":d.form_id})}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b",selected:""===d.category?"selected":null,onClick:function(){return s("choose_category",{category:null})},mb:1})}),h.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:e,selected:d.category===e?"selected":null,onClick:function(){return s("choose_category",{category:e})},mb:1},e)},e)}))]})]}),(0,o.createComponentVNode)(2,i.NoticeBox,{color:d.info_box_color,children:d.info_box})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:""===d.category?"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b":d.category}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e.id+": "+e.altername.trimLongStr(30),tooltip:e.id+": "+e.altername,selected:d.form===e.path?"selected":null,onClick:function(){return s("choose_form",{path:e.path,id:e.id})},mb:1},e.path)},e.path)}))})]})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PodTracking=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PodTracking=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.pods);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Position",children:[e.podx,", ",e.pody,", ",e.podz]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Passengers",children:e.passengers})]})},e.name)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PoolController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);var c={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},l=function(e,t){var n=e.tempKey,a=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["tempKey"]),l=c[n];if(!l)return null;var s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.currentTemp,m=l.label,h=l.icon,f=n===p;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({selected:f,onClick:function(){u("setTemp",{temp:n})}},a,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:h}),m]})))};t.PoolController=function(e,t){for(var n=(0,r.useBackend)(t).data,s=n.emagged,d=n.currentTemp,u=c[d]||c.normal,p=u.label,m=u.color,h=[],f=0,C=Object.entries(c);f0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Supplies",icon:"box",onClick:function(){return c("setScreen",{setScreen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})}})})]}),!!d&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:u?"Speaker Off":"Speaker On",selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")}})})]})},l=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data,d=s.department;switch(e.purpose){case"ASSISTANCE":n=s.assist_dept,a="Request assistance from another department";break;case"SUPPLIES":n=s.supply_dept,a="Request supplies from another department";break;case"INFO":n=s.info_dept,a="Relay information to another department"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.filter((function(e){return e!==d})).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:[(0,o.createComponentVNode)(2,i.Button,{content:"Message",icon:"envelope",onClick:function(){return l("writeInput",{write:e,priority:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){return l("writeInput",{write:e,priority:2})}})]},e)}))})})},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act;a.data;switch(e.type){case"SUCCESS":n="Message sent successfully";break;case"FAIL":n="Request supplies from another department"}return(0,o.createComponentVNode)(2,i.Section,{title:n,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})}})})},d=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data;switch(e.type){case"MESSAGES":n=s.message_log,a="Message Log";break;case"SHIPPING":n=s.shipping_log,a="Shipping label print log"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{className:"RequestConsole__message",children:e},e)}))})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.recipient,s=c.message,d=c.msgVerified,u=c.msgStamped;return(0,o.createComponentVNode)(2,i.Section,{title:"Message Authentication",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Recipient",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",color:"green",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stamped by",color:"blue",children:u})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){return a("department",{department:l})}})]})},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.message,s=c.announceAuth;return(0,o.createComponentVNode)(2,i.Section,{title:"Station-Wide Announcement",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.Button,{content:l||"Edit Message",icon:"edit",onClick:function(){return a("writeAnnouncement")}}),s?(0,o.createComponentVNode)(2,i.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,o.createComponentVNode)(2,i.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&l),onClick:function(){return a("sendAnnouncement")}})]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.shipDest,s=c.msgVerified,d=c.ship_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Print Shipping Label",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",children:s})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(l&&s),onClick:function(){return a("printLabel")}}),(0,o.createComponentVNode)(2,i.Section,{title:"Destinations",mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,i.Button,{content:l===e?"Selected":"Select",selected:l===e,onClick:function(){return a("shipSelect",{shipSelect:e})}})},e)}))})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RequestManager=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.RequestManager=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data.requests),p=(0,i.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(l).map((function(e){var t=e[0];e[1];return[t,!0]})))),m=p[0],h=(p[1],(0,i.useLocalState)(t,"searchText")),f=h[0],C=h[1],g=u.filter((function(e){return m[e.req_type]}));if(f){var N=f.toLowerCase();g=g.filter((function(e){return(0,r.decodeHtmlEntities)(e.message).toLowerCase().includes(N)||e.owner_name.toLowerCase().includes(N)}))}return(0,o.createComponentVNode)(2,c.Window,{title:"Request Manager",width:575,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Requests",buttons:(0,o.createComponentVNode)(2,a.Input,{value:f,onInput:function(e,t){return C(t)},placeholder:"Search...",mr:1}),children:g.map((function(e){return(0,o.createVNode)(1,"div","RequestManager__row",[(0,o.createVNode)(1,"div","RequestManager__rowContents",[(0,o.createVNode)(1,"h2","RequestManager__header",[(0,o.createVNode)(1,"span","RequestManager__headerText",[e.owner_name,null===e.owner&&" [DC]"],0),(0,o.createVNode)(1,"span","RequestManager__timestamp",e.timestamp_str,0)],4),(0,o.createVNode)(1,"div","RequestManager__message",[(0,o.createComponentVNode)(2,s,{requestType:e.req_type}),(0,r.decodeHtmlEntities)(e.message)],0)],4),null!==e.owner&&(0,o.createComponentVNode)(2,d,{request:e})],0,null,e.id)}))})})})};var l={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},s=function(e){var t=e.requestType;return(0,o.createVNode)(1,"b","RequestManager__"+t,[l[t],(0,o.createTextVNode)(":")],0)},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n._,e.request);return(0,o.createVNode)(1,"div","RequestManager__controlsContainer",[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("pp",{id:c.id})},children:"PP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("vv",{id:c.id})},children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("sm",{id:c.id})},children:"SM"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("tp",{id:c.id})},children:"TP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("logs",{id:c.id})},children:"LOGS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("bless",{id:c.id})},children:"BLESS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("smite",{id:c.id})},children:"SMITE"}),"request_prayer"!==c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("rply",{id:c.id})},children:"RPLY"}),"request_ert"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("ertreply",{id:c.id})},children:"ERTREPLY"}),"request_nuke"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("getcode",{id:c.id})},children:"GETCODE"})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CurrentLevels=void 0;var o=n(0),r=n(1),i=n(2);t.CurrentLevels=function(e,t){var n=(0,r.useBackend)(t).data.tech_levels;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),n.map((function(e,t){var n=e.name,r=e.level,a=e.desc;return(0,o.createComponentVNode)(2,i.Box,{children:[t>0?(0,o.createComponentVNode)(2,i.Divider):null,(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:["* Level: ",r]}),(0,o.createComponentVNode)(2,i.Box,{children:["* Summary: ",a]})]},n)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.DataDiskMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67),l=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;return l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:l.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_tech")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_tech")}}),(0,o.createComponentVNode)(2,u)]})]}):null},s=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;if(!l)return null;var s=l.name,d=l.lathe_types,p=l.materials,m=d.join(", ");return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:s}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lathe Types",children:m}):null,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required Materials"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["- ",(0,o.createVNode)(1,"span",null,e.name,0,{style:{"text-transform":"capitalize"}})," x ",e.amount]},e.name)})),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_design")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_design")}}),(0,o.createComponentVNode)(2,u)]})]})},d=function(e,t){var n=(0,r.useBackend)(t).data.disk_type;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"This disk is empty."}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{submenu:c.SUBMENU.DISK_COPY,icon:"arrow-down",content:"tech"===n?"Load Tech to Disk":"Load Design to Disk"}),(0,o.createComponentVNode)(2,u)]})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type;return l?(0,o.createComponentVNode)(2,i.Button,{content:"Eject Disk",icon:"eject",onClick:function(){c("tech"===l?"eject_tech":"eject_design")}}):null},p=function(e,t){var n=(0,r.useBackend)(t).data,a=n.disk_data,c=n.disk_type;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk Contents",children:function(){if(!a)return(0,o.createComponentVNode)(2,d);switch(c){case"design":return(0,o.createComponentVNode)(2,s);case"tech":return(0,o.createComponentVNode)(2,l);default:return null}}()})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type,s=a.to_copy;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var t=e.name,n=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:t,children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){c("tech"===l?"copy_tech":"copy_design",{id:n})}})},n)}))})})})};t.DataDiskMenu=function(e,t){return(0,r.useBackend)(t).data.disk_type?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,p)}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.DISK_COPY,render:function(){return(0,o.createComponentVNode)(2,m)}})],4):null}},function(e,t,n){"use strict";t.__esModule=!0,t.DeconstructionMenu=void 0;var o=n(0),r=n(1),i=n(2);t.DeconstructionMenu=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_item;return a.linked_destroy?l?(0,o.createComponentVNode)(2,i.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:["Name: ",l.name]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.origin_tech.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+e.name,children:[e.object_level," ",e.current_level?(0,o.createFragment)([(0,o.createTextVNode)("(Current: "),e.current_level,(0,o.createTextVNode)(")")],0):null]},e.name)}))}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Options:",16)}),(0,o.createComponentVNode)(2,i.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){c("deconstruct")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject Item",icon:"eject",onClick:function(){c("eject_item")}})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,o.createComponentVNode)(2,i.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheCategory=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheCategory=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.category,d=c.matching_designs,u=4===c.menu?"build":"imprint";return(0,o.createComponentVNode)(2,i.Section,{title:s,children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,i.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:d.map((function(e){var t=e.id,n=e.name,r=e.can_build,a=e.materials;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:n,disabled:r<1,onClick:function(){return l(u,{id:t,amount:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=5?(0,o.createComponentVNode)(2,i.Button,{content:"x5",onClick:function(){return l(u,{id:t,amount:5})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=10?(0,o.createComponentVNode)(2,i.Button,{content:"x10",onClick:function(){return l(u,{id:t,amount:10})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a.map((function(e){return(0,o.createFragment)([" | ",(0,o.createVNode)(1,"span",e.is_red?"color-red":null,[e.amount,(0,o.createTextVNode)(" "),e.name],0)],0)}))})]},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheChemicalStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheChemicalStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_chemicals,s=4===a.menu;return(0,o.createComponentVNode)(2,i.Section,{title:"Chemical Storage",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Purge All",icon:"trash",onClick:function(){c(s?"disposeallP":"disposeallI")}}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){var t=e.volume,n=e.name,r=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+t+" of "+n,children:(0,o.createComponentVNode)(2,i.Button,{content:"Purge",icon:"trash",onClick:function(){c(s?"disposeP":"disposeI",{id:r})}})},r)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheMainMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.menu,d=c.categories,u=4===s?"Protolathe":"Circuit Imprinter";return(0,o.createComponentVNode)(2,i.Section,{title:u+" Menu",children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,a.LatheSearch),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",content:e,onClick:function(){l("setCategory",{category:e})}})},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterials=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterials=function(e,t){var n=(0,r.useBackend)(t).data,a=n.total_materials,c=n.max_materials,l=n.max_chemicals,s=n.total_chemicals;return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,o.createComponentVNode)(2,i.Table,{width:"auto",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a}),c?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+c}):null]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),l?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+l}):null]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterialStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterialStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_materials;return(0,o.createComponentVNode)(2,i.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){var t=e.id,n=e.amount,r=e.name,l=function(e){var n=4===a.menu?"lathe_ejectsheet":"imprinter_ejectsheet";c(n,{id:t,amount:e})},s=Math.floor(n/2e3),d=n<1,u=1===s?"":"s";return(0,o.createComponentVNode)(2,i.Table.Row,{className:d?"color-grey":"color-yellow",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"210px",children:["* ",n," of ",r]}),(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"110px",children:["(",s," sheet",u,")"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:n>=2e3?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"1x",icon:"eject",onClick:function(){return l(1)}}),(0,o.createComponentVNode)(2,i.Button,{content:"C",icon:"eject",onClick:function(){return l("custom")}}),n>=1e4?(0,o.createComponentVNode)(2,i.Button,{content:"5x",icon:"eject",onClick:function(){return l(5)}}):null,(0,o.createComponentVNode)(2,i.Button,{content:"All",icon:"eject",onClick:function(){return l(50)}})],0):null})]},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMenu=void 0;var o=n(0),r=n(1),i=n(199),a=n(52),c=n(2),l=n(67);t.LatheMenu=function(e,t){var n=(0,r.useBackend)(t).data,s=n.menu,d=n.linked_lathe,u=n.linked_imprinter;return 4!==s||d?5!==s||u?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,a.LatheMainMenu)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CATEGORY,render:function(){return(0,o.createComponentVNode)(2,a.LatheCategory)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheMaterialStorage)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheChemicalStorage)}})]}):(0,o.createComponentVNode)(2,c.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,o.createComponentVNode)(2,c.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheSearch=void 0;var o=n(0),r=n(1),i=n(2);t.LatheSearch=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"Search...",onChange:function(e,t){return n("search",{to_search:t})}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.MainMenu=function(e,t){var n=(0,r.useBackend)(t).data,l=n.disk_type,s=n.linked_destroy,d=n.linked_lathe,u=n.linked_imprinter,p=n.tech_levels;return(0,o.createComponentVNode)(2,i.Section,{title:"Main Menu",children:[(0,o.createComponentVNode)(2,i.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!l,menu:c.MENU.DISK,submenu:c.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!s,menu:c.MENU.DESTROY,submenu:c.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,menu:c.MENU.LATHE,submenu:c.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!u,menu:c.MENU.IMPRINTER,submenu:c.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{menu:c.MENU.SETTINGS,submenu:c.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"12px"}),(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){var t=e.name,n=e.level;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavbar=void 0;var o=n(0),r=n(52),i=n(2),a=n(67);t.RndNavbar=function(){return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__RndNavbar",children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e!==a.MENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{menu:a.MENU.MAIN,submenu:a.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{submenu:function(e){return e!==a.SUBMENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.DISK,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.LATHE,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.IMPRINTER,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.SETTINGS,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}})]})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e===a.MENU.LATHE||e===a.MENU.IMPRINTER},submenu:a.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavButton=void 0;var o=n(0),r=n(1),i=n(2);t.RndNavButton=function(e,t){var n=e.icon,a=e.children,c=e.disabled,l=e.content,s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.menu,m=d.submenu,h=p,f=m;return null!==e.menu&&e.menu!==undefined&&(h=e.menu),null!==e.submenu&&e.submenu!==undefined&&(f=e.submenu),(0,o.createComponentVNode)(2,i.Button,{content:l,icon:n,disabled:c,onClick:function(){u("nav",{menu:h,submenu:f})},children:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.SettingsMenu=function(e,t){var n=(0,r.useBackend)(t),l=n.data,s=n.act,d=l.sync,u=l.admin,p=l.linked_destroy,m=l.linked_lathe,h=l.linked_imprinter;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Sync Database with Network",icon:"sync",disabled:!d,onClick:function(){s("sync")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Connect to Research Network",icon:"plug",disabled:d,onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,content:"Device Linkage Menu",icon:"link",menu:c.MENU.SETTINGS,submenu:c.SUBMENU.SETTINGS_DEVICES}),1===u?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){return s("maxresearch")}}):null]})})}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage Menu",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){return s("find_device")}}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",children:(0,o.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"destroy"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Protolathe",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){s("disconnect",{item:"lathe"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),h?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"imprinter"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RobotSelfDiagnosis=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18),l=function(e,t){var n=e/t;return n<=.2?"good":n<=.5?"average":"bad"};t.RobotSelfDiagnosis=function(e,t){var n=(0,r.useBackend)(t).data.component_data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.capitalize)(e.name),children:e.installed<=0?(0,o.createComponentVNode)(2,i.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:-1===e.installed?"Destroyed":"Missing"})})}):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"72%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",color:l(e.brute_damage,e.max_damage),children:e.brute_damage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",color:l(e.electronic_damage,e.max_damage),children:e.electronic_damage})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Powered",color:e.powered?"good":"bad",children:e.powered?"Yes":"No"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Enabled",color:e.status?"good":"bad",children:e.status?"Yes":"No"})]})})]})},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.can_hack,u=s.safety,p=s.show_detonate_all,m=s.cyborgs,h=void 0===m?[]:m;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,i.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,c,{cyborgs:h,can_hack:d})]})})};var c=function(e,t){var n=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(t)),c=a.act,l=a.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return c("hackbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return c("stopbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{uid:e.uid})}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,i.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,i.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,i.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.uid)})):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cyborg units detected within access parameters."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Safe=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Safe=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),u=d.dial,p=d.open;d.locked,d.contents;return(0,o.createComponentVNode)(2,a.Window,{theme:"safe",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,o.createComponentVNode)(2,i.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,o.createVNode)(1,"br"),p?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!p&&(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.dial,s=c.open,d=c.locked,u=function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:s||t&&!d,icon:"arrow-"+(t?"right":"left"),content:(t?"Right":"Left")+" "+e,iconRight:t,onClick:function(){return a(t?"turnleft":"turnright",{num:e})},style:{"z-index":10}})};return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){return a("open")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{position:"absolute",children:[u(50),u(10),u(1)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[u(1,!0),u(10,!0),u(50,!0)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--number",children:l})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.contents;return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--contents",overflow:"auto",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mb:"0.5rem",onClick:function(){return a("retrieve",{index:t+1})},children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,o.createVNode)(1,"br")],4,e)}))})},s=function(e,t){return(0,o.createComponentVNode)(2,i.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,o.createComponentVNode)(2,i.Box,{children:["1. Turn the dial left to the first number.",(0,o.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,o.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,o.createVNode)(1,"br"),"4. Open the safe."]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.satellites,d=l.notice,u=l.meteor_shield,p=l.meteor_shield_coverage,m=l.meteor_shield_coverage_max,h=l.meteor_shield_coverage_percentage;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,i.Section,{title:"Station Shield Coverage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:h>=100?"good":"average",value:p,maxValue:m,children:[h," %"]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Satellite Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"#"+e.id,children:[e.mode," ",(0,o.createComponentVNode)(2,i.Button,{content:e.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){return c("toggle",{id:e.id})}})]},e.id)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecureStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SecureStorage=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.emagged,d=l.locked,u=l.l_set,p=l.l_setshort,m=l.current_code,h=function(e){var t=e.buttonValue,n=e.color;return n||(n="default"),(0,o.createComponentVNode)(2,i.Button,{disabled:s||p,type:"button",color:n,onClick:function(){return c("setnumber",{buttonValue:t})},children:t})};return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,i.Flex,{spacing:"1",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"Code Panel",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"1"}),(0,o.createComponentVNode)(2,h,{buttonValue:"2"}),(0,o.createComponentVNode)(2,h,{buttonValue:"3"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"4"}),(0,o.createComponentVNode)(2,h,{buttonValue:"5"}),(0,o.createComponentVNode)(2,h,{buttonValue:"6"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"7"}),(0,o.createComponentVNode)(2,h,{buttonValue:"8"}),(0,o.createComponentVNode)(2,h,{buttonValue:"9"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"R",color:"red"}),(0,o.createComponentVNode)(2,h,{buttonValue:"0"}),(0,o.createComponentVNode)(2,h,{buttonValue:"E",color:"green"})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Status",children:s||p?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:s?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),s?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secure Code",children:(0,o.createComponentVNode)(2,i.Box,{color:u?"red":"green",children:u?"*****":"NOT SET. ENTER NEW."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:d?"red":"green",children:d?"Locked":"Unlocked"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{children:m||"Waiting for input"})}),(0,o.createComponentVNode)(2,i.Button,{top:".35em",left:".5em",disabled:d,color:"red",content:"Lock",icon:"lock",onClick:function(){return c("close")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(51),d=n(140),u=n(141),p=n(145),m={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},h=function(e,t){(0,s.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,r=(0,i.useBackend)(t),c=(r.act,r.data),m=c.loginState,h=c.currentPage;return m.logged_in?(1===h?n=(0,o.createComponentVNode)(2,C):2===h?n=(0,o.createComponentVNode)(2,b):3===h&&(n=(0,o.createComponentVNode)(2,V)),(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:[(0,o.createComponentVNode)(2,s.ComplexModal),(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,d.LoginInfo),(0,o.createComponentVNode)(2,p.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,a.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,u.LoginScreen)})})};var f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.currentPage,s=c.general;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===l,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===l,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]}),3===l&&s&&!s.empty&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===l,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"file"}),"Record: ",s.fields[0].value]})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.records,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","name")),p=u[0],h=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),f=h[0];h[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Table,{className:"SecurityRecords__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,g,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,g,{id:"id",children:"ID"}),(0,o.createComponentVNode)(2,g,{id:"rank",children:"Assignment"}),(0,o.createComponentVNode)(2,g,{id:"fingerprint",children:"Fingerprint"}),(0,o.createComponentVNode)(2,g,{id:"status",children:"Criminal Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.name+"|"+e.id+"|"+e.rank+"|"+e.fingerprint+"|"+e.status}))).sort((function(e,t){var n=f?1:-1;return e[p].localeCompare(t[p])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"SecurityRecords__listRow--"+m[e.status],onClick:function(){return c("view",{uid_gen:e.uid_gen,uid_sec:e.uid_sec})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fingerprint}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.status})]},e.id)}))]})})]})},g=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.isPrinting,d=(0,i.useLocalState)(t,"searchText",""),u=(d[0],d[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Record",icon:"plus",onClick:function(){return r("new_general")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Cell Log",ml:"0.25rem",onClick:function(){return(0,s.modalOpen)(t,"print_cell_log")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",width:"100%",onInput:function(e,t){return u(t)}})})]})},b=function(e,t){var n=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("delete_security_all")},mb:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){return n("delete_cell_logs")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.isPrinting,s=c.general,d=c.security;return s&&s.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Record",onClick:function(){return r("print_record")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated to this crew member!",tooltipPosition:"bottom-left",content:"Delete Record",onClick:function(){return r("delete_general")}})],4),children:(0,o.createComponentVNode)(2,v)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",level:2,mt:"-12px",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:d.empty,content:"Delete Record",onClick:function(){return r("delete_security")}}),children:(0,o.createComponentVNode)(2,x)})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},v=function(e,t){var n=(0,i.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{float:"left",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(""+e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",right:"0",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},x=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)(t,"comment_add")}}),children:0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:e.header||"Auto-generated"}),(0,o.createVNode)(1,"br"),e.text||e,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("comment_delete",{id:t+1})}})]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Create New Record",mt:"0.5rem",onClick:function(){return c("new_security")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SeedExtractor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3),l={title:"Seeds",plantName:"Plant",lifespan:"Lifespan",endurance:"Endurance",maturation:"Maturation",production:"Production",yield:"Yield",potency:"Potency",searchTooltip:"Search..",sortByTooltip:"Sort by",dispOneTooltip:"Dispense one",dispAllTooltip:"Dispense all",inStock:"in stock",noContents:"No seeds loaded.",emptySearchResult:"No items matching your criteria was found!"},s={plantName:function(e,t){return e.display_name!==t.display_name?e.display_name>t.display_name?1:-1:0},lifespan:function(e,t){return e.life-t.life},endurance:function(e,t){return e.endr-t.endr},maturation:function(e,t){return e.matr-t.matr},production:function(e,t){return e.prod-t.prod},yield:function(e,t){return e.yld-t.yld},potency:function(e,t){return e.potn-t.potn}};t.SeedExtractor=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),s=r.total,d=r.capacity,h=r.contents;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,u),m:0,p:0,children:(0,o.createComponentVNode)(2,p,{seedsTotal:s,seedsCapacity:d})}),h?(0,o.createVNode)(1,"div","Divider Divider__noMargin"):(0,o.createComponentVNode)(2,a.NoticeBox,{m:0,children:[" ",l.noContents," "]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:1,stretchContents:!0,mt:0,children:!!h&&(0,o.createComponentVNode)(2,m)})]})})};var d=function(e,t){var n=e.name,r=e.alpha,c=(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1}),s=c[0],d=c[1];return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,iconRight:!0,icon:s.field!==n?"":s.desc?r?"sort-alpha-down":"sort-amount-down":r?"sort-alpha-up":"sort-amount-up",color:"transparent",textColor:"white",content:l[n],tooltip:l.sortByTooltip+" "+n.toLowerCase(),tooltipPosition:"bottom",onClick:function(){s.field!==e.name?d({field:n,desc:!1}):d({field:n,desc:!s.desc})}})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]);return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",width:"50vw",style:{display:"block"},children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:"filter"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:l.searchTooltip,width:"100%",onInput:function(e,t){return r(t)}})})]})})},p=function(e,t){var n=e.seedsTotal,r=e.seedsCapacity;return(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",bold:!0,align:"baseline",mt:0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",children:(0,o.createComponentVNode)(2,d,{name:"plantName",alpha:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"lifespan"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"endurance"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"maturation"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"production"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"yield"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"potency"})})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,color:"average",children:[n,"/",r]})]})},m=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data.contents),d=(0,i.useLocalState)(t,"search",""),u=d[0],p=(d[1],(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1})),m=p[0],f=(p[1],(0,r.createSearch)(u,(function(e){return e.display_name+e.strain_text}))),C=c.filter(f).sort(s[m.field]);m.desc&&(C=C.reverse());var g=0===C.length;return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[!!g&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[" ",l.emptySearchResult," "]}),!g&&(0,o.createComponentVNode)(2,a.Box,{className:"SeedExtractor__Contents",children:C.map((function(e){return(0,o.createComponentVNode)(2,h,{displayName:e.display_name,descriptionText:e.strain_text,lifespanVal:e.life,enduranceVal:e.endr,maturationVal:e.life,productionVal:e.prod,yieldVal:e.yld,potencyVal:e.potn,vendIdx:e.vend,pileStock:e.quantity},e.vend)}))})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,e.key,e.displayName),s=e.descriptionText,d=e.lifespanVal,u=e.enduranceVal,p=e.maturationVal,m=e.productionVal,h=e.yieldVal,f=e.potencyVal,C=e.vendIdx,g=e.pileStock;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",className:"SeedExtractor__contents--row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",textAlign:"left",bold:!0,children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:c})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",py:1,children:(0,o.createVNode)(1,"table",null,[(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:d}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:u}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:p}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:m}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:h}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:f})]}),2),2),(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,s,0,{style:{"font-size":"90%","padding-top":"0.5em"}}),2)],4,{style:{width:"100%",border:"0"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,py:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{color:"good",children:[g," ",l.inStock]}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"25px",pt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"1",tooltip:"Dispense one",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:1})}}),(0,o.createComponentVNode)(2,a.NumberInput,{width:"40px",minValue:0,value:0,maxValue:g,step:1,stepPixelSize:3,onChange:function(e,t){return r("vend",{index:C,amount:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:g})}})]})]})})]}),(0,o.createComponentVNode)(2,a.Divider)],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsoleContent=t.ShuttleConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=e.type,u=void 0===s?"shuttle":s,p=e.blind_drop,m=l.authorization_required;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:240,children:[!!m&&(0,o.createComponentVNode)(2,i.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,children:(0,o.createComponentVNode)(2,i.Icon,{name:"minus-circle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,ml:2,color:"bad",children:"shuttle"===u?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:"18px",mt:4,children:(0,o.createComponentVNode)(2,i.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return c("request")}})})]}),(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d,{type:u,blind_drop:p})})]})};var c=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.id===t})))?void 0:n.name},l=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.name===t})))?void 0:n.id},s={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=e.type,p=e.blind_drop,m=d.status,h=d.locked,f=d.authorization_required,C=d.destination,g=d.docked_location,N=d.timer_str,b=d.locations,V=void 0===b?[]:b;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:s[m]||"bad",ml:1,children:m||"Not Available"})]}),(0,o.createComponentVNode)(2,i.Section,{title:"shuttle"===u?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",buttons:"shuttle"!==u&&0===V.length&&!!p&&(0,o.createComponentVNode)(2,i.Button,{color:"bad",icon:"exclamation-triangle",disabled:f||!p,content:"Blind Drop",onClick:function(){return a("random")}}),children:0===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"bad",children:"Not Available"})||1===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"average",children:c(V,C)})||(0,o.createComponentVNode)(2,i.Dropdown,{mb:1.7,over:!0,width:"240px",options:V.map((function(e){return e.name})),disabled:h||f,selected:c(V,C)||"Select a Destination",onSelected:function(e){return a("set_destination",{destination:l(V,e)})}})})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:"Depart",disabled:!c(V,C)||h||f||"Idle"!==m,icon:"arrow-up",textAlign:"center",onClick:function(){return a("move",{shuttle_id:C})}})]})]})};t.ShuttleConsoleContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleManipulator=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},icon:"info-circle",content:"Status"},"Status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},icon:"file-import",content:"Templates"},"Templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},icon:"tools",content:"Modification"},"Modification")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.shuttles;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:e.id}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Timer",children:e.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Mode",children:e.mode}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:e.status}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){return a("fast_travel",{id:e.id})}})]})]})},e.name)}))})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.templates_tabs,s=c.existing_shuttle,d=c.templates;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e===s.id,icon:"file",content:e,onClick:function(){return a("select_template_category",{cat:e})}},e)}))}),!!s&&d[s.id].templates.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Load Template",icon:"download",onClick:function(){return a("select_template",{shuttle_id:e.shuttle_id})}})})]})},e.name)}))]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.existing_shuttle,s=c.selected;return(0,o.createComponentVNode)(2,i.Box,{children:[l?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: "+l.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l.status}),l.timer&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Timer",children:l.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:l.id})}})})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: None"}),s?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: "+s.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",icon:"eye",onClick:function(){return a("preview",{shuttle_id:s.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",icon:"download",onClick:function(){return a("load",{shuttle_id:s.shuttle_id})}})]})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: None"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.hasOccupant?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,g));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[r,(0,o.createComponentVNode)(2,f)]})})};var p=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,C)],4)},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data,d=s.occupant,p=s.auto_eject_dead;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,content:p?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(p?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(d.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[d.stat][0],children:l[d.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxTemp,value:d.bodyTemperature/d.maxTemp,color:u[d.temperatureSuitability+3],children:[(0,r.round)(d.btCelsius,0),"\xb0C,",(0,r.round)(d.btFaren,0),"\xb0F"]})}),!!d.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.bloodMax,value:d.bloodLevel/d.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[d.bloodPercent,"%, ",d.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[d.pulse," BPM"]})],4)]})})},h=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]],0)},t)},t)}))})})},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.hasOccupant,s=c.isBeakerLoaded,d=c.beakerMaxSpace,u=c.beakerFreeSpace,p=c.dialysis&&u>0;return(0,o.createComponentVNode)(2,a.Section,{title:"Dialysis",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!s||u<=0||!l,selected:p,icon:p?"toggle-on":"toggle-off",content:p?"Active":"Inactive",onClick:function(){return r("togglefilter")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:u/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[u,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.occupant,s=c.chemicals,d=c.maxchem,u=c.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Chemicals",flexGrow:"1",children:s.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:e.occ_amount/d,color:i,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[e.pretty_amount,"/",d,"u"]}),u.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>d||2===l.stat,icon:"syringe",content:"Inject "+t+"u",title:"Inject "+t+"u of "+e.title+" into the occupant",mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SlotMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SlotMachine=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return null===s.money?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"Could not scan your card or could not find account!"}),(0,o.createComponentVNode)(2,i.Box,{children:"Please wear or hold your ID and try again."})]})})}):(n=1===s.plays?s.plays+" player has tried their luck today!":s.plays+" players have tried their luck today!",(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{lineHeight:2,children:n}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Credits Remaining",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:s.money})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"50 credits to spin",children:(0,o.createComponentVNode)(2,i.Button,{icon:"coins",disabled:s.working,content:s.working?"Spinning...":"Spin",onClick:function(){return l("spin")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,lineHeight:2,color:s.resultlvl,children:s.result})]})})}))}},function(e,t,n){"use strict";t.__esModule=!0,t.Smartfridge=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Smartfridge=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.secure,d=l.can_dry,u=l.drying,p=l.contents;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[!!s&&(0,o.createComponentVNode)(2,i.Section,{title:"Secure",children:(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Secure Access: Please have your identification ready."})}),!!d&&(0,o.createComponentVNode)(2,i.Section,{title:"Drying rack",children:(0,o.createComponentVNode)(2,i.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){return c("drying")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Contents",children:[!p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:" No products loaded. "}),!!p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"45%",children:e.display_name}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"25%",children:["(",e.quantity," in stock)"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){return c("vend",{index:e.vend,amount:1})}}),(0,o.createComponentVNode)(2,i.NumberInput,{width:"40px",minValue:0,value:0,maxValue:e.quantity,step:1,stepPixelSize:3,onChange:function(t,n){return c("vend",{index:e.vend,amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all. ",onClick:function(){return c("vend",{index:e.vend,amount:e.quantity})}})]})]},e)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(1),i=n(2),a=n(100),c=n(3);t.Smes=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.capacityPercent,u=(s.capacity,s.charge),p=s.inputAttempt,m=s.inputting,h=s.inputLevel,f=s.inputLevelMax,C=s.inputAvailable,g=s.outputAttempt,N=s.outputting,b=s.outputLevel,V=s.outputLevelMax,v=s.outputUsed,x=(d>=100?"good":m&&"average")||"bad",y=(N?"good":u>0&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*d,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return l("tryinput")},children:p?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:x,children:(d>=100?"Fully Charged":m&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===h,onClick:function(){return l("input",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===h,onClick:function(){return l("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:h/1e3,fillValue:C/1e3,minValue:0,maxValue:f/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("input",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:h===f,onClick:function(){return l("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:h===f,onClick:function(){return l("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(C)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return l("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:y,children:N?"Sending":u>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===b,onClick:function(){return l("output",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===b,onClick:function(){return l("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:b/1e3,minValue:0,maxValue:V/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("output",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:b===V,onClick:function(){return l("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:b===V,onClick:function(){return l("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(v)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.generated,d=l.generated_ratio,u=l.tracking_state,p=l.tracking_rate,m=l.connected_panels,h=l.connected_tracker,f=l.cdir,C=l.direction,g=l.rotating_direction;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return c("refresh")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar panels",color:m>0?"good":"bad",children:m})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:d,children:s+" W"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[f,"\xb0 (",C,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[2===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Automated "}),1===u&&(0,o.createComponentVNode)(2,i.Box,{children:[" ",p,"\xb0/h (",g,") "]}),0===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Tracker offline "})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[2!==u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(e,t){return c("cdir",{cdir:t})}}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===u,onClick:function(){return c("track",{track:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===u,onClick:function(){return c("track",{track:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===u,disabled:!h,onClick:function(){return c("track",{track:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[1===u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onDrag:function(e,t){return c("tdir",{tdir:t})}}),0===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Tracker offline "}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{mb:.5,title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){return c("jump",{ID:e.uids})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){return c("spawn",{ID:e.uids})}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:e.desc}),!!e.fluff&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:e.fluff}),!!e.important_info&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsole=t.SpiderOS=void 0;var o=n(0),r=n(1),i=n(2),a=n(64),c=n(3);t.SpiderOS=function(e,t){var n,a=(0,r.useBackend)(t),f=a.act,C=a.data;return 0===C.suit_tgui_state?n=(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"60%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,p)})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})]}):1===C.suit_tgui_state&&(n=(0,o.createComponentVNode)(2,i.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h,{allMessages:C.current_load_text,finishedTimeout:3e3,current_initialisation_phase:C.current_initialisation_phase,end_terminal:C.end_terminal,onFinished:function(){return f("set_UI_state",{suit_tgui_state:0})}})]})})),(0,o.createComponentVNode)(2,c.Window,{theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:n})})})};var l=function(e,t){var n=(0,r.useBackend)(t).data,a=n.allStylesPreview,c=n.style_preview_icon_state;return(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u041d\u0430\u0448\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u044f \u043e\u0431\u043e\u0440\u043e\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043f\u0440\u0438 \u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0443\u0431\u0438\u0439\u0446\u044b.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+a[c],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})})})})},s=function(e,t){var n,a,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data,p=u.designs,m=u.design_choice,h=u.scarf_design_choice,f=u.colors,C=u.color_choice,g=u.genders,N=u.preferred_clothes_gender,b=u.suit_state,V=u.preferred_scarf_over_hood,v=u.show_charge_UI,x=u.has_martial_art,y=u.show_concentration_UI;return n=0===b?"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c":"\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c",a=0===V?"\u041a\u0430\u043f\u044e\u0448\u043e\u043d":"\u0428\u0430\u0440\u0444",c=1===V?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c \u0448\u0430\u0440\u0444\u0430",content:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:h,onSelected:function(e){return d("set_scarf_design",{scarf_design_choice:e})}})}):null,l=x?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f",content:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{selected:y,width:"78px",textAlign:"left",content:y?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_concentration")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043b\u0438 \u0432\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432\u043e\u0433\u043e \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-left"})]})}):null,(0,o.createComponentVNode)(2,i.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,width:"100%",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:m,onSelected:function(e){return d("set_design",{design_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:f,selected:C,onSelected:function(e){return d("set_color",{color_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0416\u0435\u043d\u0441\u043a\u0438\u0439/\u041c\u0443\u0436\u0441\u043a\u043e\u0439",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:g,selected:N,onSelected:function(e){return d("set_gender",{preferred_clothes_gender:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041a\u0430\u043f\u044e\u0448\u043e\u043d",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===b?"":"Button_disabled",width:"78px",selected:V,disabled:b,textAlign:"left",content:a,onClick:function(){return d("toggle_scarf")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043a\u0430\u043f\u044e\u0448\u043e\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043e\u0441\u044b. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 \u0433\u043e\u043b\u043e\u0432\u0430 \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430! \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u0430\u043d\u043e-\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0433\u0440\u043e\u0437\u044b \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u044f \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443! \u0423\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0430\u043d\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0443\u0431\u043e\u0440\u043e\u0432 \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0435.',tooltipPosition:"top-left"})]}),c,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Button,{selected:v,width:"78px",textAlign:"left",content:v?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_charge")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u0440\u044f\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430.",tooltipPosition:"top-left"})]}),l]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+C,success:0,danger:0,mt:-1.2,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:n,tooltip:"\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u043d\u0451\u043c \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043b\u044e\u0431\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0441\u0442\u044e\u043c \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u0430\u0440\u044f\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-left",onClick:function(){return d("initialise_suit")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data.allActionsPreview;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041c\u043e\u043b\u043e\u0434\u044b\u043c \u0443\u0431\u0438\u0439\u0446\u0430\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0445 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a. \n\u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043c\u0438\u0441\u0441\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u0432\u044b\u0434\u0430\u0434\u0443\u0442 \u0438\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_teleport,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u0438 \u0448\u0430\u0442\u0442\u043b",content:"\u0412 \u0432\u0430\u0448\u0435\u043c \u0414\u043e\u0434\u0437\u0451 \u0435\u0441\u0442\u044c \u043b\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f, \u043d\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043d\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u043e\u043d\u043d\u0435\u043b\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \n\u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \n\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0448\u0430\u0442\u0442\u043b\u0430, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0442\u0435\u0442\u044c \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432\u0430\u043c, \u0447\u0442\u043e \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043a\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043b\u0430 \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043b\u0438\u0446, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.headset_green,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a",content:"\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0439, \u043d\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043c\u043e\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0438. \u0412 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0431\u043e\u0440\u0433\u043e\u043c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u043d\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043e\u043d \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u0438 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0438 \u0438/\u0438\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u0430\u043c \u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0441\u0432\u044f\u0437\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438- \u0447\u0435\u0441\u043a\u0438 \u0443\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0432\u0430\u043c \u0441\u0430\u043c\u0438\u043c \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_sleeper,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0445\u0438\u0449\u0435\u043d\u0438\u0435 \u044d\u043a\u0438\u043f\u0430\u0436\u0430",content:"\u041f\u043e\u0440\u043e\u0439 \u043a\u043b\u0430\u043d\u0443 \u043d\u0443\u0436\u043d\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0434\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0443\u0436\u043e\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u0440\u0443\u043f\u0438\u0446\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u043e\u0445\u0438\u0449\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \n\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0445\u0438- \u0442\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u043a\u0430\u0444\u0430\u043d\u0434\u0440\u044b, \u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043f\u0430\u0441 \u043d\u0430- \u0440\u0443\u0447\u043d\u0438\u043a\u043e\u0432, \u043a\u0438\u0441\u043b\u043e\u0440\u043e\u0434\u0430 \u0438 \u0431\u0430\u043b\u043b\u043e- \u043d\u043e\u0432. \n\u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043b\u044e\u0434\u0435\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043c\u043f\u0443\u043b\u044c\u0441, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0442\u0430\u043d\u044f \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. ",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ai_face,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043d\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0430\u0431\u043e- \u0442\u0430\u0436 \u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u0440\u043e- \u0446\u0435\u0441\u0441 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043e\u0442 \u043d\u0430\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \n\u041f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u043a\u043b\u0430\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439. \u0422\u0430\u043a \u0436\u0435 \u0432\u0437\u043b\u043e\u043c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u043b\u0451\u0433\u043a\u0430\u044f - \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u0435\u0441\u0442\u044c \u0432\u0435\u0437\u0434\u0435. \u0410 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f. \u041d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c \u0435\u0441\u043b\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0434\u0435\u0439\u0441\u0442- \u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c \u0435\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_borg,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0440\u043e\u0431\u043e\u0442\u043e\u0432",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044f \u0432\u0430\u0448\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0438\u0441\u0441\u0438\u0438 \u0434\u043b\u044f \u0438\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u043c\u044b \u0434\u0430\u0451\u043c \u0432\u0430\u043c \u043e\u0441\u043e\u0431\u044b\u0439 "\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0449\u0438\u0439" \u0438\u0445 \u043f\u0440\u0438\u0431\u043e\u0440, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438. \n\u041f\u0440\u0438 \u0432\u0437\u043b\u043e\u043c\u0435 \u043a\u0438\u0431\u043e\u0440\u0433\u0430 \u0442\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c(\u0412\u0437\u043b\u043e\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f) \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u043d\u0443 \u0438 \u0432\u0430\u043c \u043b\u0438\u0447\u043d\u043e \u0441\u043b\u0443\u0433\u0443 \u0441\u043f\u043e\u0441\u043e\u0431- \u043d\u043e\u0433\u043e \u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u0430\u043a \u0432 \u0441\u0430\u0431\u043e\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0442\u0430\u043a \u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u0435\u0447\u0435\u043d\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0440\u043e\u0431\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u0430\u0449\u0451\u043d \u043b\u0438\u0447\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043d\u043e\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0438\u043d\u043f\u043e\u0438\u043d\u0442\u0435\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0435\u043c\u0443 \u043d\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u043e\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043a\u0430\u0442\u0430\u043d\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u043e\u043a\u0430\u0446\u0438\u044e!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.server,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",content:"\u041d\u0430 \u043d\u0430\u0443\u0447\u043d\u044b\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0447\u0451\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e- \u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0445\u043e- \u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435 \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0443- \u043f\u0430\u044e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043d\u043e \u0433\u0440\u044b\u0437\u0443\u0442\u0441\u044f \u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u044f. \u0427\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443. \n\u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0440\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0430 \u0438\u0445 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044f\u043d\u044b. \n\u041d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u043d\u0435 \u0434\u0440\u0435\u043c\u043b\u044e\u0442. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0437\u043b\u043e\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0451\u043d \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0418\u0418. \u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u044d\u0442\u043e\u043c\u0443.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.buckler,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043b\u0438",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u043e\u0433\u0430\u0442\u044b\u0435 \u0448\u0438\u0448\u043a\u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0437\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044f\u0437\u0430\u043d \u0434\u043e\u0436\u0438\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u043c\u0435\u043d\u044b! \n * \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b! \n * \u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0442\u043e \u0438\u043b\u0438 \u0447\u0442\u043e \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0434\u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043c\u0438\u0441\u0441\u0438\u044f \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e. \u041d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044f \u0431\u0435\u0437 \u043d\u0443\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u043d\u0430 \u0432\u0430\u0441 \u0441\u0430\u043c\u0438\u0445 \u043d\u0435 \u0432\u0435\u043b\u0438 \u043e\u0445\u043e\u0442\u0443! \n\u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0430\u043d \u043d\u0435 \u043e\u0434\u043e\u0431\u0440\u044f\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b "\u0417\u0430\u0449\u0438\u0442\u044b" \u0446\u0435\u043b\u0438. \u041d\u0435\u0442 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043d\u0438\u043c \u0442\u0430\u043c! \u041d\u0435 \u043f\u043e\u0440\u0442\u0438\u0442\u0435 \u043d\u0430\u0448\u0443 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e \u0432 \u0433\u043b\u0430\u0437\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.cash,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041a\u0440\u0430\u0436\u0430 \u0434\u0435\u043d\u0435\u0433",content:"\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e. \u0418\u043d\u043e\u0433\u0434\u0430 \u043a\u043b\u0430\u043d \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u043d\u044c- \u0433\u0430\u0445. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b \u0437\u0430\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u043d\u0430\u043c. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u0434\u0438\u043c \u0432\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043b\u044f \u0432\u0430\u0441 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0442\u0440\u0443\u0434\u043d\u0430\u044f, \u043d\u043e \u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0445 \u043a\u0440\u0430\u0436. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043a\u0430\u0440\u0442 \u0438 \u043e\u0431\u043d\u0430\u043b\u0438\u0447\u0438- \u0432\u0430\u043d\u0438\u044f \u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u0438 \u043e\u0433\u0440\u0430\u0431\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435. \u0414\u043e\u0441\u0442\u0430\u043d\u044c\u0442\u0435 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438!",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.handcuff,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430",content:"\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0447\u0443\u0436\u043e\u0439 \u043f\u043e\u0437\u043e\u0440 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0447\u0435\u043c \u0441\u043c\u0435\u0440\u0442\u044c. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432\u0430\u043c \u043f\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u044c \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043f\u043e \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0443\u043f\u0435\u043a\u043b\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0446\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0434. \u041d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0441\u0440\u043e\u043a \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 - \u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0435\u0442\u043e\u0434. \u0426\u0435\u043b\u044c \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u044e\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043b\u0438\u0447\u0438\u043d\u043e\u0439 \u0446\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u0441\u043b\u0438\u0448- \u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041b\u0438\u0448\u043d\u044f\u044f \u0434\u044b\u0440\u0430 \u0432 \u043e\u0431\u0448\u0438\u0432\u043a\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u0442\u0440\u0443\u043f\u044b - \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0448\u0430\u043d\u0441\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0430.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.spider_charge,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0440\u044b\u0432 \u043e\u0442\u0434\u0435\u043b\u0430",content:"\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 \u0431\u043e\u043c\u0431\u044b. \u042d\u0444\u0444\u0435\u043a- \u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0440\u0443\u0434\u0438\u044f \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0433\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0441\u044f\u0442 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u043e\u0431\u044c\u0435\u043a\u0442, \u043e\u043d\u0438 \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u041d\u043e \u0440\u0435\u0434\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b \u0441\u0434\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u043d\u0430 \u043f\u043e\u0434\u0440\u044b\u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u0430. \n\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0437\u0440\u044b\u0432\u0430 \u043d\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044c \u043e\u0445\u043e\u0442\u0430. \n \u041d\u0430\u0448\u0438 \u0431\u043e\u043c\u0431\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u0435\u043b\u044f\u043c\u0438. \u041d\u0438\u043a\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u0430\u0441 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043b\u0438\u0448\u044c \u0432 \u0437\u043e\u043d\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0421\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.BSM,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u0440\u043e\u0432\u0438",content:'"\u0417\u043d\u0430\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430" - \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u0438\u043d\u0430. \n\u0417\u0430 \u0433\u043e\u0434\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u043d\u0430 \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e- \u0442\u043e\u0440\u044b\u0445. \u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b. \u041a\u0440\u043e\u0432\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430\u0448\u0438\u043c \u0443\u0447\u0451\u043d\u044b\u043c. \n\u0418\u043c\u0435\u044e\u0449\u0430\u044f\u0441\u044f \u0443 \u0432\u0430\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043d\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043b\u044f \u043a\u0440\u043e\u0432\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b \u043d\u0435 \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430\u043c. \n\u0414\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u0440\u043e\u0432\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c 3 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043f\u043e\u043c\u0435- \u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043f\u0440\u043e\u0431\u0438\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \n\u041f\u0440\u0438\u043c\u0435\u0441\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.changeling,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0413\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u044b",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043e\u0437\u043e\u043c\u043d\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044f \u0432\u044b\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u043c\u0435\u044e\u0442 \u043a\u0440\u0430\u0441\u0442\u044c \u0433\u0435\u043d\u044b \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \n\u0421\u0432\u043e\u0438\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431- \u043b\u0435\u043c, \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u044b. \n\u042d\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043e\u043b\u044c \u0436\u0435 \u0445\u0438\u0442\u0440\u044b \u0441\u043a\u043e\u043b\u044c \u0438 \u0441\u043a\u0440\u044b\u0442\u043d\u044b. \u041d\u0435 \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0438 \u043e \u0447\u0451\u043c! \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0430\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0433\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u0430 \u043d\u0435 \u0437\u0430\u043f\u0438\u0445- \u043d\u0443\u0432 \u0435\u0433\u043e \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e \u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442\u043e\u0432. \u041d\u043e \u043e\u043d\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u043d\u0430 \u0434\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0438\u0445 \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0430\u0439\u0442\u0435 \u0438\u043c \u043f\u043e\u043f\u043b\u044f\u0441\u0430\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443. \u0418 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0445\u0440\u0430\u043d\u0430 \u0443\u0436\u0435 \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043d\u0438\u0445. \n\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c \u0441 \u044d\u0442\u0438\u043c...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.vampire,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u043c\u043f\u0438\u0440\u044b",content:"\u0414\u0435\u0448\u0451\u0432\u044b\u0435 \u0440\u043e\u043c\u0430\u043d\u044b, \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432\u0430\u043c\u043f\u0438\u0440\u043e\u0432 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a\u043e\u0432 \u043f\u044c\u044e\u0449\u0438\u0445 \u043a\u0440\u043e\u0432\u044c \u043b\u044e\u0434\u0435\u0439 \u0432 \u043d\u043e\u0447\u0438 \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e- \u0449\u0438\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e- \u0441\u0442\u044f\u043c\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0440\u043e\u043c\u0430\u043d\u0442\u0438\u0447\u043d\u044b... \n\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043d\u043e \u043d\u0430\u0448\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435- \u043d\u0438\u044f \u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0439 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0422\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432\u0430\u043c\u043f\u0438\u0440 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u0438\u043b\u0438 \u0443\u0433\u0440\u043e\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u044b \u0432\u043e\u043b\u044c\u043d\u044b \u0435\u0433\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \n\u0412\u0430\u043c\u043f\u0438\u0440\u044b \u043e\u0447\u0435\u043d\u044c \u043e\u043f\u0430\u0441\u043d\u044b \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438, \u043e\u043d\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043e\u0433\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u0438 \u043f\u043e\u0440\u0430\u0431\u043e\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c \u0441\u0432\u043e\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0438\u043c, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u0442\u0435 - \u043e\u043d\u0438 \u043b\u0438\u0448\u044c \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.syndicate,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442",content:"\u041d\u0430\u0448\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435. \u0421\u0431\u043e\u0440\u0438\u0449\u0435 \u043c\u043e\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043f\u043e\u0434\u043f\u043e\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043c\u0430\u043b\u043e... \n\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0430\u0437\u043e\u0432. \u041d\u043e \u0441\u0430\u043c\u043e\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043e\u0439 \u044d\u0442\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b - \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u044c \u043a \u041d\u0422. \n\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0430. \n\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u044e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041c\u044b \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u043c \u0438\u043c.",position:"bottom-left"})]})]})})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.allActionsPreview,s=c.blocked_TGUI_rows,d=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,o.createComponentVNode)(2,i.Section,{title:"\u041c\u043e\u0434\u0443\u043b\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u0414\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 3 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432",tooltipPosition:"bottom"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0440\u0438\u0437\u0440\u0430\u043a",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0421\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043e\u0432, \u043d\u0430\u043f\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043d\u0438 \u0438 \u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0440\u0438\u043c\u043e\u0439 \u0443\u0433\u0440\u043e\u0437\u043e\u0439, \u0432\u0441\u0451 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0437\u043d\u0430\u043b! \u0411\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b \u043a\u0430\u043a \u043f\u0440\u0438\u0437\u0440\u0430\u043a!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"smoke",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.smoke,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0414\u042b\u041c\u041e\u0412\u0410\u042f \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0432\u0440\u0430\u0433\u043e\u0432. \n\u042d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0437\u043e\u0440\u043e\u043c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0435\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0430\u043d\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043a \u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0433\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"ninja_cloak",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_cloak,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041d\u0415\u0412\u0418\u0414\u0418\u041c\u041e\u0421\u0422\u042c",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u043a\u0440\u044b\u0432\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u0425\u043e\u0442\u044c \u043f\u043e\u043b\u0435 \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0445\u043b\u0430\u0434\u043d\u043e\u043a\u0440\u043e\u0432\u0435\u043d. \n\u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 15 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"ninja_clones",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_clones,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u041a\u041b\u041e\u041d\u042b",content:"\u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043e\u0440\u0438\u0435\u043d\u0442\u0438- \u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043f\u0430\u0440\u044b \u043c\u0435\u0442\u0440\u043e\u0432. \n\u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e. \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0435\u0440\u0435\u0442\u044c \u0432\u0430\u0441 \u0437\u0430 4-\u043c\u044f \u0441\u0442\u0435\u043d\u0430\u043c\u0438. \u0411\u0443\u0434\u044c\u0442\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b. \n\u041a\u043b\u043e\u043d\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041a\u043b\u043e\u043d\u044b \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0443\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u0432. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 8 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"chameleon",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chameleon,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0425\u0410\u041c\u0415\u041b\u0415\u041e\u041d",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u0433\u043e\u043b\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438\u0441\u043a\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0441\u043b\u0443\u0445\u043e\u0432\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \n\u042d\u0442\u043e \u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0438 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u044d\u043a\u0438\u043f\u0430\u0436\u0430. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0430\u043c\u0435\u043b\u0435\u043e\u043d \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"ninja_spirit_form",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_spirit_form,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0424\u041e\u0420\u041c\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044b \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u044d\u0442\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438. \n\u0414\u0435\u043b\u0430\u044f \u0432\u0430\u0448\u0435 \u0442\u0435\u043b\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b. \n\u042d\u0442\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0441 \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0443\u043b\u044c \u0438 \u043b\u0435\u0437\u0432\u0438\u0439! \n\u041d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u043d\u044f\u0442\u044c \u0441 \u0441\u0435\u0431\u044f \u043d\u0430\u0440\u0443\u0447\u043d\u0438\u043a\u0438, \u0431\u043e\u043b\u044b \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043e\u0431\u0430 \u0438\u043b\u0438 \u044f\u0449\u0438\u043a\u0430, \u043e\u043a\u0430\u0436\u0438\u0441\u044c \u0432\u044b \u0442\u0430\u043c \u0437\u0430\u043f\u0435\u0440\u0442\u044b... \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u0430. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u0443\u0445\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438! \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 25 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0417\u043c\u0435\u0439",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435! \u0422\u0440\u044e\u043a\u0438, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u0449\u0438\u0442\u044b. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u043e\u0439 \u0441 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0438\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u0445\u043e\u0434\u044f \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0433\u0440\u044b\u0437\u0443\u043d\u044b, \u0447\u044c\u0451 \u043b\u043e\u0433\u043e\u0432\u043e \u043d\u0430\u0432\u0435\u0441\u0442\u0438\u043b \u0437\u043c\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"kunai",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.kunai,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041e\u0415\u041d\u041d\u041e\u0415 \u0414\u0416\u041e\u0425\u042c\u0401",content:"\u0422\u0430\u043a \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a \u0428\u044d\u043d\u0431\u044f\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u0438\u043d\u0436\u0430\u043b \u043d\u0430 \u0446\u0435\u043f\u0438. \n\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u0442\u044f\u043d\u0443\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u041e\u0440\u0443\u0436\u0438\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u0438\u0445 \u0431\u043e\u0451\u0432, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0436\u0435\u0440\u0442\u0432\u044b - \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0440\u043e\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 5 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"chem_injector",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chem_injector,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041b\u042f\u042e\u0429\u0418\u0419 \u041a\u041e\u041a\u0422\u0415\u0419\u041b\u042c",content:"\u0412\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0435\u0447\u0435\u0431\u043d\u0443\u044e \u0441\u043c\u0435\u0441\u044c. \u0421\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u041f\u0440\u0435\u043f\u0430\u0440\u0430\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442- \n\u0432\u0435\u043d\u043d\u043e-\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441\u044b \u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0430! \n\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u043e\u0437\u0438\u0440\u043e\u0432\u043a\u0435 \u043e\u043d\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 30 \u0435\u0434. \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c! \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0438\u043c\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044f\u0434\u0430. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emergency_blink",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emergency_blink,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041a\u0421\u0422\u0420\u0415\u041d\u041d\u0410\u042f \u0422\u0415\u041b\u0415\u041f\u041e\u0420\u0422\u0410\u0426\u0418\u042f",content:"\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0435\u0442\u0440\u043e\u0432. \n\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u043e\u0437\u0433\u043e\u0432\u044b\u0435 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0432\u043e\u0438\u043d\u044b \u043a\u043b\u0430\u043d\u0430, \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043e \u0441\u043d\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"caltrop",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.caltrop,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e-\u0427\u0415\u0421\u041d\u041e\u041a",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043b\u0442\u0440\u043e\u043f\u044b, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u044a\u0435\u0441\u0442\u043d\u044b\u043c \u0447\u0435\u0441\u043d\u043e\u043a\u043e\u043c. \n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043f\u0440\u0435\u0441\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043b\u043e\u0432\u0443\u0448\u043a\u0438. \n\u041b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 - \u0435\u0441\u043b\u0438 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c. \n\u0411\u043e\u043b\u044c \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043e\u0431\u043e\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d- \u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u0412\u044b \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u043e\u0442 \u043d\u0438\u0445. \u041d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0436\u0435 \u043b\u043e\u0432\u0443\u0448\u043a\u0438! \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"cloning",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.cloning,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0422\u041e\u0420\u041e\u0419 \u0428\u0410\u041d\u0421",content:"\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u043d\u043e\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u043c\u0438\u0441\u0441\u0438\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043b\u0430\u043f\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430. \u041c\u043e\u0449\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432\u0430\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 \u0442\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430. \n\u042d\u0442\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u043d\u0441, \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u0430\u0441 \u043a \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043b\u0435\u0447\u0438\u0432 \u043b\u044e\u0431\u044b\u0435 \u0442\u0440\u0430\u0432\u043c\u044b. \n\u041c\u044b \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u043f\u0440\u043e \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u043d\u0430. \u041d\u043e \u0443\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0430\u0441, \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043d\u0430 \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044e. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u043b\u044c",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u042f\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043b\u044e\u0434\u044f\u043c. \u0421\u0438\u043b\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043e\u0440\u0443\u0434\u0438\u044f \u0432\u044b\u0448\u0435 \u0438\u0445 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a \u0447\u0442\u043e \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043e\u044e \u0434\u043e\u0431\u044b\u0447\u0443. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0432\u043a\u0443\u0441 \u0441\u0442\u0430\u043b\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"shuriken",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.shuriken,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u0421\u042e\u0420\u0418\u041a\u0415\u041d\u042b",content:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u0443\u0441\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u0432 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0430\u0445 \u043a\u043e\u0441\u0442\u044e\u043c\u0430. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u043e \u0442\u0440\u0438 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u0430, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e. \n\u0421\u044e\u0440\u0438\u043a\u0435\u043d\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438\u0437\u043d\u0443\u0440\u044f\u044e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u043d\u0430\u043d\u043e\u0441\u044f\u0442 \u0441\u043b\u0430\u0431\u044b\u0439 \u043e\u0436\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043a\u043b\u043e, \u043a\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043d\u0430\u0440\u044f\u0434\u044b. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 300 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"adrenal",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.adrenal,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u041f\u041b\u0415\u0421\u041a \u0410\u0414\u0420\u0415\u041d\u0410\u041b\u0418\u041d\u0410",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043c\u043e\u0449\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0441 \u0432 \u0431\u043e\u044e \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0449\u0443\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u043a\u043b\u0435\u043c\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043e\u0433\u043b\u0443\u0448\u0430\u044e\u0449\u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432. \n\u041a\u043e\u0441\u0442\u044e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0440\u0430\u043d\u0430. \u0427\u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0451\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u044f \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0436\u0435\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0443\u0440\u0430\u043d\u0430 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emp",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emp,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e\u041c\u0410\u0413\u041d\u0418\u0422\u041d\u042b\u0419 \u0412\u0417\u0420\u042b\u0412",content:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0435 \u0432\u043e\u043b\u043d\u044b \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043f\u043e\u0434\u0440\u044b\u0432\u0430\u044e\u0442 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0430\u044e\u0442 - \u043a\u0438\u0431\u043e\u0440\u0433\u043e\u0432, \u0434\u0440\u043e\u043d\u043e\u0432, \u041a\u041f\u0411, \u044d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0440\u0443\u0436\u0438\u0435, \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0421\u0432\u0435\u0442\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044f\u0437\u0438 \u0438 \u0442.\u0434. \n\u042d\u0442\u043e\u0442 \u0432\u0437\u0440\u044b\u0432 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0432 \u0431\u043e\u044e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043d\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044c. \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c. \n\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0435\u043c \u043e\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0437\u043e\u0440\u0430. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043e\u0441\u043b\u0435\u043f\u043d\u0443\u0442\u044c, \u043f\u0440\u0438 \u043f\u043e\u0434\u0440\u044b\u0432\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044b\u0432 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"energynet",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.energynet,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0410\u042f \u0421\u0415\u0422\u042c",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043b\u043e\u0432\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0432\u0430\u043c\u0438 \u0446\u0435\u043b\u044c \u0432 \u043e\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043b\u043e\u0432\u0443\u0448\u043a\u0443. \n\u0418\u0437 \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u0432 \u0435\u0451 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c. \n\u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0430\u0433\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432 \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u043d\u0430\u0434\u043e\u0435\u0434\u043b\u0438\u0432\u044b\u0445 \u043e\u0445\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u043e\u0442\u043e\u0432. \n\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0441\u0435\u0442\u044c \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043e\u0442\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043a \u0436\u0435 \u0441\u0435\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u0435\u0442\u0438 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"spider_red",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.spider_red,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0411\u041e\u0415\u0412\u041e\u0415 \u0418\u0421\u041a\u0423\u0421\u0421\u0422\u0412\u041e \n\u041f\u041e\u041b\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041e\u0412\u042b",content:"\u0411\u043e\u0435\u0432\u043e\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043d\u0438\u043d\u0434\u0437\u044f \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0451\u043c\u043e\u0432. \n\u0412 \u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u0451\u043c\u044b: \n\u0412\u044b\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0443\u043a\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044b\u0440\u043e\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043b\u0430\u0434\u043e\u043d\u044c\u044e - \u043e\u0442\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442 \u0432\u0430\u0441, \u043b\u0438\u0448\u0430\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0441\u0438\u044f. \n\u041f\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043d\u0438\u0435 \u0448\u0435\u0438 - \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0435\u0437\u0433\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043b\u0435\u0436\u0430\u0447\u0443\u044e \u0436\u0435\u0440\u0442\u0432\u0443 \u043a\u0430\u0442\u0430\u043d\u043e\u0439 \u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u043a\u0435. \n\u042d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u043e\u0440\u043d\u0430\u0434\u043e - \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0432\u043e\u043a\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0434\u044b\u043c\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0448\u0430\u043d\u0441\u043e\u043c \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u043d\u044f\u0440\u044f\u0434\u044b \u0432\u0440\u0430\u0433\u043e\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.",position:"right"})]})]})]})]})})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0442\u0442\u043b\u043e\u043c",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0442\u0442\u043b\u043e\u043c. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0448\u0430\u0442\u0442\u043b\u0430!",tooltipPosition:"right"}),children:(0,o.createComponentVNode)(2,i.Flex,{ml:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.status?l.status:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.player_pos}),!!l.shuttle&&(!!l.docking_ports_len&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0442\u0442\u043b",children:l.docking_ports.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",content:e.name,onClick:function(){return c("move",{move:e.id})}},e.name)}))})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"Status",color:"red",children:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e",disabled:!l.status,onClick:function(){return c("request")}})})],0))]})})})};t.ShuttleConsole=p;var m=function(e,t){var n=(0,r.useBackend)(t).data,a=n.randomPercent,c=n.allActionsPreview,l=n.color_choice;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:l,value:a,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+l,mt:1,children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+c["spider_"+l],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Loading ",a+"%"]}),2)})})},h=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={lastText:"text do be there",currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.tick=function(){var e=this.props,t=this.state;e.allMessages===t.lastText||e.end_terminal?e.end_terminal&&(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout)):(t.currentDisplay.push(e.allMessages),t.lastText=e.allMessages)},a.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){return(0,o.createComponentVNode)(2,i.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.StationAlertConsoleContent=t.StationAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t).data.alarms||[],a=n.Fire||[],c=n.Atmosphere||[],l=n.Power||[];return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Fire Alarms",children:(0,o.createVNode)(1,"ul",null,[0===a.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),a.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Atmospherics Alarms",children:(0,o.createVNode)(1,"ul",null,[0===c.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),c.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Alarms",children:(0,o.createVNode)(1,"ul",null,[0===l.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),l.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)})],4)};t.StationAlertConsoleContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SuitStorage=function(e,t){var n=(0,r.useBackend)(t).data.uv;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[!!n&&(0,o.createComponentVNode)(2,i.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,o.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.helmet,d=c.suit,u=c.magboots,p=c.mask,m=c.storage,h=c.open,f=c.locked;return(0,o.createComponentVNode)(2,i.Section,{title:"Stored Items",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:f?"Unlock":"Lock",icon:f?"unlock":"lock",disabled:h,onClick:function(){return a("toggle_lock")}}),(0,o.createComponentVNode)(2,i.Button,{content:h?"Close unit":"Open unit",icon:h?"times-circle":"expand",color:h?"red":"green",disabled:f,onClick:function(){return a("toggle_open")}})],4),children:h&&!f?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,l,{object:s,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,o.createComponentVNode)(2,l,{object:d,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,o.createComponentVNode)(2,l,{object:u,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,o.createComponentVNode)(2,l,{object:p,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,o.createComponentVNode)(2,l,{object:m,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:f?"lock":"exclamation-circle",size:"5",mb:3}),(0,o.createVNode)(1,"br"),f?"The unit is locked.":"The unit is closed."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.object),l=e.label,s=e.missingText,d=e.eject;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:l,children:(0,o.createComponentVNode)(2,i.Box,{my:.5,children:c?(0,o.createComponentVNode)(2,i.Button,{my:-1,icon:"eject",content:c,onClick:function(){return a(d)}}):(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",textAlign:"center",content:"Start Disinfection Cycle",disabled:c.locked,onClick:function(){return a("cook")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SupermatterMonitor=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(80);t.SupermatterMonitor=function(e,t){var n=(0,r.useBackend)(t);n.act;return 0===n.data.active?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,s)};var l=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Detected Supermatter Shards",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Refresh",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:0===s.supermatters.length?(0,o.createVNode)(1,"h3",null,"No shards detected",16):(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.TableCell,{children:"Area"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Integrity"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Details"})]}),s.supermatters.map((function(e){return(0,o.createComponentVNode)(2,c.TableRow,{children:[(0,o.createComponentVNode)(2,c.TableCell,{children:e.area_name}),(0,o.createComponentVNode)(2,c.TableCell,{children:[e.integrity,"%"]}),(0,o.createComponentVNode)(2,c.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"View",onClick:function(){return l("view",{view:e.uid})}})})]},e)}))]})})})})})},s=function(e,t){var n,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Crystal Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"caret-square-left",content:"Back",onClick:function(){return d("back")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[95,Infinity],average:[80,94],bad:[-Infinity,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,i.Box,{color:(l=u.SM_power,l>300?"bad":l>150?"average":"good"),children:[u.SM_power," MeV/cm3"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:(c=u.SM_ambienttemp,c>5e3?"bad":c>4e3?"average":"good"),children:[u.SM_ambienttemp," K"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:(n=u.SM_ambientpressure,n>1e4?"bad":n>5e3?"average":"good"),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Gas Composition",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndicateComputerSimple=void 0;var o=n(0),r=n(1),i=n(2),a=(n(64),n(3));t.SyndicateComputerSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:l.rows.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.title,buttons:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontitle,disabled:e.buttondisabled,tooltip:e.buttontooltip,tooltipPosition:"left",onClick:function(){return c(e.buttonact)}}),children:[e.status,!!e.bullets&&(0,o.createComponentVNode)(2,i.Box,{children:e.bullets.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]},e.title)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndieCargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.SyndieCargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.is_public,s=void 0===l?0:l,d=i.cash,u=i.wait_time,p=i.is_cooldown,m=i.telepads_status,h=i.adminAddCash,f=m,C="",g=0,N="";return"Pads not linked!"===m?(g=0,C="Attempts to link telepads to the console.",N="Link pads"):p?p&&(N="Cooldown...",C="Pads are cooling off...",g=1,f=1!==u?m+" (ETA: "+u+" seconds)":m+" (ETA: "+u+" second)"):(g=0,C="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",N="Teleport"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Money Available",children:[d,(0,o.createComponentVNode)(2,c.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){return r("withdraw",d)}}),(0,o.createComponentVNode)(2,c.Button,{content:h,tooltip:"Bless the players with da money!",onClick:function(){return r("add_money",d)}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Telepads Status",children:f}),0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:N,tooltip:C,disabled:g,onClick:function(){return r("teleport")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Syndicate Black Market Log",onClick:function(){return r("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Credits)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TTSSeedsExplorerContent=t.TTSSeedsExplorer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={0:"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},l={"\u041c\u0443\u0436\u0441\u043a\u043e\u0439":{icon:"mars",color:"blue"},"\u0416\u0435\u043d\u0441\u043a\u0438\u0439":{icon:"venus",color:"purple"},"\u041b\u044e\u0431\u043e\u0439":{icon:"venus-mars",color:"white"}},s=function(e,t,n,r){return void 0===r&&(r=null),e.map((function(e){var a,c=null!=(a=e[r])?a:e;return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:t.includes(e),content:c,onClick:function(){t.includes(e)?n(t.filter((function(t){var n;return(null!=(n=t[r])?n:t)!==e}))):n([e].concat(t))}},c)}))};t.TTSSeedsExplorer=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.providers,p=d.seeds,m=d.selected_seed,h=d.phrases,f=d.donator_level,C=p.map((function(e){return e.category})).filter((function(e,t,n){return n.indexOf(e)===t})),g=p.map((function(e){return e.gender})).filter((function(e,t,n){return n.indexOf(e)===t})),N=p.map((function(e){return e.donator_level})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return c[e]})),b=(0,r.useLocalState)(t,"selectedProviders",u),V=b[0],v=b[1],x=(0,r.useLocalState)(t,"selectedGenders",g),y=x[0],k=x[1],w=(0,r.useLocalState)(t,"selectedCategories",C),_=w[0],B=w[1],S=(0,r.useLocalState)(t,"selectedDonatorLevels",N),L=S[0],A=S[1],E=(0,r.useLocalState)(t,"selectedPhrase",h[0]),I=E[0],D=E[1],T=(0,r.useLocalState)(t,"searchtext",""),F=T[0],M=T[1],P=s(u,V,v,"name"),O=s(g,y,k),R=s(C,_,B),j=s(N,L,A),U=(0,o.createComponentVNode)(2,i.Dropdown,{options:h,selected:I.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(e){return D(e)}}),z=(0,o.createComponentVNode)(2,i.Input,{placeholder:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435...",fluid:!0,onInput:function(e,t){return M(t)}}),W=p.sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return n>o?1:n0&&m!==e.name?"orange":"white",children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:m===e.name?.5:.25,textAlign:"left",children:e.category}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:m===e.name?"white":l[e.gender].color,textAlign:"left",children:(0,o.createComponentVNode)(2,i.Icon,{mx:1,size:1.2,name:l[e.gender].icon})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:e.donator_level>0&&(0,o.createFragment)([c[e.donator_level],(0,o.createComponentVNode)(2,i.Icon,{ml:1,mr:2,name:"coins"})],0)})]},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b",children:P}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u043b",children:O}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",children:R}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438",children:j}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:U}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0438\u0441\u043a",children:z})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0413\u043e\u043b\u043e\u0441\u0430 ("+W.length+"/"+p.length+")",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Table,{children:H})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.BlockQuote,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0447\u0430\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,o.createComponentVNode)(2,i.Box,{mt:2,italic:!0,children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c Discord-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})],4)};t.TTSSeedsExplorerContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.TachyonArrayContent=t.TachyonArray=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TachyonArray=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.records,u=void 0===d?[]:d,p=s.explosion_target,m=s.toxins_tech,h=s.printing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shift's Target",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Administration",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||h,align:"center",onClick:function(){return l("print_logs")}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){return l("delete_logs")}})]})]})}),u.length?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Records"})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records,l=void 0===c?[]:c;return(0,o.createComponentVNode)(2,i.Section,{title:"Logged Explosions",children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Epicenter"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Actual Size"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Theoretical Size"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.logged_time}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.epicenter}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.actual_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.theoretical_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return a("delete_record",{index:e.index})}})})]},e.index)}))]})})})})};t.TachyonArrayContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Tank=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return n=s.has_mask?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.connected?"check":"times",content:s.connected?"Internals On":"Internals Off",selected:s.connected,onClick:function(){return l("internals")}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tank Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:s.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Release Pressure",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:s.ReleasePressure===s.minReleasePressure,tooltip:"Min",onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,value:parseFloat(s.releasePressure),width:"65px",unit:"kPa",minValue:s.minReleasePressure,maxValue:s.maxReleasePressure,onChange:function(e,t){return l("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:s.ReleasePressure===s.maxReleasePressure,tooltip:"Max",onClick:function(){return l("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"",disabled:s.ReleasePressure===s.defaultReleasePressure,tooltip:"Reset",onClick:function(){return l("pressure",{pressure:"reset"})}})]}),n]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.o_tanks,d=l.p_tanks;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Oxygen Tank ("+s+")",disabled:0===s,icon:"arrow-circle-down",onClick:function(){return c("oxygen")}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Plasma Tank ("+d+")",disabled:0===d,icon:"arrow-circle-down",onClick:function(){return c("plasma")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsCore=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsCore=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data.ion),p=(0,r.useLocalState)(t,"tabIndex",0),m=p[0],h=p[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[1===u&&(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===m,onClick:function(){return h(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===m,onClick:function(){return h(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===m,onClick:function(){return h(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);case 2:return(0,o.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(m)]})})};var c=function(){return(0,o.createComponentVNode)(2,i.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.active,s=c.sectors_available,d=c.nttc_toggle_jobs,u=c.nttc_toggle_job_color,p=c.nttc_toggle_name_color,m=c.nttc_toggle_command_bold,h=c.nttc_job_indicator_type,f=c.nttc_setting_language,C=c.network_id;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){return a("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Radio Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcements",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"On":"Off",selected:d,icon:"user-tag",onClick:function(){return a("nttc_toggle_jobs")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:u?"On":"Off",selected:u,icon:"clipboard-list",onClick:function(){return a("nttc_toggle_job_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){return a("nttc_toggle_name_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Command Amplification",children:(0,o.createComponentVNode)(2,i.Button,{content:m?"On":"Off",selected:m,icon:"volume-up",onClick:function(){return a("nttc_toggle_command_bold")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Advanced",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcement Format",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"Unset",selected:h,icon:"pencil-alt",onClick:function(){return a("nttc_job_indicator_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Language Conversion",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"Unset",selected:f,icon:"globe",onClick:function(){return a("nttc_setting_language")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:C||"Unset",selected:C,icon:"server",onClick:function(){return a("network_id")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){return a("import")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){return a("export")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.link_password,s=c.relay_entries;return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linkage Password",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"Unset",selected:l,icon:"lock",onClick:function(){return a("change_password")}})})}),(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Unlink"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:1===e.status?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Online"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Offline"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",onClick:function(){return a("unlink",{addr:e.addr})}})})]},e.addr)}))]})]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.filtered_users;return(0,o.createComponentVNode)(2,i.Section,{title:"User Filtering",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Add User",icon:"user-plus",onClick:function(){return a("add_filter")}}),children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"90%"},children:"User"}),(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Remove",icon:"user-times",onClick:function(){return a("remove_filter",{user:e})}})})]},e)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsRelay=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsRelay=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.linked,p=d.active,m=d.network_id;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Relay Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"power-off",onClick:function(){return s("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){return s("network_id")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Link Status",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Linked"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Unlinked"})})]})}),1===u?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.linked_core_id,s=c.linked_core_addr,d=c.hidden_link;return(0,o.createComponentVNode)(2,i.Section,{title:"Link Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core Address",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hidden Link",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"Yes":"No",icon:d?"eye-slash":"eye",selected:d,onClick:function(){return a("toggle_hidden_link")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unlink",children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return a("unlink")}})})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.cores;return(0,o.createComponentVNode)(2,i.Section,{title:"Detected Cores",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Link"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Link",icon:"link",onClick:function(){return a("link",{addr:e.addr})}})})]},e.addr)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Teleporter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(188);t.Teleporter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.targetsTeleport?s.targetsTeleport:{},u=s.calibrated,p=s.calibrating,m=s.powerstation,h=s.regime,f=s.teleporterhub,C=s.target,g=s.locked,N=s.accuracy;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(!m||!f)&&(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:[f,!m&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Powerstation not linked "}),m&&!f&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Teleporter hub not linked "})]}),m&&f&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Regime",children:[(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to another teleport hub. ",color:1===h?"good":null,onClick:function(){return l("setregime",{regime:1})},children:"Gate"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"One-way teleport. ",color:0===h?"good":null,onClick:function(){return l("setregime",{regime:0})},children:"Teleporter"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:2===h?"good":null,disabled:!g,onClick:function(){return l("setregime",{regime:2})},children:"GPS"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Teleport target",children:[0===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),1===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),2===h&&(0,o.createComponentVNode)(2,i.Box,{children:C})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Calibration",children:["None"!==C&&(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,c.GridColumn,{size:"2",children:p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"In Progress"})||(u||N>=3)&&(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Optimal"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Sub-Optimal"})}),(0,o.createComponentVNode)(2,c.GridColumn,{size:"3",children:(0,o.createComponentVNode)(2,i.Box,{"class":"ml-1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!(!u&&!p),onClick:function(){return l("calibrate")}})})})]}),"None"===C&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(g&&m&&f&&2===h)&&(0,o.createComponentVNode)(2,i.Section,{title:"GPS",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-around",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return l("load")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return l("eject")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ThiefKit=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ThiefKit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.uses,d=l.possible_uses,u=l.multi_uses,p=l.kits,m=l.choosen_kits;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041d\u0430\u0431\u043e\u0440 \u0413\u0438\u043b\u044c\u0434\u0438\u0438 \u0412\u043e\u0440\u043e\u0432:",children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:[(0,o.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0433\u0438\u043b\u044c\u0434\u0438\u0438 \u0432\u043e\u0440\u043e\u0432.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"\u041d\u0430\u0431\u043e\u0440 \u0432\u043e\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043d\u0433\u0435\u0440\u0430. \u041d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0451\u043c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u0448\u044c \u0432\u043d\u0443\u0442\u0440\u044c.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"p",null,(0,o.createVNode)(1,"b",null,"\u041a\u0430\u043a\u043e\u0435 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442?:",16),2),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u0432:"),(0,o.createComponentVNode)(2,i.Box,{as:"span",color:s<=0?"good":s=d,onClick:function(){return c("randomKit")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c",disabled:e.was_taken||s>=d,onClick:function(){return c("takeKit",{item:e.type})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:!e.was_taken,onClick:function(){return c("undoKit",{item:e.type})}})]}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:e.desc})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b:",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:m&&m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",onClick:function(){return c("undoKit",{item:e.type})}}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:" "})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",color:sp}),children:(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:(0,a.decodeHtmlEntities)(e.desc)})},(0,a.decodeHtmlEntities)(e.name))}))})]})]})},f=function(e,t){var n=(0,c.useBackend)(t),s=(n.act,n.data.exploitable),u=(0,c.useLocalState)(t,"selectedRecord",s[0]),p=u[0],m=u[1],h=(0,c.useLocalState)(t,"searchText",""),f=h[0],C=h[1],g=function(e,t){void 0===t&&(t="");var n=(0,a.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)}(s,f);return(0,o.createComponentVNode)(2,l.Section,{title:"Exploitable Records",children:(0,o.createComponentVNode)(2,l.Flex,{children:[(0,o.createComponentVNode)(2,d.FlexItem,{basis:20,children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(e,t){return C(t)}}),(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,children:g.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:e===p,onClick:function(){return m(e)},children:e.name},e)}))})]}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Name: "+p.name,children:[(0,o.createComponentVNode)(2,l.Box,{children:["Age: ",p.age]}),(0,o.createComponentVNode)(2,l.Box,{children:["Fingerprint: ",p.fingerprint]}),(0,o.createComponentVNode)(2,l.Box,{children:["Rank: ",p.rank]}),(0,o.createComponentVNode)(2,l.Box,{children:["Sex: ",p.sex]}),(0,o.createComponentVNode)(2,l.Box,{children:["Species: ",p.species]})]})})]})})};(0,p.modalRegisterBodyOverride)("become_contractor",(function(e,t){var n,r,i,a=(0,c.useBackend)(t).data,d=(a.contractor||{}).time_left,u=!!(null==a||null==(n=a.contractor)?void 0:n.available),m=!!(null==a||null==(r=a.contractor)?void 0:r.affordable),h=!!(null==a||null==(i=a.contractor)?void 0:i.accepted);return(0,o.createComponentVNode)(2,l.Section,{level:"2",m:"-1rem",pb:"1rem",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{name:"suitcase"}),(0,o.createTextVNode)("\xa0 Contracting Opportunity")],4),children:[(0,o.createComponentVNode)(2,l.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,o.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,o.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer."]}),(0,o.createComponentVNode)(2,l.Button.Confirm,{disabled:!u||h,italic:!u,bold:u,icon:u&&!h&&"check",color:"good",content:h?"Accepted":u?["Accept Offer",(0,o.createComponentVNode)(2,s.Countdown,{timeLeft:d,format:function(e,t){return" ("+t+")"}},"countdown")]:m?"Offer expired":"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,p.modalAnswer)(t,e.id,1)}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.VampireSpecMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VampireSpecMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,u)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Hemomancer",children:[(0,o.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Vampiric claws",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood Barrier",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood tendrils",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Sanguine pool",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Predator senses",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood eruption",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"The blood bringers rite",16),(0,o.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Hemomancer",onClick:function(){return a("hemomancer")}})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Umbrae",children:[(0,o.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Cloak of darkness",16),(0,o.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow anchor",16),(0,o.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow snare",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dark passage",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Extinguish",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,o.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Eternal darkness",16),(0,o.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,o.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,o.createComponentVNode)(2,i.Button,{content:"Umbrae",onClick:function(){return a("umbrae")}})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Gargantua",children:[(0,o.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rejuvenate",16),(0,o.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell",16),(0,o.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Seismic stomp",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood rush",16),(0,o.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell II",16),(0,o.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Overwhelming force",16),(0,o.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Demonic grasp",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Charge",16),(0,o.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Gargantua",onClick:function(){return a("gargantua")}})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Dantalion",children:[(0,o.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Enthrall",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall cap",16),(0,o.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall commune",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Subspace swap",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Pacify",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Decoy",16),(0,o.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rally thralls",16),(0,o.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood bond",16),(0,o.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Mass Hysteria",16),(0,o.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Dantalion",onClick:function(){return a("dantalion")}})]})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Bestia",children:[(0,o.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Check Trophies",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect",16),(0,o.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect Cap",16),(0,o.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Infected Trophy",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Lunge",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Mark the Prey",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Anabiosis",16),(0,o.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Summon Bats",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,o.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Bestia",onClick:function(){return a("bestia")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VampireTrophiesStatus=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e){return(Math.round(10*e)/10).toFixed(1)};t.VampireTrophiesStatus=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,N)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.hearts,l=a.lungs,s=a.livers,d=a.kidneys,u=a.eyes,p=a.ears,m=a.trophies_max_gen,h=a.trophies_max_crit,f=a.icon_hearts,C=a.icon_lungs,g=a.icon_livers,N=a.icon_kidneys,b=a.icon_eyes,V=a.icon_ears;return(0,o.createComponentVNode)(2,i.Section,{title:"Trophies",color:"red",textAlign:"center",verticalAlign:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",width:"16.6%",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"data:image/jpeg;base64,"+f,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,textColor:cp;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:l.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{color:(s<=0?"bad":s<=l.max_amount/2&&"average")||"good",children:[s," in stock"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,disabled:N,icon:g,content:C,textAlign:"left",onClick:function(){return a("vend",{inum:l.inum})}})})]})};t.Vending=function(e,t){var n,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.user,p=d.guestNotice,m=d.userMoney,h=d.chargesMoney,f=d.product_records,C=void 0===f?[]:f,g=d.coin_records,N=void 0===g?[]:g,b=d.hidden_records,V=void 0===b?[]:b,v=d.stock,x=(d.vend_ready,d.coin_name),y=d.inserted_item_name,k=d.panel_open,w=d.speaker,_=d.imagelist;return n=[].concat(C,N),d.extended_inventory&&(n=[].concat(n,V)),n=n.filter((function(e){return!!e})),(0,o.createComponentVNode)(2,a.Window,{title:"Vending Machine",resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,i.Section,{title:"User",children:u&&(0,o.createComponentVNode)(2,i.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,u.name,0),","," ",(0,o.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[m,(0,o.createTextVNode)(" credits")],0),"."]})||(0,o.createComponentVNode)(2,i.Box,{color:"light-grey",children:p})}),!!x&&(0,o.createComponentVNode)(2,i.Section,{title:"Coin",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){return s("remove_coin",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:x})}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Item",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){return s("eject_item",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:y})}),!!k&&(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:(0,o.createComponentVNode)(2,i.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){return s("toggle_voice",{})}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Products",children:(0,o.createComponentVNode)(2,i.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,c,{product:e,productStock:v[e.name],productImage:_[e.path]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VolumeMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VolumeMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.channels;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",overflow:"auto",children:l.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.25rem",color:"label",mt:t>0&&"0.5rem",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:0})}})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",mx:"1rem",children:(0,o.createComponentVNode)(2,i.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:e.volume,onChange:function(t,n){return c("volume",{channel:e.num,volume:n})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:100})}})})})]})})],4,e.num)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VotePanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VotePanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.remaining,d=l.question,u=l.choices,p=l.user_vote,m=l.counts,h=l.show_counts,f=l.show_cancel;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:d,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,children:["Time remaining: ",Math.round(s/10),"s"]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e+(h?" ("+(m[e]||0)+")":""),onClick:function(){return c("vote",{target:e})},selected:e===p})},e)})),!!f&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Cancel",onClick:function(){return c("cancel")}})},"Cancel")]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Wires=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.wires||[],d=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!d.length&&(0,o.createComponentVNode)(2,i.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Workshop=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(102),l=n(3);var s=function(e,t,n){return null===e.requirements||!(e.requirements.brass>t)&&!(e.requirements.power>n)};t.Workshop=function(e,t){var n=(0,i.useBackend)(t),r=n.act,s=n.data,p=s.brass_amount,m=s.power_amount,h=s.building,f=s.buildStart,C=s.buildEnd,g=s.worldTime,N=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),b=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,o.createComponentVNode)(2,l.Window,{theme:"clockwork",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brass",children:[N,(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return r("dispense")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:b})]})})]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar.Countdown,{start:f,current:g,end:C,bold:!0,children:["Building ",h,"\xa0(",(0,o.createComponentVNode)(2,c.Countdown,{current:g,timeLeft:C-g,format:function(e,t){return t.substr(3)}}),")"]})})]})})};var d=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),l=(c[0],c[1],(0,i.useLocalState)(t,"descending",!1)),s=l[0],d=l[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"arrow-down":"arrow-up",height:"19px",tooltip:s?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return d(!s)}})})]})})},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.items,d=(0,i.useLocalState)(t,"search",""),u=d[0],m=(d[1],(0,i.useLocalState)(t,"sort","Alphabetical")),h=(m[0],m[1],(0,i.useLocalState)(t,"descending",!1)),f=h[0],C=(h[1],(0,r.createSearch)(u,(function(e){return e[0]}))),g=!1,N=Object.entries(l).map((function(e,t){var n=Object.entries(e[1]).filter(C).map((function(e){return e[1].affordable=s(e[1],c.brass_amount,c.power_amount),e[1]}));if(0!==n.length)return f&&(n=n.reverse()),g=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:g?N:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,d=e.title,u=e.items,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:d},p,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hammer",disabled:!s(e,l.brass_amount,l.power_amount),onClick:function(){return c("make",{cat:d,name:e.name})},children:(0,r.toTitleCase)((0,r.toTitleCase)(e.name))}),(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,r.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,a.Box,{children:"No resources required."})}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}}]); \ No newline at end of file