diff --git a/_maps/map_files/RandomRuins/SpaceRuins/casino.dmm b/_maps/map_files/RandomRuins/SpaceRuins/casino.dmm index 89f31d70ff7..a696d867ac0 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/casino.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/casino.dmm @@ -571,7 +571,8 @@ /turf/simulated/wall/mineral/titanium, /area/ruin/space/powered/casino/docked_ships) "op" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -625,7 +626,7 @@ /turf/simulated/floor/plasteel/dark, /area/ruin/space/powered/casino/arrivals) "ql" = ( -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -1450,7 +1451,7 @@ /obj/machinery/light{ dir = 8 }, -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, diff --git a/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm b/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm index ec95b69cf14..d802a3f506a 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm @@ -203,7 +203,7 @@ }, /area/ruin/space/powered) "sB" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/effect/mapping_helpers/turfs/damage, /obj/machinery/light{ dir = 1 diff --git a/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm b/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm index 2e0d25a69a4..172fb56782e 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/moonoutpost19.dmm @@ -4977,7 +4977,8 @@ /turf/simulated/floor/catwalk, /area/ruin/space/moonbase19) "qQ" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/machinery/light/small{ dir = 8 }, @@ -6900,7 +6901,7 @@ }, /area/ruin/space/moonbase19) "zM" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "showroomfloor"; temperature = 273.15 @@ -10841,7 +10842,7 @@ /turf/simulated/floor/plasteel, /area/ruin/space/moonbase19) "RH" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "showroomfloor"; temperature = 273.15 diff --git a/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm b/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm index e5ade18f4aa..60bf5f16576 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/oldstation.dmm @@ -2153,7 +2153,7 @@ /obj/machinery/light/small{ dir = 1 }, -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -2270,8 +2270,9 @@ /turf/simulated/floor/plasteel/white, /area/ruin/ancientstation/comm) "gK" = ( -/obj/machinery/processor, /obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -2407,6 +2408,8 @@ "hc" = ( /obj/structure/table, /obj/effect/decal/cleanable/dirt, +/obj/item/reagent_containers/cooking/bowl, +/obj/item/clothing/head/chefhat, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -4371,6 +4374,14 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/ruin/ancientstation) +"pW" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/item/reagent_containers/cooking/oven, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/ancientstation/kitchen) "qd" = ( /obj/effect/decal/cleanable/glass, /obj/structure/computerframe{ @@ -4619,6 +4630,14 @@ }, /turf/simulated/floor/plasteel, /area/ruin/ancientstation) +"sY" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/table, +/obj/item/reagent_containers/cooking/grill_grate, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/ancientstation/kitchen) "ta" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 @@ -4855,14 +4874,6 @@ /obj/structure/sign/poster/official/nanomichi_ad, /turf/simulated/wall, /area/ruin/ancientstation/betanorth) -"vV" = ( -/obj/effect/decal/cleanable/dirt, -/obj/structure/table, -/obj/item/clothing/head/chefhat, -/turf/simulated/floor/plasteel{ - icon_state = "cafeteria" - }, -/area/ruin/ancientstation/kitchen) "vY" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ @@ -4942,6 +4953,13 @@ /obj/effect/spawner/random/fungus/frequent, /turf/simulated/wall, /area/ruin/ancientstation/comm) +"wJ" = ( +/obj/machinery/hydroponics/soil, +/obj/item/stack/sheet/wood{ + amount = 25 + }, +/turf/simulated/floor/grass, +/area/ruin/ancientstation/hydroponics) "xj" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/supply{ dir = 4 @@ -5078,7 +5096,8 @@ /turf/simulated/floor/plasteel, /area/ruin/ancientstation/thetacorridor) "zp" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -5598,6 +5617,13 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/ruin/ancientstation/rnd) +"EH" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/processor, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/ancientstation/kitchen) "EK" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, @@ -5629,7 +5655,7 @@ /turf/simulated/floor/engine, /area/ruin/ancientstation/proto) "Ft" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -6942,6 +6968,7 @@ "VR" = ( /obj/effect/decal/cleanable/dirt, /obj/structure/table, +/obj/item/reagent_containers/cooking/board, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -9243,7 +9270,7 @@ fO gs gt gG -VR +sY gG gG ia @@ -9282,7 +9309,7 @@ bq bC bC cB -cZ +wJ dw XV Kn @@ -9291,7 +9318,7 @@ fS gs zp kx -vV +gL gG gG hY @@ -9339,7 +9366,7 @@ fR gs gK gG -VR +pW VM gG hZ @@ -9434,7 +9461,7 @@ fd rC BU gs -gL +EH gG Tm gG diff --git a/_maps/map_files/RandomRuins/SpaceRuins/rocky_motel.dmm b/_maps/map_files/RandomRuins/SpaceRuins/rocky_motel.dmm index c23f7567a65..2c66119f248 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/rocky_motel.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/rocky_motel.dmm @@ -377,7 +377,7 @@ /turf/simulated/floor/plating/asteroid/airless, /area/ruin/space/powered) "Qv" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/machinery/light/small{ dir = 4; pixel_y = 8 diff --git a/_maps/map_files/RandomRuins/SpaceRuins/submaps/rocky_motel_submap.dmm b/_maps/map_files/RandomRuins/SpaceRuins/submaps/rocky_motel_submap.dmm index cf5d136e5cc..3e807c59314 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/submaps/rocky_motel_submap.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/submaps/rocky_motel_submap.dmm @@ -229,7 +229,7 @@ /turf/simulated/floor/plating/burnt, /area/ruin/space/powered) "zb" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/machinery/light/small{ dir = 4; pixel_y = 8 @@ -398,7 +398,7 @@ pixel_y = 8 }, /obj/structure/machine_frame, -/obj/item/circuitboard/oven, +/obj/item/circuitboard/cooking/oven, /obj/item/stack/cable_coil, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm index 1c4e734a3e5..43272a59d04 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm @@ -1033,7 +1033,7 @@ }, /area/ruin/unpowered/syndicate_space_base/arrivals) "fY" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -1380,6 +1380,7 @@ /area/ruin/unpowered/syndicate_space_base/virology) "hP" = ( /obj/structure/table, +/obj/item/kitchen/rollingpin, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -1413,7 +1414,7 @@ /turf/simulated/floor/plating/asteroid/airless, /area/ruin/unpowered/syndicate_space_base/inner) "ig" = ( -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -3076,6 +3077,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 }, +/obj/structure/closet/crate/cookware, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -3824,6 +3826,13 @@ /obj/effect/turf_decal/box/white, /turf/simulated/floor/wood, /area/ruin/unpowered/syndicate_space_base/service) +"wm" = ( +/obj/structure/table, +/obj/item/reagent_containers/cooking/board, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/unpowered/syndicate_space_base/service) "wn" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 10 @@ -4737,7 +4746,7 @@ /area/ruin/unpowered/syndicate_space_base/dormitories) "BJ" = ( /obj/machinery/light, -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -4756,7 +4765,8 @@ }, /area/ruin/unpowered/syndicate_space_base/medbay) "BL" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -8281,14 +8291,10 @@ /area/ruin/unpowered/syndicate_space_base/arrivals) "Xp" = ( /obj/structure/table, -/obj/item/book/manual/wiki/chef_recipes{ - pixel_x = 2; - pixel_y = 6 - }, -/obj/item/kitchen/rollingpin, /obj/structure/disposalpipe/segment{ dir = 4 }, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -11461,7 +11467,7 @@ gW oM oM mk -hP +wm MT Cw fY diff --git a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm index 5f756294644..1a8da5b6444 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/ussp.dmm @@ -4881,7 +4881,7 @@ /obj/structure/window/reinforced{ dir = 8 }, -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "whitered" @@ -5202,7 +5202,8 @@ /obj/structure/cable{ icon_state = "2-4" }, -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/structure/window/reinforced{ dir = 8 }, diff --git a/_maps/map_files/generic/Lavaland.dmm b/_maps/map_files/generic/Lavaland.dmm index ea317711cc3..6bf57cfc9a9 100644 --- a/_maps/map_files/generic/Lavaland.dmm +++ b/_maps/map_files/generic/Lavaland.dmm @@ -3420,7 +3420,8 @@ }, /area/mine/laborcamp) "jJ" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_regular_floor = "yellowsiding"; icon_state = "tranquillite" diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 723b4e0c1fe..d5147c6e11a 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -309,6 +309,12 @@ icon_state = "dark" }, /area/ghost_bar) +"bk" = ( +/obj/machinery/smartfridge/food/chef, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/tdome/tdomeobserve) "bo" = ( /turf/simulated/floor/holofloor{ dir = 4; @@ -1923,15 +1929,7 @@ id_tag = "s_docking_airlock"; name = "Shuttle Hatch" }, -/obj/docking_port/mobile/admin{ - dir = 2; - dwidth = 8; - height = 15; - id = "admin"; - name = "administration shuttle"; - timid = 1; - width = 18 - }, +/obj/docking_port/mobile/admin, /obj/docking_port/stationary{ dir = 2; dwidth = 9; @@ -2157,7 +2155,7 @@ /turf/simulated/floor/plating, /area/shuttle/syndicate_sit) "ia" = ( -/obj/machinery/cooker/deepfryer/upgraded, +/obj/machinery/cooking/deepfryer/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -3751,6 +3749,12 @@ /obj/mecha/combat/phazon, /turf/simulated/floor/plasteel, /area/admin) +"nh" = ( +/obj/machinery/smartfridge/foodcart, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/tdome/tdomeobserve) "ni" = ( /obj/item/kirbyplants/large, /turf/simulated/floor/plasteel/dark, @@ -4322,7 +4326,8 @@ }, /area/centcom/gamma) "oX" = ( -/obj/machinery/kitchen_machine/grill/upgraded, +/obj/structure/table, +/obj/machinery/cooking/grill/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -6242,7 +6247,7 @@ /turf/simulated/floor/carpet, /area/admin) "vV" = ( -/obj/machinery/kitchen_machine/candy_maker/upgraded, +/obj/machinery/cooking/ice_cream_mixer/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -6920,6 +6925,13 @@ /obj/structure/flora/ausbushes/ppflowers, /turf/simulated/floor/grass, /area/centcom/control) +"yR" = ( +/obj/structure/table/reinforced, +/obj/machinery/cooking/stovetop, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/tdome/tdomeobserve) "yZ" = ( /obj/effect/mapping_helpers/airlock/access/all/centcomm/shuttles, /obj/machinery/door/airlock/external{ @@ -7050,7 +7062,7 @@ /turf/simulated/floor/wood, /area/ghost_bar) "zB" = ( -/obj/machinery/kitchen_machine/oven/upgraded, +/obj/machinery/cooking/oven/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -7791,7 +7803,7 @@ /obj/machinery/barsign{ pixel_y = -32 }, -/obj/machinery/icemachine, +/obj/machinery/cooking/oven/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -7969,7 +7981,7 @@ }, /area/tdome/tdomeadmin) "Dk" = ( -/obj/machinery/kitchen_machine/oven/upgraded, +/obj/machinery/cooking/oven/upgraded, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -12663,6 +12675,12 @@ icon_state = "whiteblue" }, /area/centcom/control) +"TI" = ( +/obj/machinery/icemachine, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/tdome/tdomeobserve) "TK" = ( /obj/effect/turf_decal/stripes/line{ dir = 4 @@ -35757,9 +35775,9 @@ Yw Yw Yw Zr -aN -aN -aN +kg +kg +kg Ta Ox Ox @@ -36014,9 +36032,9 @@ OY Yz qg Zr -aN -aN -aN +TI +iJ +nh Ta rQ rQ @@ -36271,9 +36289,9 @@ VI Zr Zr Zr -ZT -ZT -ZT +bk +iJ +yR Ta rQ NA @@ -36526,7 +36544,7 @@ ZT JB iJ oJ -zB +ia aM oX iJ @@ -37044,7 +37062,7 @@ Cp iJ iJ iJ -ia +zB Ta rQ rQ diff --git a/_maps/map_files/stations/boxstation.dmm b/_maps/map_files/stations/boxstation.dmm index a2e16774a13..1c928b3c9ed 100644 --- a/_maps/map_files/stations/boxstation.dmm +++ b/_maps/map_files/stations/boxstation.dmm @@ -872,7 +872,7 @@ }, /area/station/security/armory/secure) "aeT" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "bar" @@ -10475,7 +10475,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/fpmaint2) "aLk" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/effect/spawner/random/cobweb/left/frequent, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint2) @@ -19798,7 +19798,7 @@ layer = 4; pixel_y = 32 }, -/obj/machinery/kitchen_machine/grill, +/obj/machinery/cooking/ice_cream_mixer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -19832,17 +19832,17 @@ name = "north bump"; pixel_y = 28 }, -/obj/machinery/kitchen_machine/candy_maker, +/obj/structure/table, +/obj/machinery/reagentgrinder{ + pixel_y = 5 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, /area/station/service/kitchen) "boo" = ( /obj/structure/table, -/obj/machinery/kitchen_machine/microwave{ - pixel_x = -3; - pixel_y = 6 - }, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -19856,7 +19856,7 @@ /turf/simulated/floor/carpet/grimey, /area/station/service/bar) "boq" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -19887,7 +19887,7 @@ name = "east bump"; pixel_x = 27 }, -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/machinery/light{ dir = 4 }, @@ -20300,6 +20300,10 @@ /obj/item/reagent_containers/glass/bucket, /obj/item/reagent_containers/glass/bucket, /obj/structure/shelf/service, +/obj/item/storage/box/cups, +/obj/item/stack/sheet/wood{ + amount = 30 + }, /turf/simulated/floor/plasteel{ icon_state = "hydrofloor" }, @@ -20852,6 +20856,7 @@ "brm" = ( /obj/structure/table, /obj/item/kitchen/rollingpin, +/obj/item/kitchen/knife, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -21856,13 +21861,6 @@ icon_state = "cafeteria" }, /area/station/service/kitchen) -"but" = ( -/obj/structure/table, -/obj/item/kitchen/knife, -/turf/simulated/floor/plasteel{ - icon_state = "cafeteria" - }, -/area/station/service/kitchen) "buu" = ( /obj/structure/table, /obj/item/reagent_containers/drinks/bottle/cream, @@ -21954,9 +21952,8 @@ }, /area/station/service/kitchen) "buK" = ( -/obj/structure/table, -/obj/machinery/reagentgrinder, /obj/machinery/requests_console/directional/east, +/obj/structure/closet/crate/cookware, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -46032,7 +46029,8 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft) "dmp" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/wood, /area/station/maintenance/aft) "dmq" = ( @@ -49769,6 +49767,10 @@ pixel_x = -8; pixel_y = 11 }, +/obj/item/kitchen/utensil/pfork{ + pixel_x = 3; + pixel_y = 6 + }, /turf/simulated/floor/plasteel{ icon_state = "bar" }, @@ -50505,14 +50507,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plating, /area/station/maintenance/aft) -"eOg" = ( -/obj/structure/disposalpipe/segment, -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "redcorner" - }, -/area/station/security/lobby) "eOh" = ( /obj/machinery/economy/vending/cigarette, /obj/structure/window/reinforced, @@ -52961,11 +52955,6 @@ icon_state = "white" }, /area/station/maintenance/asmaint) -"gaW" = ( -/obj/effect/spawner/random/blood/often, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/wood, -/area/station/maintenance/apmaint2) "gba" = ( /obj/structure/table/reinforced, /obj/machinery/door/firedoor, @@ -58258,6 +58247,13 @@ /obj/structure/flora/rock/pile/largejungle, /turf/simulated/floor/grass/jungle/no_creep, /area/station/command/bridge) +"iRs" = ( +/obj/structure/table, +/obj/item/reagent_containers/cooking/board, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/station/service/kitchen) "iRC" = ( /obj/structure/disposalpipe/segment/corner{ dir = 1 @@ -59858,7 +59854,8 @@ /turf/simulated/floor/carpet/royalblue, /area/station/command/office/captain) "jHG" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "bar" }, @@ -60072,6 +60069,14 @@ }, /turf/simulated/floor/plasteel, /area/station/science/xenobiology) +"jPg" = ( +/obj/structure/disposalpipe/segment, +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "redcorner" + }, +/area/station/security/lobby) "jPk" = ( /obj/structure/cable{ icon_state = "0-2" @@ -61452,6 +61457,13 @@ /obj/effect/mapping_helpers/turfs/rust/maybe, /turf/simulated/wall/r_wall, /area/station/engineering/gravitygenerator) +"kyJ" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "yellowcorner" + }, +/area/station/hallway/primary/aft/south) "kzB" = ( /obj/effect/spawner/random/food_or_drink/three_course_meal, /obj/structure/closet/crate/freezer, @@ -64384,10 +64396,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint2) -"lVm" = ( -/obj/item/kirbyplants/large, -/turf/simulated/floor/wood, -/area/station/service/bar) "lVr" = ( /obj/machinery/atmospherics/pipe/simple/visible/supply{ dir = 10 @@ -64455,13 +64463,17 @@ /area/station/maintenance/aft) "lXd" = ( /obj/structure/table/reinforced, -/obj/item/kitchen/utensil/pfork, /obj/machinery/atmospherics/unary/outlet_injector/on{ dir = 4 }, /obj/structure/cable{ icon_state = "4-8" }, +/obj/item/reagent_containers/cooking/board, +/obj/item/reagent_containers/cooking/bowl, +/obj/item/reagent_containers/cooking/pan, +/obj/item/reagent_containers/cooking/pot, +/obj/item/reagent_containers/cooking/grill_grate, /turf/simulated/floor/plasteel{ icon_state = "bar" }, @@ -66908,7 +66920,7 @@ /turf/simulated/floor/carpet/green, /area/station/command/bridge) "ntr" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /obj/machinery/light/small{ dir = 1 }, @@ -68126,15 +68138,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) -"nZt" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/effect/turf_decal/stripes/corner{ - dir = 1 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/secondary/entry/north) "nZF" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/research{ @@ -68390,6 +68393,11 @@ "ogf" = ( /obj/structure/cable, /obj/machinery/power/apc/directional/south, +/obj/structure/table, +/obj/machinery/kitchen_machine/microwave{ + pixel_y = 6; + pixel_x = -1 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -73536,6 +73544,12 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plating, /area/station/maintenance/aft) +"qEe" = ( +/obj/effect/turf_decal/stripes/corner{ + dir = 1 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/secondary/entry/north) "qEg" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -74285,7 +74299,7 @@ /area/station/maintenance/asmaint2) "qXR" = ( /obj/structure/table, -/obj/machinery/kitchen_machine/microwave, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "bar" }, @@ -75068,6 +75082,10 @@ icon_state = "dark" }, /area/station/telecomms/chamber) +"rsw" = ( +/obj/item/kirbyplants/large, +/turf/simulated/floor/wood, +/area/station/service/bar) "rsz" = ( /obj/structure/cable{ icon_state = "1-2" @@ -75502,13 +75520,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) -"rED" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "yellowcorner" - }, -/area/station/hallway/primary/aft/south) "rET" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 @@ -79248,6 +79259,13 @@ /obj/item/stack/spacecash/c200, /turf/simulated/floor/carpet/royalblack, /area/station/maintenance/apmaint) +"tLA" = ( +/obj/structure/table, +/obj/machinery/cooking/stovetop, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/station/service/kitchen) "tLB" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -82831,12 +82849,6 @@ }, /turf/simulated/floor/wood, /area/station/command/office/ntrep) -"vGS" = ( -/obj/effect/turf_decal/stripes/corner{ - dir = 1 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/secondary/entry/north) "vHd" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/structure/cable{ @@ -82983,6 +82995,15 @@ icon_state = "bluecorner" }, /area/station/hallway/secondary/exit) +"vKU" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/effect/turf_decal/stripes/corner{ + dir = 1 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/secondary/entry/north) "vLb" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/structure/cable{ @@ -85195,7 +85216,7 @@ "wWp" = ( /obj/effect/decal/cleanable/blood/xeno, /obj/machinery/light/small, -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "freezerfloor" }, @@ -85823,6 +85844,11 @@ }, /turf/simulated/floor/plasteel, /area/station/maintenance/assembly_line) +"xnt" = ( +/obj/effect/spawner/random/blood/often, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/wood, +/area/station/maintenance/apmaint2) "xnF" = ( /obj/structure/cable{ icon_state = "1-2" @@ -97881,7 +97907,7 @@ aJP aRm aOR aQa -vGS +qEe aMD fay fay @@ -98909,7 +98935,7 @@ aJR aRV aOR aQa -nZt +vKU aRd nff aUm @@ -110277,7 +110303,7 @@ gwb uWp tGO cgQ -gaW +xnt xRm lnh kym @@ -116188,7 +116214,7 @@ cBp cAL cDY cvx -rED +kyJ mqV ePP ePP @@ -116627,7 +116653,7 @@ avd axD axA ayj -eOg +jPg azP aBY aCv @@ -124373,7 +124399,7 @@ bqk bqk bqk bAV -lVm +rsw aUS bAo bHy @@ -125911,7 +125937,7 @@ bdT bdT bon btJ -but +bus bsT bof bwo @@ -126168,7 +126194,7 @@ bpG bdT boj btJ -bus +iRs bsS bof bof @@ -126937,7 +126963,7 @@ bLU bjv dnE bmy -boo +tLA btP buv bof diff --git a/_maps/map_files/stations/cerestation.dmm b/_maps/map_files/stations/cerestation.dmm index bba9537073d..182cafd541c 100644 --- a/_maps/map_files/stations/cerestation.dmm +++ b/_maps/map_files/stations/cerestation.dmm @@ -2645,8 +2645,8 @@ /turf/simulated/floor/grass, /area/station/hallway/secondary/exit) "ava" = ( -/obj/machinery/processor, /obj/machinery/alarm/directional/north, +/obj/structure/closet/crate/cookware, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -8575,6 +8575,12 @@ icon_state = "darkgreen" }, /area/station/medical/virology) +"bpS" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/universal, +/turf/simulated/floor/plasteel{ + icon_state = "darkgreen" + }, +/area/station/medical/virology) "bpT" = ( /turf/simulated/floor/plasteel{ dir = 8; @@ -10953,7 +10959,8 @@ /turf/simulated/wall, /area/station/science/genetics) "bDF" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/wood, /area/station/maintenance/asmaint) "bDG" = ( @@ -28599,11 +28606,8 @@ /turf/simulated/floor/plasteel/freezer, /area/station/service/kitchen) "emv" = ( -/obj/machinery/kitchen_machine/microwave{ - pixel_y = 5 - }, -/obj/structure/table/reinforced, /obj/structure/window/basic, +/obj/machinery/processor, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -35574,11 +35578,6 @@ /obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, /turf/simulated/floor/plating, /area/station/hallway/primary/fore/north) -"fXv" = ( -/obj/structure/disposalpipe/segment, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plating, -/area/station/maintenance/starboard) "fXz" = ( /obj/effect/spawner/random/dirt/often, /obj/structure/extinguisher_cabinet{ @@ -35654,22 +35653,6 @@ }, /turf/simulated/floor/carpet/arcade, /area/station/public/arcade) -"fYt" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/structure/cable/orange{ - icon_state = "4-8" - }, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "escape" - }, -/area/station/hallway/secondary/entry/east) "fYw" = ( /obj/structure/sign/radiation/rad_area, /turf/simulated/wall/r_wall, @@ -37938,13 +37921,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plating, /area/station/maintenance/port) -"gFd" = ( -/obj/machinery/shower{ - pixel_y = 24 - }, -/obj/effect/turf_decal/delivery/red/hollow, -/turf/simulated/floor/noslip, -/area/station/medical/virology) "gFg" = ( /turf/simulated/floor/plating{ icon_state = "asteroidplating" @@ -38011,6 +37987,9 @@ "gGj" = ( /obj/structure/table, /obj/item/wrench, +/obj/item/stack/sheet/wood{ + amount = 30 + }, /turf/simulated/floor/plasteel/freezer, /area/station/service/kitchen) "gGl" = ( @@ -43164,7 +43143,7 @@ /turf/simulated/floor/engine, /area/station/hallway/spacebridge/scidock) "hRT" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /obj/structure/window/basic{ dir = 1 }, @@ -47796,6 +47775,18 @@ icon_state = "darkredfull" }, /area/station/medical/morgue) +"iVq" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable/orange{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "redcorner" + }, +/area/station/security/lobby) "iVv" = ( /obj/structure/chair/stool{ dir = 1 @@ -50329,7 +50320,7 @@ /turf/simulated/wall/r_wall, /area/station/science/misc_lab) "jxH" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -51583,6 +51574,11 @@ icon_state = "redcorner" }, /area/station/hallway/primary/fore/west) +"jKO" = ( +/obj/structure/disposalpipe/segment, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plating, +/area/station/maintenance/starboard) "jKQ" = ( /obj/machinery/light/small{ dir = 4 @@ -51641,19 +51637,6 @@ icon_state = "bluecorner" }, /area/station/hallway/primary/starboard/south) -"jLs" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/port/south) "jLv" = ( /obj/structure/cable{ icon_state = "2-4" @@ -55309,8 +55292,7 @@ /area/station/security/brig) "kCC" = ( /obj/structure/table, -/obj/item/book/manual/wiki/chef_recipes, -/obj/item/kitchen/knife, +/obj/item/reagent_containers/cooking/board, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -55862,6 +55844,10 @@ icon_state = "bcircuit" }, /area/station/command/vault) +"kJa" = ( +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/wood, +/area/station/maintenance/gambling_den) "kJb" = ( /obj/structure/disposalpipe/segment{ color = "#954535" @@ -61956,6 +61942,19 @@ }, /turf/simulated/floor/plating, /area/station/hallway/primary/central/west) +"mcc" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/port/south) "mck" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 10 @@ -66209,10 +66208,6 @@ /obj/effect/mapping_helpers/airlock/access/any/supply/mining, /turf/simulated/floor/plating, /area/station/maintenance/starboard) -"nii" = ( -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/wood, -/area/station/maintenance/gambling_den) "nik" = ( /obj/machinery/atmospherics/pipe/manifold4w/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold4w/hidden/supply, @@ -68853,7 +68848,7 @@ /turf/simulated/floor/plating/asteroid/ancient, /area/station/maintenance/storage) "nQq" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/machinery/light{ dir = 1 }, @@ -74702,7 +74697,8 @@ /turf/simulated/floor/carpet/black, /area/station/command/bridge) "ply" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/machinery/camera{ c_tag = "Prison Cafeteria"; network = list("Prison","SS13"); @@ -77088,7 +77084,7 @@ }, /area/station/public/storage/tools/auxiliary) "pOz" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -78533,18 +78529,6 @@ icon_state = "asteroidplating" }, /area/station/maintenance/fsmaint) -"qfO" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable/orange{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "redcorner" - }, -/area/station/security/lobby) "qga" = ( /obj/structure/cable{ icon_state = "4-8" @@ -82176,25 +82160,6 @@ /obj/effect/mapping_helpers/airlock/locked, /turf/simulated/floor/plating, /area/station/supply/storage) -"qYA" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/structure/cable/orange{ - icon_state = "4-8" - }, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/fore/west) "qYE" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -83350,7 +83315,8 @@ /turf/simulated/floor/plating, /area/station/command/meeting_room) "rpg" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -85294,6 +85260,25 @@ icon_state = "red" }, /area/station/security/range) +"rNj" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/cable/orange{ + icon_state = "4-8" + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/fore/west) "rNm" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -85312,7 +85297,7 @@ }, /area/station/security/prison/cell_block/a) "rNo" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /obj/structure/window/reinforced{ dir = 1; layer = 2.9 @@ -85672,6 +85657,13 @@ }, /turf/simulated/floor/carpet/royalblack, /area/station/service/bar) +"rRd" = ( +/obj/machinery/shower{ + pixel_y = 24 + }, +/obj/effect/turf_decal/delivery/red/hollow, +/turf/simulated/floor/noslip, +/area/station/medical/virology) "rRe" = ( /obj/machinery/door/airlock/maintenance{ name = "Medbay Access" @@ -89067,6 +89059,7 @@ /obj/structure/table, /obj/item/eftpos, /obj/item/kitchen/rollingpin, +/obj/item/kitchen/knife, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -92962,6 +92955,22 @@ icon_state = "purplecorner" }, /area/station/hallway/primary/aft/east) +"tBx" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable/orange{ + icon_state = "4-8" + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "escape" + }, +/area/station/hallway/secondary/entry/east) "tBG" = ( /obj/structure/disposalpipe/segment, /obj/effect/spawner/window/reinforced, @@ -95924,12 +95933,6 @@ icon_state = "freezerfloor" }, /area/station/medical/cloning) -"ulc" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/universal, -/turf/simulated/floor/plasteel{ - icon_state = "darkgreen" - }, -/area/station/medical/virology) "uld" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ @@ -97146,7 +97149,7 @@ /obj/machinery/light/small{ dir = 1 }, -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /turf/simulated/floor/plasteel/freezer, /area/station/service/kitchen) "uzZ" = ( @@ -101200,9 +101203,7 @@ /area/station/maintenance/disposal/east) "vyr" = ( /obj/structure/table/reinforced, -/obj/machinery/kitchen_machine/microwave{ - pixel_y = 5 - }, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -130059,7 +130060,7 @@ avf aGB qyA qyA -qfO +iVq qyA crz jKZ @@ -130122,7 +130123,7 @@ nCV aZZ aZZ aZZ -jLs +mcc abh gTt cxo @@ -135280,7 +135281,7 @@ sbn sbn oTL qDR -nii +kJa gLG bRd doZ @@ -137771,7 +137772,7 @@ wvr kop bvz wvr -qYA +rNj chV iEe dzk @@ -159211,7 +159212,7 @@ nlJ tJP kQz nFW -fYt +tBx djw fEC xMQ @@ -166334,7 +166335,7 @@ fqw nTw lRL bni -gFd +rRd siv bJe uCk @@ -169936,7 +169937,7 @@ bni dzF dzP boq -ulc +bpS aGe dgD iQz @@ -172249,7 +172250,7 @@ lCC hnV tqi tqi -fXv +jKO eKJ wyL iJv diff --git a/_maps/map_files/stations/deltastation.dmm b/_maps/map_files/stations/deltastation.dmm index 5f92e796c8b..119c18f9c12 100644 --- a/_maps/map_files/stations/deltastation.dmm +++ b/_maps/map_files/stations/deltastation.dmm @@ -2079,6 +2079,13 @@ icon_state = "red" }, /area/station/maintenance/fore2) +"aoz" = ( +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "yellowcorner" + }, +/area/station/hallway/primary/port/north) "aoA" = ( /obj/item/kirbyplants/large, /turf/simulated/floor/plasteel{ @@ -15538,10 +15545,12 @@ /obj/machinery/alarm/directional/west, /obj/item/stack/package_wrap, /obj/item/hand_labeler, -/obj/item/book/manual/wiki/chef_recipes, /obj/effect/turf_decal/delivery/hollow, /obj/item/wrench, /obj/structure/shelf/service, +/obj/item/stack/sheet/wood{ + amount = 30 + }, /turf/simulated/floor/plasteel{ icon_state = "white" }, @@ -15934,13 +15943,13 @@ }, /area/station/service/kitchen) "bfk" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "redfull" }, /area/station/service/kitchen) "bfm" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "redfull" }, @@ -16301,7 +16310,7 @@ "bgB" = ( /obj/effect/turf_decal/delivery/hollow, /obj/structure/table, -/obj/item/reagent_containers/condiment/enzyme, +/obj/item/reagent_containers/cooking/board, /turf/simulated/floor/plasteel{ icon_state = "redfull" }, @@ -16617,6 +16626,7 @@ /obj/effect/turf_decal/delivery/hollow, /obj/structure/table, /obj/item/kitchen/rollingpin, +/obj/item/reagent_containers/condiment/enzyme, /turf/simulated/floor/plasteel{ icon_state = "redfull" }, @@ -17767,11 +17777,11 @@ /turf/simulated/floor/plasteel, /area/station/service/kitchen) "bll" = ( -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /turf/simulated/floor/plasteel, /area/station/service/kitchen) "blm" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/closet/crate/cookware, /turf/simulated/floor/plasteel, /area/station/service/kitchen) "bln" = ( @@ -21328,6 +21338,7 @@ /obj/item/reagent_containers/glass/beaker{ pixel_x = 5 }, +/obj/item/reagent_containers/cooking/grill_grate, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -27747,8 +27758,8 @@ /area/station/hallway/primary/port/north) "bQy" = ( /obj/structure/table/reinforced, -/obj/machinery/kitchen_machine/microwave, /obj/effect/turf_decal/delivery/hollow, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel, /area/station/service/kitchen) "bQz" = ( @@ -37186,13 +37197,6 @@ icon_state = "neutralfull" }, /area/station/engineering/control) -"cwx" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "redcorner" - }, -/area/station/hallway/primary/starboard/east) "cwy" = ( /obj/item/kirbyplants/large, /obj/structure/sign/electricshock{ @@ -48669,7 +48673,8 @@ /turf/simulated/floor/plating, /area/station/maintenance/port) "dlP" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/structure/cable{ icon_state = "4-8" }, @@ -58815,13 +58820,6 @@ icon_state = "whiteblue" }, /area/station/medical/storage) -"fuw" = ( -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitebluecorner" - }, -/area/station/medical/reception) "fuH" = ( /obj/machinery/economy/vending/autodrobe, /obj/machinery/light/small{ @@ -61933,16 +61931,6 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/exit) -"hlx" = ( -/obj/structure/cable{ - icon_state = "4-8" - }, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/central) "hly" = ( /obj/structure/table/wood, /turf/simulated/floor/plasteel/dark, @@ -63816,6 +63804,13 @@ /obj/machinery/newscaster/directional/north, /turf/simulated/floor/plasteel/grimy, /area/station/public/vacant_office) +"ims" = ( +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurplecorner" + }, +/area/station/science/lobby) "imG" = ( /obj/structure/table/glass, /obj/machinery/computer/med_data/laptop{ @@ -67012,6 +67007,16 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/fore/south) +"kdT" = ( +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/central) "kej" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/hatch{ @@ -67185,6 +67190,13 @@ /obj/item/mounted/frame/apc_frame, /turf/simulated/floor/wood, /area/station/maintenance/library) +"khT" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "redcorner" + }, +/area/station/hallway/primary/starboard/east) "khY" = ( /obj/structure/cable{ icon_state = "1-2" @@ -69475,10 +69487,6 @@ pixel_x = -8; pixel_y = 1 }, -/obj/item/book/manual/wiki/chef_recipes{ - pixel_x = 4; - pixel_y = 2 - }, /obj/machinery/atmospherics/unary/outlet_injector/on{ dir = 4 }, @@ -70310,10 +70318,6 @@ icon_state = "arrival" }, /area/station/hallway/secondary/entry/north) -"lXJ" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel/dark, -/area/station/maintenance/abandonedbar) "lYp" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold/hidden/supply, @@ -72912,6 +72916,10 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) +"nrA" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel/dark, +/area/station/maintenance/abandonedbar) "nsl" = ( /obj/machinery/clonepod, /turf/simulated/floor/plasteel{ @@ -73363,13 +73371,6 @@ icon_state = "dark" }, /area/station/turret_protected/aisat) -"nFz" = ( -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "yellowcorner" - }, -/area/station/hallway/primary/port/north) "nFL" = ( /obj/machinery/door/airlock/security/glass, /obj/machinery/door/firedoor, @@ -74417,6 +74418,12 @@ icon_state = "whiteblue" }, /area/station/medical/paramedic) +"ong" = ( +/obj/structure/table/reinforced, +/obj/effect/turf_decal/delivery/hollow, +/obj/machinery/cooking/grill, +/turf/simulated/floor/plasteel, +/area/station/service/kitchen) "ont" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -80152,13 +80159,6 @@ /obj/effect/mapping_helpers/airlock/access/all/supply/mail_sorting, /turf/simulated/floor/plasteel, /area/station/supply/warehouse) -"rnx" = ( -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurplecorner" - }, -/area/station/science/lobby) "rnA" = ( /obj/structure/chair/stool{ dir = 8 @@ -82893,6 +82893,13 @@ }, /turf/simulated/floor/plating, /area/station/medical/coldroom) +"sDM" = ( +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitebluecorner" + }, +/area/station/medical/reception) "sDN" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -88546,7 +88553,8 @@ /turf/simulated/floor/plasteel, /area/station/supply/sorting) "vCA" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, +/obj/item/reagent_containers/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -117724,7 +117732,7 @@ sEA cXS drn irt -lXJ +nrA dfU dcT deD @@ -123079,7 +123087,7 @@ bGR brV brV brV -nFz +aoz bQw brV bUC @@ -129538,7 +129546,7 @@ cIW cKw cMd msD -rnx +ims tQM cSm cZt @@ -132570,7 +132578,7 @@ bdS bdQ bdP bdQ -bQy +ong aYZ fJp npJ @@ -132858,7 +132866,7 @@ drp bYv mTf bYv -hlx +kdT tmq tmq cqo @@ -137246,7 +137254,7 @@ ckv cHN ppu cKX -fuw +sDM cNW vXU qqT @@ -144412,7 +144420,7 @@ vOc hhU vOc vOc -cwx +khT bVq sUE pYm diff --git a/_maps/map_files/stations/emeraldstation.dmm b/_maps/map_files/stations/emeraldstation.dmm index 35af62e6813..18a57364152 100644 --- a/_maps/map_files/stations/emeraldstation.dmm +++ b/_maps/map_files/stations/emeraldstation.dmm @@ -507,7 +507,7 @@ /turf/simulated/floor/plating, /area/station/science/server/coldroom) "ahp" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /obj/item/organ/internal/lungs/vox, /obj/effect/decal/cleanable/blood/xeno, /obj/effect/spawner/random/cobweb/right/rare, @@ -715,8 +715,6 @@ /area/station/hallway/primary/fore/north) "ajj" = ( /obj/structure/table/reinforced, -/obj/item/book/manual/wiki/chef_recipes, -/obj/item/kitchen/utensil/pfork, /obj/structure/railing{ dir = 4 }, @@ -724,6 +722,13 @@ name = "Prison Intercom (General)"; pixel_y = 25 }, +/obj/item/reagent_containers/cooking/oven, +/obj/item/kitchen/utensil/pfork{ + pixel_x = -5 + }, +/obj/item/reagent_containers/cooking/grill_grate{ + pixel_x = 6 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -12074,6 +12079,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/apmaint2) +"csS" = ( +/obj/structure/table, +/obj/machinery/cooking/grill, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/station/service/kitchen) "csT" = ( /obj/effect/spawner/random/oil/maybe, /obj/effect/mapping_helpers/turfs/burn, @@ -13027,6 +13039,13 @@ /obj/effect/turf_decal/box, /turf/simulated/floor/plasteel, /area/station/engineering/equipmentstorage) +"cCX" = ( +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "purplecorner" + }, +/area/station/hallway/primary/starboard/south) "cDa" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/blood/drip, @@ -16151,6 +16170,10 @@ pixel_x = 6; pixel_y = -2 }, +/obj/item/reagent_containers/condiment/enzyme{ + pixel_x = -7; + pixel_y = 2 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -17695,6 +17718,7 @@ "dAa" = ( /obj/structure/table, /obj/item/storage/box/donkpockets, +/obj/machinery/light, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -17854,7 +17878,8 @@ /turf/simulated/floor/plasteel, /area/station/command/bridge) "dCa" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/machinery/light{ dir = 8 }, @@ -20895,12 +20920,6 @@ /obj/effect/mapping_helpers/turfs/rust/maybe, /turf/simulated/wall/r_wall, /area/station/command/vault) -"ejN" = ( -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/central/ne) "ejP" = ( /obj/machinery/camera{ c_tag = "Starboard Primary Hall East"; @@ -22622,6 +22641,9 @@ /obj/item/shovel/spade{ pixel_y = -6 }, +/obj/item/stack/sheet/wood{ + amount = 30 + }, /turf/simulated/floor/grass, /area/station/service/kitchen) "eBb" = ( @@ -25597,12 +25619,17 @@ dir = 8 }, /obj/structure/table/reinforced, -/obj/item/book/manual/wiki/chef_recipes, -/obj/item/kitchen/utensil/pfork, +/obj/item/kitchen/utensil/pfork{ + pixel_x = -5 + }, /obj/item/radio/intercom/locked/prison{ name = "Prison Intercom (General)"; pixel_y = 25 }, +/obj/item/reagent_containers/cooking/grill_grate{ + pixel_x = 6 + }, +/obj/item/reagent_containers/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -27348,10 +27375,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/storage) -"fuX" = ( -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/se) "fve" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -33814,10 +33837,7 @@ /area/station/medical/surgery/secondary) "gJF" = ( /obj/structure/table, -/obj/machinery/kitchen_machine/microwave{ - pixel_x = -3; - pixel_y = 6 - }, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -42802,7 +42822,7 @@ name = "north bump"; pixel_y = 28 }, -/obj/machinery/kitchen_machine/grill, +/obj/structure/closet/crate/cookware, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -53369,7 +53389,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/nw) "kCM" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plating, /area/station/maintenance/dorms/port) "kCQ" = ( @@ -56014,7 +56034,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/secondary/exit) "lgL" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -58273,6 +58293,12 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos/asteroid_filtering) +"lCc" = ( +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/central/ne) "lCl" = ( /obj/structure/cable{ icon_state = "2-4" @@ -59012,7 +59038,8 @@ }, /area/station/supply/storage) "lLN" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, +/obj/machinery/cooking/grill, /obj/machinery/light{ dir = 4 }, @@ -60685,10 +60712,6 @@ "meA" = ( /turf/simulated/wall/r_wall, /area/station/engineering/engine/supermatter) -"meR" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/wood, -/area/station/service/bar) "meX" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 8 @@ -61844,13 +61867,6 @@ }, /turf/simulated/floor/engine, /area/station/engineering/engine) -"mqU" = ( -/obj/effect/turf_decal/siding{ - dir = 5 - }, -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/engine, -/area/station/hallway/spacebridge/security/west) "mqW" = ( /obj/structure/table, /obj/machinery/firealarm/directional/south, @@ -68216,6 +68232,13 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/north) +"nEV" = ( +/obj/effect/turf_decal/siding{ + dir = 5 + }, +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/engine, +/area/station/hallway/spacebridge/security/west) "nFi" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ dir = 5 @@ -69604,11 +69627,11 @@ name = "north bump"; pixel_y = 24 }, -/obj/structure/table, -/obj/item/hand_labeler, /obj/machinery/camera{ c_tag = "Kitchen North" }, +/obj/structure/table, +/obj/item/hand_labeler, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -70242,15 +70265,6 @@ }, /turf/simulated/floor/plating, /area/station/security/permabrig) -"nXR" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - icon_state = "bluecorner" - }, -/area/station/hallway/primary/fore) "nXS" = ( /obj/structure/chair{ dir = 1 @@ -74573,7 +74587,7 @@ }, /area/station/medical/reception) "oOr" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /turf/simulated/floor/plating, /area/station/maintenance/asmaint) "oOy" = ( @@ -80631,7 +80645,7 @@ /turf/simulated/floor/carpet/royalblack, /area/station/maintenance/fsmaint) "pXZ" = ( -/obj/item/kitchen/sushimat{ +/obj/item/reagent_containers/cooking/sushimat{ name = "Prayer Mat" }, /turf/simulated/floor/plating, @@ -82674,6 +82688,10 @@ icon_state = "freezerfloor" }, /area/station/medical/cloning) +"qvu" = ( +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/central/se) "qvB" = ( /obj/structure/cable{ icon_state = "2-8" @@ -89591,13 +89609,6 @@ /obj/effect/mapping_helpers/airlock/autoname, /turf/simulated/floor/plasteel, /area/station/supply/lobby) -"rME" = ( -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "purplecorner" - }, -/area/station/hallway/primary/starboard/south) "rMG" = ( /obj/structure/closet/secure_closet/engineering_electrical, /obj/effect/spawner/random/cobweb/right/rare, @@ -92478,10 +92489,7 @@ /area/station/security/storage) "spb" = ( /obj/structure/table, -/obj/item/reagent_containers/glass/beaker{ - pixel_x = 5 - }, -/obj/item/reagent_containers/condiment/enzyme, +/obj/item/reagent_containers/cooking/board, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -93521,6 +93529,15 @@ icon_state = "neutralfull" }, /area/station/engineering/atmos/asteroid_filtering) +"szY" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + icon_state = "bluecorner" + }, +/area/station/hallway/primary/fore) "szZ" = ( /obj/effect/decal/cleanable/glass, /obj/item/shard, @@ -104102,6 +104119,10 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/storage) +"uFt" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/wood, +/area/station/service/bar) "uFx" = ( /obj/effect/landmark/start/shaft_miner, /turf/simulated/floor/plasteel, @@ -108432,7 +108453,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft) "vyC" = ( -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /obj/machinery/firealarm/directional/south, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -108985,7 +109006,7 @@ /obj/item/decorations/sticky_decorations/flammable/tinsel/red{ pixel_y = 12 }, -/obj/item/mixing_bowl{ +/obj/item/reagent_containers/cooking/bowl{ name = "Ians Water Bowl" }, /obj/machinery/light/small{ @@ -115326,7 +115347,7 @@ /turf/simulated/floor/plasteel, /area/station/supply/sorting) "wSH" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/item/clothing/head/chefhat, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" @@ -119301,7 +119322,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/apmaint) "xIl" = ( -/obj/machinery/cooker/deepfryer, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -121007,7 +121028,12 @@ /area/station/science/robotics/chargebay) "yaQ" = ( /obj/structure/table, -/obj/machinery/reagentgrinder, +/obj/machinery/reagentgrinder{ + pixel_x = -4 + }, +/obj/item/reagent_containers/glass/beaker{ + pixel_x = 11 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -121085,7 +121111,7 @@ /obj/structure/sign/poster/official/love_ian{ pixel_y = -32 }, -/obj/item/kitchen/sushimat{ +/obj/item/reagent_containers/cooking/sushimat{ name = "Prayer Mat" }, /obj/item/clothing/suit/ianshirt{ @@ -153383,7 +153409,7 @@ odE odE dkD vak -gJF +csS hxL yaQ qeR @@ -154335,7 +154361,7 @@ mJS rpF jPn tap -nXR +szY rmE oQM qxy @@ -156984,7 +157010,7 @@ iTl uqq aFa vKF -meR +uFt gBS gBS wEZ @@ -160299,7 +160325,7 @@ twu jOu icb dbu -fuX +qvu adx dZF xfI @@ -160773,7 +160799,7 @@ kAe mZE nXu brq -ejN +lCc bwi uBv nOk @@ -163574,7 +163600,7 @@ pvz pGB ebB jwm -mqU +nEV ouc iNH ouc @@ -164171,7 +164197,7 @@ xyC eDy iWE muy -rME +cCX pJV giM pcZ diff --git a/_maps/map_files/stations/metastation.dmm b/_maps/map_files/stations/metastation.dmm index 2ea7a08628f..b1c603b40d4 100644 --- a/_maps/map_files/stations/metastation.dmm +++ b/_maps/map_files/stations/metastation.dmm @@ -18,6 +18,24 @@ /obj/effect/landmark/spawner/carp, /turf/space, /area/space) +"aaG" = ( +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/obj/structure/chair/office/light, +/obj/machinery/computer/security/telescreen{ + desc = "Used for watching the test chamber."; + layer = 4; + name = "Test Chamber Telescreen"; + network = list("Toxins"); + pixel_y = -32 + }, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "aaK" = ( /obj/docking_port/stationary{ dheight = 9; @@ -112,6 +130,17 @@ /obj/effect/spawner/random/trash, /turf/simulated/floor/plating, /area/station/maintenance/fore) +"acm" = ( +/obj/machinery/camera{ + c_tag = "Science Toxins Mixing - Aft"; + dir = 4; + network = list("Research","SS13") + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "acv" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 @@ -293,18 +322,6 @@ icon_state = "red" }, /area/station/security/main) -"aec" = ( -/obj/structure/disaster_counter/toxins{ - pixel_x = -32 - }, -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "aee" = ( /obj/structure/lattice/catwalk, /turf/space, @@ -313,14 +330,6 @@ /obj/structure/lattice/catwalk, /turf/space, /area/space/nearstation) -"aei" = ( -/obj/machinery/light{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "aen" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -871,13 +880,6 @@ /obj/machinery/suit_storage_unit/industrial/engine/secure, /turf/simulated/floor/plasteel, /area/station/engineering/hardsuitstorage) -"ajW" = ( -/obj/effect/turf_decal/delivery/hollow, -/obj/machinery/atmospherics/portable/canister/toxins, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/storage) "akg" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/decal/cleanable/dirt, @@ -999,6 +1001,13 @@ icon_state = "whitepurple" }, /area/station/science/research) +"akL" = ( +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple"; + dir = 4 + }, +/area/station/maintenance/aft2) "akN" = ( /obj/structure/closet/secure_closet/brig, /turf/simulated/floor/plasteel{ @@ -1519,19 +1528,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) -"anD" = ( -/obj/structure/chair/office/light, -/obj/machinery/computer/security/telescreen{ - desc = "Used for watching the test chamber."; - layer = 4; - name = "Test Chamber Telescreen"; - network = list("Toxins"); - pixel_y = -32 - }, -/turf/simulated/floor/plasteel{ - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "anE" = ( /obj/structure/closet/firecloset, /turf/simulated/floor/plating, @@ -6273,12 +6269,12 @@ /area/station/hallway/primary/fore/north) "aJi" = ( /obj/structure/cable{ - icon_state = "4-8" + icon_state = "1-8" + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "redcorner" }, -/obj/machinery/door/airlock/maintenance, -/obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, -/turf/simulated/floor/plating, /area/station/hallway/primary/fore/north) "aJk" = ( /obj/structure/cable{ @@ -6608,8 +6604,8 @@ /turf/simulated/floor/plating, /area/station/maintenance/fore2) "aKv" = ( -/obj/structure/cable{ - icon_state = "1-8" +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 1 }, /turf/simulated/floor/plasteel{ dir = 8; @@ -9250,22 +9246,6 @@ icon_state = "dark" }, /area/station/command/bridge) -"aUl" = ( -/obj/structure/chair/sofa/corp{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) -"aUn" = ( -/obj/structure/chair/sofa/corp{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "aUp" = ( /obj/structure/cable{ icon_state = "1-2" @@ -9681,18 +9661,6 @@ }, /turf/simulated/floor/plasteel, /area/station/supply/miningdock) -"aVy" = ( -/turf/simulated/floor/transparent/glass/reinforced, -/area/station/hallway/primary/central/north) -"aVA" = ( -/obj/structure/chair/sofa/corp/corner, -/obj/machinery/light{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "aVD" = ( /obj/machinery/economy/vending/cigarette, /turf/simulated/floor/plasteel{ @@ -9778,6 +9746,13 @@ icon_state = "neutralcorner" }, /area/station/public/locker) +"aVM" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurple" + }, +/area/station/science/lobby) "aVT" = ( /obj/structure/table, /obj/item/clothing/head/soft{ @@ -10251,14 +10226,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/smes) -"aXG" = ( -/obj/structure/chair/sofa/corp/left{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "aXH" = ( /obj/structure/window/reinforced{ dir = 4 @@ -10416,6 +10383,11 @@ /obj/effect/spawner/random/maintenance, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) +"aYg" = ( +/obj/effect/decal/cleanable/cobweb2, +/obj/structure/reagent_dispensers/fueltank, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "aYh" = ( /obj/structure/disposalpipe/junction{ dir = 1 @@ -10804,11 +10776,6 @@ /obj/effect/mapping_helpers/airlock/access/all/engineering/general, /turf/simulated/floor/plasteel, /area/station/engineering/smes) -"aZN" = ( -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "aZP" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/public/glass, @@ -11235,16 +11202,6 @@ icon_state = "darkgrey" }, /area/station/hallway/primary/central/se) -"bbh" = ( -/obj/structure/closet/firecloset, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) -"bbk" = ( -/obj/effect/spawner/window/reinforced, -/turf/simulated/floor/plating, -/area/station/hallway/primary/central/north) "bbn" = ( /obj/item/kirbyplants/medium/medium8, /obj/item/radio/intercom{ @@ -21092,7 +21049,6 @@ "bEG" = ( /obj/structure/rack, /obj/item/storage/box/donkpockets, -/obj/item/book/manual/wiki/chef_recipes, /turf/simulated/floor/plating, /area/station/maintenance/starboard) "bES" = ( @@ -21829,7 +21785,6 @@ }, /area/station/service/bar) "bHR" = ( -/obj/structure/closet/secure_closet/freezer/fridge, /obj/machinery/door_control{ id = "kitchen_counter"; name = "Kitchen Counter Shutters"; @@ -21837,6 +21792,7 @@ pixel_y = 24; req_access = list(28) }, +/obj/machinery/cooking/deepfryer, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -22741,6 +22697,13 @@ icon_state = "redcorner" }, /area/station/security/brig) +"bLz" = ( +/obj/structure/lattice/catwalk, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 6 + }, +/turf/space, +/area/space/nearstation) "bLA" = ( /obj/structure/table/reinforced, /obj/machinery/door/window/classic/reversed, @@ -23905,8 +23868,8 @@ /area/station/supply/expedition) "bQC" = ( /obj/structure/table, -/obj/machinery/kitchen_machine/microwave, /obj/machinery/requests_console/directional/west, +/obj/machinery/cooking/stovetop, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -23939,7 +23902,8 @@ /area/station/service/kitchen) "bQJ" = ( /obj/structure/table, -/obj/item/storage/box/donkpockets, +/obj/item/reagent_containers/cooking/board, +/obj/item/kitchen/knife, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -24419,7 +24383,7 @@ /turf/space, /area/station/engineering/solar/aft_port) "bSx" = ( -/obj/machinery/kitchen_machine/candy_maker, +/obj/machinery/cooking/ice_cream_mixer, /obj/machinery/light_switch{ dir = 1; name = "custom placement"; @@ -27118,13 +27082,6 @@ icon_state = "green" }, /area/station/hallway/primary/central/se) -"ccX" = ( -/obj/machinery/door/airlock/public/glass, -/obj/effect/mapping_helpers/airlock/autoname, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "ccZ" = ( /obj/machinery/requests_console/directional/west, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -27751,6 +27708,12 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/central/east) +"cfs" = ( +/obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction{ + dir = 8 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "cft" = ( /obj/structure/sign/science, /turf/simulated/wall, @@ -28473,17 +28436,6 @@ }, /turf/simulated/floor/plasteel, /area/station/maintenance/turbine) -"chY" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 9 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 5 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/launch) "chZ" = ( /obj/structure/table, /obj/item/folder/white{ @@ -30846,14 +30798,6 @@ /obj/effect/spawner/random/maintenance, /turf/simulated/floor/plating, /area/station/maintenance/apmaint) -"csS" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/turret_protected/ai_upload) "csT" = ( /obj/machinery/light{ dir = 4 @@ -31400,17 +31344,6 @@ }, /turf/simulated/floor/engine/vacuum, /area/station/maintenance/turbine) -"cuR" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/research) "cuS" = ( /obj/structure/table/glass, /obj/item/radio/intercom{ @@ -31504,6 +31437,16 @@ "cvo" = ( /turf/simulated/wall/r_wall, /area/station/maintenance/medmaint) +"cvu" = ( +/obj/effect/spawner/window/reinforced/plasma/grilled, +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 4 + }, +/obj/machinery/atmospherics/meter{ + layer = 3.3 + }, +/turf/simulated/floor/plating, +/area/station/science/toxins/mixing) "cvw" = ( /obj/machinery/light/small{ dir = 4 @@ -32422,6 +32365,17 @@ /obj/effect/spawner/random/trash, /turf/simulated/floor/plating, /area/station/maintenance/aft) +"czx" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + icon_state = "1-4" + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "czy" = ( /turf/simulated/floor/plasteel{ icon_state = "white" @@ -33297,21 +33251,13 @@ /turf/space, /area/station/medical/virology) "cDq" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/machinery/atmospherics/portable/scrubber/huge, -/obj/effect/turf_decal/stripes/line{ - dir = 8 - }, -/obj/effect/decal/cleanable/dirt, /obj/machinery/light{ dir = 1 }, /turf/simulated/floor/plasteel{ - icon_state = "whitepurplefull" + icon_state = "white" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "cDr" = ( /obj/item/toolbox_tiles{ desc = "Why won't it work?"; @@ -33622,6 +33568,10 @@ }, /turf/simulated/floor/plasteel, /area/station/maintenance/turbine) +"cED" = ( +/obj/effect/spawner/window/reinforced, +/turf/simulated/floor/plating, +/area/station/hallway/primary/central/north) "cEE" = ( /obj/machinery/atmospherics/pipe/manifold/hidden, /turf/simulated/floor/plasteel{ @@ -36401,6 +36351,24 @@ }, /turf/simulated/floor/plating/airless, /area/station/science/toxins/test) +"cPY" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/light, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/research) "cQc" = ( /obj/structure/window/reinforced{ dir = 1 @@ -36793,13 +36761,6 @@ icon_state = "red" }, /area/station/hallway/secondary/exit) -"cRQ" = ( -/obj/machinery/alarm/directional/north, -/obj/machinery/atmospherics/unary/thermomachine/freezer, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "cRS" = ( /obj/structure/sign/directions/evac{ pixel_x = 32 @@ -37683,17 +37644,6 @@ icon_state = "chapel" }, /area/station/service/chapel) -"cWc" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/effect/turf_decal/stripes/line{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurplefull" - }, -/area/station/science/storage) "cWd" = ( /obj/effect/turf_decal/stripes/line, /obj/effect/turf_decal/stripes/line{ @@ -37775,6 +37725,10 @@ icon_state = "dark" }, /area/station/service/chapel) +"cWA" = ( +/obj/machinery/economy/atm/directional/south, +/turf/simulated/floor/wood, +/area/station/service/bar) "cWB" = ( /obj/effect/turf_decal/stripes/line{ dir = 4 @@ -38019,10 +37973,6 @@ /obj/effect/turf_decal/delivery/hollow, /turf/simulated/floor/plasteel, /area/station/maintenance/fsmaint) -"cXO" = ( -/obj/machinery/space_heater, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "cXQ" = ( /obj/structure/table/wood, /obj/structure/disposalpipe/segment, @@ -38117,6 +38067,10 @@ icon_state = "white" }, /area/station/maintenance/aft) +"cYr" = ( +/obj/effect/spawner/random/barrier/grille_maybe, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "cYx" = ( /obj/structure/chair{ dir = 1 @@ -38202,10 +38156,6 @@ icon_state = "whiteblue" }, /area/station/medical/surgery/secondary) -"cYP" = ( -/obj/effect/spawner/random/barrier/grille_maybe, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "cYQ" = ( /obj/effect/spawner/window, /turf/simulated/floor/plating, @@ -38437,21 +38387,9 @@ /turf/simulated/floor/plating, /area/station/maintenance/apmaint) "dal" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ - dir = 8 - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 8 - }, -/obj/structure/cable{ - icon_state = "1-4" - }, +/obj/effect/turf_decal/stripes/corner, /turf/simulated/floor/plasteel{ - icon_state = "white" + icon_state = "whitepurple" }, /area/station/science/toxins/mixing) "dam" = ( @@ -39747,15 +39685,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/prison/cell_block/a) -"dif" = ( -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 10 - }, -/obj/structure/sign/vacuum/external{ - pixel_x = 30 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/aft2) "dig" = ( /obj/structure/cable{ icon_state = "0-4" @@ -39852,12 +39781,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos/distribution) -"dkM" = ( -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 9 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "dlb" = ( /obj/effect/decal/cleanable/blood/old, /obj/machinery/atmospherics/pipe/manifold/hidden/cyan{ @@ -39909,6 +39832,14 @@ }, /turf/simulated/floor/engine, /area/station/maintenance/turbine) +"dmD" = ( +/obj/structure/chair/comfy/corp{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "dmE" = ( /obj/machinery/conveyor/north{ id = "QMLoad" @@ -39977,6 +39908,12 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/starboard) +"dnE" = ( +/obj/machinery/atmospherics/unary/thermomachine/heater, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "dnH" = ( /obj/machinery/mass_driver{ id_tag = "toxinsdriver" @@ -39984,10 +39921,11 @@ /turf/simulated/floor/plating, /area/station/science/toxins/launch) "dnI" = ( -/obj/machinery/kitchen_machine/grill, +/obj/structure/table, /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 4 }, +/obj/item/storage/bag/tray, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -40124,6 +40062,28 @@ /obj/machinery/atmospherics/pipe/simple/hidden/cyan, /turf/simulated/floor/plating, /area/station/maintenance/aft2) +"dpO" = ( +/obj/structure/disposalpipe/segment/corner{ + dir = 1 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/cyan, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/cable{ + icon_state = "1-4" + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 5 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/maintenance/aft2) "dpZ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -40266,6 +40226,18 @@ }, /turf/simulated/floor/wood, /area/station/service/bar) +"dsA" = ( +/obj/machinery/atmospherics/portable/canister/oxygen, +/obj/effect/turf_decal/delivery/blue/hollow, +/obj/machinery/camera{ + c_tag = "Science - Toxins Secure - Starboard"; + dir = 8; + network = list("Research","SS13") + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "dtC" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -40449,29 +40421,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/engine_foyer) -"dxG" = ( -/obj/machinery/firealarm/directional/north, -/obj/machinery/status_display{ - layer = 4; - pixel_x = -32 - }, -/obj/structure/closet/crate/secure{ - desc = "A secure crate containing various materials for building a customised test-site."; - name = "Test Site Materials Crate"; - req_access = list(8) - }, -/obj/item/target/syndicate, -/obj/item/target/syndicate, -/obj/item/target/alien, -/obj/item/target/alien, -/obj/item/target/alien, -/obj/item/target/alien, -/obj/item/target/alien, -/turf/simulated/floor/plasteel{ - dir = 9; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "dxJ" = ( /obj/structure/lattice/catwalk, /obj/machinery/atmospherics/unary/outlet_injector/on, @@ -40583,6 +40532,11 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) +"dBP" = ( +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/toxins/launch) "dBS" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, /obj/structure/extinguisher_cabinet{ @@ -40676,6 +40630,17 @@ icon_state = "greenfull" }, /area/station/hallway/primary/central/se) +"dCA" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplefull" + }, +/area/station/science/storage) "dCJ" = ( /obj/structure/closet, /obj/effect/spawner/random/trash, @@ -40767,14 +40732,6 @@ icon_state = "C9" }, /area/station/hallway/primary/central/north) -"dER" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "dFf" = ( /obj/structure/cable{ icon_state = "1-2" @@ -40796,6 +40753,16 @@ }, /turf/simulated/floor/plasteel, /area/station/maintenance/fore) +"dGn" = ( +/obj/machinery/atmospherics/binary/pump{ + dir = 4; + name = "Burn Chamber to Port" + }, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "dGs" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/maintenance_hatch{ @@ -40871,22 +40838,11 @@ }, /area/station/engineering/ai_transit_tube) "dIQ" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 1 +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 }, /turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurple" - }, -/area/station/science/storage) -"dJu" = ( -/obj/machinery/atmospherics/binary/pump{ - dir = 8; - name = "Port to Hot Loop" - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurple" + icon_state = "white" }, /area/station/science/toxins/mixing) "dJx" = ( @@ -40901,13 +40857,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/nw) -"dJM" = ( -/obj/machinery/doppler_array, -/obj/effect/turf_decal/delivery, -/turf/simulated/floor/plasteel{ - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "dKd" = ( /obj/structure/table/wood, /obj/item/paper_bin{ @@ -41083,11 +41032,6 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /turf/simulated/floor/plasteel, /area/station/engineering/break_room) -"dOM" = ( -/obj/effect/decal/cleanable/cobweb2, -/obj/structure/reagent_dispensers/fueltank, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "dOQ" = ( /turf/simulated/floor/plasteel{ dir = 1; @@ -41105,22 +41049,6 @@ icon_state = "dark" }, /area/station/medical/surgery/observation) -"dPk" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - icon_state = "1-2" - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) -"dPJ" = ( -/obj/machinery/atmospherics/unary/outlet_injector/on{ - dir = 4 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "dPW" = ( /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, @@ -41405,6 +41333,14 @@ }, /turf/simulated/floor/wood, /area/station/legal/courtroom) +"dWQ" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "dWX" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -41447,6 +41383,13 @@ /obj/effect/spawner/random/blood/often, /turf/simulated/floor/plating, /area/station/maintenance/aft2) +"dYe" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/port/east) "dYi" = ( /obj/effect/spawner/window/reinforced, /obj/machinery/atmospherics/pipe/simple/visible/yellow, @@ -41669,6 +41612,12 @@ /obj/effect/spawner/random/cobweb/left/rare, /turf/simulated/floor/plating, /area/station/maintenance/aft2) +"ecw" = ( +/obj/machinery/economy/atm/directional/east, +/turf/simulated/floor/plasteel{ + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/aft/south) "edg" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/public/glass, @@ -41716,7 +41665,9 @@ /area/station/engineering/gravitygenerator) "edB" = ( /obj/structure/table, -/obj/item/book/manual/wiki/chef_recipes, +/obj/item/reagent_containers/condiment/enzyme{ + layer = 5 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -41758,12 +41709,6 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/security/brig) -"eeI" = ( -/obj/machinery/atmospherics/unary/thermomachine/heater, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "efd" = ( /obj/machinery/light/small{ dir = 1 @@ -41968,28 +41913,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/central/north) -"ejr" = ( -/obj/structure/disposalpipe/segment/corner{ - dir = 1 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/cyan, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/cable{ - icon_state = "1-4" - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 8 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 5 - }, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/maintenance/aft2) "eju" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -42076,6 +41999,15 @@ }, /turf/simulated/floor/plating/airless, /area/station/engineering/solar/aft_port) +"emw" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "emO" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 8 @@ -42182,6 +42114,11 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/security/warden) +"epO" = ( +/obj/structure/lattice/catwalk, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging, +/turf/space, +/area/space/nearstation) "epY" = ( /obj/machinery/atmospherics/pipe/simple/visible{ dir = 4 @@ -42706,6 +42643,12 @@ icon_state = "green" }, /area/station/security/permabrig) +"eAC" = ( +/obj/machinery/requests_console/directional/north, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "eAL" = ( /obj/machinery/camera{ c_tag = "Secure Lab - Test Chamber"; @@ -42831,15 +42774,23 @@ icon_state = "whitebluefull" }, /area/station/medical/storage/secondary) -"eDX" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - icon_state = "1-2" +"eDC" = ( +/obj/item/kirbyplants/large, +/obj/item/radio/intercom{ + name = "north bump"; + pixel_y = 28 }, -/obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel{ - icon_state = "white" + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) +"eDX" = ( +/obj/machinery/atmospherics/binary/pump{ + name = "Cold Loop to Port" + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" }, /area/station/science/toxins/mixing) "eEc" = ( @@ -42952,21 +42903,13 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft) "eGn" = ( -/obj/structure/window/reinforced, -/obj/structure/rack, -/obj/item/extinguisher, -/obj/item/clothing/mask/gas, -/obj/item/grenade/chem_grenade/firefighting, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable{ + icon_state = "1-2" }, -/area/station/science/toxins/mixing) -"eGt" = ( -/obj/structure/dispenser, /turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "darkpurplecorners" + icon_state = "white" }, /area/station/science/toxins/mixing) "eGw" = ( @@ -42986,6 +42929,17 @@ icon_state = "white" }, /area/station/medical/medbay) +"eGA" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "eGG" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 @@ -43183,24 +43137,6 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/plasteel, /area/station/hallway/primary/fore/east) -"eNL" = ( -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/structure/cable{ - icon_state = "4-8" - }, -/obj/machinery/light, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/research) "eNR" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/structure/cable{ @@ -43422,17 +43358,6 @@ icon_state = "purple" }, /area/station/science/xenobiology) -"eSA" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/effect/turf_decal/stripes/line, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "eSE" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 @@ -43691,6 +43616,12 @@ icon_state = "darkgrey" }, /area/station/science/robotics) +"eVS" = ( +/obj/machinery/atmospherics/unary/outlet_injector/on{ + dir = 4 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "eVZ" = ( /obj/structure/table, /obj/machinery/recharger{ @@ -43912,13 +43843,6 @@ /obj/structure/cable, /turf/simulated/floor/plating, /area/station/security/brig) -"fbL" = ( -/obj/machinery/atmospherics/unary/portables_connector, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "fbQ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ dir = 4 @@ -43977,23 +43901,6 @@ icon_state = "dark" }, /area/station/engineering/atmos) -"fcJ" = ( -/obj/machinery/disposal, -/obj/structure/disposalpipe/trunk{ - dir = 4 - }, -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/machinery/camera{ - c_tag = "Science Toxins Launch Room"; - network = list("Research","SS13") - }, -/turf/simulated/floor/plasteel{ - dir = 5; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "fcT" = ( /obj/machinery/computer/brigcells{ dir = 8 @@ -44054,21 +43961,6 @@ icon_state = "C10" }, /area/station/hallway/primary/central/south) -"ffx" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/effect/turf_decal/stripes/corner{ - dir = 8 - }, -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - dir = 6; - icon_state = "whitepurple" - }, -/area/station/science/storage) "ffG" = ( /obj/structure/chair/office/dark{ dir = 1 @@ -44212,12 +44104,6 @@ icon_state = "dark" }, /area/station/engineering/atmos) -"fhw" = ( -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 10 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "fhG" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -44413,16 +44299,6 @@ icon_state = "dark" }, /area/station/security/interrogation) -"fmf" = ( -/obj/effect/decal/cleanable/dirt, -/obj/structure/sign/explosives{ - pixel_x = 31 - }, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple"; - dir = 4 - }, -/area/station/maintenance/aft2) "fmm" = ( /obj/structure/table, /obj/item/clothing/glasses/meson, @@ -44509,17 +44385,6 @@ icon_state = "darkgrey" }, /area/station/engineering/tech_storage) -"foV" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8; - name = "Portable Scrubber Connector" - }, -/obj/machinery/atmospherics/portable/scrubber, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "fpk" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -44536,12 +44401,6 @@ }, /turf/simulated/floor/plasteel, /area/station/maintenance/fsmaint) -"fpl" = ( -/obj/effect/turf_decal/stripes/line, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "fpy" = ( /turf/simulated/floor/plasteel, /area/station/maintenance/fore) @@ -44850,6 +44709,17 @@ /obj/effect/spawner/random/barrier/grille_often, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) +"fuC" = ( +/obj/item/radio/intercom{ + name = "east bump"; + pixel_x = 28 + }, +/obj/machinery/atmospherics/trinary/mixer, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "fvN" = ( /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, @@ -44979,13 +44849,6 @@ icon_state = "darkgrey" }, /area/station/security/evidence) -"fyt" = ( -/obj/machinery/firealarm/directional/west, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "fyS" = ( /obj/machinery/door/airlock/maintenance, /obj/structure/cable{ @@ -45171,20 +45034,6 @@ icon_state = "whiteyellow" }, /area/station/medical/chemistry) -"fBK" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/effect/mapping_helpers/airlock/access/all/science/tox, -/obj/effect/mapping_helpers/airlock/autoname, -/obj/machinery/door/airlock/research/glass, -/obj/machinery/door/firedoor/heavy, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/launch) "fBQ" = ( /obj/structure/cable{ icon_state = "1-2" @@ -45343,25 +45192,6 @@ icon_state = "cult" }, /area/station/service/library) -"fED" = ( -/obj/machinery/door/airlock/research/glass{ - name = "Toxins Storage" - }, -/obj/effect/mapping_helpers/airlock/access/all/science/tox, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/obj/structure/cable{ - icon_state = "4-8" - }, -/obj/machinery/door/firedoor/heavy, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/storage) "fES" = ( /obj/structure/window/reinforced{ dir = 1 @@ -45586,6 +45416,19 @@ /obj/effect/mapping_helpers/airlock/autoname, /turf/simulated/floor/plating, /area/station/maintenance/solar_maintenance/fore_port) +"fIV" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/cyan, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/maintenance/aft2) "fJd" = ( /obj/machinery/door/airlock/security/glass{ name = "Brig" @@ -45633,29 +45476,10 @@ icon_state = "darkred" }, /area/station/security/main) -"fJu" = ( -/obj/machinery/door/firedoor, -/obj/effect/turf_decal/stripes/white/line{ - dir = 1 - }, -/obj/effect/turf_decal/stripes/white/line, -/turf/simulated/floor/plasteel{ - icon_state = "darkgrey" - }, -/area/station/science/research) "fJF" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel, /area/station/security/brig) -"fJJ" = ( -/obj/machinery/light{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "fKW" = ( /obj/item/kirbyplants/large/plant1, /obj/structure/cable{ @@ -45708,27 +45532,9 @@ icon_state = "browncorner" }, /area/station/hallway/primary/port/east) -"fMh" = ( -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - icon_state = "1-2" - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "fMn" = ( /turf/simulated/wall/r_wall, /area/station/engineering/equipmentstorage) -"fMC" = ( -/obj/effect/decal/cleanable/dirt, -/obj/structure/closet/l3closet/scientist, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/maintenance/asmaint) "fMZ" = ( /obj/machinery/atmospherics/pipe/simple/visible/purple{ dir = 4 @@ -45849,6 +45655,12 @@ icon_state = "white" }, /area/station/science/research) +"fPL" = ( +/obj/machinery/light/small{ + dir = 4 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "fPN" = ( /obj/structure/chair/office/dark, /obj/effect/landmark/start/coroner, @@ -46045,10 +45857,6 @@ /obj/effect/mapping_helpers/turfs/damage, /turf/simulated/floor/wood, /area/station/maintenance/starboard) -"fTW" = ( -/obj/effect/spawner/window/reinforced/plasma/grilled, -/turf/simulated/floor/plating, -/area/station/science/toxins/launch) "fUf" = ( /obj/structure/rack, /obj/effect/spawner/random/maintenance, @@ -46115,19 +45923,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/permabrig) -"fVL" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/cyan, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/maintenance/aft2) "fVW" = ( /obj/structure/disposaloutlet{ dir = 4 @@ -46249,15 +46044,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/brig) -"fYp" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/light/small{ - dir = 8 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "fYA" = ( /obj/structure/cable{ icon_state = "2-8" @@ -46378,6 +46164,12 @@ icon_state = "whitepurple" }, /area/station/science/xenobiology) +"gbF" = ( +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "gbP" = ( /obj/structure/cable{ icon_state = "1-2" @@ -46415,6 +46207,14 @@ }, /turf/simulated/floor/plasteel, /area/station/security/permabrig) +"gcw" = ( +/obj/machinery/economy/vending/plasmaresearch, +/obj/effect/turf_decal/delivery/hollow, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "darkpurple" + }, +/area/station/science/toxins/mixing) "gcy" = ( /obj/structure/disposalpipe/segment/corner{ dir = 8 @@ -46438,15 +46238,6 @@ /obj/item/deck/cards, /turf/simulated/floor/plasteel, /area/station/security/permabrig) -"gcP" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - dir = 9; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "gdb" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -46513,6 +46304,16 @@ icon_state = "white" }, /area/station/security/permabrig) +"gdH" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/sign/explosives{ + pixel_x = 31 + }, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple"; + dir = 4 + }, +/area/station/maintenance/aft2) "geq" = ( /obj/structure/disposalpipe/segment/corner{ dir = 4 @@ -46794,6 +46595,12 @@ }, /turf/simulated/floor/plating, /area/station/security/permabrig) +"gjH" = ( +/obj/effect/turf_decal/stripes/line, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "gkl" = ( /obj/structure/chair/stool, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -46861,17 +46668,28 @@ /turf/simulated/floor/plating, /area/station/security/storage) "glQ" = ( -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - icon_state = "1-2" +/obj/machinery/firealarm/directional/north, +/obj/machinery/status_display{ + layer = 4; + pixel_x = -32 }, -/obj/machinery/hologram/holopad, +/obj/structure/closet/crate/secure{ + desc = "A secure crate containing various materials for building a customised test-site."; + name = "Test Site Materials Crate"; + req_access = list(8) + }, +/obj/item/target/syndicate, +/obj/item/target/syndicate, +/obj/item/target/alien, +/obj/item/target/alien, +/obj/item/target/alien, +/obj/item/target/alien, +/obj/item/target/alien, /turf/simulated/floor/plasteel{ - icon_state = "white" + dir = 9; + icon_state = "darkpurple" }, -/area/station/science/toxins/mixing) +/area/station/science/toxins/launch) "glS" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -46959,6 +46777,12 @@ /obj/machinery/status_display, /turf/simulated/wall/r_wall, /area/station/engineering/engine/supermatter) +"gpw" = ( +/obj/machinery/atmospherics/pipe/manifold/hidden/purple, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "gpT" = ( /obj/structure/cable{ icon_state = "2-4" @@ -47281,11 +47105,6 @@ icon_state = "dark" }, /area/station/security/main) -"gyA" = ( -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/launch) "gyK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/purple, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -47315,6 +47134,19 @@ }, /turf/space, /area/space/nearstation) +"gAb" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/item/radio/intercom{ + name = "south bump"; + pixel_y = -28 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurple" + }, +/area/station/science/research) "gAM" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 8 @@ -47533,6 +47365,12 @@ }, /turf/simulated/floor/carpet, /area/station/science/robotics/showroom) +"gEq" = ( +/obj/structure/table/glass/reinforced, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "gEt" = ( /obj/structure/table/glass, /obj/item/paper/crumpled, @@ -47563,18 +47401,14 @@ /turf/simulated/floor/plating, /area/station/maintenance/aft2) "gFf" = ( -/obj/effect/turf_decal/stripes/corner{ - dir = 1 +/obj/effect/turf_decal/stripes/line, +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 8 }, -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/plasteel{ - dir = 5; - icon_state = "whitepurple" + icon_state = "white" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "gFk" = ( /obj/structure/table/glass, /obj/structure/window/reinforced{ @@ -47646,17 +47480,6 @@ }, /turf/simulated/floor/engine, /area/station/engineering/control) -"gGu" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/storage) "gGS" = ( /obj/structure/window/reinforced, /obj/structure/window/reinforced{ @@ -48165,6 +47988,14 @@ icon_state = "dark" }, /area/station/security/main) +"gRS" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/portable/canister/carbon_dioxide, +/obj/effect/turf_decal/delivery/red/hollow, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "gSa" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -48220,14 +48051,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/station/maintenance/starboard2) -"gSR" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "gSU" = ( /obj/structure/disposaloutlet{ dir = 1 @@ -48317,14 +48140,6 @@ icon_state = "whiteblue" }, /area/station/medical/reception) -"gUo" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "gUz" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/structure/cable{ @@ -48487,6 +48302,12 @@ }, /turf/simulated/floor/plating, /area/station/security/permabrig) +"gYb" = ( +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 9 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "gYm" = ( /obj/machinery/hydroponics/soil, /obj/item/radio/intercom{ @@ -48920,6 +48741,14 @@ /obj/effect/turf_decal/delivery/white/hollow, /turf/simulated/floor/plasteel, /area/station/supply/storage) +"hjk" = ( +/obj/machinery/door/poddoor{ + id_tag = "ToxinsVenting"; + name = "Toxins Venting Bay Door"; + power_state = 0 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "hjn" = ( /obj/structure/table/glass, /obj/item/folder/blue, @@ -49020,16 +48849,6 @@ icon_state = "dark" }, /area/station/medical/surgery/observation) -"hkz" = ( -/obj/effect/spawner/window/reinforced/plasma/grilled, -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 4 - }, -/obj/machinery/atmospherics/meter{ - layer = 3.3 - }, -/turf/simulated/floor/plating, -/area/station/science/toxins/mixing) "hkF" = ( /turf/simulated/wall/mineral/titanium, /area/shuttle/pod_2) @@ -50414,6 +50233,14 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/medmaint) +"hPG" = ( +/obj/item/clothing/mask/cigarette/rollie, +/obj/item/clothing/mask/cigarette/rollie{ + pixel_y = -3 + }, +/obj/structure/table, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "hPJ" = ( /turf/simulated/floor/plasteel{ icon_state = "dark" @@ -50697,6 +50524,17 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/garden) +"hVK" = ( +/obj/machinery/power/apc/directional/east, +/obj/structure/cable{ + icon_state = "0-8" + }, +/obj/machinery/alarm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "hWf" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -50741,13 +50579,6 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/security/permabrig) -"hXV" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/port/east) "hYj" = ( /obj/machinery/door/airlock/atmos{ name = "Fore-Starboard Atmospherics Maintenance" @@ -50759,13 +50590,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/starboard2) -"hYs" = ( -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/central/se) "hYu" = ( /obj/machinery/newscaster/directional/north, /obj/machinery/disposal, @@ -50904,24 +50728,15 @@ icon_state = "vault" }, /area/station/security/armory/secure) -"iaD" = ( -/obj/item/radio/intercom{ - name = "west bump"; - pixel_x = -28 +"ibg" = ( +/obj/structure/cable{ + icon_state = "1-2" }, -/obj/structure/chair/office/light, -/obj/machinery/computer/security/telescreen{ - desc = "Used for watching the test chamber."; - layer = 4; - name = "Test Chamber Telescreen"; - network = list("Toxins"); - pixel_y = -32 +/obj/machinery/light/small{ + dir = 8 }, -/turf/simulated/floor/plasteel{ - dir = 10; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "ibh" = ( /obj/machinery/atmospherics/binary/pump{ dir = 1; @@ -50967,6 +50782,12 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/south) +"ibV" = ( +/obj/machinery/economy/atm/directional/south, +/turf/simulated/floor/plasteel{ + icon_state = "neutralcorner" + }, +/area/station/public/locker) "icm" = ( /turf/simulated/floor/plasteel{ dir = 10; @@ -51077,12 +50898,6 @@ icon_state = "white" }, /area/station/science/xenobiology) -"ifi" = ( -/obj/machinery/atmospherics/pipe/manifold/visible, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "ifq" = ( /obj/machinery/atmospherics/pipe/manifold/visible/cyan{ dir = 8; @@ -51228,15 +51043,6 @@ /obj/machinery/newscaster/directional/west, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) -"iis" = ( -/obj/structure/extinguisher_cabinet{ - name = "east bump"; - pixel_x = 27 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "iiB" = ( /obj/docking_port/stationary{ dir = 8; @@ -51314,12 +51120,6 @@ }, /turf/simulated/floor/plating, /area/station/security/prison/cell_block/a) -"ikG" = ( -/obj/machinery/light/small{ - dir = 4 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "ikK" = ( /obj/machinery/atmospherics/trinary/filter{ dir = 4; @@ -51333,19 +51133,6 @@ icon_state = "red" }, /area/station/engineering/atmos) -"ikU" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 4 - }, -/obj/item/radio/intercom{ - name = "west bump"; - pixel_x = -28 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "ile" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -51558,6 +51345,26 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/starboard2) +"ipt" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/effect/turf_decal/stripes/corner{ + dir = 8 + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/turretid/stun{ + control_area = "\improper AI Upload Chamber"; + name = "AI Upload Turret Control"; + pixel_x = -28; + req_access = list(75) + }, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplecorner" + }, +/area/station/science/research) "ipz" = ( /obj/structure/cable{ icon_state = "0-2" @@ -52163,6 +51970,13 @@ "iBR" = ( /turf/simulated/wall/r_wall, /area/station/security/storage) +"iCa" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "cautioncorner" + }, +/area/station/hallway/primary/starboard/east) "iCJ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ dir = 4 @@ -52173,6 +51987,9 @@ /obj/structure/grille/broken, /turf/simulated/floor/plating, /area/station/maintenance/medmaint) +"iCR" = ( +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "iCZ" = ( /obj/machinery/atmospherics/unary/vent_pump/on, /turf/simulated/floor/greengrid, @@ -52346,6 +52163,23 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) +"iHH" = ( +/obj/effect/mapping_helpers/airlock/windoor/access/all/science/tox{ + dir = 4 + }, +/obj/effect/mapping_helpers/airlock/windoor/access/all/science/tox{ + dir = 8 + }, +/obj/machinery/door/window/reinforced/reversed{ + name = "Toxins Launcher"; + dir = 4 + }, +/obj/machinery/door/window/reinforced/normal{ + name = "Toxins Launcher"; + dir = 8 + }, +/turf/simulated/floor/plating, +/area/station/science/toxins/launch) "iHO" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/plasteel, @@ -52379,6 +52213,23 @@ icon_state = "darkgrey" }, /area/station/security/evidence) +"iJt" = ( +/obj/machinery/atmospherics/unary/vent_pump/siphon/on{ + dir = 4 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) +"iJu" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 1 + }, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/firealarm/directional/west, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "whitepurple" + }, +/area/station/science/storage) "iJz" = ( /obj/machinery/atmospherics/unary/portables_connector, /obj/machinery/light{ @@ -52580,13 +52431,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/asmaint) -"iOf" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 4 - }, -/obj/machinery/atmospherics/portable/canister/air, -/turf/simulated/floor/plasteel, -/area/station/maintenance/aft2) "iOj" = ( /obj/structure/cable{ icon_state = "2-8" @@ -52662,14 +52506,6 @@ }, /turf/simulated/floor/engine, /area/station/maintenance/turbine) -"iPW" = ( -/obj/machinery/light{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "iQm" = ( /obj/structure/sign/poster/official/random{ pixel_x = -32 @@ -52680,19 +52516,14 @@ }, /area/station/hallway/primary/aft/south) "iQC" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ +/obj/structure/window/reinforced{ dir = 4 }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/obj/structure/cable{ - icon_state = "2-8" - }, +/obj/structure/closet/bombcloset, /turf/simulated/floor/plasteel{ - icon_state = "white" + icon_state = "whitepurple" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "iQK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -52856,14 +52687,8 @@ }, /area/station/security/execution) "iTN" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/structure/cable{ - icon_state = "1-8" +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8 }, /turf/simulated/floor/plasteel{ icon_state = "white" @@ -52912,6 +52737,11 @@ }, /turf/simulated/floor/plasteel, /area/station/security/brig) +"iVF" = ( +/obj/structure/lattice, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging, +/turf/space, +/area/space/nearstation) "iVP" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 @@ -52932,12 +52762,6 @@ icon_state = "dark" }, /area/station/security/interrogation) -"iVX" = ( -/obj/machinery/requests_console/directional/north, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "iWb" = ( /obj/machinery/economy/vending/crittercare, /obj/machinery/light{ @@ -52959,6 +52783,15 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/asmaint) +"iWU" = ( +/obj/structure/chair/sofa/corp/corner, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "iXe" = ( /obj/machinery/hologram/holopad, /obj/machinery/door/window/reinforced/reversed{ @@ -52972,6 +52805,20 @@ icon_state = "darkgrey" }, /area/station/turret_protected/ai) +"iXy" = ( +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 8 + }, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "iYh" = ( /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, @@ -53322,6 +53169,13 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/hallway/primary/aft/north) +"jhm" = ( +/obj/machinery/firealarm/directional/west, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "jil" = ( /obj/structure/disposalpipe/segment/corner{ dir = 8 @@ -53407,19 +53261,6 @@ icon_state = "C3" }, /area/station/hallway/primary/central/south) -"jkW" = ( -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/item/radio/intercom{ - name = "south bump"; - pixel_y = -28 - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurple" - }, -/area/station/science/research) "jkZ" = ( /obj/structure/window/reinforced{ dir = 8 @@ -53583,6 +53424,13 @@ /obj/effect/mapping_helpers/airlock/windoor/access/all/medical/genetics, /turf/simulated/floor/grass/no_creep, /area/station/science/genetics) +"jqr" = ( +/obj/structure/chair/comfy/brown, +/obj/structure/sign/poster/contraband/ambrosia_vulgaris{ + pixel_x = -32 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "jrp" = ( /obj/structure/bed, /obj/item/bedsheet, @@ -53600,6 +53448,19 @@ }, /turf/simulated/floor/wood, /area/station/service/library) +"jsc" = ( +/obj/machinery/light/small{ + dir = 4 + }, +/obj/structure/rack{ + dir = 1 + }, +/obj/item/flashlight{ + pixel_x = 1; + pixel_y = 5 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "jse" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/structure/cable{ @@ -53688,12 +53549,6 @@ icon_state = "C4" }, /area/station/hallway/primary/central/north) -"jth" = ( -/obj/machinery/economy/atm/directional/east, -/turf/simulated/floor/plasteel{ - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/aft/south) "jtB" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -53813,29 +53668,6 @@ icon_state = "white" }, /area/station/science/research) -"jvV" = ( -/obj/effect/mapping_helpers/airlock/windoor/access/all/science/tox{ - dir = 4 - }, -/obj/effect/mapping_helpers/airlock/windoor/access/all/science/tox{ - dir = 8 - }, -/obj/machinery/door/window/reinforced/reversed{ - name = "Toxins Launcher"; - dir = 4 - }, -/obj/machinery/door/window/reinforced/normal{ - name = "Toxins Launcher"; - dir = 8 - }, -/turf/simulated/floor/plating, -/area/station/science/toxins/launch) -"jwh" = ( -/obj/machinery/hologram/holopad, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/launch) "jwi" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ dir = 5 @@ -54425,9 +54257,27 @@ icon_state = "darkbluecorners" }, /area/station/turret_protected/aisat/interior) +"jKe" = ( +/obj/effect/turf_decal/stripes/line, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "jKj" = ( /turf/simulated/wall/r_wall, /area/station/engineering/ai_transit_tube) +"jKx" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "jKG" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 9 @@ -54672,20 +54522,6 @@ icon_state = "red" }, /area/station/security/permabrig) -"jOv" = ( -/obj/structure/table, -/obj/machinery/kitchen_machine/microwave, -/obj/machinery/camera{ - c_tag = "Kitchen - Fore"; - dir = 4 - }, -/obj/machinery/light{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "cafeteria" - }, -/area/station/service/kitchen) "jOA" = ( /obj/structure/reagent_dispensers/fueltank, /obj/structure/disposalpipe/segment{ @@ -54693,6 +54529,14 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/xenobio_south) +"jOB" = ( +/obj/machinery/atmospherics/pipe/simple/heat_exchanging, +/obj/machinery/sparker{ + id = "toxinsigniter"; + pixel_x = -20 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "jOM" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -54860,17 +54704,6 @@ icon_state = "neutralcorner" }, /area/station/public/fitness) -"jRQ" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "jRX" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ @@ -55072,6 +54905,13 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/engineering/smes) +"jVr" = ( +/obj/structure/table/reinforced, +/obj/item/storage/toolbox/mechanical, +/turf/simulated/floor/plasteel{ + icon_state = "darkpurple" + }, +/area/station/science/toxins/mixing) "jVQ" = ( /obj/machinery/alarm/directional/west, /obj/machinery/atmospherics/binary/pump/on{ @@ -55191,6 +55031,17 @@ }, /turf/simulated/floor/plating, /area/station/medical/virology) +"jXU" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + name = "Portable Air Pump Connector"; + dir = 8 + }, +/obj/machinery/atmospherics/portable/pump, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "jXY" = ( /obj/machinery/nuclearbomb/training, /obj/machinery/atmospherics/unary/vent_scrubber/on, @@ -55491,10 +55342,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"kgd" = ( -/obj/effect/spawner/airlock/long, -/turf/simulated/wall, -/area/station/maintenance/aft2) "kgf" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/effect/spawner/airlock/e_to_w, @@ -55783,15 +55630,6 @@ /obj/effect/spawner/airlock/e_to_w/long/square, /turf/simulated/wall/r_wall, /area/station/aisat) -"koA" = ( -/obj/structure/window/reinforced{ - dir = 4 - }, -/obj/structure/closet/bombcloset, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "kpl" = ( /obj/machinery/atmospherics/pipe/manifold/visible{ dir = 1 @@ -56035,15 +55873,6 @@ "kvA" = ( /turf/simulated/wall, /area/station/security/evidence) -"kvF" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "kvG" = ( /turf/simulated/wall/r_wall, /area/station/command/office/rd) @@ -56254,6 +56083,13 @@ icon_state = "whiteblue" }, /area/station/command/office/cmo) +"kAr" = ( +/obj/machinery/door/airlock/public/glass, +/obj/effect/mapping_helpers/airlock/autoname, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "kAP" = ( /obj/structure/closet/crate/trashcart, /obj/effect/turf_decal/delivery, @@ -56557,6 +56393,12 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/apmaint) +"kGo" = ( +/obj/machinery/hologram/holopad, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "kGv" = ( /obj/structure/table, /obj/item/paper{ @@ -56619,6 +56461,23 @@ icon_state = "dark" }, /area/station/security/main) +"kGS" = ( +/obj/effect/turf_decal/stripes/corner, +/obj/effect/turf_decal/stripes/corner{ + dir = 4 + }, +/obj/machinery/hologram/holopad, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 9 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/storage) "kHZ" = ( /obj/machinery/door_control{ id = "atmos"; @@ -56652,22 +56511,6 @@ }, /turf/simulated/floor/engine, /area/station/maintenance/asmaint) -"kIw" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/structure/cable{ - icon_state = "4-8" - }, -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/secondary/bridge) "kIA" = ( /obj/structure/window/reinforced{ dir = 4 @@ -56720,12 +56563,6 @@ }, /turf/simulated/floor/plating, /area/station/command/office/cmo) -"kKe" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "kKz" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -56882,6 +56719,13 @@ /obj/item/megaphone, /turf/simulated/floor/carpet, /area/station/legal/courtroom) +"kNZ" = ( +/obj/effect/decal/cleanable/dirt, +/obj/structure/closet/l3closet/scientist, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple" + }, +/area/station/maintenance/asmaint) "kOd" = ( /obj/machinery/atmospherics/pipe/simple/visible/cyan{ dir = 4 @@ -57021,6 +56865,15 @@ }, /turf/simulated/floor/plating, /area/station/science/robotics/showroom) +"kRG" = ( +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 6 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/fore/north) "kRX" = ( /obj/structure/window/plasmareinforced{ dir = 1 @@ -57093,6 +56946,20 @@ /obj/machinery/atmospherics/portable/canister/air, /turf/simulated/floor/plasteel, /area/station/public/construction) +"kTs" = ( +/obj/effect/turf_decal/stripes/line, +/obj/effect/turf_decal/stripes/line{ + dir = 1 + }, +/obj/machinery/alarm/directional/east, +/obj/machinery/computer/area_atmos{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplefull" + }, +/area/station/science/storage) "kTH" = ( /obj/structure/filingcabinet/chestdrawer, /turf/simulated/floor/plasteel{ @@ -57281,12 +57148,6 @@ icon_state = "whiteyellow" }, /area/station/medical/chemistry) -"kWX" = ( -/obj/effect/turf_decal/stripes/corner, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "kXm" = ( /obj/effect/turf_decal/tile/red, /obj/effect/turf_decal/tile/red{ @@ -57308,12 +57169,6 @@ icon_state = "dark" }, /area/station/aisat) -"kXv" = ( -/obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction{ - dir = 8 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "kXT" = ( /obj/machinery/light/small{ dir = 1 @@ -57601,15 +57456,17 @@ }, /area/station/public/locker) "leO" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 5 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 5 + }, /obj/structure/cable{ - icon_state = "1-2" + icon_state = "1-4" }, -/obj/structure/disposalpipe/segment, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ - dir = 8 +/obj/structure/disposalpipe/segment/corner{ + dir = 1 }, /turf/simulated/floor/plasteel{ icon_state = "white" @@ -57775,11 +57632,10 @@ }, /area/station/hallway/primary/starboard) "lhF" = ( -/obj/structure/window/reinforced, -/obj/structure/rack, -/obj/item/extinguisher, -/obj/item/clothing/mask/gas, -/obj/item/grenade/chem_grenade/firefighting, +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 10 + }, +/obj/machinery/atmospherics/meter, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "whitepurple" @@ -57850,6 +57706,13 @@ icon_state = "white" }, /area/station/security/permabrig) +"ljg" = ( +/obj/machinery/atmospherics/unary/portables_connector, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "ljk" = ( /obj/machinery/atmospherics/pipe/simple/visible{ dir = 5 @@ -57973,6 +57836,27 @@ icon_state = "whitepurplecorner" }, /area/station/science/research) +"llA" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8 + }, +/obj/machinery/door_control{ + id = "ToxinsVenting"; + layer = 3.3; + name = "Toxin Venting Control"; + pixel_x = 8; + pixel_y = -27 + }, +/obj/machinery/ignition_switch{ + id = "toxinsigniter"; + layer = 3.3; + pixel_x = -6; + pixel_y = -26 + }, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "llU" = ( /obj/effect/turf_decal/stripes/corner, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -58409,6 +58293,15 @@ icon_state = "redcorner" }, /area/station/security/main) +"lvB" = ( +/obj/structure/disposalpipe/trunk{ + dir = 8 + }, +/obj/machinery/disposal, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "lvE" = ( /obj/machinery/door/airlock/maintenance, /obj/effect/mapping_helpers/airlock/access/any/engineering/maintenance, @@ -58537,6 +58430,23 @@ }, /turf/simulated/floor/plasteel, /area/station/security/prisonlockers) +"lAE" = ( +/obj/machinery/driver_button{ + id_tag = "toxinsdriver"; + pixel_y = -24; + range = 18 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/item/paper_bin, +/obj/item/pen, +/obj/structure/table/reinforced, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "lAG" = ( /obj/structure/cable{ icon_state = "1-8" @@ -58770,6 +58680,11 @@ icon_state = "dark" }, /area/station/turret_protected/ai_upload) +"lEz" = ( +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/toxins/mixing) "lEM" = ( /obj/structure/closet, /obj/effect/spawner/random/maintenance, @@ -58804,6 +58719,17 @@ icon_state = "freezerfloor" }, /area/station/security/permabrig) +"lFt" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8; + name = "Portable Scrubber Connector" + }, +/obj/machinery/atmospherics/portable/scrubber, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "lFu" = ( /obj/machinery/door/airlock/security/glass{ name = "Prison Wing"; @@ -58938,6 +58864,22 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/aft/south) +"lIC" = ( +/obj/machinery/camera{ + c_tag = "Science Toxins Mixing - Aft Starboard"; + dir = 8; + network = list("Research","SS13") + }, +/obj/effect/turf_decal/stripes/line, +/obj/machinery/atmospherics/portable/canister, +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "lIF" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -59499,6 +59441,15 @@ }, /turf/simulated/floor/carpet, /area/station/service/chapel) +"lUD" = ( +/obj/structure/extinguisher_cabinet{ + name = "east bump"; + pixel_x = 27 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "lVd" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 @@ -59551,10 +59502,6 @@ icon_state = "darkblue" }, /area/station/command/bridge) -"lWk" = ( -/obj/effect/spawner/random/barrier/obstruction, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "lWT" = ( /obj/effect/turf_decal/tile/blue{ dir = 4 @@ -60018,13 +59965,13 @@ /turf/simulated/floor/plating, /area/station/maintenance/starboard) "mfM" = ( -/obj/effect/decal/cleanable/dirt, -/obj/machinery/atmospherics/portable/canister/carbon_dioxide, -/obj/effect/turf_decal/delivery/red/hollow, -/turf/simulated/floor/plasteel{ - icon_state = "dark" +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 1 }, -/area/station/science/storage) +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "mge" = ( /obj/structure/table/glass, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -60040,15 +59987,12 @@ }, /area/station/security/permabrig) "mgu" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, /obj/structure/cable{ - icon_state = "4-8" + icon_state = "1-2" }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plasteel{ icon_state = "white" }, @@ -60068,15 +60012,6 @@ icon_state = "darkblue" }, /area/station/command/office/cmo) -"mhw" = ( -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 6 - }, -/obj/machinery/atmospherics/air_sensor{ - autolink_id = "burn_sensor" - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "mhA" = ( /obj/item/kirbyplants/large/plant8, /obj/machinery/light/small{ @@ -60307,18 +60242,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/prison/cell_block/a) -"mnd" = ( -/obj/structure/chair/comfy/corp, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) -"mng" = ( -/obj/machinery/hologram/holopad, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "mnl" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -60429,18 +60352,6 @@ icon_state = "caution" }, /area/station/engineering/atmos/distribution) -"mqA" = ( -/obj/machinery/atmospherics/portable/canister/oxygen, -/obj/effect/turf_decal/delivery/blue/hollow, -/obj/machinery/camera{ - c_tag = "Science - Toxins Secure - Starboard"; - dir = 8; - network = list("Research","SS13") - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/storage) "mqG" = ( /obj/machinery/autolathe, /obj/machinery/camera{ @@ -60470,6 +60381,12 @@ }, /turf/simulated/floor/plasteel, /area/station/science/research) +"mrl" = ( +/obj/structure/closet/emcloset, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "mrv" = ( /obj/effect/turf_decal/loading_area, /turf/simulated/floor/plating, @@ -60509,9 +60426,6 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/medical/virology) -"mtd" = ( -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "mtr" = ( /obj/structure/closet/firecloset, /obj/effect/spawner/random/maintenance, @@ -60541,6 +60455,14 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) +"muv" = ( +/obj/structure/rack, +/obj/effect/spawner/random/maintenance, +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/asmaint) "muA" = ( /obj/structure/table/reinforced, /obj/item/paper_bin{ @@ -60868,6 +60790,29 @@ /obj/machinery/atmospherics/pipe/simple/heat_exchanging, /turf/space, /area/space/nearstation) +"mBB" = ( +/obj/structure/chair/comfy/corp, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) +"mBJ" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/machinery/atmospherics/portable/scrubber/huge, +/obj/effect/turf_decal/stripes/line{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/light, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplefull" + }, +/area/station/science/storage) "mCc" = ( /obj/structure/cable{ icon_state = "1-2" @@ -60954,15 +60899,6 @@ }, /turf/simulated/floor/engine, /area/station/science/xenobiology) -"mDE" = ( -/obj/machinery/atmospherics/unary/vent_pump/on{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "redcorner" - }, -/area/station/hallway/primary/fore/north) "mDR" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -61199,19 +61135,6 @@ icon_state = "whiteblue" }, /area/station/medical/reception) -"mJt" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/disposalpipe/segment/corner{ - dir = 1 - }, -/obj/structure/cable{ - icon_state = "1-2" - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "mJv" = ( /obj/structure/cable{ icon_state = "0-4" @@ -61278,6 +61201,9 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/engimaint) +"mLk" = ( +/turf/simulated/floor/transparent/glass/reinforced, +/area/station/hallway/primary/central/north) "mLn" = ( /obj/structure/disposalpipe/segment/corner{ dir = 4 @@ -61308,6 +61234,14 @@ /obj/machinery/atmospherics/portable/canister/air, /turf/simulated/floor/plating, /area/station/engineering/control) +"mLD" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/portable/canister/sleeping_agent, +/obj/effect/turf_decal/delivery/white/hollow, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "mLH" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -61342,23 +61276,6 @@ icon_state = "whitebluefull" }, /area/station/medical/exam_room) -"mMI" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 5 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 5 - }, -/obj/structure/cable{ - icon_state = "1-4" - }, -/obj/structure/disposalpipe/segment/corner{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "mNu" = ( /obj/structure/sink{ dir = 1; @@ -61970,6 +61887,10 @@ /obj/structure/cable, /turf/simulated/floor/plating, /area/station/maintenance/aft2) +"mZs" = ( +/obj/machinery/space_heater, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "mZH" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 @@ -62007,12 +61928,6 @@ /obj/effect/landmark/start/atmospheric, /turf/simulated/floor/plasteel, /area/station/engineering/atmos/distribution) -"naq" = ( -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "naR" = ( /obj/machinery/seed_extractor, /obj/effect/turf_decal/stripes/line{ @@ -62255,15 +62170,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/starboard2) -"nei" = ( -/obj/effect/turf_decal/stripes/corner{ - dir = 8 - }, -/obj/structure/closet/bombcloset, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "nej" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 @@ -62405,6 +62311,16 @@ /obj/effect/mapping_helpers/airlock/windoor/access/all/supply/general, /turf/simulated/floor/plasteel, /area/station/supply/office) +"nhe" = ( +/obj/structure/chair/comfy/corp, +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "nht" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -62742,6 +62658,10 @@ icon_state = "redcorner" }, /area/station/security/brig) +"nob" = ( +/obj/effect/spawner/window/reinforced/plasma/grilled, +/turf/simulated/floor/plating, +/area/station/science/toxins/launch) "nos" = ( /obj/machinery/requests_console/directional/south, /turf/simulated/floor/plasteel{ @@ -63243,6 +63163,11 @@ icon_state = "bar" }, /area/station/service/bar) +"nAL" = ( +/obj/item/cigbutt/roach, +/obj/item/cigbutt/roach, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "nAM" = ( /obj/machinery/space_heater, /obj/effect/turf_decal/stripes/line{ @@ -63621,6 +63546,12 @@ icon_state = "red" }, /area/station/security/main) +"nID" = ( +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "nIG" = ( /obj/machinery/light_switch{ dir = 8; @@ -63636,27 +63567,6 @@ icon_state = "whitegreen" }, /area/station/medical/virology) -"nIS" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8 - }, -/obj/machinery/door_control{ - id = "ToxinsVenting"; - layer = 3.3; - name = "Toxin Venting Control"; - pixel_x = 8; - pixel_y = -27 - }, -/obj/machinery/ignition_switch{ - id = "toxinsigniter"; - layer = 3.3; - pixel_x = -6; - pixel_y = -26 - }, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "nIZ" = ( /obj/docking_port/stationary{ dir = 8; @@ -63668,6 +63578,16 @@ }, /turf/space, /area/space) +"nJt" = ( +/obj/machinery/atmospherics/binary/pump{ + dir = 8; + name = "Port to Hot Loop" + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "nJz" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/hologram/holopad, @@ -63731,13 +63651,10 @@ }, /turf/simulated/floor/carpet, /area/station/science/robotics/showroom) -"nLN" = ( -/obj/effect/spawner/window/reinforced/plasma/grilled, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction{ - dir = 8 - }, +"nLv" = ( +/obj/structure/closet/l3closet/scientist, /turf/simulated/floor/plating, -/area/station/science/toxins/mixing) +/area/station/maintenance/asmaint) "nLV" = ( /obj/structure/disposalpipe/sortjunction{ dir = 8; @@ -63803,17 +63720,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/cyan, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"nNx" = ( -/obj/machinery/camera{ - c_tag = "Science Toxins Mixing - Aft"; - dir = 4; - network = list("Research","SS13") - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "nOA" = ( /obj/effect/turf_decal/tile/neutral{ dir = 1 @@ -63936,49 +63842,11 @@ icon_state = "dark" }, /area/station/medical/morgue) -"nQl" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/structure/disposalpipe/segment, -/obj/effect/mapping_helpers/airlock/windoor/autoname, -/obj/effect/mapping_helpers/airlock/windoor/access/any/science/tox, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/door/window/classic/normal, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "nRh" = ( /turf/simulated/floor/plasteel{ icon_state = "dark" }, /area/station/engineering/control) -"nRl" = ( -/obj/effect/turf_decal/stripes/line, -/obj/effect/turf_decal/stripes/line{ - dir = 1 - }, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurplefull" - }, -/area/station/science/storage) -"nRv" = ( -/obj/machinery/computer/general_air_control{ - dir = 4; - name = "Bomb Mix Monitor"; - autolink_sensors = list("burn_sensor"="Burn Mix") - }, -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "nRQ" = ( /obj/effect/mapping_helpers/turfs/rust/probably, /turf/simulated/wall/r_wall, @@ -64030,6 +63898,12 @@ icon_state = "browncorner" }, /area/station/supply/qm) +"nTf" = ( +/obj/structure/chair/comfy/corp, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "nTF" = ( /obj/structure/cable{ icon_state = "1-2" @@ -64055,14 +63929,6 @@ }, /turf/simulated/floor/greengrid, /area/station/science/robotics/chargebay) -"nUB" = ( -/obj/structure/chair/comfy/corp{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "nUG" = ( /obj/effect/landmark/start/roboticist, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -64129,6 +63995,12 @@ icon_state = "whitegreenfull" }, /area/station/public/sleep) +"nVo" = ( +/obj/machinery/light/small{ + dir = 1 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "nVp" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -64200,10 +64072,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/starboard) -"nWZ" = ( -/obj/structure/closet/l3closet/scientist, -/turf/simulated/floor/plating, -/area/station/maintenance/asmaint) "nXk" = ( /obj/structure/bookcase, /obj/effect/mapping_helpers/turfs/damage, @@ -64661,11 +64529,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/asmaint) -"ogH" = ( -/obj/structure/lattice/catwalk, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging, -/turf/space, -/area/space/nearstation) "oha" = ( /obj/structure/cable{ icon_state = "2-8" @@ -64674,6 +64537,15 @@ icon_state = "darkgreycheck" }, /area/station/command/office/rd) +"ohj" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurplecorner" + }, +/area/station/science/toxins/mixing) "ohK" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/cyan, @@ -64730,13 +64602,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) -"okT" = ( -/obj/machinery/atmospherics/binary/pump{ - dir = 4; - name = "Burn Chamber to Port" +"okj" = ( +/obj/machinery/power/apc/directional/west, +/obj/structure/cable{ + icon_state = "0-4" }, /turf/simulated/floor/plasteel{ - dir = 10; + dir = 8; icon_state = "whitepurple" }, /area/station/science/toxins/mixing) @@ -64945,15 +64817,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/permabrig) -"oqh" = ( -/obj/effect/turf_decal/stripes/line, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "oqi" = ( /obj/machinery/atmospherics/pipe/manifold/visible{ dir = 1 @@ -65072,12 +64935,6 @@ icon_state = "darkgrey" }, /area/station/science/robotics) -"ouD" = ( -/obj/item/kirbyplants/large, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "ovM" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -65111,6 +64968,14 @@ }, /turf/simulated/floor/engine, /area/station/engineering/control) +"oxN" = ( +/obj/structure/chair/sofa/corp{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "oxT" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock, @@ -65379,6 +65244,21 @@ /obj/effect/mapping_helpers/turfs/damage, /turf/simulated/floor/plating, /area/station/maintenance/apmaint) +"oDK" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "oEe" = ( /obj/machinery/atmospherics/trinary/filter{ dir = 4; @@ -65604,19 +65484,6 @@ icon_state = "purplecorner" }, /area/station/science/testrange) -"oJk" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/effect/turf_decal/tile/bar, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/door/firedoor, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/fore/east) "oJo" = ( /obj/machinery/light_switch{ dir = 8; @@ -65650,6 +65517,15 @@ icon_state = "caution" }, /area/station/engineering/atmos/control) +"oLm" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "oLF" = ( /obj/machinery/light{ dir = 4 @@ -65718,13 +65594,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) -"oNf" = ( -/obj/structure/chair/comfy/brown, -/obj/structure/sign/poster/contraband/ambrosia_vulgaris{ - pixel_x = -32 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "oNk" = ( /obj/effect/mapping_helpers/turfs/burn, /turf/simulated/floor/plating, @@ -65937,6 +65806,13 @@ icon_state = "white" }, /area/station/medical/medbay) +"oQo" = ( +/obj/effect/turf_decal/delivery/hollow, +/obj/machinery/atmospherics/portable/canister/toxins, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "oQz" = ( /turf/simulated/floor/plasteel{ icon_state = "neutralcorner" @@ -66073,12 +65949,6 @@ /obj/machinery/atmospherics/unary/vent_pump/on, /turf/simulated/floor/plasteel, /area/station/service/janitor) -"oTc" = ( -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurplecorner" - }, -/area/station/science/toxins/mixing) "oTn" = ( /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, @@ -66182,6 +66052,17 @@ icon_state = "darkgrey" }, /area/station/science/robotics) +"oVp" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/research) "oVx" = ( /obj/effect/mapping_helpers/turfs/rust/probably, /turf/simulated/wall/r_wall, @@ -66258,20 +66139,6 @@ "oWE" = ( /turf/simulated/wall/r_wall, /area/station/public/fitness) -"oWK" = ( -/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ - dir = 8 - }, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "oWL" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 8 @@ -66361,10 +66228,7 @@ /area/station/maintenance/starboard) "oXP" = ( /obj/structure/table, -/obj/item/storage/bag/tray, -/obj/item/reagent_containers/condiment/enzyme{ - layer = 5 - }, +/obj/machinery/cooking/grill, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -66514,6 +66378,15 @@ icon_state = "white" }, /area/station/security/permabrig) +"pch" = ( +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/door/airlock/maintenance, +/obj/effect/mapping_helpers/airlock/autoname, +/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, +/turf/simulated/floor/plating, +/area/station/hallway/primary/fore/north) "pcy" = ( /obj/structure/table/wood, /obj/item/book/manual/wiki/security_space_law, @@ -66660,16 +66533,6 @@ /obj/effect/spawner/random/trash, /turf/simulated/floor/plating, /area/station/maintenance/xenobio_south) -"peu" = ( -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 10 - }, -/obj/machinery/atmospherics/meter, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "peF" = ( /obj/effect/mapping_helpers/airlock/access/any/engineering/general, /obj/machinery/door/airlock/engineering/glass{ @@ -66679,6 +66542,13 @@ /obj/effect/mapping_helpers/airlock/access/any/engineering/atmos, /turf/simulated/floor/engine, /area/station/engineering/engine/supermatter) +"peT" = ( +/obj/structure/lattice, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 6 + }, +/turf/space, +/area/space/nearstation) "pfa" = ( /obj/structure/table, /obj/item/storage/belt/utility, @@ -66713,12 +66583,6 @@ /obj/effect/mapping_helpers/airlock/access/any/engineering/atmos, /turf/simulated/floor/plating, /area/station/engineering/control) -"pgo" = ( -/obj/machinery/light/small{ - dir = 1 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "pgs" = ( /obj/structure/table, /obj/item/toy/crayon/white{ @@ -66754,6 +66618,19 @@ icon_state = "white" }, /area/station/science/rnd) +"phs" = ( +/obj/machinery/disposal/delivery_chute{ + dir = 4 + }, +/obj/structure/disposalpipe/trunk{ + dir = 8 + }, +/obj/structure/window/plasmareinforced{ + dir = 8 + }, +/obj/structure/window/plasmareinforced, +/turf/simulated/floor/plating, +/area/station/science/toxins/launch) "phu" = ( /obj/effect/spawner/window/reinforced/plasma/grilled, /turf/simulated/floor/plating, @@ -66787,6 +66664,13 @@ icon_state = "purple" }, /area/station/engineering/atmos) +"phL" = ( +/obj/machinery/alarm/directional/north, +/obj/machinery/atmospherics/unary/thermomachine/freezer, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "pig" = ( /obj/structure/disposalpipe/segment, /obj/machinery/atmospherics/pipe/simple/hidden/cyan, @@ -66820,14 +66704,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/port) -"piJ" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "piX" = ( /obj/structure/cable{ icon_state = "1-2" @@ -66980,6 +66856,17 @@ /obj/effect/spawner/random/oil/maybe, /turf/simulated/floor/plasteel, /area/station/maintenance/fsmaint) +"plV" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/storage) "pmd" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -67299,6 +67186,22 @@ icon_state = "darkredcorners" }, /area/station/security/armory/secure) +"ptw" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/machinery/atmospherics/portable/scrubber/huge, +/obj/effect/turf_decal/stripes/line{ + dir = 8 + }, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplefull" + }, +/area/station/science/storage) "ptU" = ( /obj/machinery/alarm/directional/east, /turf/simulated/floor/wood, @@ -67477,6 +67380,14 @@ icon_state = "freezerfloor" }, /area/station/public/toilet/lockerroom) +"pyg" = ( +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "pyh" = ( /obj/structure/disposalpipe/segment, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -67605,6 +67516,15 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/hallway/primary/aft/south) +"pBf" = ( +/obj/machinery/camera{ + c_tag = "Central Primary Hallway - Fore-Port - AI Upload" + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/central/north) "pBl" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -67649,6 +67569,12 @@ /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel, /area/station/security/brig) +"pCd" = ( +/obj/machinery/light/small{ + dir = 4 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/aft2) "pCf" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel{ @@ -67720,6 +67646,18 @@ icon_state = "dark" }, /area/station/science/misc_lab) +"pDD" = ( +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 6 + }, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "pDW" = ( /obj/structure/cable{ icon_state = "2-4" @@ -67761,6 +67699,18 @@ icon_state = "brown" }, /area/station/hallway/primary/central/nw) +"pFi" = ( +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/machinery/hologram/holopad, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "pFo" = ( /obj/structure/cable{ icon_state = "4-8" @@ -67949,11 +67899,6 @@ icon_state = "white" }, /area/station/medical/medbay) -"pIF" = ( -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/mixing) "pJh" = ( /obj/structure/cable{ icon_state = "0-4" @@ -67998,15 +67943,6 @@ icon_state = "showroomfloor" }, /area/station/medical/coldroom) -"pJw" = ( -/obj/effect/turf_decal/stripes/line, -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "pJx" = ( /obj/structure/cable{ icon_state = "1-8" @@ -68036,6 +67972,13 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/break_room) +"pKo" = ( +/obj/structure/dispenser, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkpurplecorners" + }, +/area/station/science/toxins/mixing) "pKs" = ( /obj/machinery/field/generator{ state = 2 @@ -68091,6 +68034,19 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/maintcentral) +"pKT" = ( +/obj/structure/chair/office/light, +/obj/machinery/computer/security/telescreen{ + desc = "Used for watching the test chamber."; + layer = 4; + name = "Test Chamber Telescreen"; + network = list("Toxins"); + pixel_y = -32 + }, +/turf/simulated/floor/plasteel{ + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "pLD" = ( /obj/machinery/door_timer/cell_1{ pixel_x = -32 @@ -68373,10 +68329,6 @@ icon_state = "redcorner" }, /area/station/hallway/primary/fore/north) -"pRR" = ( -/obj/effect/turf_decal/stripes/line, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "pRT" = ( /obj/structure/cable{ icon_state = "1-8" @@ -68730,15 +68682,6 @@ /obj/machinery/atmospherics/portable/canister/oxygen, /turf/simulated/floor/plasteel, /area/station/engineering/atmos/control) -"pZE" = ( -/obj/structure/disposalpipe/trunk{ - dir = 8 - }, -/obj/machinery/disposal, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "qal" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -68929,16 +68872,13 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/station/security/prison/cell_block/a) -"qdL" = ( -/obj/item/kirbyplants/large, -/obj/item/radio/intercom{ - name = "north bump"; - pixel_y = 28 - }, +"qdy" = ( +/obj/effect/turf_decal/stripes/line, +/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ - icon_state = "dark" + icon_state = "whitepurple" }, -/area/station/hallway/primary/central/north) +/area/station/science/storage) "qdR" = ( /obj/structure/table/reinforced, /obj/machinery/door/window/classic/reversed{ @@ -69428,6 +69368,25 @@ icon_state = "browncorner" }, /area/station/hallway/primary/fore/east) +"qpK" = ( +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/cable{ + 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/research, +/obj/effect/mapping_helpers/airlock/access/all/science/tox, +/obj/effect/mapping_helpers/airlock/autoname, +/obj/machinery/door/firedoor/heavy, +/turf/simulated/floor/plasteel, +/area/station/science/toxins/mixing) "qpN" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers, /obj/machinery/atmospherics/pipe/manifold/hidden/supply{ @@ -69459,6 +69418,10 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/atmos/distribution) +"qqG" = ( +/obj/effect/mapping_helpers/turfs/damage, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "qqM" = ( /obj/structure/cable{ icon_state = "4-8" @@ -69788,12 +69751,16 @@ /turf/simulated/floor/plating, /area/station/maintenance/xenobio_south) "qwA" = ( -/obj/machinery/light{ - dir = 4 +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/disposalpipe/segment/corner{ + dir = 1 + }, +/obj/structure/cable{ + icon_state = "1-2" }, /turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" + icon_state = "white" }, /area/station/science/toxins/mixing) "qwB" = ( @@ -69944,6 +69911,10 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) +"qAm" = ( +/obj/effect/spawner/airlock/long, +/turf/simulated/wall, +/area/station/maintenance/aft2) "qAr" = ( /obj/machinery/light/small{ dir = 1 @@ -70124,6 +70095,14 @@ icon_state = "red" }, /area/station/security/main) +"qEV" = ( +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/turret_protected/ai_upload) "qEX" = ( /obj/effect/turf_decal/stripes/line{ dir = 1 @@ -70172,15 +70151,6 @@ icon_state = "greenblue" }, /area/station/service/hydroponics) -"qGQ" = ( -/obj/machinery/atmospherics/binary/pump{ - name = "Cold Loop to Port" - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "qIg" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 @@ -70398,6 +70368,13 @@ }, /turf/simulated/floor/plasteel, /area/station/science/xenobiology) +"qNu" = ( +/obj/structure/lattice, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 9 + }, +/turf/space, +/area/space/nearstation) "qNJ" = ( /obj/machinery/atmospherics/pipe/manifold/visible/blue{ dir = 1 @@ -70577,20 +70554,6 @@ icon_state = "dark" }, /area/station/security/interrogation) -"qQT" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/machinery/atmospherics/portable/scrubber/huge, -/obj/effect/turf_decal/stripes/line{ - dir = 8 - }, -/obj/effect/decal/cleanable/dirt, -/obj/machinery/light, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurplefull" - }, -/area/station/science/storage) "qRm" = ( /obj/effect/spawner/random/oil/maybe, /turf/simulated/floor/plasteel, @@ -70637,34 +70600,6 @@ icon_state = "caution" }, /area/station/engineering/atmos/control) -"qRR" = ( -/obj/structure/table/reinforced, -/obj/machinery/light, -/obj/item/transfer_valve{ - pixel_x = 4; - pixel_y = -4 - }, -/obj/item/transfer_valve{ - pixel_x = 2; - pixel_y = -2 - }, -/obj/item/transfer_valve, -/obj/item/transfer_valve{ - pixel_x = -2; - pixel_y = 2 - }, -/obj/item/transfer_valve{ - pixel_x = -4; - pixel_y = 4 - }, -/obj/item/transfer_valve{ - pixel_x = -6; - pixel_y = 6 - }, -/turf/simulated/floor/plasteel{ - icon_state = "darkpurple" - }, -/area/station/science/toxins/mixing) "qSf" = ( /obj/structure/window/reinforced{ dir = 1 @@ -70737,6 +70672,15 @@ }, /turf/simulated/floor/plasteel, /area/station/public/dorms) +"qUk" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "whitepurple" + }, +/area/station/science/storage) "qUq" = ( /mob/living/simple_animal/chicken/clucky, /turf/simulated/floor/grass, @@ -70787,6 +70731,15 @@ icon_state = "dark" }, /area/station/security/armory/secure) +"qWh" = ( +/obj/effect/turf_decal/stripes/corner{ + dir = 8 + }, +/obj/structure/closet/bombcloset, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "qWm" = ( /obj/structure/cable{ icon_state = "0-4" @@ -71074,6 +71027,20 @@ icon_state = "white" }, /area/station/maintenance/aft) +"rbp" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 8 + }, +/obj/machinery/camera{ + c_tag = "Science Toxins Mixing - Fore"; + dir = 8; + network = list("Research","SS13") + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "rbu" = ( /obj/structure/disposalpipe/segment, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -71214,6 +71181,12 @@ }, /turf/space, /area/space) +"rei" = ( +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 10 + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "ret" = ( /obj/machinery/atmospherics/unary/vent_pump/on, /turf/simulated/floor/plasteel, @@ -71285,6 +71258,26 @@ icon_state = "greencorner" }, /area/station/security/permabrig) +"rgJ" = ( +/obj/structure/table/reinforced, +/obj/item/taperecorder{ + pixel_x = 5; + pixel_y = 5 + }, +/obj/item/analyzer{ + pixel_x = -5; + pixel_y = 5 + }, +/obj/item/stack/cable_coil, +/obj/item/stack/cable_coil{ + pixel_x = 3; + pixel_y = -3 + }, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "darkpurple" + }, +/area/station/science/toxins/mixing) "rgX" = ( /turf/simulated/floor/plasteel{ icon_state = "whitepurplecorner" @@ -71317,22 +71310,12 @@ }, /area/station/service/kitchen) "rhH" = ( -/obj/effect/turf_decal/stripes/corner, -/obj/effect/turf_decal/stripes/corner{ - dir = 4 - }, -/obj/machinery/hologram/holopad, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 9 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 10 - }, +/obj/structure/chair/office/light, +/obj/effect/landmark/start/scientist, /turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" + icon_state = "dark" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "rif" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 1 @@ -71434,6 +71417,19 @@ icon_state = "dark" }, /area/station/aisat) +"rjX" = ( +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 4 + }, +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "rkr" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/centcom{ @@ -71508,6 +71504,12 @@ icon_state = "whiteblue" }, /area/station/security/permabrig) +"rlG" = ( +/obj/machinery/door/airlock/maintenance, +/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, +/obj/effect/mapping_helpers/airlock/autoname, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "rlJ" = ( /obj/machinery/atmospherics/pipe/manifold/visible/cyan, /obj/machinery/light, @@ -71520,13 +71522,6 @@ }, /turf/simulated/floor/engine, /area/station/engineering/control) -"rlX" = ( -/obj/structure/lattice/catwalk, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 6 - }, -/turf/space, -/area/space/nearstation) "rmg" = ( /obj/machinery/light, /turf/simulated/floor/plasteel{ @@ -71544,10 +71539,6 @@ /obj/item/clothing/glasses/welding, /turf/simulated/floor/plasteel, /area/station/science/robotics/chargebay) -"rmt" = ( -/obj/machinery/economy/atm/directional/south, -/turf/simulated/floor/wood, -/area/station/service/bar) "rmz" = ( /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -71885,6 +71876,10 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/carpet, /area/station/command/office/captain/bedroom) +"ruf" = ( +/obj/effect/spawner/random/fungus/probably, +/turf/simulated/floor/plating, +/area/station/maintenance/aft2) "ruo" = ( /obj/structure/rack, /obj/item/stack/cable_coil/random, @@ -72093,23 +72088,6 @@ icon_state = "white" }, /area/station/medical/medbay) -"ryG" = ( -/obj/machinery/driver_button{ - id_tag = "toxinsdriver"; - pixel_y = -24; - range = 18 - }, -/obj/effect/turf_decal/stripes/line{ - dir = 4 - }, -/obj/item/paper_bin, -/obj/item/pen, -/obj/structure/table/reinforced, -/turf/simulated/floor/plasteel{ - dir = 6; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "ryV" = ( /obj/machinery/atmospherics/binary/pump{ dir = 0; @@ -72234,13 +72212,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/plasteel, /area/station/engineering/atmos) -"rAG" = ( -/obj/structure/table/reinforced, -/obj/item/storage/toolbox/mechanical, -/turf/simulated/floor/plasteel{ - icon_state = "darkpurple" - }, -/area/station/science/toxins/mixing) "rBn" = ( /obj/machinery/atmospherics/pipe/simple/visible/cyan{ dir = 4 @@ -72365,6 +72336,14 @@ }, /turf/simulated/floor/plasteel, /area/station/security/warden) +"rEm" = ( +/obj/machinery/light{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "rEw" = ( /obj/structure/cable{ icon_state = "1-2" @@ -72375,6 +72354,15 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/hallway/primary/aft/north) +"rEx" = ( +/obj/machinery/light{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "rEF" = ( /turf/simulated/floor/plasteel{ dir = 4; @@ -72670,6 +72658,12 @@ icon_state = "green" }, /area/station/hallway/primary/central/se) +"rJI" = ( +/obj/structure/chair/sofa/corp, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "rJJ" = ( /obj/machinery/door/airlock/titanium{ name = "Arrivals Shuttle Airlock" @@ -72725,6 +72719,13 @@ /obj/structure/reagent_dispensers/watertank, /turf/simulated/floor/plating, /area/station/maintenance/aft2) +"rKT" = ( +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/central/se) "rKV" = ( /obj/machinery/door/firedoor, /turf/simulated/floor/plasteel{ @@ -72870,15 +72871,6 @@ icon_state = "black" }, /area/station/security/permabrig) -"rOc" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurplecorner" - }, -/area/station/science/toxins/mixing) "rOi" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -72935,10 +72927,6 @@ icon_state = "darkbluecorners" }, /area/station/command/bridge) -"rOP" = ( -/obj/machinery/economy/atm/directional/west, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/fore/east) "rOT" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -72947,13 +72935,6 @@ icon_state = "redcorner" }, /area/station/hallway/primary/central/se) -"rOX" = ( -/obj/effect/mapping_helpers/airlock/access/all/engineering/general, -/obj/machinery/light/small{ - dir = 4 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/aft2) "rOY" = ( /obj/structure/table/glass, /obj/machinery/light_switch{ @@ -73064,7 +73045,7 @@ }, /area/station/security/prisonlockers) "rSj" = ( -/obj/structure/closet/emcloset, +/obj/structure/closet/firecloset, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -73321,15 +73302,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"rWM" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "darkpurplecorners" - }, -/area/station/science/toxins/launch) "rXa" = ( /obj/machinery/atmospherics/pipe/simple/visible/yellow{ dir = 4 @@ -73435,13 +73407,6 @@ icon_state = "dark" }, /area/station/aisat) -"rZM" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "red" - }, -/area/station/hallway/primary/fore/north) "rZN" = ( /obj/machinery/door/poddoor/impassable/gamma, /turf/simulated/floor/plasteel{ @@ -73627,13 +73592,6 @@ }, /turf/simulated/floor/plating, /area/station/command/office/cmo) -"sft" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "cautioncorner" - }, -/area/station/hallway/primary/starboard/east) "sfz" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 10 @@ -73677,13 +73635,6 @@ icon_state = "yellowcorner" }, /area/station/hallway/primary/aft/north) -"sfW" = ( -/obj/machinery/economy/atm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurple" - }, -/area/station/science/lobby) "sgk" = ( /obj/machinery/smartfridge/foodcart, /obj/machinery/alarm/directional/north, @@ -73747,14 +73698,6 @@ icon_state = "redcorner" }, /area/station/security/brig) -"shr" = ( -/obj/machinery/door/poddoor{ - id_tag = "ToxinsVenting"; - name = "Toxins Venting Bay Door"; - power_state = 0 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "sjx" = ( /obj/structure/chair{ dir = 1 @@ -73871,11 +73814,6 @@ icon_state = "whiteblue" }, /area/station/medical/reception) -"skQ" = ( -/obj/item/cigbutt/roach, -/obj/item/cigbutt/roach, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "skT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -74133,6 +74071,14 @@ icon_state = "neutralcorner" }, /area/station/public/fitness) +"sql" = ( +/obj/structure/chair/sofa/corp{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "sqp" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -74140,6 +74086,16 @@ }, /turf/simulated/floor/wood, /area/station/service/bar) +"srn" = ( +/obj/effect/turf_decal/stripes/line, +/obj/effect/decal/cleanable/dirt, +/obj/structure/cable, +/obj/machinery/power/apc/directional/west, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "whitepurple" + }, +/area/station/science/storage) "srB" = ( /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel{ @@ -74208,17 +74164,6 @@ /obj/machinery/economy/vending/cigarette, /turf/simulated/floor/plating, /area/station/maintenance/apmaint) -"stj" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - name = "Portable Air Pump Connector"; - dir = 8 - }, -/obj/machinery/atmospherics/portable/pump, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "sts" = ( /obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plasteel{ @@ -74234,6 +74179,12 @@ }, /turf/simulated/floor/plasteel, /area/station/security/range) +"svc" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "svH" = ( /obj/structure/cable{ icon_state = "4-8" @@ -74406,6 +74357,13 @@ icon_state = "whiteblue" }, /area/station/medical/storage) +"syT" = ( +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "red" + }, +/area/station/hallway/primary/fore/north) "szn" = ( /obj/structure/window/reinforced, /obj/structure/window/reinforced{ @@ -74522,6 +74480,12 @@ icon_state = "darkblue" }, /area/station/medical/surgery/primary) +"sBW" = ( +/obj/item/kirbyplants/large, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "sBZ" = ( /obj/structure/disposalpipe/broken{ dir = 8 @@ -74588,6 +74552,15 @@ icon_state = "neutral" }, /area/station/hallway/secondary/garden) +"sDk" = ( +/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ + dir = 6 + }, +/obj/machinery/atmospherics/air_sensor{ + autolink_id = "burn_sensor" + }, +/turf/simulated/floor/engine/vacuum, +/area/station/science/toxins/mixing) "sDr" = ( /obj/structure/rack, /obj/item/clothing/suit/armor/riot/sec{ @@ -74624,6 +74597,10 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/security/warden) +"sEx" = ( +/obj/effect/spawner/random/barrier/obstruction, +/turf/simulated/floor/plating, +/area/station/maintenance/fore2) "sEI" = ( /obj/machinery/atmospherics/trinary/filter, /turf/simulated/floor/plasteel, @@ -74672,11 +74649,6 @@ }, /turf/simulated/floor/engine, /area/station/science/xenobiology) -"sFk" = ( -/obj/structure/lattice, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging, -/turf/space, -/area/space/nearstation) "sFz" = ( /obj/machinery/alarm/directional/north, /obj/machinery/atmospherics/unary/tank/air, @@ -74830,14 +74802,6 @@ icon_state = "red" }, /area/station/security/processing) -"sIf" = ( -/obj/effect/decal/cleanable/dirt, -/obj/machinery/atmospherics/portable/canister/sleeping_agent, -/obj/effect/turf_decal/delivery/white/hollow, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/storage) "sIh" = ( /obj/structure/table/reinforced, /obj/machinery/door/window/classic/normal{ @@ -75022,14 +74986,6 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/north) -"sMf" = ( -/obj/machinery/atmospherics/pipe/manifold/hidden/cyan{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "sMg" = ( /obj/effect/turf_decal/stripes/line{ dir = 9 @@ -75103,16 +75059,6 @@ icon_state = "cautioncorner" }, /area/station/engineering/atmos) -"sNi" = ( -/obj/effect/turf_decal/stripes/line, -/obj/effect/decal/cleanable/dirt, -/obj/structure/cable, -/obj/machinery/power/apc/directional/west, -/turf/simulated/floor/plasteel{ - dir = 10; - icon_state = "whitepurple" - }, -/area/station/science/storage) "sNm" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -75240,19 +75186,6 @@ }, /turf/simulated/floor/plasteel, /area/station/science/testrange) -"sQb" = ( -/obj/machinery/light/small{ - dir = 4 - }, -/obj/structure/rack{ - dir = 1 - }, -/obj/item/flashlight{ - pixel_x = 1; - pixel_y = 5 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "sQg" = ( /obj/structure/table/glass, /obj/item/storage/box/donkpockets, @@ -75267,14 +75200,6 @@ icon_state = "green" }, /area/station/hallway/primary/central/se) -"sQu" = ( -/obj/item/clothing/mask/cigarette/rollie, -/obj/item/clothing/mask/cigarette/rollie{ - pixel_y = -3 - }, -/obj/structure/table, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "sQA" = ( /obj/effect/spawner/window/reinforced/grilled, /obj/structure/cable{ @@ -75288,18 +75213,6 @@ }, /turf/simulated/floor/plating, /area/station/medical/virology) -"sRf" = ( -/obj/item/radio/intercom{ - name = "west bump"; - pixel_x = -28 - }, -/obj/effect/decal/cleanable/dirt, -/obj/machinery/atmospherics/portable/canister/sleeping_agent, -/obj/effect/turf_decal/delivery/white/hollow, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/storage) "sRs" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ dir = 1 @@ -75406,6 +75319,16 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/port/west) +"sUW" = ( +/obj/machinery/door/firedoor, +/obj/effect/turf_decal/stripes/white/line{ + dir = 1 + }, +/obj/effect/turf_decal/stripes/white/line, +/turf/simulated/floor/plasteel{ + icon_state = "darkgrey" + }, +/area/station/science/research) "sVy" = ( /obj/structure/cable{ icon_state = "4-8" @@ -75519,12 +75442,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/central/nw) -"sXz" = ( -/obj/structure/chair/sofa/corp, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "sXJ" = ( /obj/machinery/light/small, /turf/simulated/floor/plasteel{ @@ -75603,6 +75520,17 @@ icon_state = "white" }, /area/station/science/xenobiology) +"sZg" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 9 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 5 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/toxins/launch) "sZC" = ( /obj/structure/rack, /obj/effect/spawner/random/maintenance, @@ -75746,15 +75674,6 @@ icon_state = "darkgrey" }, /area/station/security/execution) -"tbr" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - dir = 10; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "tbY" = ( /obj/structure/window/reinforced{ dir = 4 @@ -75769,6 +75688,14 @@ /obj/machinery/atmospherics/pipe/simple/visible, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) +"tcB" = ( +/obj/structure/chair/sofa/corp/corner{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "tcD" = ( /obj/structure/table, /obj/item/storage/box/donkpockets{ @@ -75878,6 +75805,17 @@ icon_state = "white" }, /area/station/science/research) +"teC" = ( +/obj/structure/window/reinforced, +/obj/structure/rack, +/obj/item/extinguisher, +/obj/item/clothing/mask/gas, +/obj/item/grenade/chem_grenade/firefighting, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "teE" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -75921,11 +75859,6 @@ "tfl" = ( /turf/simulated/wall/r_wall, /area/station/security/prisonlockers) -"tfn" = ( -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "tfo" = ( /obj/machinery/door/firedoor, /obj/machinery/door/airlock/public/glass{ @@ -75998,17 +75931,6 @@ /obj/item/transfer_valve, /turf/simulated/floor/plating, /area/station/maintenance/aft2) -"tgZ" = ( -/obj/machinery/power/apc/directional/east, -/obj/structure/cable{ - icon_state = "0-8" - }, -/obj/machinery/alarm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 5; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "thc" = ( /obj/structure/cable{ icon_state = "1-2" @@ -76260,10 +76182,6 @@ }, /turf/simulated/floor/plasteel, /area/station/security/prison/cell_block/a) -"tnd" = ( -/obj/effect/mapping_helpers/turfs/damage, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "tnr" = ( /obj/machinery/atmospherics/pipe/simple/visible/green, /obj/machinery/atmospherics/binary/pump/on{ @@ -76518,17 +76436,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) -"tto" = ( -/obj/effect/decal/cleanable/dirt, -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 4 - }, -/obj/structure/closet, -/obj/effect/spawner/random/maintenance, -/obj/effect/spawner/random/trash, -/obj/machinery/light/small, -/turf/simulated/floor/plasteel, -/area/station/maintenance/aft2) "ttp" = ( /obj/structure/table/wood, /obj/item/paper_bin{ @@ -76662,14 +76569,6 @@ /obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plating, /area/station/maintenance/disposal) -"tvT" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "tvY" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 @@ -76945,13 +76844,14 @@ icon_state = "white" }, /area/station/medical/reception) -"tDw" = ( -/obj/machinery/atmospherics/portable/canister/oxygen, -/obj/effect/turf_decal/delivery/blue/hollow, +"tDE" = ( +/obj/structure/chair/sofa/corp/right{ + dir = 4 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, -/area/station/science/storage) +/area/station/hallway/primary/central/north) "tDM" = ( /obj/structure/table/glass, /obj/item/book/manual/wiki/engineering_construction{ @@ -76966,6 +76866,19 @@ icon_state = "yellow" }, /area/station/engineering/break_room) +"tEq" = ( +/obj/machinery/light{ + dir = 8 + }, +/obj/structure/closet/crate/cookware, +/obj/machinery/camera{ + c_tag = "Kitchen - Fore"; + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/station/service/kitchen) "tEL" = ( /obj/structure/cable{ icon_state = "1-2" @@ -76998,6 +76911,22 @@ }, /turf/space, /area/space/nearstation) +"tFD" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/secondary/bridge) "tGP" = ( /obj/structure/cable{ icon_state = "4-8" @@ -77097,6 +77026,20 @@ icon_state = "white" }, /area/station/maintenance/asmaint) +"tIB" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable{ + icon_state = "1-8" + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "tIU" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -77225,6 +77168,9 @@ /obj/item/book/manual/wiki/sop_service, /obj/item/storage/box/donkpockets, /obj/machinery/firealarm/directional/south, +/obj/item/stack/sheet/wood{ + amount = 30 + }, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -77242,6 +77188,15 @@ /obj/effect/spawner/random/cobweb/right/rare, /turf/simulated/floor/plating, /area/station/maintenance/fore) +"tNn" = ( +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 10 + }, +/obj/structure/sign/vacuum/external{ + pixel_x = 30 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/aft2) "tNQ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -77339,6 +77294,20 @@ icon_state = "cult" }, /area/station/legal/magistrate) +"tQW" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/effect/mapping_helpers/airlock/access/all/science/tox, +/obj/effect/mapping_helpers/airlock/autoname, +/obj/machinery/door/airlock/research/glass, +/obj/machinery/door/firedoor/heavy, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/toxins/launch) "tRb" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -77363,9 +77332,6 @@ }, /turf/simulated/floor/carpet, /area/station/legal/lawoffice) -"tRw" = ( -/turf/simulated/wall, -/area/station/hallway/primary/central/north) "tRx" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable{ @@ -77507,13 +77473,6 @@ icon_state = "darkgrey" }, /area/station/science/robotics) -"tVu" = ( -/obj/structure/lattice, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 9 - }, -/turf/space, -/area/space/nearstation) "tVw" = ( /obj/machinery/atmospherics/pipe/simple/visible/scrubbers{ dir = 5 @@ -77624,6 +77583,16 @@ icon_state = "white" }, /area/station/science/research) +"tYt" = ( +/obj/effect/spawner/window/reinforced/tinted/grilled, +/turf/simulated/floor/plating, +/area/station/maintenance/asmaint) +"tYz" = ( +/obj/machinery/atmospherics/pipe/manifold/visible, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "tYD" = ( /obj/structure/cable{ icon_state = "2-8" @@ -77719,12 +77688,6 @@ /obj/effect/decal/cleanable/glass, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"uam" = ( -/obj/machinery/light{ - dir = 4 - }, -/turf/simulated/floor/plating, -/area/station/science/toxins/launch) "uaH" = ( /obj/machinery/door/airlock/maintenance, /obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, @@ -77887,25 +77850,14 @@ /turf/simulated/floor/plasteel, /area/station/security/brig) "ucR" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 1 +/obj/effect/turf_decal/stripes/corner, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 }, -/obj/effect/decal/cleanable/dirt, -/obj/machinery/firealarm/directional/west, /turf/simulated/floor/plasteel{ - dir = 9; - icon_state = "whitepurple" + icon_state = "white" }, -/area/station/science/storage) -"ucV" = ( -/obj/structure/cable{ - icon_state = "4-8" - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 6 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/fore/north) +/area/station/science/toxins/mixing) "udg" = ( /obj/effect/turf_decal/delivery, /obj/machinery/door/firedoor, @@ -77955,16 +77907,6 @@ "udK" = ( /turf/simulated/wall, /area/station/security/permabrig) -"ueh" = ( -/obj/machinery/atmospherics/binary/pump{ - dir = 8; - name = "Port to Cold Loop" - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "uel" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/wood, @@ -78102,10 +78044,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/cyan, /turf/simulated/floor/plasteel, /area/station/maintenance/fsmaint) -"uhc" = ( -/obj/effect/spawner/window/reinforced/tinted/grilled, -/turf/simulated/floor/plating, -/area/station/maintenance/asmaint) "uhf" = ( /turf/simulated/floor/plasteel{ dir = 10; @@ -78132,12 +78070,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel, /area/station/security/prison/cell_block/a) -"uhO" = ( -/obj/structure/table/glass/reinforced, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "uhP" = ( /obj/machinery/computer/message_monitor{ dir = 4 @@ -78156,26 +78088,6 @@ icon_state = "dark" }, /area/station/science/server) -"uhT" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - icon_state = "1-2" - }, -/obj/effect/turf_decal/stripes/corner{ - dir = 8 - }, -/obj/structure/disposalpipe/segment, -/obj/machinery/turretid/stun{ - control_area = "\improper AI Upload Chamber"; - name = "AI Upload Turret Control"; - pixel_x = -28; - req_access = list(75) - }, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurplecorner" - }, -/area/station/science/research) "uhV" = ( /obj/effect/turf_decal/woodsiding{ dir = 5 @@ -78277,12 +78189,17 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft) -"ujT" = ( -/obj/machinery/economy/atm/directional/south, -/turf/simulated/floor/plasteel{ - icon_state = "neutralcorner" +"ujM" = ( +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/cable{ + icon_state = "1-2" }, -/area/station/public/locker) +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "uka" = ( /obj/structure/chair/stool{ dir = 1 @@ -78296,15 +78213,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/break_room) -"ukl" = ( -/obj/structure/chair/comfy/corp, -/obj/machinery/light{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "ukO" = ( /obj/structure/kitchenspike, /turf/simulated/floor/plasteel{ @@ -78330,6 +78238,11 @@ icon_state = "red" }, /area/station/security/brig) +"umc" = ( +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "umh" = ( /obj/effect/turf_decal/stripes/line{ dir = 8 @@ -78871,6 +78784,19 @@ }, /turf/simulated/floor/wood, /area/station/maintenance/apmaint) +"uBV" = ( +/obj/effect/turf_decal/stripes/corner{ + dir = 1 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/machinery/atmospherics/unary/vent_scrubber/on, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "whitepurple" + }, +/area/station/science/storage) "uBY" = ( /obj/machinery/power/apc/important/directional/south, /obj/structure/cable, @@ -78878,6 +78804,19 @@ icon_state = "dark" }, /area/station/security/armory/secure) +"uCa" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/effect/turf_decal/tile/bar, +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/machinery/door/firedoor, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/fore/east) "uCe" = ( /turf/simulated/wall/r_wall, /area/station/science/testrange) @@ -78897,6 +78836,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/port) +"uCV" = ( +/obj/machinery/doppler_array, +/obj/effect/turf_decal/delivery, +/turf/simulated/floor/plasteel{ + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "uCW" = ( /obj/machinery/door/poddoor/preopen{ id_tag = "Secure Gate"; @@ -79011,6 +78957,13 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/asmaint) +"uGl" = ( +/obj/effect/mapping_helpers/airlock/access/all/engineering/general, +/obj/machinery/light/small{ + dir = 4 + }, +/turf/simulated/floor/plating, +/area/station/maintenance/aft2) "uGn" = ( /obj/item/radio/intercom/locked/prison{ name = "Prison Intercom (General)"; @@ -79078,6 +79031,14 @@ icon_state = "caution" }, /area/station/engineering/equipmentstorage) +"uHG" = ( +/obj/machinery/atmospherics/pipe/manifold/hidden/cyan{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "uHX" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/supply{ dir = 1 @@ -79183,13 +79144,6 @@ /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"uJQ" = ( -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/plasteel{ - icon_state = "whitepurple"; - dir = 4 - }, -/area/station/maintenance/aft2) "uKc" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 5 @@ -79295,14 +79249,6 @@ icon_state = "white" }, /area/station/medical/chemistry) -"uLQ" = ( -/obj/structure/chair/sofa/corp/right{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "uMj" = ( /obj/structure/chair/office/dark{ dir = 1 @@ -79776,6 +79722,20 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/south) +"uWt" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/structure/cable{ + icon_state = "2-8" + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/storage) "uWQ" = ( /obj/machinery/door/window/classic/normal{ name = "Court Cell" @@ -79880,19 +79840,6 @@ }, /turf/simulated/floor/plating, /area/station/science/robotics/chargebay) -"uYv" = ( -/obj/machinery/disposal/delivery_chute{ - dir = 4 - }, -/obj/structure/disposalpipe/trunk{ - dir = 8 - }, -/obj/structure/window/plasmareinforced{ - dir = 8 - }, -/obj/structure/window/plasmareinforced, -/turf/simulated/floor/plating, -/area/station/science/toxins/launch) "uYy" = ( /obj/machinery/hydroponics/soil, /obj/structure/sign/poster/official/random{ @@ -79938,14 +79885,6 @@ icon_state = "darkblue" }, /area/station/command/bridge) -"uZf" = ( -/obj/structure/chair/sofa/corp/corner{ - dir = 4 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "uZj" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 4 @@ -80140,10 +80079,6 @@ icon_state = "brown" }, /area/station/hallway/primary/central/nw) -"vcT" = ( -/obj/effect/spawner/random/fungus/probably, -/turf/simulated/floor/plating, -/area/station/maintenance/aft2) "vde" = ( /obj/machinery/navbeacon{ codes_txt = "delivery"; @@ -80190,15 +80125,6 @@ "vdE" = ( /turf/simulated/wall, /area/station/security/prisonlockers) -"vdF" = ( -/obj/effect/turf_decal/stripes/corner, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "vdR" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/portable/canister/air, @@ -80345,14 +80271,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/aft2) -"vgI" = ( -/obj/machinery/atmospherics/pipe/simple/heat_exchanging, -/obj/machinery/sparker{ - id = "toxinsigniter"; - pixel_x = -20 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "vgP" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -80543,6 +80461,15 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) +"vmz" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "darkpurplecorners" + }, +/area/station/science/toxins/launch) "vmA" = ( /obj/machinery/door/airlock/security{ id_tag = "prisonereducation"; @@ -80622,6 +80549,15 @@ /obj/effect/spawner/random/maintenance, /turf/simulated/floor/plasteel, /area/station/maintenance/apmaint) +"vnP" = ( +/obj/machinery/light{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "vnQ" = ( /obj/machinery/atmospherics/unary/portables_connector, /obj/machinery/atmospherics/portable/canister/air, @@ -80637,17 +80573,6 @@ icon_state = "green" }, /area/station/hallway/primary/central/se) -"voE" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/structure/cable{ - icon_state = "1-4" - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "darkpurple" - }, -/area/station/science/toxins/launch) "voO" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 @@ -80678,7 +80603,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/starboard2) "vpw" = ( -/obj/machinery/kitchen_machine/oven, +/obj/machinery/cooking/oven, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, @@ -80686,6 +80611,20 @@ icon_state = "cafeteria" }, /area/station/service/kitchen) +"vpx" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/effect/mapping_helpers/airlock/windoor/autoname, +/obj/effect/mapping_helpers/airlock/windoor/access/any/science/tox, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/door/window/classic/normal, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "vpQ" = ( /obj/structure/cable/pink{ icon_state = "0-4" @@ -81031,25 +80970,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) -"vyF" = ( -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/structure/cable{ - 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/research, -/obj/effect/mapping_helpers/airlock/access/all/science/tox, -/obj/effect/mapping_helpers/airlock/autoname, -/obj/machinery/door/firedoor/heavy, -/turf/simulated/floor/plasteel, -/area/station/science/toxins/mixing) "vyL" = ( /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -81319,6 +81239,15 @@ /obj/item/seeds/berry, /turf/simulated/floor/wood, /area/station/maintenance/starboard2) +"vHc" = ( +/obj/structure/table/glass/reinforced, +/obj/machinery/light{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "vHA" = ( /obj/machinery/light{ dir = 4 @@ -81387,6 +81316,17 @@ icon_state = "whitepurple" }, /area/station/science/rnd) +"vJm" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "vJo" = ( /obj/machinery/firealarm/directional/east, /obj/effect/turf_decal/tile/neutral{ @@ -81399,12 +81339,6 @@ icon_state = "darkred" }, /area/station/security/evidence) -"vJt" = ( -/obj/machinery/atmospherics/unary/vent_pump/siphon/on{ - dir = 4 - }, -/turf/simulated/floor/engine/vacuum, -/area/station/science/toxins/mixing) "vJB" = ( /obj/machinery/atmospherics/pipe/simple/hidden, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -81413,6 +81347,11 @@ icon_state = "dark" }, /area/station/security/execution) +"vJN" = ( +/turf/simulated/floor/plasteel{ + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "vKs" = ( /obj/machinery/camera{ c_tag = "Security - Firing Range"; @@ -81671,13 +81610,6 @@ icon_state = "whitepurple" }, /area/station/science/rnd) -"vQu" = ( -/obj/structure/lattice, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 6 - }, -/turf/space, -/area/space/nearstation) "vQB" = ( /obj/effect/turf_decal/stripes/white/line, /obj/effect/turf_decal/stripes/white/line{ @@ -82069,17 +82001,6 @@ /obj/item/flag/syndi, /turf/simulated/floor/plating, /area/station/maintenance/aft2) -"waQ" = ( -/obj/item/radio/intercom{ - name = "east bump"; - pixel_x = 28 - }, -/obj/machinery/atmospherics/trinary/mixer, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "waX" = ( /obj/effect/decal/cleanable/blood/writing, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -82157,6 +82078,13 @@ icon_state = "red" }, /area/station/security/main) +"wdA" = ( +/obj/machinery/atmospherics/portable/canister/oxygen, +/obj/effect/turf_decal/delivery/blue/hollow, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "wdY" = ( /obj/structure/sign/poster/official/random{ pixel_y = -32 @@ -82244,14 +82172,6 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/break_room) -"wgF" = ( -/obj/machinery/economy/vending/plasmaresearch, -/obj/effect/turf_decal/delivery/hollow, -/turf/simulated/floor/plasteel{ - dir = 6; - icon_state = "darkpurple" - }, -/area/station/science/toxins/mixing) "wgT" = ( /mob/living/simple_animal/cow/betsy, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -82279,8 +82199,11 @@ /turf/simulated/floor/plasteel, /area/station/security/permabrig) "whx" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 1 + }, /turf/simulated/floor/plasteel{ - dir = 8; + dir = 10; icon_state = "whitepurple" }, /area/station/science/toxins/mixing) @@ -82542,6 +82465,24 @@ icon_state = "white" }, /area/station/security/permabrig) +"wnZ" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/obj/structure/disposalpipe/segment, +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 8 + }, +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 8 + }, +/obj/structure/cable{ + icon_state = "1-4" + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "wos" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 5 @@ -82556,6 +82497,34 @@ icon_state = "whitepurple" }, /area/station/science/research) +"woH" = ( +/obj/structure/table/reinforced, +/obj/machinery/light, +/obj/item/transfer_valve{ + pixel_x = 4; + pixel_y = -4 + }, +/obj/item/transfer_valve{ + pixel_x = 2; + pixel_y = -2 + }, +/obj/item/transfer_valve, +/obj/item/transfer_valve{ + pixel_x = -2; + pixel_y = 2 + }, +/obj/item/transfer_valve{ + pixel_x = -4; + pixel_y = 4 + }, +/obj/item/transfer_valve{ + pixel_x = -6; + pixel_y = 6 + }, +/turf/simulated/floor/plasteel{ + icon_state = "darkpurple" + }, +/area/station/science/toxins/mixing) "woK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/cyan, /obj/item/pen, @@ -82589,15 +82558,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/starboard2) -"wpT" = ( -/obj/machinery/camera{ - c_tag = "Central Primary Hallway - Fore-Port - AI Upload" - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/central/north) "wqf" = ( /obj/structure/cable{ icon_state = "4-8" @@ -82628,15 +82588,6 @@ icon_state = "whiteblue" }, /area/station/medical/reception) -"wqJ" = ( -/obj/structure/table/glass/reinforced, -/obj/machinery/light{ - dir = 8 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "wri" = ( /obj/structure/window/reinforced, /obj/structure/window/reinforced{ @@ -82767,26 +82718,27 @@ /turf/simulated/floor/plasteel, /area/station/supply/storage) "wtQ" = ( -/obj/machinery/atmospherics/unary/vent_scrubber/on{ - dir = 8 +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 10 }, -/obj/machinery/camera{ - c_tag = "Science Toxins Mixing - Fore"; - dir = 8; - network = list("Research","SS13") +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 10 }, +/obj/structure/cable{ + icon_state = "2-8" + }, +/obj/structure/disposalpipe/segment/corner, /turf/simulated/floor/plasteel{ dir = 4; icon_state = "whitepurple" }, /area/station/science/toxins/mixing) -"wuc" = ( -/obj/effect/turf_decal/stripes/line, -/obj/effect/decal/cleanable/dirt, +"wug" = ( /turf/simulated/floor/plasteel{ - icon_state = "whitepurple" + dir = 8; + icon_state = "whitepurplecorner" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "wul" = ( /turf/simulated/floor/plasteel{ icon_state = "dark" @@ -83081,6 +83033,17 @@ }, /turf/simulated/floor/plasteel, /area/station/security/permabrig) +"wzX" = ( +/obj/structure/window/reinforced, +/obj/structure/rack, +/obj/item/extinguisher, +/obj/item/clothing/mask/gas, +/obj/item/grenade/chem_grenade/firefighting, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "wAw" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ @@ -83107,12 +83070,6 @@ icon_state = "dark" }, /area/station/turret_protected/ai) -"wBc" = ( -/obj/machinery/door/airlock/maintenance, -/obj/effect/mapping_helpers/airlock/access/all/engineering/maintenance, -/obj/effect/mapping_helpers/airlock/autoname, -/turf/simulated/floor/plating, -/area/station/maintenance/fore2) "wBj" = ( /obj/structure/table, /obj/item/radio/intercom{ @@ -83150,12 +83107,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/central/ne) -"wBV" = ( -/obj/machinery/atmospherics/pipe/manifold/hidden/purple, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "wBW" = ( /obj/structure/disposalpipe/segment/corner{ dir = 8 @@ -83240,13 +83191,6 @@ icon_state = "whitegreen" }, /area/station/public/sleep) -"wEa" = ( -/obj/structure/chair/office/light, -/obj/effect/landmark/start/scientist, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/science/toxins/mixing) "wEx" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -83310,6 +83254,15 @@ /obj/effect/spawner/random/barrier/grille_often, /turf/simulated/floor/plating, /area/station/maintenance/starboard) +"wFR" = ( +/obj/effect/turf_decal/stripes/line, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "wFW" = ( /obj/machinery/light/small{ dir = 1 @@ -83378,19 +83331,15 @@ }, /area/station/security/processing) "wHL" = ( -/obj/effect/turf_decal/stripes/line, -/obj/effect/turf_decal/stripes/line{ - dir = 1 +/obj/structure/extinguisher_cabinet{ + name = "east bump"; + pixel_x = 27 }, -/obj/machinery/alarm/directional/east, -/obj/machinery/computer/area_atmos{ - dir = 8 - }, -/obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ - icon_state = "whitepurplefull" + dir = 4; + icon_state = "darkpurple" }, -/area/station/science/storage) +/area/station/science/toxins/mixing) "wIx" = ( /obj/machinery/power/apc/directional/west, /obj/structure/cable{ @@ -83650,13 +83599,6 @@ icon_state = "dark" }, /area/station/security/execution) -"wQJ" = ( -/obj/machinery/alarm/directional/north, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "neutralcorner" - }, -/area/station/hallway/primary/central/north) "wRh" = ( /obj/machinery/door/window/classic/reversed{ name = "Shooting Range"; @@ -83790,6 +83732,9 @@ "wUa" = ( /turf/simulated/wall/r_wall, /area/station/maintenance/engimaint) +"wUv" = ( +/turf/simulated/wall, +/area/station/hallway/primary/central/north) "wUE" = ( /obj/machinery/door/airlock/command/glass{ name = "Bridge Access" @@ -83897,12 +83842,6 @@ }, /turf/simulated/floor/plating, /area/station/engineering/control) -"wWs" = ( -/obj/machinery/light/small{ - dir = 4 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/aft2) "wWu" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -84021,6 +83960,14 @@ /obj/structure/transit_tube/diagonal, /turf/space, /area/space/nearstation) +"wYw" = ( +/obj/structure/chair/sofa/corp/left{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/hallway/primary/central/north) "wZa" = ( /obj/structure/window/reinforced{ dir = 8 @@ -84052,22 +83999,6 @@ }, /turf/simulated/floor/plasteel, /area/station/science/xenobiology) -"wZi" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 10 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 10 - }, -/obj/structure/cable{ - icon_state = "2-8" - }, -/obj/structure/disposalpipe/segment/corner, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "wZw" = ( /obj/machinery/atmospherics/unary/vent_pump/siphon/on{ dir = 8; @@ -84224,18 +84155,6 @@ icon_state = "black" }, /area/station/engineering/atmos) -"xbz" = ( -/obj/machinery/atmospherics/pipe/simple/visible{ - dir = 6 - }, -/obj/machinery/light{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "xbA" = ( /turf/simulated/floor/plasteel{ icon_state = "white" @@ -84313,6 +84232,12 @@ icon_state = "white" }, /area/station/medical/virology) +"xcH" = ( +/obj/machinery/light{ + dir = 4 + }, +/turf/simulated/floor/plating, +/area/station/science/toxins/launch) "xdb" = ( /obj/structure/rack, /obj/machinery/light{ @@ -84398,6 +84323,23 @@ }, /turf/simulated/floor/plasteel, /area/station/engineering/hardsuitstorage) +"xfc" = ( +/obj/machinery/disposal, +/obj/structure/disposalpipe/trunk{ + dir = 4 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/machinery/camera{ + c_tag = "Science Toxins Launch Room"; + network = list("Research","SS13") + }, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "xfm" = ( /obj/structure/lattice/catwalk, /obj/structure/disposalpipe/segment/corner{ @@ -84475,16 +84417,6 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/east) -"xhE" = ( -/obj/structure/extinguisher_cabinet{ - name = "east bump"; - pixel_x = 27 - }, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "darkpurple" - }, -/area/station/science/toxins/mixing) "xhF" = ( /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel{ @@ -84492,6 +84424,20 @@ icon_state = "cautioncorner" }, /area/station/hallway/primary/starboard/east) +"xhH" = ( +/obj/machinery/computer/general_air_control{ + dir = 4; + name = "Bomb Mix Monitor"; + autolink_sensors = list("burn_sensor"="Burn Mix") + }, +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "whitepurple" + }, +/area/station/science/toxins/mixing) "xhL" = ( /obj/machinery/door/window/reinforced/normal{ name = "Justice Chamber" @@ -84758,6 +84704,13 @@ icon_state = "dark" }, /area/station/security/execution) +"xng" = ( +/obj/effect/spawner/window/reinforced/plasma/grilled, +/obj/machinery/atmospherics/pipe/simple/heat_exchanging/junction{ + dir = 8 + }, +/turf/simulated/floor/plating, +/area/station/science/toxins/mixing) "xnj" = ( /obj/structure/window/reinforced{ dir = 8 @@ -84808,6 +84761,15 @@ icon_state = "purplecorner" }, /area/station/science/testrange) +"xoo" = ( +/obj/machinery/atmospherics/binary/pump{ + dir = 4; + name = "Hot Loop to Port" + }, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/toxins/mixing) "xoq" = ( /obj/machinery/newscaster/directional/north, /obj/machinery/disposal, @@ -85037,15 +84999,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/xenobio_south) -"xtx" = ( -/obj/machinery/atmospherics/binary/pump{ - dir = 4; - name = "Hot Loop to Port" - }, -/turf/simulated/floor/plasteel{ - icon_state = "white" - }, -/area/station/science/toxins/mixing) "xtA" = ( /obj/item/radio/intercom{ name = "west bump"; @@ -85156,6 +85109,18 @@ /obj/effect/turf_decal/caution/stand_clear, /turf/simulated/floor/plasteel, /area/station/engineering/transmission_laser) +"xww" = ( +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/portable/canister/sleeping_agent, +/obj/effect/turf_decal/delivery/white/hollow, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/storage) "xwJ" = ( /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, @@ -85250,6 +85215,18 @@ icon_state = "darkbluecorners" }, /area/station/medical/surgery/observation) +"xyJ" = ( +/obj/structure/disaster_counter/toxins{ + pixel_x = -32 + }, +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "darkpurple" + }, +/area/station/science/toxins/launch) "xyP" = ( /obj/effect/turf_decal/delivery, /turf/simulated/floor/plasteel, @@ -85258,26 +85235,6 @@ /obj/item/cigbutt, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) -"xzC" = ( -/obj/structure/table/reinforced, -/obj/item/taperecorder{ - pixel_x = 5; - pixel_y = 5 - }, -/obj/item/analyzer{ - pixel_x = -5; - pixel_y = 5 - }, -/obj/item/stack/cable_coil, -/obj/item/stack/cable_coil{ - pixel_x = 3; - pixel_y = -3 - }, -/turf/simulated/floor/plasteel{ - dir = 10; - icon_state = "darkpurple" - }, -/area/station/science/toxins/mixing) "xzD" = ( /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 4 @@ -85302,6 +85259,25 @@ icon_state = "caution" }, /area/station/engineering/equipmentstorage) +"xAr" = ( +/obj/machinery/door/airlock/research/glass{ + name = "Toxins Storage" + }, +/obj/effect/mapping_helpers/airlock/access/all/science/tox, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 8 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/door/firedoor/heavy, +/turf/simulated/floor/plasteel{ + icon_state = "white" + }, +/area/station/science/storage) "xAz" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 8 @@ -85377,6 +85353,21 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/security/armory/secure) +"xBY" = ( +/obj/effect/turf_decal/stripes/line{ + dir = 4 + }, +/obj/effect/turf_decal/stripes/corner{ + dir = 8 + }, +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "whitepurple" + }, +/area/station/science/storage) "xCk" = ( /obj/structure/cable, /obj/effect/spawner/window/reinforced/grilled, @@ -85471,9 +85462,9 @@ /turf/simulated/floor/plasteel, /area/station/engineering/atmos) "xCY" = ( -/obj/machinery/power/apc/directional/west, -/obj/structure/cable{ - icon_state = "0-4" +/obj/machinery/atmospherics/binary/pump{ + dir = 8; + name = "Port to Cold Loop" }, /turf/simulated/floor/plasteel{ dir = 8; @@ -85559,6 +85550,17 @@ icon_state = "neutral" }, /area/station/hallway/primary/central/south) +"xGb" = ( +/obj/effect/decal/cleanable/dirt, +/obj/machinery/atmospherics/pipe/simple/visible{ + dir = 4 + }, +/obj/structure/closet, +/obj/effect/spawner/random/maintenance, +/obj/effect/spawner/random/trash, +/obj/machinery/light/small, +/turf/simulated/floor/plasteel, +/area/station/maintenance/aft2) "xGg" = ( /obj/machinery/door/airlock/maintenance, /obj/structure/disposalpipe/segment{ @@ -85647,10 +85649,6 @@ pixel_x = -8; pixel_y = 11 }, -/obj/item/book/manual/wiki/chef_recipes{ - pixel_x = 4; - pixel_y = 2 - }, /obj/effect/turf_decal/tile/red, /obj/effect/turf_decal/tile/red{ dir = 1 @@ -86062,6 +86060,12 @@ icon_state = "darkblue" }, /area/station/medical/surgery/observation) +"xQv" = ( +/obj/machinery/hologram/holopad, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/science/toxins/launch) "xQR" = ( /obj/structure/closet/firecloset, /turf/simulated/floor/plating, @@ -86076,6 +86080,13 @@ /obj/effect/mapping_helpers/airlock/access/all/engineering/general, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) +"xRg" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 4 + }, +/obj/machinery/atmospherics/portable/canister/air, +/turf/simulated/floor/plasteel, +/area/station/maintenance/aft2) "xRO" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/unary/vent_pump/on{ @@ -86254,6 +86265,16 @@ icon_state = "whitepurple" }, /area/station/science/research) +"xXb" = ( +/obj/effect/turf_decal/stripes/line, +/obj/effect/turf_decal/stripes/line{ + dir = 1 + }, +/obj/effect/decal/cleanable/dirt, +/turf/simulated/floor/plasteel{ + icon_state = "whitepurplefull" + }, +/area/station/science/storage) "xXd" = ( /obj/machinery/hologram/holopad, /turf/simulated/floor/plasteel{ @@ -86328,6 +86349,10 @@ }, /turf/simulated/floor/plasteel, /area/station/security/permabrig) +"xYE" = ( +/obj/machinery/economy/atm/directional/west, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/fore/east) "xYR" = ( /obj/structure/sign/poster/official/random{ pixel_x = 32 @@ -86516,22 +86541,6 @@ icon_state = "dark" }, /area/station/engineering/atmos) -"ybP" = ( -/obj/machinery/camera{ - c_tag = "Science Toxins Mixing - Aft Starboard"; - dir = 8; - network = list("Research","SS13") - }, -/obj/effect/turf_decal/stripes/line, -/obj/machinery/atmospherics/portable/canister, -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 1 - }, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "whitepurple" - }, -/area/station/science/toxins/mixing) "ybT" = ( /obj/effect/spawner/window/reinforced/polarized/grilled{ id = "SHOW" @@ -86560,7 +86569,6 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/east) "ycj" = ( -/obj/machinery/cooker/deepfryer, /obj/structure/extinguisher_cabinet{ name = "south bump"; pixel_y = -30 @@ -86568,6 +86576,7 @@ /obj/structure/disposalpipe/segment/corner{ dir = 1 }, +/obj/structure/closet/secure_closet/freezer/fridge, /turf/simulated/floor/plasteel{ icon_state = "cafeteria" }, @@ -86590,16 +86599,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) -"ycT" = ( -/obj/structure/chair/comfy/corp, -/obj/item/radio/intercom{ - name = "west bump"; - pixel_x = -28 - }, -/turf/simulated/floor/plasteel{ - icon_state = "dark" - }, -/area/station/hallway/primary/central/north) "ydH" = ( /obj/structure/closet/secure_closet/security, /obj/machinery/light{ @@ -86646,14 +86645,6 @@ /obj/item/stack/sheet/metal, /turf/simulated/floor/plating, /area/station/maintenance/fore) -"yeG" = ( -/obj/structure/rack, -/obj/effect/spawner/random/maintenance, -/obj/machinery/light/small{ - dir = 8 - }, -/turf/simulated/floor/plating, -/area/station/maintenance/asmaint) "yeR" = ( /obj/item/kirbyplants/large, /obj/machinery/newscaster/directional/north, @@ -86827,6 +86818,13 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/xenobio_north) +"yjo" = ( +/obj/machinery/alarm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "neutralcorner" + }, +/area/station/hallway/primary/central/north) "yjJ" = ( /obj/effect/turf_decal/delivery, /obj/structure/sign/vacuum{ @@ -106528,7 +106526,7 @@ boh boh fjl bfw -hXV +dYe sLH lMU bzM @@ -108570,7 +108568,7 @@ bgk qpH aUw aYj -rOP +xYE nGC nGC dEG @@ -108825,7 +108823,7 @@ hjr oOt jfb oHu -oJk +uCa xNu aKj aWu @@ -109587,8 +109585,8 @@ gKP gsR uPt gYO -oNf -skQ +jqr +nAL lIM kyq aNl @@ -109844,8 +109842,8 @@ axN axN mdZ gYO -sQu -tnd +hPG +qqG lIM cBa cbv @@ -110102,7 +110100,7 @@ wBl wHH gYO lIM -lWk +sEx lIM lIM lIM @@ -110359,7 +110357,7 @@ axN hvR gYO rcQ -mtd +iCR hOu xJy xJy @@ -110367,7 +110365,7 @@ xJy aGy xJy jaK -fYp +ibg xJy xJy xJy @@ -110615,20 +110613,20 @@ aDT axN aty gYO -dOM -mtd +aYg +iCR aKs -ikG -mtd -tnd -mtd -mtd -mtd -mtd -mtd -tnd -mtd -sQb +fPL +iCR +qqG +iCR +iCR +iCR +iCR +iCR +qqG +iCR +jsc lIM sTC hdw @@ -110874,10 +110872,10 @@ yha aHI aMf aMf -aJi +pch lIM -mtd -cYP +iCR +cYr lIM lIM lIM @@ -110887,7 +110885,7 @@ lIM lIM lIM lIM -wpT +pBf xuG bjA xIX @@ -111131,19 +111129,19 @@ iwq aHI bhF uNe -aKv +aJi lIM -mtd -mtd +iCR +iCR lIM -mnd -uhO -nUB -ycT -wqJ -nUB -tRw -bbh +nTf +gEq +dmD +nhe +vHc +dmD +wUv +rSj nuz xuG bfR @@ -111387,20 +111385,20 @@ cTo xbo lXV cvX -ucV -mDE +kRG +aKv lIM -cYP -mtd +cYr +iCR lIM -ouD -aZN -aZN -aZN -aZN -aZN -tRw -rSj +sBW +umc +umc +umc +umc +umc +wUv +mrl nuz qWN acw @@ -111647,17 +111645,17 @@ aiF aJe aND lIM -mtd -mtd +iCR +iCR lIM -ukl -uhO -nUB -ouD -aZN -aZN -tRw -rSj +mBB +gEq +dmD +sBW +umc +umc +wUv +mrl nGC bep ccP @@ -111904,17 +111902,17 @@ aHM aJd pRQ lIM -mtd -mtd +iCR +iCR lIM -uZf -aUl -aUl -uLQ -aZN -aZN -tRw -tRw +tcB +sql +sql +tDE +umc +umc +wUv +wUv bgF xuG sWe @@ -111933,7 +111931,7 @@ bCb bqc bLR bFI -kIw +tFD bKT bMW bPp @@ -112161,17 +112159,17 @@ aHM oBr aKz lIM -mtd -mtd +iCR +iCR lIM -sXz -aVy -aVy -aVy -aZN -aZN -aZN -bbk +rJI +mLk +mLk +mLk +umc +umc +umc +cED nGC beq jmL @@ -112418,17 +112416,17 @@ aHM aev bPX lIM -mtd -mtd +iCR +iCR lIM -sXz -aVy -aVy -aVy -aZN -aZN -aZN -ccX +rJI +mLk +mLk +mLk +umc +umc +umc +kAr nGC xuG jmL @@ -112675,17 +112673,17 @@ aHM aJf aNJ lIM -tnd -mtd +qqG +iCR lIM -sXz -aVy -aVy -aVy -aZN -aZN -iis -bbk +rJI +mLk +mLk +mLk +umc +umc +lUD +cED nGC xuG jmL @@ -112928,22 +112926,22 @@ nvB pNO dig lXV -rZM +syT aJh pRQ lIM -pgo -mtd +nVo +iCR lIM -aVA -aUn -aUn -aXG -aZN -aZN -tRw -tRw -wQJ +iWU +oxN +oxN +wYw +umc +umc +wUv +wUv +yjo xuG jmL jMy @@ -113189,16 +113187,16 @@ aHM aJh pRQ lIM -mtd -pRR -wBc -aZN -aZN -aZN -aZN -aZN -aZN -tRw +iCR +jKe +rlG +umc +umc +umc +umc +umc +umc +wUv bbn nGC pCy @@ -113446,16 +113444,16 @@ aiF aJk aNL lIM -kKe -cXO +svc +mZs lIM -qdL -aZN -aZN -aZN -aei -ouD -tRw +eDC +umc +umc +umc +rEm +sBW +wUv bbo oYO svH @@ -113703,16 +113701,16 @@ aKD aJk pRQ lIM -wBc +rlG lIM lIM -tRw -tRw -tRw -tRw -tRw -tRw -tRw +wUv +wUv +wUv +wUv +wUv +wUv +wUv bbp fJp jtg @@ -114549,7 +114547,7 @@ cKx khl bAt mGK -jth +ecw lHZ eaG cxl @@ -116832,7 +116830,7 @@ jdP bdb cei rNC -sfW +aVM ily cLY oFw @@ -117112,7 +117110,7 @@ cwR cwR cwR cwR -jkW +gAb aOG aSY bzZ @@ -117375,7 +117373,7 @@ cFH bzZ mcw rfK -csS +qEV aRA agK cOp @@ -117626,7 +117624,7 @@ gTS oic uSJ pTk -eNL +cPY aOG lEw beA @@ -117645,7 +117643,7 @@ vZo vZo vZo vZo -iOf +xRg coG aaa aaa @@ -117902,11 +117900,11 @@ lTS vZo lTS vZo -tto +xGb coG coG coG -kgd +qAm abq aef abq @@ -118158,11 +118156,11 @@ kQj avs avs avs -vcT -dif +ruf +tNn vZo vZo -rOX +uGl vZo arA arA @@ -118398,10 +118396,10 @@ cxO cIE clb lmq -cuR -cuR +oVp +oVp jOM -uhT +ipt wsu eNY bIG @@ -118657,7 +118655,7 @@ akH hns cic cic -fJu +sUW clb cwR cwR @@ -118675,9 +118673,9 @@ mlV lYB cOp qnp -vgI +jOB fdt -shr +hjk abq aef abq @@ -118876,7 +118874,7 @@ bcN byg cfr bQF -hYs +rKT bSW bTW bVn @@ -118914,7 +118912,7 @@ hyQ auf cic cic -fJu +sUW uSP tug tId @@ -118931,10 +118929,10 @@ vZo vZo vZo cOp -fhw -mhw -dkM -shr +rei +sDk +gYb +hjk abq aef abq @@ -119188,13 +119186,13 @@ coG coG coG cOp -dPJ -kXv -vJt -shr -vQu -ogH -sFk +eVS +cfs +iJt +hjk +peT +epO +iVF ixU iju aaa @@ -119445,14 +119443,14 @@ tmz mxp cUL cOp -hkz -hkz -hkz +cvu +cvu +cvu cEK wJN -rlX -sFk -tVu +bLz +iVF +qNu bwM aaa aaa @@ -119693,22 +119691,22 @@ wvJ ihF acS gJg -fVL -fVL -ejr +fIV +fIV +dpO ekF dpM vNL fxt vZo cOp -gcP -nRv -okT +emw +xhH +dGn cEK wJN rUl -sFk +iVF cxT bwM aaa @@ -119904,7 +119902,7 @@ tmt jQx hLX bQC -jOv +tEq bTD bSt bQI @@ -119950,23 +119948,23 @@ fqz cPc vZo cvw -fmf -uJQ +gdH +akL nBf -uJQ -wWs +akL +pCd avs lTS lYB cOp -xbz -ifi -nIS +pDD +tYz +llA cEK wJN -rlX -sFk -tVu +bLz +iVF +qNu bwM aaa aaa @@ -120209,19 +120207,19 @@ cPc bdN cOp cOp -vyF +qpK cOp cOp cOp cOp cOp cOp -dJu -xtx -tfn +nJt +xoo +vJN cEK -nLN -nLN +xng +xng cEK cEK rOZ @@ -120467,20 +120465,20 @@ bdN yeU dCm nqr -fyt -ikU +jhm +rjX +okj +wzX +nID +nID +ohj +iTN +wug +acm xCY lhF +eDX whx -whx -rOc -gUo -oTc -nNx -ueh -peu -qGQ -tbr rOZ rOZ rOZ @@ -120650,7 +120648,7 @@ aTo spj aTo aTo -ujT +ibV aLl niC eTo @@ -120725,25 +120723,25 @@ yed xrA qkD rEb +oDK +tIB +vpx +eGA +wnZ +vJm +pFi +ujM leO iTN -nQl -eDX -dal -jRQ -glQ -fMh -mMI -gUo kgx -gSR -kWX +pyg +dal rOZ -dxG -aec -fJJ -iaD -fTW +glQ +xyJ +vnP +aaG +nob aaa aaa aaa @@ -120982,25 +120980,25 @@ keu xIl xIl rgX +rbp +rEx +teC +gbF +jKx +gbF +gbF +gbF wtQ qwA eGn -naq +iXy mgu -naq -naq -naq -wZi -mJt -dPk -oWK -eSA -fBK -voE -chY -jwh -dJM -fTW +tQW +czx +sZg +xQv +uCV +nob aaa aaa aaa @@ -121229,35 +121227,35 @@ pwo nzb luN ayn -uhc -uhc +tYt +tYt rPx cPc cPc bdN ubf -wBV -sMf +gpw +uHG jwi cEK bXG bXG bXG -fED +xAr bXG bXG bXG bXG -pZE +lvB kgx -piJ -nei +dIQ +qWh rOZ -tgZ -rWM -gyA -anD -fTW +hVK +vmz +dBP +pKT +nob aaa aaa abq @@ -121490,30 +121488,30 @@ bZy fCO fGH qEh -nWZ +nLv bdN jSe -foV -stj +lFt +jXU ddG cEK -mfM +gRS +gRS +iJu +uWt +srn +xww +mLD +bXG +dnE mfM ucR iQC -sNi -sRf -sIf -bXG -eeI -tvT -vdF -koA rOZ rOZ -fcJ -kvF -ryG +xfc +oLm +lAE rOZ iju abq @@ -121747,30 +121745,30 @@ iKT ggT kgB emj -fMC +kNZ bdN bdN bdN bdN bdN bdN -mfM -mfM -dIQ -gGu -wuc -sIf -sIf +gRS +gRS +qUk +plV +qdy +mLD +mLD bXG -cRQ -tvT -oqh -eGt -xzC +phL +mfM +wFR +pKo +rgJ rOZ -uYv -jvV -fTW +phs +iHH +nob rOZ abq aaa @@ -122011,22 +122009,22 @@ cPc wyC das bdN +ptw +dCA +uBV +kGS +xBY +dCA +mBJ +bXG cDq -cWc +kGo gFf rhH -ffx -cWc -qQT -bXG -iPW -mng -pJw -wEa -rAG +jVr rOZ dnH -uam +xcH wvK cOy abq @@ -122213,7 +122211,7 @@ sqp sqp sqp ueC -rmt +cWA bQI soT tRb @@ -122260,27 +122258,27 @@ bdN hjx rPx cPc -uhc +tYt cPc -yeG +muv emj -uhc +tYt qEh emj bdN -ajW -ajW -ajW -nRl -tDw -tDw -tDw +oQo +oQo +oQo +xXb +wdA +wdA +wdA bXG -iVX -dER -fpl -pIF -qRR +eAC +dWQ +gjH +lEz +woH rOZ rOZ rOZ @@ -122518,26 +122516,26 @@ uxT fGH egq lTB -uhc +tYt emj bME -uhc +tYt qEh emj bdN -ajW -ajW -ajW -wHL -mqA -tDw -tDw +oQo +oQo +oQo +kTs +dsA +wdA +wdA bXG -fbL -waQ -ybP -xhE -wgF +ljg +fuC +lIC +wHL +gcw rOZ abq aaa @@ -123032,7 +123030,7 @@ imh emj dcu vAa -uhc +tYt cBQ bNG aZi @@ -126827,7 +126825,7 @@ cfd bhU bjH bam -sft +iCa bsY mGk bHN diff --git a/_maps/map_files/test_tiny/test_tiny.dmm b/_maps/map_files/test_tiny/test_tiny.dmm index 874875a8e68..cf23687ddfb 100644 --- a/_maps/map_files/test_tiny/test_tiny.dmm +++ b/_maps/map_files/test_tiny/test_tiny.dmm @@ -20,19 +20,19 @@ "u" = ( /turf/simulated/wall/mineral/titanium, /area/shuttle/arrival/station) +"x" = ( +/turf/simulated/floor/mineral/titanium/blue, +/area/shuttle/arrival/station) +"F" = ( +/obj/machinery/light, +/turf/simulated/floor/mineral/titanium/blue, +/area/shuttle/arrival/station) "I" = ( /obj/machinery/light{ dir = 8 }, /turf/simulated/floor/mineral/titanium/blue, /area/shuttle/arrival/station) -"K" = ( -/turf/simulated/floor/mineral/titanium/blue, -/area/shuttle/arrival/station) -"L" = ( -/obj/machinery/light, -/turf/simulated/floor/mineral/titanium/blue, -/area/shuttle/arrival/station) "U" = ( /obj/machinery/light{ dir = 4 @@ -31261,17 +31261,17 @@ a a a u -K -K -K +x +x +x I -K -K -K +x +x +x I -K -K -K +x +x +x u a a @@ -31518,17 +31518,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -31775,17 +31775,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -32033,16 +32033,16 @@ a a u p -K -K -K -K -K -K -K -K -K -L +x +x +x +x +x +x +x +x +x +F u a a @@ -32289,17 +32289,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -32546,17 +32546,17 @@ a a a u -K -K -K -K -K +x +x +x +x +x b -K -K -K -K -K +x +x +x +x +x u a a @@ -32803,17 +32803,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -33061,16 +33061,16 @@ a a u p -K -K -K -K -K -K -K -K -K -L +x +x +x +x +x +x +x +x +x +F u a a @@ -33317,17 +33317,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -33574,17 +33574,17 @@ a a a u -K -K -K -K -K -K -K -K -K -K -K +x +x +x +x +x +x +x +x +x +x +x u a a @@ -33831,17 +33831,17 @@ a a a u -K -K -K +x +x +x U -K -K -K +x +x +x U -K -K -K +x +x +x u a a diff --git a/code/__DEFINES/construction_defines.dm b/code/__DEFINES/construction_defines.dm index 847659a14e6..339402df786 100644 --- a/code/__DEFINES/construction_defines.dm +++ b/code/__DEFINES/construction_defines.dm @@ -65,6 +65,7 @@ #define TINT_CONTROL_GROUP_NONE 0 /// Material defines, for determining how much of a given material an item contains +#define MAT_WOOD "wood" #define MAT_METAL "metal" #define MAT_GLASS "glass" #define MAT_SILVER "silver" diff --git a/code/__DEFINES/cooking_defines.dm b/code/__DEFINES/cooking_defines.dm new file mode 100644 index 00000000000..e6b20116cf3 --- /dev/null +++ b/code/__DEFINES/cooking_defines.dm @@ -0,0 +1,110 @@ +//Check item use flags +#define PCWJ_NO_STEPS 1 //! The used object has no valid recipe uses +#define PCWJ_CHOICE_CANCEL 2 //! The user opted to cancel when given a choice +#define PCWJ_SUCCESS 3 //! The user decided to use the item and the step was followed +#define PCWJ_PARTIAL_SUCCESS 4 //! The user decided to use the item but the qualifications for the step was not fulfilled +#define PCWJ_COMPLETE 5 //! The meal has been completed! +#define PCWJ_LOCKOUT 6 //! Someone tried starting the function while a prompt was running. Jerk. +#define PCWJ_BURNT 7 //! The meal was ruined by burning the food somehow. +#define PCWJ_NO_RECIPES 8 //! There are no recipes that match this object and container combination. +#define PCWJ_CONTAINER_FULL 9 + +#define PCWJ_CHECK_INVALID 0 +#define PCWJ_CHECK_VALID 1 +#define PCWJ_CHECK_FULL 2 //! For reagents, nothing can be added to +#define PCWJ_CHECK_SILENT 3 + +//Cooking container types +#define PLATE "plate" +#define CUTTING_BOARD "cutting board" +#define PAN "pan" +#define POT "pot" +#define BOWL "bowl" +#define DF_BASKET "deep fryer basket" +#define OVEN "oven" +#define GRILL "grill grate" + +// Cooking machine temperature settings. +#define J_LO "Low" +#define J_MED "Medium" +#define J_HI "High" + +// Burn times for cooking things on a stove. +// Anything put on a stove for this long becomes a burned mess. +#define PCWJ_BURN_TIME_LOW 60 SECONDS +#define PCWJ_BURN_TIME_MEDIUM 45 SECONDS +#define PCWJ_BURN_TIME_HIGH 30 SECONDS + +// Ignite times for reagents interacting with a stove. +// The stove will catch fire if left on too long with flammable reagents in any of its holders. +#define PCWJ_IGNITE_TIME_LOW 120 SECONDS +#define PCWJ_IGNITE_TIME_MEDIUM 90 SECONDS +#define PCWJ_IGNITE_TIME_HIGH 60 SECONDS + +#define PCWJ_ADD_ITEM(item_type, options...) new/datum/cooking/recipe_step/add_item(item_type, list(##options)) +#define PCWJ_ADD_PRODUCE(item_type, options...) new/datum/cooking/recipe_step/add_produce(item_type, list(##options)) +#define PCWJ_ADD_REAGENT(reagent_name, amount, options...) new/datum/cooking/recipe_step/add_reagent(reagent_name, amount, list(##options)) +#define PCWJ_USE_GRILL(temperature, time, options...) new/datum/cooking/recipe_step/use_machine/grill(temperature, time, list(##options)) +#define PCWJ_USE_OVEN(temperature, time, options...) new/datum/cooking/recipe_step/use_machine/oven(temperature, time, list(##options)) +#define PCWJ_USE_STOVE(temperature, time, options...) new/datum/cooking/recipe_step/use_machine/stovetop(temperature, time, list(##options)) +#define PCWJ_USE_ICE_CREAM_MIXER(time, options...) new/datum/cooking/recipe_step/use_machine/ice_cream_mixer(time, list(##options)) +#define PCWJ_USE_DEEP_FRYER(time, options...) new/datum/cooking/recipe_step/use_machine/deepfryer(time, list(##options)) + +#define PCWJ_CONTAINER_AVAILABLE 1 +#define PCWJ_CONTAINER_BUSY 2 + +#define COOKER_SURFACE_STOVE "stovetop" +#define COOKER_SURFACE_GRILL "grill" +#define COOKER_SURFACE_OVEN "oven" +#define COOKER_SURFACE_DEEPFRYER "deepfryer" +#define COOKER_SURFACE_ICE_CREAM_MIXER "ice_cream_mixer" + +#define COOKBOOK_CATEGORY_MISC "Miscellaneous" +#define COOKBOOK_CATEGORY_MEAT "Meat Dishes" +#define COOKBOOK_CATEGORY_DESSERTS "Desserts" +#define COOKBOOK_CATEGORY_BREAD "Breads" +#define COOKBOOK_CATEGORY_BREAKFASTS "Breakfast Dishes" +#define COOKBOOK_CATEGORY_SEAFOOD "Seafood Dishes" +#define COOKBOOK_CATEGORY_SUSHI "Sushi" +#define COOKBOOK_CATEGORY_BURGS "Burgers and Sandwiches" +#define COOKBOOK_CATEGORY_PIZZAS "Pastas and Pizzas" +#define COOKBOOK_CATEGORY_SIDES "Side Dishes" +#define COOKBOOK_CATEGORY_SALADS "Salads" +#define COOKBOOK_CATEGORY_SOUPS "Soups" +#define COOKBOOK_CATEGORY_CANDY "Candies" +#define COOKBOOK_CATEGORY_VEGE "Vegetarian Dishes" +#define COOKBOOK_CATEGORY_DONUTS "Donuts" + +#define RADIAL_ACTION_SET_ALARM "Set alarm" +#define RADIAL_ACTION_SET_TEMPERATURE "Set temperature" +#define RADIAL_ACTION_ON_OFF "Turn on/off" + +// These defines are used for the state of the autochef itself. +#define AUTOCHEF_IDLE 0 +#define AUTOCHEF_RUNNING 1 +#define AUTOCHEF_INTERRUPTED 2 + +// These defines are used for the state of a task OR recipe step being run on +// the autochef. That's why it's called "act" (action) and not "task" or "step". +// It may seem counterintuitive to have the same set of constants for both but +// the alternative is two sets of constants that are basically the same. +#define AUTOCHEF_ACT_STARTED 0 +#define AUTOCHEF_ACT_COMPLETE 1 +#define AUTOCHEF_ACT_FOLLOW_STEPS 2 +#define AUTOCHEF_ACT_WAIT_FOR_RESULT 3 +#define AUTOCHEF_ACT_INTERRUPTED 4 +#define AUTOCHEF_ACT_FAILED 5 +#define AUTOCHEF_ACT_STEP_COMPLETE 6 +#define AUTOCHEF_ACT_MISSING_INGREDIENT 7 +#define AUTOCHEF_ACT_MISSING_REAGENT 8 +#define AUTOCHEF_ACT_MISSING_MACHINE 9 +#define AUTOCHEF_ACT_NO_AVAILABLE_MACHINES 10 +#define AUTOCHEF_ACT_NO_AVAILABLE_STORAGE 11 +#define AUTOCHEF_ACT_ADDED_TASK 12 +#define AUTOCHEF_ACT_VALID 13 + +#define COMSIG_COOK_GRILL_NO_FUEL "cook_grill_no_fuel" +#define COMSIG_COOK_MACHINE_STEP_COMPLETE "cook_machine_step_complete" +#define COMSIG_COOK_MACHINE_STEP_INTERRUPTED "cook_machine_step_interrupted" + +#define COMSIG_AUTOCHEF_FIND_MACHINE(name) "autochef_find_machine_[name]" diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 1dfd5633387..8d4b8306f26 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -144,6 +144,9 @@ GLOB.emote_list = init_emote_list() + // Set up PCWJ recipes + initialize_cooking_recipes() + // Keybindings for(var/path in subtypesof(/datum/keybinding)) var/datum/keybinding/D = path diff --git a/code/_compile_options.dm b/code/_compile_options.dm index 6731133b6fb..46e64b3e8b8 100644 --- a/code/_compile_options.dm +++ b/code/_compile_options.dm @@ -1,6 +1,9 @@ #define DEBUG //#define TESTING +// Uncomment the following line to enable debug logging for cooking recipes. +// #define PCWJ_DEBUG + // Uncomment the following line to compile unit tests on a local server. The output will be in a test_run-[DATE].log file in the ./data folder. // #define LOCAL_GAME_TESTS diff --git a/code/_globalvars/lists/misc_lists.dm b/code/_globalvars/lists/misc_lists.dm index 3221135d5d1..04e24e33b78 100644 --- a/code/_globalvars/lists/misc_lists.dm +++ b/code/_globalvars/lists/misc_lists.dm @@ -47,9 +47,6 @@ GLOBAL_LIST_INIT(round_end_sounds, list( GLOBAL_LIST_INIT(cooking_recipe_types, list( RECIPE_MICROWAVE = /datum/recipe/microwave, - RECIPE_OVEN = /datum/recipe/oven, - RECIPE_GRILL = /datum/recipe/grill, - RECIPE_CANDY = /datum/recipe/candy )) GLOBAL_LIST_INIT(cooking_recipes, list(RECIPE_MICROWAVE = list(), RECIPE_OVEN = list(), RECIPE_GRILL = list(), RECIPE_CANDY = list())) GLOBAL_LIST_INIT(cooking_ingredients, list(RECIPE_MICROWAVE = list(), RECIPE_OVEN = list(), RECIPE_GRILL = list(), RECIPE_CANDY = list())) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 0363cad9e2e..0571b293e11 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -73,22 +73,22 @@ MiddleShiftClickOn(A) return if(modifiers["shift"] && modifiers["ctrl"]) - CtrlShiftClickOn(A) + CtrlShiftClickOn(A, modifiers) return if(modifiers["shift"] && modifiers["alt"]) - AltShiftClickOn(A) + AltShiftClickOn(A, modifiers) return if(modifiers["middle"]) MiddleClickOn(A) return if(modifiers["shift"]) - ShiftClickOn(A) + ShiftClickOn(A, modifiers) return if(modifiers["alt"]) // alt and alt-gr (rightalt) - AltClickOn(A) + AltClickOn(A, modifiers) return if(modifiers["ctrl"]) - CtrlClickOn(A) + CtrlClickOn(A, modifiers) return if(incapacitated(ignore_restraints = 1, ignore_grab = 1)) @@ -140,7 +140,7 @@ else if(ismob(A)) changeNext_move(CLICK_CD_MELEE) - UnarmedAttack(A, 1) + UnarmedAttack(A, 1, params) return if(!isturf(loc)) // This is going to stop you from telekinesing from inside a closet, but I don't shed many tears for that @@ -152,7 +152,7 @@ else if(ismob(A)) changeNext_move(CLICK_CD_MELEE) - UnarmedAttack(A, 1) + UnarmedAttack(A, 1, params) else if(W) if(W.new_attack_chain) @@ -262,7 +262,7 @@ proximity_flag is not currently passed to attack_hand, and is instead used in human click code to allow glove touches only at melee range. */ -/mob/proc/UnarmedAttack(atom/A, proximity_flag) +/mob/proc/UnarmedAttack(atom/A, proximity_flag, params) if(ismob(A)) changeNext_move(CLICK_CD_MELEE) return @@ -351,10 +351,10 @@ For most mobs, examine. This is overridden in ai.dm */ -/mob/proc/ShiftClickOn(atom/A) - A.ShiftClick(src) +/mob/proc/ShiftClickOn(atom/A, modifiers) + A.ShiftClick(src, modifiers) return -/atom/proc/ShiftClick(mob/user) +/atom/proc/ShiftClick(mob/user, modifiers) if(user.client && get_turf(user.client.eye) == get_turf(user)) user.examinate(src) return @@ -363,11 +363,11 @@ Ctrl click For most objects, pull */ -/mob/proc/CtrlClickOn(atom/A) - A.CtrlClick(src) +/mob/proc/CtrlClickOn(atom/A, modifiers) + A.CtrlClick(src, modifiers) return -/atom/proc/CtrlClick(mob/user) +/atom/proc/CtrlClick(mob/user, modifiers) SEND_SIGNAL(src, COMSIG_CLICK_CTRL, user) var/mob/living/ML = user if(istype(ML)) @@ -376,12 +376,12 @@ /* Alt click */ -/mob/proc/AltClickOn(atom/A) - A.AltClick(src) +/mob/proc/AltClickOn(atom/A, modifiers) + A.AltClick(src, modifiers) return // See click_override.dm -/mob/living/AltClickOn(atom/A) +/mob/living/AltClickOn(atom/A, modifiers) . = SEND_SIGNAL(src, COMSIG_MOB_ALTCLICKON, A, src) if(. & COMSIG_MOB_CANCEL_CLICKON) return @@ -389,7 +389,7 @@ return ..() -/atom/proc/AltClick(mob/user) +/atom/proc/AltClick(mob/user, modifiers) if(SEND_SIGNAL(src, COMSIG_CLICK_ALT, user) & COMPONENT_CANCEL_ALTCLICK) return var/turf/T = get_turf(src) @@ -409,15 +409,15 @@ Control+Shift/Alt+Shift click Unused except for AI */ -/mob/proc/CtrlShiftClickOn(atom/A) - A.CtrlShiftClick(src) +/mob/proc/CtrlShiftClickOn(atom/A, modifiers) + A.CtrlShiftClick(src, modifiers) return -/atom/proc/CtrlShiftClick(mob/user) +/atom/proc/CtrlShiftClick(mob/user, modifiers) return -/mob/proc/AltShiftClickOn(atom/A) - A.AltShiftClick(src) +/mob/proc/AltShiftClickOn(atom/A, modifiers) + A.AltShiftClick(src, modifiers) return /mob/proc/ShiftMiddleClickOn(atom/A) diff --git a/code/_onclick/other_mobs.dm b/code/_onclick/other_mobs.dm index c9f8fccfd1f..d9cbe7244db 100644 --- a/code/_onclick/other_mobs.dm +++ b/code/_onclick/other_mobs.dm @@ -4,7 +4,7 @@ Otherwise pretty standard. */ -/mob/living/carbon/human/UnarmedAttack(atom/A, proximity) +/mob/living/carbon/human/UnarmedAttack(atom/A, proximity, params) // Special glove functions: // If the gloves do anything, have them return 1 to stop // normal attack_hand() here. @@ -25,9 +25,9 @@ if(SEND_SIGNAL(A, COMSIG_HUMAN_MELEE_UNARMED_ATTACKBY, src) & COMPONENT_CANCEL_ATTACK_CHAIN) return - A.attack_hand(src) + A.attack_hand(src, params) -/atom/proc/attack_hand(mob/user as mob) +/atom/proc/attack_hand(mob/user as mob, params) if(SEND_SIGNAL(src, COMSIG_ATOM_ATTACK_HAND, user) & COMPONENT_CANCEL_ATTACK_CHAIN) return TRUE diff --git a/code/datums/beam.dm b/code/datums/beam.dm index 3f809569965..19ac0049481 100644 --- a/code/datums/beam.dm +++ b/code/datums/beam.dm @@ -109,9 +109,11 @@ final_y += Pixel_y > 0 ? round(Pixel_y / 32) : CEILING(Pixel_y / 32, 1) Pixel_y %= 32 - X.forceMove(locate(final_x, final_y, X.z)) - X.pixel_x = origin.pixel_x + Pixel_x - X.pixel_y = origin.pixel_y + Pixel_y + var/turf/T = locate(final_x, final_y, X.z) + if(T) + X.forceMove(locate(final_x, final_y, X.z)) + X.pixel_x = origin.pixel_x + Pixel_x + X.pixel_y = origin.pixel_y + Pixel_y /obj/effect/ebeam mouse_opacity = MOUSE_OPACITY_TRANSPARENT diff --git a/code/datums/recipe.dm b/code/datums/recipe.dm index 7ee1c021631..49018da77b4 100644 --- a/code/datums/recipe.dm +++ b/code/datums/recipe.dm @@ -40,7 +40,7 @@ var/time = 100 // 1/10 part of second /// Whether or not an upgraded kitchen machine will create more products using the same amount of ingredients var/duplicate = TRUE - var/byproduct // example: = /obj/item/kitchen/mould // byproduct to return, such as a mould or trash + var/byproduct // example: = /obj/item/reagent_containers/cooking/mould // byproduct to return, such as a mould or trash /datum/recipe/proc/check_reagents(datum/reagents/avail_reagents) . = INGREDIENT_CHECK_EXACT diff --git a/code/game/jobs/job/support.dm b/code/game/jobs/job/support.dm index 05670d331a1..ab9890c12fe 100644 --- a/code/game/jobs/job/support.dm +++ b/code/game/jobs/job/support.dm @@ -309,18 +309,14 @@ id = /obj/item/card/id/chef pda = /obj/item/pda/chef backpack_contents = list( - /obj/item/eftpos=1,\ - /obj/item/paper/chef=1,\ - /obj/item/book/manual/wiki/chef_recipes=1) + /obj/item/eftpos = 1, + ) /datum/outfit/job/chef/on_mind_initialize(mob/living/carbon/human/H) . = ..() var/datum/martial_art/cqc/under_siege/justacook = new justacook.teach(H) // requires mind ADD_TRAIT(H.mind, TRAIT_TABLE_LEAP, ROUNDSTART_TRAIT) - ADD_TRAIT(H.mind, TRAIT_KNOWS_COOKING_RECIPES, ROUNDSTART_TRAIT) - if(H.mind) - H.mind.AddSpell(new /datum/spell/expert_chef) /datum/job/hydro title = "Botanist" diff --git a/code/game/machinery/machine_frame.dm b/code/game/machinery/machine_frame.dm index 522cc23bf1e..a2e1ec519f9 100644 --- a/code/game/machinery/machine_frame.dm +++ b/code/game/machinery/machine_frame.dm @@ -496,47 +496,15 @@ to destroy them and players will be able to make replacements. /obj/item/stack/cable_coil = 2, /obj/item/stack/sheet/glass = 1) -/obj/item/circuitboard/oven - board_name = "Oven" - icon_state = "service" - build_path = /obj/machinery/kitchen_machine/oven - board_type = "machine" - origin_tech = "programming=2;magnets=2" - req_components = list( - /obj/item/stock_parts/micro_laser = 2, - /obj/item/stack/cable_coil = 5, - /obj/item/stack/sheet/glass = 1) - -/obj/item/circuitboard/grill - board_name = "Grill" - icon_state = "service" - build_path = /obj/machinery/kitchen_machine/grill - board_type = "machine" - origin_tech = "programming=2;magnets=2" - req_components = list( - /obj/item/stock_parts/micro_laser = 2, - /obj/item/stack/cable_coil = 5, - /obj/item/stack/sheet/glass = 1) - -/obj/item/circuitboard/candy_maker - board_name = "Candy Maker" - icon_state = "service" - build_path = /obj/machinery/kitchen_machine/candy_maker - board_type = "machine" - origin_tech = "programming=2;magnets=2" - req_components = list( - /obj/item/stock_parts/manipulator = 1, - /obj/item/stack/cable_coil = 5, - /obj/item/stack/sheet/glass = 1) - /obj/item/circuitboard/deepfryer board_name = "Deep Fryer" icon_state = "service" - build_path = /obj/machinery/cooker/deepfryer + build_path = /obj/machinery/cooking/deepfryer board_type = "machine" origin_tech = "programming=1" req_components = list( /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/capacitor = 1, /obj/item/stack/cable_coil = 5) /obj/item/circuitboard/gibber @@ -1234,3 +1202,15 @@ to destroy them and players will be able to make replacements. /obj/item/stock_parts/micro_laser = 1, /obj/item/stack/cable_coil = 3, /obj/item/stack/sheet/plasteel = 5) + +/obj/item/circuitboard/autochef + board_name = "Autochef" + icon_state = "generic" + board_type = "machine" + build_path = /obj/machinery/autochef + origin_tech = "programming=3;bluespace=3;materials=3" + req_components = list( + /obj/item/stock_parts/matter_bin = 2, + /obj/item/stock_parts/micro_laser = 1, + /obj/item/stock_parts/manipulator = 1, + ) diff --git a/code/game/machinery/vendors/departmental_vendors.dm b/code/game/machinery/vendors/departmental_vendors.dm index db2e67256c5..a5ecb07d4f4 100644 --- a/code/game/machinery/vendors/departmental_vendors.dm +++ b/code/game/machinery/vendors/departmental_vendors.dm @@ -99,27 +99,24 @@ /obj/item/trash/bowl = 20, /obj/item/kitchen/knife = 3, /obj/item/kitchen/rollingpin = 2, - /obj/item/kitchen/sushimat = 3, + /obj/item/reagent_containers/cooking/sushimat = 3, /obj/item/reagent_containers/drinks/drinkingglass = 8, - /obj/item/clothing/suit/chef/classic = 2, - /obj/item/storage/belt/chef = 2, /obj/item/reagent_containers/condiment/pack/ketchup = 5, /obj/item/reagent_containers/condiment/pack/hotsauce = 5, /obj/item/reagent_containers/condiment/saltshaker =5, /obj/item/reagent_containers/condiment/peppermill =5, /obj/item/whetstone = 2, /obj/item/storage/box/papersack = 20, - /obj/item/mixing_bowl = 10, /obj/item/kitchen/knife/cheese = 2, /obj/item/kitchen/knife/pizza_cutter = 2, - /obj/item/kitchen/mould/bear = 1, - /obj/item/kitchen/mould/worm = 1, - /obj/item/kitchen/mould/bean = 1, - /obj/item/kitchen/mould/ball = 1, - /obj/item/kitchen/mould/cane = 1, - /obj/item/kitchen/mould/cash = 1, - /obj/item/kitchen/mould/coin = 1, - /obj/item/kitchen/mould/loli = 1, + /obj/item/reagent_containers/cooking/mould/bear = 1, + /obj/item/reagent_containers/cooking/mould/worm = 1, + /obj/item/reagent_containers/cooking/mould/bean = 1, + /obj/item/reagent_containers/cooking/mould/ball = 1, + /obj/item/reagent_containers/cooking/mould/cane = 1, + /obj/item/reagent_containers/cooking/mould/cash = 1, + /obj/item/reagent_containers/cooking/mould/coin = 1, + /obj/item/reagent_containers/cooking/mould/loli = 1, /obj/item/kitchen/cutter = 2) contraband = list(/obj/item/kitchen/rollingpin = 2, diff --git a/code/game/machinery/vendors/wardrobe_vendors.dm b/code/game/machinery/vendors/wardrobe_vendors.dm index f8582dd9f2a..8a19c62805b 100644 --- a/code/game/machinery/vendors/wardrobe_vendors.dm +++ b/code/game/machinery/vendors/wardrobe_vendors.dm @@ -695,6 +695,7 @@ /obj/item/clothing/under/misc/waiter = 2, /obj/item/clothing/suit/chef = 2, /obj/item/clothing/suit/chef/classic = 2, + /obj/item/storage/belt/chef = 2, /obj/item/clothing/head/chefhat = 2, /obj/item/clothing/head/soft/white = 2, /obj/item/clothing/head/beret/white = 2, @@ -706,8 +707,10 @@ /obj/item/reagent_containers/glass/rag = 3, /obj/item/storage/box/dish_drive = 1, /obj/item/storage/box/crewvend = 1, + /obj/item/storage/box/autochef = 1, /obj/item/clothing/head/helmet/space/plasmaman/chef = 2, - /obj/item/clothing/under/plasmaman/chef = 2) + /obj/item/clothing/under/plasmaman/chef = 2, + /obj/item/cartridge/chef = 2) contraband = list(/obj/item/toy/figure/crew/chef = 1) @@ -715,6 +718,7 @@ /obj/item/clothing/under/misc/waiter = 50, /obj/item/clothing/suit/chef = 50, /obj/item/clothing/suit/chef/classic = 50, + /obj/item/storage/belt/chef = 50, /obj/item/clothing/head/chefhat = 50, /obj/item/clothing/head/soft/white = 30, /obj/item/clothing/head/beret/white = 20, @@ -726,8 +730,10 @@ /obj/item/reagent_containers/glass/rag = 5, /obj/item/storage/box/dish_drive = 100, /obj/item/storage/box/crewvend = 100, + /obj/item/storage/box/autochef = 100, /obj/item/clothing/head/helmet/space/plasmaman/chef = 60, - /obj/item/clothing/under/plasmaman/chef = 60) + /obj/item/clothing/under/plasmaman/chef = 60, + /obj/item/cartridge/chef = 50) refill_canister = /obj/item/vending_refill/chefdrobe diff --git a/code/game/objects/effects/spawners/random/misc_spawners.dm b/code/game/objects/effects/spawners/random/misc_spawners.dm index f528c9c2b4e..f23a221b4de 100644 --- a/code/game/objects/effects/spawners/random/misc_spawners.dm +++ b/code/game/objects/effects/spawners/random/misc_spawners.dm @@ -48,7 +48,6 @@ /obj/item/book/manual/ripley_build_and_repair, /obj/item/book/manual/supermatter_engine, /obj/item/book/manual/wiki/botanist, - /obj/item/book/manual/wiki/chef_recipes, /obj/item/book/manual/wiki/engineering_construction, /obj/item/book/manual/wiki/engineering_guide, /obj/item/book/manual/wiki/faxes, diff --git a/code/game/objects/items/devices/autochef_remote.dm b/code/game/objects/items/devices/autochef_remote.dm new file mode 100644 index 00000000000..37805c66dc8 --- /dev/null +++ b/code/game/objects/items/devices/autochef_remote.dm @@ -0,0 +1,46 @@ +RESTRICT_TYPE(/obj/item/autochef_remote) + +/obj/item/autochef_remote + name = "autochef remote" + icon = 'icons/obj/cooking/misc.dmi' + icon_state = "autochef_remote" + w_class = WEIGHT_CLASS_SMALL + new_attack_chain = TRUE + + var/list/linkable_machine_uids = list() + VAR_PRIVATE/static/list/valid_machines = list( + /obj/item/reagent_containers/cooking, + /obj/machinery/cooking, + /obj/machinery/smartfridge, + ) + +/obj/item/autochef_remote/examine(mob/user) + . = ..() + . += "Use [src] on cooking utensils and machines to store them in the buffer." + . += "Use [src] on an autochef to register all the stored utensils and machines to the autochef." + . += "Register food and drink carts and smart fridges to give the autochef access to ingredients." + . += "Use [src] in-hand to clear its buffer, which can then be used to unlink everything from autochefs." + +/obj/item/autochef_remote/activate_self(mob/user) + if(..()) + return FINISH_ATTACK + + linkable_machine_uids.Cut() + to_chat(user, "You clear all items stored in [src]'s buffer.") + +/obj/item/autochef_remote/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers) + var/target_uid = interacting_with.UID() + if(is_type_in_list(interacting_with, valid_machines)) + linkable_machine_uids |= target_uid + else + return + + var/obj/machinery/cooking/cooking_machine = interacting_with + if(istype(cooking_machine)) + for(var/datum/cooking_surface/surface in cooking_machine.surfaces) + if(surface.container) + interact_with_atom(surface.container, user) + + to_chat(user, "You add [interacting_with] to [src]'s buffer.") + + return ITEM_INTERACT_COMPLETE diff --git a/code/game/objects/items/mixing_bowl.dm b/code/game/objects/items/mixing_bowl.dm deleted file mode 100644 index 665bbb3cb3f..00000000000 --- a/code/game/objects/items/mixing_bowl.dm +++ /dev/null @@ -1,171 +0,0 @@ - -/obj/item/mixing_bowl - name = "mixing bowl" - desc = "Mixing it up in the kitchen." - container_type = OPENCONTAINER - icon = 'icons/obj/kitchen.dmi' - icon_state = "mixing_bowl" - var/max_n_of_items = 25 - var/dirty = FALSE - var/clean_icon = "mixing_bowl" - var/dirty_icon = "mixing_bowl_dirty" - -/obj/item/mixing_bowl/New() - ..() - create_reagents(100) - -/obj/item/mixing_bowl/attackby__legacy__attackchain(obj/item/I, mob/user, params) - if(dirty) - if(istype(I, /obj/item/soap)) - user.visible_message("[user] starts to scrub [src].", "You start to scrub [src].") - if(do_after(user, 20 * I.toolspeed, target = src)) - clean() - user.visible_message("[user] has scrubbed [src] clean.", "You have scrubbed [src] clean.") - return 1 - else - to_chat(user, "You should clean [src] before you use it for food prep.") - return 0 - if(is_type_in_list(I, GLOB.cooking_ingredients[RECIPE_MICROWAVE]) || is_type_in_list(I, GLOB.cooking_ingredients[RECIPE_GRILL]) || is_type_in_list(I, GLOB.cooking_ingredients[RECIPE_OVEN]) || is_type_in_list(I, GLOB.cooking_ingredients[RECIPE_CANDY])) - if(length(contents)>=max_n_of_items) - to_chat(user, "This [src] is full of ingredients, you cannot put more.") - return 1 - if(istype(I, /obj/item/stack)) - var/obj/item/stack/S = I - if(S.get_amount() > 1) - var/obj/item/stack/to_add = S.split(user, 1) - to_add.forceMove(src) - user.visible_message("[user] adds one of [S] to [src].", "You add one of [S] to [src].") - else - return add_item(S, user) - else - return add_item(I, user) - else if(is_type_in_list(I, list(/obj/item/reagent_containers/glass, /obj/item/reagent_containers/drinks, /obj/item/reagent_containers/condiment))) - if(!I.reagents) - return 1 - for(var/datum/reagent/R in I.reagents.reagent_list) - if(!(R.id in GLOB.cooking_reagents[RECIPE_MICROWAVE]) && !(R.id in GLOB.cooking_reagents[RECIPE_GRILL]) && !(R.id in GLOB.cooking_reagents[RECIPE_OVEN]) && !(R.id in GLOB.cooking_reagents[RECIPE_CANDY])) - to_chat(user, "Your [I] contains components unsuitable for cookery.") - return 1 - else - to_chat(user, "You have no idea what you can cook with [I].") - return 1 - -/obj/item/mixing_bowl/proc/add_item(obj/item/I, mob/user) - if(!user.drop_item()) - to_chat(user, "\The [I] is stuck to your hand, you cannot put it in [src]") - //return 0 - else - I.forceMove(src) - user.visible_message("[user] adds [I] to [src].", "You add [I] to [src].") - -/obj/item/mixing_bowl/attack_self__legacy__attackchain(mob/user) - var/dat = "" - if(dirty) - dat = {"This [src] is dirty!
Please clean it before use!
"} - else - var/list/items_counts = list() - var/list/items_measures = list() - var/list/items_measures_p = list() - for(var/obj/O in contents) - var/display_name = O.name - if(istype(O,/obj/item/food/egg)) - items_measures[display_name] = "egg" - items_measures_p[display_name] = "eggs" - if(istype(O,/obj/item/food/tofu)) - items_measures[display_name] = "tofu chunk" - items_measures_p[display_name] = "tofu chunks" - if(istype(O,/obj/item/food/meat)) //any meat - items_measures[display_name] = "slab of meat" - items_measures_p[display_name] = "slabs of meat" - if(istype(O,/obj/item/food/donkpocket)) - display_name = "Turnovers" - items_measures[display_name] = "turnover" - items_measures_p[display_name] = "turnovers" - if(istype(O,/obj/item/food/carpmeat)) - items_measures[display_name] = "fillet of meat" - items_measures_p[display_name] = "fillets of meat" - items_counts[display_name]++ - for(var/O in items_counts) - var/N = items_counts[O] - if(!(O in items_measures)) - dat += {"[capitalize(O)]: [N] [lowertext(O)]\s
"} - else - if(N==1) - dat += {"[capitalize(O)]: [N] [items_measures[O]]
"} - else - dat += {"[capitalize(O)]: [N] [items_measures_p[O]]
"} - - for(var/datum/reagent/R in reagents.reagent_list) - var/display_name = R.name - if(R.id == "capsaicin") - display_name = "Hotsauce" - if(R.id == "frostoil") - display_name = "Coldsauce" - dat += {"[display_name]: [R.volume] unit\s
"} - - if(length(items_counts)==0 && length(reagents.reagent_list)==0) - dat = {"[src] is empty
"} - else - dat = {"Ingredients:
[dat]"} - dat += {"

Dispose ingredients!
"} - - var/datum/browser/popup = new(user, name, name, 400, 400) - popup.set_content(dat) - popup.open(0) - onclose(user, "[name]") - return - -/obj/item/mixing_bowl/Topic(href, href_list) - if(..()) - return - switch(href_list["action"]) - if("dispose") - dispose() - return - -/obj/item/mixing_bowl/proc/dispose() - for(var/obj/O in contents) - O.forceMove(loc) - if(reagents.total_volume) - make_dirty(5) - reagents.clear_reagents() - to_chat(usr, "You dispose of [src]'s contents.") - updateUsrDialog() - -/obj/item/mixing_bowl/proc/make_dirty(chance) - if(!chance) - return - if(prob(chance)) - dirty = TRUE - container_type = null - icon_state = dirty_icon - -/obj/item/mixing_bowl/proc/clean() - dirty = FALSE - container_type = OPENCONTAINER - icon_state = clean_icon - -/obj/item/mixing_bowl/wash(mob/user, atom/source) - if(..()) - clean() - -/obj/item/mixing_bowl/proc/fail(obj/source) - if(!source) - source = src - var/amount = 0 - for(var/obj/O in contents) - amount++ - if(O.reagents) - var/id = O.reagents.get_master_reagent_id() - if(id) - amount+=O.reagents.get_reagent_amount(id) - qdel(O) - if(reagents && reagents.total_volume) - var/id = reagents.get_master_reagent_id() - if(id) - amount += reagents.get_reagent_amount(id) - reagents.clear_reagents() - var/obj/item/food/badrecipe/mysteryfood = new(get_turf(source)) - mysteryfood.reagents.add_reagent("carbon", amount) - mysteryfood.reagents.add_reagent("????", amount / 10) - make_dirty(75) diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 6dbeb85387c..72d8440307e 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -727,14 +727,14 @@ GLOBAL_LIST_INIT(plastic_recipes, list( new /datum/stack_recipe("plastic knife", /obj/item/kitchen/knife/plastic, 1, on_floor = TRUE), )), new /datum/stack_recipe_list("plastic moulds", list( - new /datum/stack_recipe("bear mould", /obj/item/kitchen/mould/bear, 1, on_floor = TRUE), - new /datum/stack_recipe("worm mould", /obj/item/kitchen/mould/worm, 1, on_floor = TRUE), - new /datum/stack_recipe("bean mould", /obj/item/kitchen/mould/bean, 1, on_floor = TRUE), - new /datum/stack_recipe("ball mould", /obj/item/kitchen/mould/ball, 1, on_floor = TRUE), - new /datum/stack_recipe("cane mould", /obj/item/kitchen/mould/cane, 1, on_floor = TRUE), - new /datum/stack_recipe("cash mould", /obj/item/kitchen/mould/cash, 1, on_floor = TRUE), - new /datum/stack_recipe("coin mould", /obj/item/kitchen/mould/coin, 1, on_floor = TRUE), - new /datum/stack_recipe("sucker mould", /obj/item/kitchen/mould/loli, 1, on_floor = TRUE), + new /datum/stack_recipe("bear mould", /obj/item/reagent_containers/cooking/mould/bear, 1, on_floor = TRUE), + new /datum/stack_recipe("worm mould", /obj/item/reagent_containers/cooking/mould/worm, 1, on_floor = TRUE), + new /datum/stack_recipe("bean mould", /obj/item/reagent_containers/cooking/mould/bean, 1, on_floor = TRUE), + new /datum/stack_recipe("ball mould", /obj/item/reagent_containers/cooking/mould/ball, 1, on_floor = TRUE), + new /datum/stack_recipe("cane mould", /obj/item/reagent_containers/cooking/mould/cane, 1, on_floor = TRUE), + new /datum/stack_recipe("cash mould", /obj/item/reagent_containers/cooking/mould/cash, 1, on_floor = TRUE), + new /datum/stack_recipe("coin mould", /obj/item/reagent_containers/cooking/mould/coin, 1, on_floor = TRUE), + new /datum/stack_recipe("sucker mould", /obj/item/reagent_containers/cooking/mould/loli, 1, on_floor = TRUE), )), )) diff --git a/code/game/objects/items/weapons/kitchen.dm b/code/game/objects/items/weapons/kitchen.dm index af6641c886f..357ac4ca247 100644 --- a/code/game/objects/items/weapons/kitchen.dm +++ b/code/game/objects/items/weapons/kitchen.dm @@ -252,9 +252,10 @@ * Candy Moulds */ -/obj/item/kitchen/mould +/obj/item/reagent_containers/cooking/mould name = "generic candy mould" desc = "You aren't sure what it's supposed to be." + icon = 'icons/obj/kitchen.dmi' icon_state = "mould" force = 5 throwforce = 5 @@ -263,62 +264,52 @@ w_class = WEIGHT_CLASS_SMALL attack_verb = list("bashed", "battered", "bludgeoned", "thrashed", "smashed") -/obj/item/kitchen/mould/bear +/obj/item/reagent_containers/cooking/mould/make_mini() + transform *= 0.5 + +/obj/item/reagent_containers/cooking/mould/unmake_mini() + transform = null + +/obj/item/reagent_containers/cooking/mould/bear name = "bear-shaped candy mould" desc = "It has the shape of a small bear imprinted into it." icon_state = "mould_bear" -/obj/item/kitchen/mould/worm +/obj/item/reagent_containers/cooking/mould/worm name = "worm-shaped candy mould" desc = "It has the shape of a worm imprinted into it." icon_state = "mould_worm" -/obj/item/kitchen/mould/bean +/obj/item/reagent_containers/cooking/mould/bean name = "bean-shaped candy mould" desc = "It has the shape of a bean imprinted into it." icon_state = "mould_bean" -/obj/item/kitchen/mould/ball +/obj/item/reagent_containers/cooking/mould/ball name = "ball-shaped candy mould" desc = "It has a small sphere imprinted into it." icon_state = "mould_ball" -/obj/item/kitchen/mould/cane +/obj/item/reagent_containers/cooking/mould/cane name = "cane-shaped candy mould" desc = "It has the shape of a cane imprinted into it." icon_state = "mould_cane" -/obj/item/kitchen/mould/cash +/obj/item/reagent_containers/cooking/mould/cash name = "cash-shaped candy mould" desc = "It has the shape and design of fake money imprinted into it." icon_state = "mould_cash" -/obj/item/kitchen/mould/coin +/obj/item/reagent_containers/cooking/mould/coin name = "coin-shaped candy mould" desc = "It has the shape of a coin imprinted into it." icon_state = "mould_coin" -/obj/item/kitchen/mould/loli +/obj/item/reagent_containers/cooking/mould/loli name = "sucker mould" desc = "It has the shape of a sucker imprinted into it." icon_state = "mould_loli" -/* - * Sushi Mat - */ -/obj/item/kitchen/sushimat - name = "Sushi Mat" - desc = "A wooden mat used for efficient sushi crafting." - icon_state = "sushi_mat" - force = 5 - throwforce = 5 - throw_speed = 3 - throw_range = 3 - w_class = WEIGHT_CLASS_SMALL - attack_verb = list("rolled", "cracked", "battered", "thrashed") - - - /// circular cutter by Ume /obj/item/kitchen/cutter diff --git a/code/game/objects/items/weapons/manuals.dm b/code/game/objects/items/weapons/manuals.dm index 0c5b49ef4e9..840dcf8af8f 100644 --- a/code/game/objects/items/weapons/manuals.dm +++ b/code/game/objects/items/weapons/manuals.dm @@ -881,15 +881,6 @@ title = "Cyborgs for Dummies" wiki_article_title = "Guide_to_Robotics" -/obj/item/book/manual/wiki/chef_recipes - name = "Chef Recipes" - desc = "Knives, Ovens, and You: A guide to cooking." - summary = "A comprehensive guide to the production of all manner of foods and drinks." - icon_state = "cook_book" - author = "Nanotrasen" - title = "Chef Recipes" - wiki_article_title = "Guide_to_Food_and_Drinks#Food" - /obj/item/book/manual/wiki/engineering_construction name = "Station Repairs and Construction" desc = "A guide on how to fix things without duct tape." diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 8c13ec782e1..5ea254d4256 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -1065,8 +1065,8 @@ /obj/item/kitchen/utensil, /obj/item/kitchen/knife, /obj/item/kitchen/rollingpin, - /obj/item/kitchen/mould, - /obj/item/kitchen/sushimat, + /obj/item/reagent_containers/cooking/mould, + /obj/item/reagent_containers/cooking/sushimat, /obj/item/kitchen/cutter, /obj/item/assembly/mousetrap, /obj/item/reagent_containers/spray/pestspray, diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index aa737b29f66..c787b578ad1 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1336,6 +1336,22 @@ new /obj/item/clothing/under/plasmaman/tacticool(src) new /obj/item/clothing/head/helmet/space/plasmaman/tacticool(src) +/obj/item/storage/box/autochef + name = "autochef starter kit" + desc = "Contains everything you need to build and use an autochef." + +/obj/item/storage/box/autochef/populate_contents() + new /obj/item/circuitboard/autochef(src) + new /obj/item/stack/sheet/metal(src, 5) + new /obj/item/stack/cable_coil/five(src) + new /obj/item/stock_parts/matter_bin(src) + new /obj/item/stock_parts/matter_bin(src) + new /obj/item/stock_parts/micro_laser(src) + new /obj/item/stock_parts/manipulator(src) + new /obj/item/autochef_remote(src) + new /obj/item/screwdriver(src) + new /obj/item/paper/autochef_quickstart(src) + #undef NODESIGN #undef NANOTRASEN #undef SYNDI diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index 777a06ebea4..1151a82f805 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -589,6 +589,34 @@ if(prob(10)) new /obj/item/bikehorn/rubberducky(src) +/obj/structure/closet/crate/cookware + name = "cookware crate" + icon_state = "cookware" + icon_opened = "cookware_open" + icon_closed = "cookware" + +/obj/structure/closet/crate/cookware/populate_contents() + // Ice cream mixer containers + new /obj/item/reagent_containers/cooking/icecream_bowl(src) + // Oven containers + new /obj/item/reagent_containers/cooking/oven(src) + // Stovetop containers + new /obj/item/reagent_containers/cooking/pan(src) + new /obj/item/reagent_containers/cooking/pan(src) + new /obj/item/reagent_containers/cooking/pot(src) + new /obj/item/reagent_containers/cooking/pot(src) + // Deepfryer containers + new /obj/item/reagent_containers/cooking/deep_basket(src) + new /obj/item/reagent_containers/cooking/deep_basket(src) + // Cutting board + new /obj/item/reagent_containers/cooking/board(src) + // Grill containers + new /obj/item/reagent_containers/cooking/grill_grate(src) + new /obj/item/reagent_containers/cooking/grill_grate(src) + // Prep bowls + new /obj/item/reagent_containers/cooking/bowl(src) + new /obj/item/reagent_containers/cooking/bowl(src) + //crates of gear in the free golem ship /obj/structure/closet/crate/golemgear/populate_contents() new /obj/item/storage/backpack/industrial(src) diff --git a/code/modules/cooking/autochef/autochef.dm b/code/modules/cooking/autochef/autochef.dm new file mode 100644 index 00000000000..2b1adc671e5 --- /dev/null +++ b/code/modules/cooking/autochef/autochef.dm @@ -0,0 +1,250 @@ +RESTRICT_TYPE(/obj/machinery/autochef) + +/obj/machinery/autochef + name = "autochef" + desc = "An automated cooking machine." + icon = 'icons/obj/cooking/autochef.dmi' + icon_state = "autochef_base" + anchored = TRUE + pass_flags = PASSTABLE + density = TRUE + + var/list/linked_cooking_containers = list() + var/list/linked_machines = list() + var/list/linked_storages = list() + var/list/task_queue = list() + + var/screen_icon_state + var/current_state = AUTOCHEF_IDLE + var/next_step_cooldown_delay = 2 SECONDS + var/upgrade_level = 0 + var/impatience_meter = 0 + + COOLDOWN_DECLARE(ingredient_search_giveup_cd) + COOLDOWN_DECLARE(next_step_cd) + +/obj/machinery/autochef/examine(mob/user) + . = ..() + . += "Specify the desired output by using a food item on [src]." + . += "Start, pause, or restart [src] by clicking on it." + . += "Alt-Click to reset and clear all pending recipes." + +/obj/machinery/autochef/Initialize(mapload) + . = ..() + + makeSpeedProcess() + + component_parts = list() + component_parts += new /obj/item/circuitboard/autochef(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/manipulator(null) + + RefreshParts() + +/obj/machinery/autochef/RefreshParts() + . = ..() + var/new_level = 0 + for(var/obj/item/stock_parts/part in component_parts) + new_level += part.rating + upgrade_level = max(1, floor(new_level / 4)) + next_step_cooldown_delay = initial(next_step_cooldown_delay) / (upgrade_level < 2 ? 1 : 2) + +/obj/machinery/autochef/Destroy() + QDEL_LIST_CONTENTS(task_queue) + . = ..() + +/obj/machinery/autochef/attack_hand(mob/user) + if(..()) + return + + switch(current_state) + if(AUTOCHEF_IDLE, AUTOCHEF_INTERRUPTED) + if(panel_open) + atom_say("Please close panel before continuing.") + return + if(length(task_queue)) + current_state = AUTOCHEF_RUNNING + else + atom_say("Please provide a food item to create.") + if(AUTOCHEF_RUNNING) + set_display(null) + current_state = AUTOCHEF_IDLE + +/obj/machinery/autochef/item_interaction(mob/living/user, obj/item/used, list/modifiers) + if(istype(used, /obj/item/storage/part_replacer)) + return ..() + + var/obj/item/autochef_remote/remote = used + if(istype(remote)) + for(var/container in linked_cooking_containers) + UnregisterSignal(container, COMSIG_PARENT_QDELETING) + for(var/machine in linked_machines) + UnregisterSignal(machine, COMSIG_PARENT_QDELETING) + for(var/storage in linked_storages) + UnregisterSignal(storage, COMSIG_PARENT_QDELETING) + + if(!length(remote.linkable_machine_uids)) + to_chat(user, "You unlink all items from [src].") + + for(var/uid in remote.linkable_machine_uids) + var/obj = locateUID(uid) + var/success = FALSE + if(obj) + if(istype(obj, /obj/item/reagent_containers/cooking)) + linked_cooking_containers |= obj + success = TRUE + else if(istype(obj, /obj/machinery/cooking)) + linked_machines |= obj + success = TRUE + else if(istype(obj, /obj/machinery/smartfridge)) + linked_storages |= obj + success = TRUE + + if(success) + RegisterSignal(obj, COMSIG_PARENT_QDELETING, PROC_REF(unlink), override = TRUE) + to_chat(user, "[obj] is registered to [src].") + else + to_chat(user, "[obj] failed to register to [src].") + + return ITEM_INTERACT_COMPLETE + + var/obj/item/food/food_item = used + var/list/available_recipes = find_recipes(food_item.type) + if(istype(food_item) && length(available_recipes)) + if(current_state == AUTOCHEF_RUNNING) + atom_say("Autochef running. Please wait.") + return ITEM_INTERACT_COMPLETE + + if(length(task_queue)) + task_queue.Cut() + + var/datum/autochef_task/make_item/task = new(src, food_item.type) + task.repeating = TRUE + task_queue.Add(task) + set_display(null) + atom_say("Recipe selected: [initial(food_item.name)].") + else + atom_say("Cannot make [initial(food_item.name)].") + + return ITEM_INTERACT_COMPLETE + +/obj/machinery/autochef/proc/find_recipes(target_type) + . = list() + for(var/container_type in GLOB.pcwj_recipe_dictionary) + for(var/datum/cooking/recipe/recipe in GLOB.pcwj_recipe_dictionary[container_type]) + if(target_type == recipe.product_type) + . |= recipe + +/obj/machinery/autochef/update_overlays() + . = ..() + if(stat & (BROKEN|NOPOWER)) + return + + . += image(icon, icon_state = "light-on") + + if(screen_icon_state) + . += image(icon, icon_state = screen_icon_state) + if(panel_open) + . += image(icon = icon, icon_state = "panel-open") + +/obj/machinery/autochef/AltClick(mob/user, modifiers) + . = ..() + if(current_state == AUTOCHEF_RUNNING) + current_state = AUTOCHEF_IDLE + + set_display(null) + task_queue.Cut() + atom_say("All recipes and tasks cleared.") + +/obj/machinery/autochef/screwdriver_act(mob/living/user, obj/item/I) + . = TRUE + if(!I.use_tool(src, user, 0, volume = I.tool_volume)) + return + panel_open = !panel_open + to_chat(user, "You screw [src]'s panel [panel_open ? "open" : "closed"].") + update_icon() + +/obj/machinery/autochef/wrench_act(mob/user, obj/item/I) + . = TRUE + if(!I.tool_use_check(user, 0)) + return + default_unfasten_wrench(user, I) + +/obj/machinery/autochef/crowbar_act(mob/living/user, obj/item/used) + return default_deconstruction_crowbar(user, used) + +/obj/machinery/autochef/proc/set_display(name) + if(screen_icon_state != name) + screen_icon_state = name + update_appearance() + +/obj/machinery/autochef/proc/unlink(datum/source) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + return + +/obj/machinery/autochef/proc/find_free_container(container_type) + for(var/obj/item/reagent_containers/cooking/container in linked_cooking_containers) + if(!istype(container, container_type)) + continue + if(container.get_usable_status() != PCWJ_CONTAINER_AVAILABLE) + continue + if(!isInSight(src, container)) + continue + if(container.claimed && container.claimed != src) + continue + if(isliving(container.loc)) + continue + + return container + +/obj/machinery/autochef/process() + if(!..()) + return FALSE + + if(!COOLDOWN_FINISHED(src, next_step_cd)) + return + + COOLDOWN_START(src, next_step_cd, next_step_cooldown_delay) + update_appearance(UPDATE_OVERLAYS) + + if(!length(task_queue)) + current_state = AUTOCHEF_IDLE + return + + switch(current_state) + if(AUTOCHEF_RUNNING) + var/datum/autochef_task/current_task = task_queue[1] + current_task.resume() + + switch(current_task.current_state) + if(AUTOCHEF_ACT_COMPLETE) + current_task.finalize() + if(!current_task.repeating) + task_queue.Remove(current_task) + if(AUTOCHEF_ACT_INTERRUPTED) + current_state = AUTOCHEF_IDLE + atom_say("Recipe interrupted!") + set_display("screen-error") + if(AUTOCHEF_ACT_FAILED) + current_state = AUTOCHEF_IDLE + current_task.reset() + set_display("screen-error") + if(AUTOCHEF_ACT_WAIT_FOR_RESULT) + set_display("screen-fire") + +/obj/machinery/autochef/proc/on_claimed_container_equip(obj/item/reagent_containers/cooking/container) + if(current_state == AUTOCHEF_INTERRUPTED || current_state == AUTOCHEF_IDLE) + return + + impatience_meter++ + if(impatience_meter >= 3) + impatience_meter = 0 + atom_say("Knock it the fuck off!") + else + atom_say("[capitalize(container.name)] tampered with! Cancelling task.") + current_state = AUTOCHEF_INTERRUPTED + var/datum/autochef_task/current_task = task_queue[1] + current_task.current_state = AUTOCHEF_ACT_INTERRUPTED + set_display("screen-error") diff --git a/code/modules/cooking/autochef/autochef_guide.dm b/code/modules/cooking/autochef/autochef_guide.dm new file mode 100644 index 00000000000..307b83e7537 --- /dev/null +++ b/code/modules/cooking/autochef/autochef_guide.dm @@ -0,0 +1,29 @@ +/obj/item/paper/autochef_quickstart + name = "Quickstart Guide: Autochef" + icon_state = "paper" + info = {"You and Your Autochef: Quickstart
+
+To use your autochef, it must be linked to all the tools and items you want it to use. +
+This includes machines such as grills and ovens, containers such as grill grates and pans, and storage like smartfridges and food-and-drink carts.
+
+To link items to your autochef, use the autochef remote on them, and then on the autochef.
+
+
Pro Tip! When using the remote on a machine, it will register all the containers on the machine.
+
+To choose a recipe to make, use the food item on the autochef to scan it.
+
+To start, stop, or pause the autochef, interact with it. It will continue making the selected recipe until it runs out of ingredients or cannot use the tools it needs to make it. Once a recipe is complete, the end result will be stored in any available storage.
+
+Stock autochefs require all ingredients to be prepared in advance. Once upgraded, the autochef may create items it needs to finish the selected recipe. For example, a stock autochef requires burgers and cooked patties to make burgers. An upgraded autochef can bake dough to make buns, grill patties, and then resume making the burger.
+
+
Pro Tip! Autochefs will choose storage for output in the reverse order that they were linked with the remote.
+
+Autochefs may be tempermental and act in unexpected ways. If it is not working as expected:
+ +If all else fails, reset the autochef, scan your food item again, and restart it. +"} diff --git a/code/modules/cooking/autochef/autochef_task.dm b/code/modules/cooking/autochef/autochef_task.dm new file mode 100644 index 00000000000..917017948cb --- /dev/null +++ b/code/modules/cooking/autochef/autochef_task.dm @@ -0,0 +1,16 @@ +/datum/autochef_task + var/obj/machinery/autochef/autochef + var/current_state = AUTOCHEF_ACT_STARTED + var/repeating = FALSE + +/datum/autochef_task/New(autochef_) + autochef = autochef_ + +/datum/autochef_task/proc/resume() + return + +/datum/autochef_task/proc/finalize() + return + +/datum/autochef_task/proc/reset() + return diff --git a/code/modules/cooking/autochef/autochef_task_follow_recipe.dm b/code/modules/cooking/autochef/autochef_task_follow_recipe.dm new file mode 100644 index 00000000000..ca5b3d5622c --- /dev/null +++ b/code/modules/cooking/autochef/autochef_task_follow_recipe.dm @@ -0,0 +1,111 @@ +/datum/autochef_task/follow_recipe + var/datum/cooking/recipe/recipe + var/obj/item/reagent_containers/cooking/container + var/current_step = 1 + +/datum/autochef_task/follow_recipe/New(obj/machinery/autochef/autochef_, datum/cooking/recipe/recipe_) + autochef = autochef_ + recipe = recipe_ + +/datum/autochef_task/follow_recipe/Destroy(force, ...) + . = ..() + autochef = null + container = null + recipe = null + +/datum/autochef_task/follow_recipe/proc/register_for_completion(obj/item/reagent_containers/cooking/container) + RegisterSignal(container, COMSIG_COOK_MACHINE_STEP_COMPLETE, PROC_REF(on_machine_step_complete), override = TRUE) + RegisterSignal(container, COMSIG_COOK_MACHINE_STEP_INTERRUPTED, PROC_REF(on_machine_step_interrupted), override = TRUE) + +/datum/autochef_task/follow_recipe/proc/unregister_for_completion() + UnregisterSignal(src, list(COMSIG_COOK_MACHINE_STEP_COMPLETE, COMSIG_COOK_MACHINE_STEP_INTERRUPTED)) + +/datum/autochef_task/follow_recipe/proc/on_machine_step_complete(obj/item/reagent_containers/cooking/container, datum/cooking_surface/surface) + SIGNAL_HANDLER // COMSIG_COOK_MACHINE_STEP_COMPLETE + if(istype(surface)) + surface.turn_off() + unregister_for_completion() + current_state = AUTOCHEF_ACT_COMPLETE + +/datum/autochef_task/follow_recipe/proc/on_machine_step_interrupted(datum/cooking/recipe_tracker, datum/cooking_surface/surface) + SIGNAL_HANDLER // COMSIG_COOK_MACHINE_STEP_INTERRUPTED + if(istype(surface)) + surface.turn_off() + unregister_for_completion() + current_state = AUTOCHEF_ACT_INTERRUPTED + +/datum/autochef_task/follow_recipe/resume() + switch(current_state) + if(AUTOCHEF_ACT_STARTED) + var/obj/item/reagent_containers/cooking/target = autochef.find_free_container(recipe.container_type) + if(target) + target.claim(autochef) + autochef.atom_say("[target] located.") + current_state = AUTOCHEF_ACT_FOLLOW_STEPS + container = target + return + if(AUTOCHEF_ACT_FOLLOW_STEPS) + var/datum/cooking/recipe_step/step = recipe.steps[current_step] + if(step.optional) + current_step++ + return + + var/result = step.attempt_autochef_perform(src) + switch(result) + if(AUTOCHEF_ACT_STEP_COMPLETE) + current_step++ + if(current_step > length(recipe.steps)) + current_state = AUTOCHEF_ACT_COMPLETE + if(AUTOCHEF_ACT_WAIT_FOR_RESULT) + autochef.set_display("screen-fire") + current_state = AUTOCHEF_ACT_WAIT_FOR_RESULT + if(AUTOCHEF_ACT_FAILED) + autochef.atom_say("Recipe failed.") + autochef.set_display("screen-error") + current_state = AUTOCHEF_ACT_FAILED + if(AUTOCHEF_ACT_MISSING_INGREDIENT) + autochef.set_display("screen-error") + current_state = AUTOCHEF_ACT_INTERRUPTED + if(AUTOCHEF_ACT_NO_AVAILABLE_MACHINES) + autochef.set_display("screen-error") + current_state = AUTOCHEF_ACT_INTERRUPTED + if(AUTOCHEF_ACT_INTERRUPTED) + autochef.atom_say("Attempting to resume...") + current_state = AUTOCHEF_ACT_FOLLOW_STEPS + +/datum/autochef_task/follow_recipe/finalize() + autochef.atom_say("Recipe complete.") + autochef.set_display("screen-complete") + var/moved = FALSE + for(var/i = length(autochef.linked_storages); i >= 1; i--) + var/obj/machinery/smartfridge/storage = autochef.linked_storages[i] + if(!istype(storage)) + continue + for(var/atom/movable/result in container.contents) + if(isInSight(autochef, storage) && storage.load(result)) + storage.Beam(get_turf(container), icon_state = "rped_upgrade", icon = 'icons/effects/effects.dmi', time = 5) + SStgui.update_uis(storage) + moved = TRUE + if(moved) + break + + // If we can't find somewhere to store it, just toss it + // on a nearby table. + if(!moved) + var/turf/center = get_turf(container) + for(var/turf/T in RANGE_EDGE_TURFS(1, center)) + if(locate(/obj/structure/table) in T) + for(var/atom/movable/content in container.contents) + if(content.forceMove(T)) + content.pixel_x = rand(-8, 8) + content.pixel_y = rand(-8, 8) + else + content.forceMove(content.loc) + + container.unclaim() + container.do_empty() + +/datum/autochef_task/follow_recipe/reset() + container = null + current_step = 1 + current_state = AUTOCHEF_ACT_STARTED diff --git a/code/modules/cooking/autochef/autochef_task_make_item.dm b/code/modules/cooking/autochef/autochef_task_make_item.dm new file mode 100644 index 00000000000..ad8fc151056 --- /dev/null +++ b/code/modules/cooking/autochef/autochef_task_make_item.dm @@ -0,0 +1,90 @@ +/datum/autochef_task/make_item + var/obj/item/target_type + +/datum/autochef_task/make_item/New(obj/machinery/autochef_, obj/item/target_type_) + autochef = autochef_ + target_type = target_type_ + +/datum/autochef_task/make_item/resume() + var/list/possible_recipes = autochef.find_recipes(target_type) + if(!length(possible_recipes)) + autochef.atom_say("No recipes found for [target_type::name].") + current_state = AUTOCHEF_ACT_FAILED + return + + var/list/capable_recipes = list() + for(var/datum/cooking/recipe/recipe in possible_recipes) + var/can_use_recipe = handle_recipe(recipe) + if(can_use_recipe) + capable_recipes.Add(recipe) + + if(length(capable_recipes)) + autochef.task_queue.Insert(autochef.task_queue.Find(src), new/datum/autochef_task/follow_recipe(autochef, capable_recipes[1])) + current_state = AUTOCHEF_ACT_COMPLETE + return + + autochef.atom_say("Cannot make [target_type::name].") + current_state = AUTOCHEF_ACT_FAILED + +/datum/autochef_task/make_item/proc/handle_recipe(datum/cooking/recipe/recipe) + var/container_count = 0 + for(var/obj/item/reagent_containers/container in autochef.linked_cooking_containers) + if(istype(container, recipe.container_type)) + container_count++ + + if(!container_count) + autochef.atom_say("No linked [recipe.container_type::name].") + return FALSE + + for(var/datum/cooking/recipe_step/step in recipe.steps) + if(step.optional) + continue + var/result = handle_step(step) + if(!result) + return FALSE + + return TRUE + +/datum/autochef_task/make_item/proc/handle_step(datum/cooking/recipe_step/step) + var/prep_result = step.attempt_autochef_prepare(autochef) + switch(prep_result) + if(AUTOCHEF_ACT_VALID) + return TRUE + if(AUTOCHEF_ACT_MISSING_INGREDIENT) + if(autochef.upgrade_level > 2) + handle_missing_item(step) + else + return FALSE + if(AUTOCHEF_ACT_MISSING_REAGENT) + return FALSE + if(AUTOCHEF_ACT_FAILED) + autochef.atom_say("Unknown error.") + return FALSE + if(AUTOCHEF_ACT_NO_AVAILABLE_STORAGE) + autochef.atom_say("No linked storage.") + return FALSE + if(AUTOCHEF_ACT_NO_AVAILABLE_MACHINES) + var/datum/cooking/recipe_step/use_machine/use_machine_step = step + autochef.atom_say("No available [use_machine_step.machine_type::name].") + return FALSE + + return TRUE + +/datum/autochef_task/make_item/proc/handle_missing_item(datum/cooking/recipe_step/step) + var/datum/cooking/recipe_step/add_item/add_item_step = step + if(istype(add_item_step)) + for(var/container_type in GLOB.pcwj_recipe_dictionary) + for(var/datum/cooking/recipe/next_recipe in GLOB.pcwj_recipe_dictionary[container_type]) + if(next_recipe.product_type == add_item_step.item_type) + autochef.task_queue.Insert(autochef.task_queue.Find(src), new/datum/autochef_task/make_item(autochef, add_item_step.item_type)) + autochef.atom_say("Making [add_item_step.item_type::name] first.") + return AUTOCHEF_ACT_ADDED_TASK + autochef.atom_say("Cannot find [add_item_step.item_type::name].") + return AUTOCHEF_ACT_MISSING_INGREDIENT + var/datum/cooking/recipe_step/add_produce/add_produce_step = step + if(istype(add_produce_step)) + autochef.atom_say("Cannot find [add_produce_step.produce_type::name].") + return AUTOCHEF_ACT_MISSING_INGREDIENT + + autochef.atom_say("Unknown failure. Please contact customer support.") + return AUTOCHEF_ACT_FAILED diff --git a/code/modules/cooking/cooking_container.dm b/code/modules/cooking/cooking_container.dm new file mode 100644 index 00000000000..7027d646d43 --- /dev/null +++ b/code/modules/cooking/cooking_container.dm @@ -0,0 +1,433 @@ +/obj/effect/cooking_container_lip + icon = 'icons/obj/cooking/containers.dmi' + icon_state = "blank" + vis_flags = VIS_INHERIT_ID + +/// Abstract reagent container used for transferring from non-containers e.g. sinks +/obj/item/reagent_containers/temp + container_type = OPENCONTAINER + amount_per_transfer_from_this = 5 + list_reagents = list("water" = 5) + +/** + * Cooking containers are used in ovens, fryers and so on, to hold multiple + * ingredients for a recipe. They interact with the cooking process, and link + * up with the cooking code dynamically. Originally sourced from the Aurora, + * heavily retooled to actually work with PCWJ Holder for a portion of an + * incomplete meal, allows a cook to temporarily offload recipes to work on + * things factory-style, eliminating the need for 20 plates to get things done + * fast. + **/ +/obj/item/reagent_containers/cooking + icon = 'icons/obj/cooking/containers.dmi' + w_class = WEIGHT_CLASS_SMALL + volume = 240 + container_type = OPENCONTAINER + visible_transfer_rate = null + possible_transfer_amounts = null + + /// The [/datum/cooking/recipe_tracker] of the current food preparation. + var/datum/cooking/recipe_tracker/tracker = null + /// Icon state of the lip layer of the object + var/lip = TRUE + var/obj/effect/cooking_container_lip/lip_effect + /// A flat quality reduction for removing an unfinished recipe from the container. + var/removal_penalty = 0 + /// Record of what cooking has been done on this food. + var/list/cooker_data = list() + /// Preposition for human-readable recipe e.g. "in a pain", "on a grill". + var/preposition = "In" + /// The autochef which has claimed this container. + var/obj/machinery/autochef/claimed + /// Whether the container is in "mini" mode, that is, placed on a cooking machine and rendered + /// with its smaller icons + var/mini = FALSE + +/obj/item/reagent_containers/cooking/Initialize(mapload) + . = ..() + flags |= REAGENT_NOREACT + update_lip_effect() + clear_cooking_data() + +/obj/item/reagent_containers/cooking/proc/update_lip_effect() + if(lip) + lip_effect = new + lip_effect.icon_state = "[icon_state]_lip" + +/obj/item/reagent_containers/cooking/Destroy() + . = ..() + qdel(tracker) + qdel(lip_effect) + +/obj/item/reagent_containers/cooking/examine(mob/user) + . = ..() + if(length(contents)) + . += get_content_info() + . += "Alt-Click to remove all items and reagents from this." + +/obj/item/reagent_containers/cooking/build_reagent_description(mob/user) + . = list() + if(!reagents) + return + var/one_percent = reagents.total_volume / 100 + if(length(reagents.reagent_list)) + . += "It contains:" + for(var/I in reagents.reagent_list) + var/datum/reagent/R = I + . += "[R.volume] units of [R] ([round(R.volume / one_percent)]%)" + +/obj/item/reagent_containers/cooking/proc/get_content_info() + return "It contains [english_list(contents)]." + +/obj/item/reagent_containers/cooking/proc/get_usable_status() + if(length(contents) == 0 && reagents.total_volume == 0) + return PCWJ_CONTAINER_AVAILABLE + + return PCWJ_CONTAINER_BUSY + +/obj/item/reagent_containers/cooking/item_interaction(mob/living/user, obj/item/used, list/modifiers) + if(istype(used, /obj/item/autochef_remote)) + return + + process_item(user, used) + + return ITEM_INTERACT_COMPLETE + +/// Attempt to progress the known recipes in the tracker with the item last used +/// on the container. Note that this is the same proc used for both steps like +/// adding items to a container, as well as cooking the container in a cooking +/// machine, such as an oven or stove. So in some cases `used` will be something +/// like a food item, and in other cases `used` will be an +/// [/obj/machinery/cooking]. +/obj/item/reagent_containers/cooking/proc/process_item(mob/user, obj/used) + if(!istype(used)) + return PCWJ_NO_STEPS + + if(!tracker) + if(!(type in GLOB.pcwj_recipe_dictionary)) + return PCWJ_NO_STEPS + + var/list/container_recipes = GLOB.pcwj_recipe_dictionary[type] + if(!length(container_recipes)) + return PCWJ_NO_STEPS + + tracker = new(src) + + for(var/datum/cooking/recipe/recipe in container_recipes) + tracker.recipes_last_completed_step[recipe] = 0 + + if(!tracker && (length(contents) || reagents.total_volume != 0)) + to_chat(user, "\The [src] is full. Empty its contents first.") + return PCWJ_CONTAINER_FULL + + var/process_reaction = tracker.process_item_wrap(user, used) + react_to_process(process_reaction, user, used) + return process_reaction + +/obj/item/reagent_containers/cooking/proc/react_to_process(reaction_status, mob/user, obj/used) + if(istype(used, /obj/machinery/cooking) && reaction_status == PCWJ_NO_STEPS) + // When a finished recipe is still sitting on a cooking machine, and the + // cooking machine is sending periodic process pings as it is activated, + // the container will still be processed and a tracker created, because + // the result from the finished recipe counts as the potential input to + // a new recipe. Which is valid; it may be the input to a new recipe. + // But if it's not, we don't want a message to keep showing up as if the + // player is trying to step through a recipe. + return + + if(reaction_status == PCWJ_NO_STEPS && !tracker.recipe_started) + to_chat(user, "You don't know what you'd begin to make with this.") + return + + switch(reaction_status) + if(PCWJ_NO_RECIPES) + to_chat(user, "You don't know what you'd begin to make with this.") + if(PCWJ_NO_STEPS) + to_chat(user, "You get a feeling this wouldn't improve the recipe.") + if(PCWJ_SUCCESS, PCWJ_PARTIAL_SUCCESS) + if(tracker.step_reaction_message && ismob(user)) + to_chat(user, "[tracker.step_reaction_message]") + + update_appearance(UPDATE_ICON) + if(PCWJ_COMPLETE) + if(tracker.step_reaction_message && ismob(user)) + to_chat(user, "[tracker.step_reaction_message]") + to_chat(user, "You finish cooking with [src].") + QDEL_NULL(tracker) + clear_cooking_data() + update_appearance(UPDATE_ICON) + +/obj/item/reagent_containers/cooking/proc/handle_burning() + // Only create a burnt mess with objects in us, so boiled water doesn't + // turn into a burnt mess when left on the stove too long. + if(length(contents)) + clear() + new/obj/item/food/badrecipe(src) + else + clear() + + update_appearance(UPDATE_ICON) + +/obj/item/reagent_containers/cooking/proc/handle_ignition() + clear() + update_appearance(UPDATE_ICON) + return TRUE + +/obj/item/reagent_containers/cooking/proc/do_empty(mob/user, atom/target, reagent_clear = TRUE) + #ifdef PCWJ_DEBUG + log_debug("cooking_container/do_empty() called!") + #endif + + if(length(contents) || (reagent_clear && reagents.total_volume > 0)) + for(var/contained in contents) + var/atom/movable/AM = contained + remove_from_visible(AM) + if(!target) + AM.forceMove(get_turf(src)) + else + AM.forceMove(get_turf(target)) + + if(ismob(user)) + to_chat(user, "You remove everything from [src].") + + if(reagent_clear) + reagents.clear_reagents() + + update_icon() + QDEL_NULL(tracker) + clear_cooking_data() + if(claimed) + SEND_SIGNAL(src, COMSIG_COOK_MACHINE_STEP_INTERRUPTED, null) + +/obj/item/reagent_containers/cooking/wash(mob/user, atom/source) + if(reagents.total_volume >= volume) + to_chat(user, "[src] is full.") + else + var/obj/item/reagent_containers/temp/temp_container = new() + process_item(user, temp_container) + qdel(temp_container) + +/obj/item/reagent_containers/cooking/AltClick(mob/user) + if(!is_valid_interaction(user)) + return + do_empty(user) + +/// Deletes contents and reagents of container. +/obj/item/reagent_containers/cooking/proc/clear() + QDEL_LIST_CONTENTS(contents) + contents = list() + reagents.clear_reagents() + if(tracker) + qdel(tracker) + tracker = null + clear_cooking_data() + +/obj/item/reagent_containers/cooking/proc/cooker_temp_data(datum/cooking_surface/surface) + if(!(surface.cooker_id in cooker_data)) + return null + if(!(surface.temperature in cooker_data[surface.cooker_id])) + return null + + return cooker_data[surface.cooker_id][surface.temperature] + +/obj/item/reagent_containers/cooking/proc/set_cooker_data(datum/cooking_surface/surface, val) + if(!(surface.cooker_id in cooker_data)) + cooker_data[surface.cooker_id] = list() + + cooker_data[surface.cooker_id][surface.temperature] = val + +/obj/item/reagent_containers/cooking/proc/get_cooker_time(surface_name, temp) + // can't fucking trust LAZYACCESSASSOC + if(!(surface_name in cooker_data)) + return null + if(!(temp in cooker_data[surface_name])) + return null + + return cooker_data[surface_name][temp] + +/obj/item/reagent_containers/cooking/proc/clear_cooking_data() + cooker_data.Cut() + +/obj/item/reagent_containers/cooking/update_icon() + ..() + + vis_contents.Remove(lip_effect) + + for(var/obj/content in vis_contents) + remove_from_visible(content) + + for(var/i = length(contents), i >= 1, i--) + var/obj/content = contents[i] + add_to_visible(content) + + if(length(contents) && lip_effect) + vis_contents += lip_effect + +/obj/item/reagent_containers/cooking/proc/add_to_visible(obj/our_item) + our_item.pixel_x = initial(our_item.pixel_x) + our_item.pixel_y = initial(our_item.pixel_y) + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.6 + vis_contents += our_item + +/obj/item/reagent_containers/cooking/proc/remove_from_visible(obj/our_item) + our_item.vis_flags = 0 + our_item.blend_mode = 0 + our_item.transform = null + vis_contents.Remove(our_item) + +/obj/item/reagent_containers/cooking/proc/make_mini() + mini = TRUE + icon_state = "[initial(icon_state)]_s" + update_lip_effect() + update_icon() + +/obj/item/reagent_containers/cooking/proc/unmake_mini() + mini = FALSE + icon_state = initial(icon_state) + update_lip_effect() + update_icon() + +/obj/item/reagent_containers/cooking/proc/claim(obj/machinery/autochef/autochef) + if(!istype(autochef)) + return + claimed = autochef + autochef.RegisterSignal(src, COMSIG_ITEM_EQUIPPED, TYPE_PROC_REF(/obj/machinery/autochef, on_claimed_container_equip), override = TRUE) + +/obj/item/reagent_containers/cooking/proc/unclaim() + if(claimed) + claimed.UnregisterSignal(src, COMSIG_ITEM_EQUIPPED) + claimed = null + +/obj/item/reagent_containers/cooking/board + name = "cutting board" + desc = "Good for making sandwiches on, too." + icon_state = "cutting_board" + item_state = "cutting_board" + preposition = "On" + materials = list(MAT_WOOD = 5) + +/obj/item/reagent_containers/cooking/sushimat + name = "Sushi Mat" + desc = "A wooden mat used for efficient sushi crafting." + icon = 'icons/obj/kitchen.dmi' + icon_state = "sushi_mat" + lip = null + preposition = "On" + force = 5 + throwforce = 5 + throw_speed = 3 + throw_range = 3 + w_class = WEIGHT_CLASS_SMALL + attack_verb = list("rolled", "cracked", "battered", "thrashed") + +/obj/item/reagent_containers/cooking/oven + name = "oven dish" + desc = "Put ingredients in this; designed for use with an oven. Warranty void if used." + icon_state = "oven_dish" + materials = list(MAT_METAL = 1500) + +/obj/item/reagent_containers/cooking/oven/add_to_visible(obj/item/our_item) + if(mini) + our_item.pixel_x = 0 + our_item.pixel_y = -4 + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.5 + else + our_item.pixel_x = 0 + our_item.pixel_y = 0 + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.5 + vis_contents += our_item + +/obj/item/reagent_containers/cooking/pan + name = "pan" + desc = "A normal pan." + icon_state = "pan" + materials = list(MAT_METAL = 1000) + force = 8 + throwforce = 10 + attack_verb = list("smashed", "fried") + hitsound = 'sound/weapons/smash.ogg' + +/obj/item/reagent_containers/cooking/pan/add_to_visible(obj/our_item) + if(mini) + our_item.pixel_x = 0 + our_item.pixel_y = -1 + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.5 + vis_contents += our_item + else + ..() + +/obj/item/reagent_containers/cooking/pot + name = "cooking pot" + desc = "Boil things with this. Maybe even stick 'em in a stew." + icon_state = "pot" + materials = list(MAT_METAL = 1250) + hitsound = 'sound/weapons/smash.ogg' + removal_penalty = 5 + force = 8 + throwforce = 10 + attack_verb = list("clanged", "boiled") + w_class = WEIGHT_CLASS_BULKY + +/obj/item/reagent_containers/cooking/deep_basket + name = "deep fryer basket" + desc = "Cwispy! Warranty void if used." + icon_state = "deepfryer_basket" + removal_penalty = 5 + materials = list(MAT_METAL = 1000) + var/frying = FALSE + +/obj/item/reagent_containers/cooking/deep_basket/add_to_visible(obj/our_item) + if(mini) + our_item.pixel_x = 1 + our_item.pixel_y = 0 + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.5 + vis_contents += our_item + else + our_item.pixel_x = 4 + our_item.pixel_y = 0 + our_item.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + our_item.blend_mode = BLEND_INSET_OVERLAY + our_item.transform *= 0.6 + vis_contents += our_item + +/obj/item/reagent_containers/cooking/deep_basket/update_overlays() + . = ..() + if(frying) + . += image(icon = icon, icon_state = "fryerbasket_on") + +/obj/item/reagent_containers/cooking/grill_grate + name = "grill grate" + desc = "Primarily used to grill meat, place this on a grill and enjoy an ancient human tradition." + icon_state = "grill_grate" + lip = null + materials = list(MAT_METAL = 750) + +/obj/item/reagent_containers/cooking/bowl + name = "prep bowl" + desc = "A bowl for mixing, or tossing a salad. Not to be eaten out of" + icon_state = "bowl" + materials = list(MAT_PLASTIC = 500) + removal_penalty = 2 + +/obj/item/reagent_containers/cooking/icecream_bowl + name = "freezing bowl" + desc = "A stainless steel bowl that fits into the ice cream mixer." + icon_state = "ice_cream_bowl" + materials = list(MAT_METAL = 750) + var/freezing_time = 0 + +/obj/item/reagent_containers/cooking/icecream_bowl/make_mini() + transform *= 0.8 + +/obj/item/reagent_containers/cooking/icecream_bowl/unmake_mini() + transform = null diff --git a/code/modules/cooking/cooking_recipe.dm b/code/modules/cooking/cooking_recipe.dm new file mode 100644 index 00000000000..0c513aac1a6 --- /dev/null +++ b/code/modules/cooking/cooking_recipe.dm @@ -0,0 +1,188 @@ +GLOBAL_LIST_EMPTY(pcwj_recipe_dictionary) +GLOBAL_LIST_EMPTY(pcwj_cookbook_lookup) + +/** + * ## ParaCooking With Jane + * + * A cooking rework ported from Sojourn and heavily adapted for Para. + * + * The recipe datum outlines a list of steps from getting a piece of food from + * point A to point B. + * + * Recipes have clear start and end points. They start with a particular item + * and end with a particular item. That said, a start item can follow multiple + * recipes until they eventually diverge as different steps are followed. In the + * case two recipes have identical steps, the user should be prompted on what + * their intended result should be. (Donuts vs Bagels) + * + * Recipes are loaded at startup. Food items reference it by the recipe_tracker + * datum. + * + * Recipes and their steps are singletons. Cooking processes should never alter + * them. +*/ +/datum/cooking/recipe + /// The type of the cooking container the recipe is performed in. + var/obj/item/reagent_containers/cooking/container_type + /// Type path for the product created by the recipe. + var/product_type + /// How much of a thing is made per case of the recipe being followed. + var/product_count = 1 + + // Special variables that must be defined INSTEAD of product_type in order to create reagents instead of an object. + var/reagent_id + var/reagent_amount + + /// Determines if we entirely replace the contents of the food product with the slurry that goes into it. + var/replace_reagents = FALSE + + /// Everything appears in the catalog by default. + var/appear_in_default_catalog = TRUE + /// The category of the recipe for the cookbook PDA app and other sources of recipe info. + var/catalog_category = "Miscellaneous" + + /// A list of [/datum/cooking/recipe_step]s needed to be followed + /// to create the recipe. Generally steps must be completed in order + /// for the preparation to be considered valid. + var/list/steps + +/datum/cooking/recipe/proc/create_product(datum/cooking/recipe_tracker/tracker) + var/obj/item/reagent_containers/cooking/container = locateUID(tracker.container_uid) + + if(!istype(container)) + log_debug("failure to find container when creating recipe product!") + return + + // Build up a list of reagents that went into this. + var/datum/reagents/slurry = new(maximum = 1000000) + slurry.my_atom = container + + var/list/applied_steps = tracker.recipes_all_applied_steps[src] + var/output_count = 1 + // Remember this is not necessarily a consecutive list of step indexes + // Optional steps may have been skipped + for(var/i in 1 to length(applied_steps)) + var/current_index = applied_steps[i] + var/datum/cooking/recipe_step/recipe_step = steps[current_index] + var/list/applied_step_data = tracker.recipes_applied_step_data[i] + + // Filter out reagents based on settings + var/datum/cooking/recipe_step/add_reagent/add_reagent_step = recipe_step + if(istype(add_reagent_step)) + var/amount_to_remove = add_reagent_step.amount * (1 - add_reagent_step.remain_percent) + if(!amount_to_remove) + continue + container.reagents.remove_reagent(add_reagent_step.reagent_id, amount_to_remove, safety = TRUE) + + if("rating" in applied_step_data) + output_count = max(output_count, min(3, applied_step_data["rating"])) + + if(product_type) // Make a regular item + . = make_product_item(container, slurry, applied_steps, output_count) + else + QDEL_LIST_CONTENTS(container.contents) + container.contents = list() + + container.reagents.clear_reagents() + + if(reagent_id) + container.reagents.add_reagent(reagent_id, reagent_amount) + + qdel(slurry) + +/datum/cooking/recipe/proc/make_product_item(obj/item/reagent_containers/cooking/container, datum/reagents/slurry, list/applied_steps, output_count = null) + if(isnull(output_count)) + output_count = 1 + + if(container.reagents.total_volume) + #ifdef PCWJ_DEBUG + log_debug("/recipe/proc/create_product: Transferring container reagents of [container.reagents.total_volume] to slurry of current volume [slurry.total_volume] max volume [slurry.maximum_volume]") + #endif + container.reagents.trans_to(slurry, amount=container.reagents.total_volume) + + // Do reagent filtering on added items and produce + var/list/exclude_list = list() + for(var/obj/item/added_item in container.contents) + var/can_add = TRUE + var/list/exclude_specific_reagents = list() + #ifdef PCWJ_DEBUG + log_debug("/recipe/proc/create_product: Analyzing reagents of [added_item].") + #endif + for(var/i in 1 to length(applied_steps)) + var/current_index = applied_steps[i] + var/datum/cooking/recipe_step = steps[current_index] + + if(recipe_step in exclude_list) + continue + + var/datum/cooking/recipe_step/add_item/add_item_step = recipe_step + if(istype(add_item_step)) + if(add_item_step.exclude_reagents) + exclude_specific_reagents |= add_item_step.exclude_reagents + if(add_item_step.skip_reagents) + can_add = FALSE + exclude_list |= recipe_step + break + + var/datum/cooking/recipe_step/add_produce/add_produce_step = recipe_step + if(istype(add_produce_step)) + if(add_produce_step.exclude_reagents) + exclude_specific_reagents |= add_produce_step.exclude_reagents + if(add_produce_step.skip_reagents) + can_add = FALSE + exclude_list |= recipe_step + break + + if(can_add && added_item.reagents) + if(length(exclude_specific_reagents)) + for(var/id in exclude_specific_reagents) + added_item.reagents.remove_reagent(id, added_item.reagents.get_reagent_amount(id), safety = TRUE) + added_item.reagents.trans_to(slurry, amount = added_item.reagents.total_volume) + + // Purge the contents of the container we no longer need it + QDEL_LIST_CONTENTS(container.contents) + + for(var/i in 1 to (product_count * output_count)) + var/obj/item/new_item = new product_type(container) + . = new_item + #ifdef PCWJ_DEBUG + log_debug("/recipe/proc/create_product: Item created with reagents of [new_item.reagents.total_volume]") + #endif + if(replace_reagents) + //Clearing out reagents in data. If initialize hasn't been called, we also null that out here. + #ifdef PCWJ_DEBUG + log_debug("/recipe/proc/create_product: Clearing out reagents from the [new_item]") + #endif + new_item.reagents.clear_reagents() + #ifdef PCWJ_DEBUG + log_debug("/recipe/proc/create_product: Transferring slurry of [slurry.total_volume] to [new_item] of total volume [new_item.reagents.total_volume]") + #endif + slurry.copy_to(new_item, amount=slurry.total_volume) + +/proc/initialize_cooking_recipes() + GLOB.pcwj_recipe_dictionary.Cut() + GLOB.pcwj_cookbook_lookup.Cut() + var/list/recipe_paths = subtypesof(/datum/cooking/recipe) + for(var/path in recipe_paths) + var/datum/cooking/recipe/example_recipe = new path() + if(!example_recipe.container_type) + continue + + var/obj/item/reagent_containers/cooking/container_type = example_recipe.container_type + + LAZYORASSOCLIST(GLOB.pcwj_recipe_dictionary, example_recipe.container_type, example_recipe) + + if(!example_recipe.appear_in_default_catalog) + continue + + if(example_recipe.product_type) + var/atom/product = example_recipe.product_type + + var/list/entry = list() + entry["name"] = product::name + entry["container"] = "[container_type::preposition] \a [container_type::name]" + entry["instructions"] = list() + for(var/datum/cooking/recipe_step/step in example_recipe.steps) + entry["instructions"] += step.get_pda_formatted_desc() + + LAZYORASSOCLIST(GLOB.pcwj_cookbook_lookup, example_recipe.catalog_category, list(entry)) diff --git a/code/modules/cooking/machines/cooking_machine.dm b/code/modules/cooking/machines/cooking_machine.dm new file mode 100644 index 00000000000..4dbc7f09b0b --- /dev/null +++ b/code/modules/cooking/machines/cooking_machine.dm @@ -0,0 +1,236 @@ +RESTRICT_TYPE(/obj/machinery/cooking) + +/obj/machinery/cooking + name = "Default Cooking Appliance" + desc = "You shouldn't be seeing this. Please report this as an issue on GitHub." + icon = 'icons/obj/cooking/machines.dmi' + density = TRUE + anchored = TRUE + layer = BELOW_OBJ_LAYER + idle_power_consumption = 5 + active_power_consumption = 100 + + var/cooking = FALSE + var/quality_mod = 1 + var/list/allowed_containers + var/list/surfaces = list() + +/obj/machinery/cooking/Destroy() + QDEL_LIST_CONTENTS(surfaces) + + return ..() + +/obj/machinery/cooking/process() + if(any_surface_active()) + makeSpeedProcess() + else + makeNormalProcess() + return + + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + surface.handle_cooking(null) + + use_power(active_power_consumption) + +/obj/machinery/cooking/proc/any_surface_active() + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + return TRUE + +// No AI or robot interactions with these, as that has all sorts of awful +// implications for how the containers and machines are interacted with. +/obj/machinery/cooking/attack_ai() + return + +/obj/machinery/cooking/attack_robot(mob/living/user) + return + +/obj/machinery/cooking/ShiftClick(mob/user, modifiers) + var/surface_idx = clickpos_to_surface(modifiers) + if(!surface_idx) + return ..() + + var/datum/cooking_surface/surface = surfaces[surface_idx] + if(surface.container) + return surface.container.ShiftClick(user, modifiers) + + return ..() + +/obj/machinery/cooking/RefreshParts() + . = ..() + var/man_rating = 0 + for(var/obj/item/stock_parts/stock_part in component_parts) + man_rating += stock_part.rating + quality_mod = round(man_rating / 2) + +/// Retrieve which burning surface on the machine is being accessed. +/obj/machinery/cooking/proc/clickpos_to_surface(modifiers) + return + +/obj/machinery/cooking/wrench_act(mob/living/user, obj/item/used) + return default_unfasten_wrench(user, used, time = 4 SECONDS) + +/obj/machinery/cooking/crowbar_act(mob/living/user, obj/item/used) + return default_deconstruction_crowbar(user, used) + +/obj/machinery/cooking/screwdriver_act(mob/living/user, obj/item/I) + . = TRUE + if(user.a_intent == INTENT_HELP) + panel_open = !panel_open + to_chat(user, "You screw [src]'s panel [panel_open ? "open" : "closed"].") + update_appearance() + if(panel_open) + machine_state_change() + return + if(!I.use_tool(src, user, 2.5 SECONDS, volume = I.tool_volume)) + return + +/obj/machinery/cooking/item_interaction(mob/living/user, obj/item/used, list/modifiers) + if(istype(used, /obj/item/storage/part_replacer) || istype(used, /obj/item/autochef_remote)) + return ..() + + var/input = clickpos_to_surface(modifiers) + if(input) + var/datum/cooking_surface/surface = surfaces[input] + return surface_item_interaction(user, used, surface) + + return ..() + +/obj/machinery/cooking/CtrlClick(mob/user, modifiers) + if(user.stat || user.restrained() || (!in_range(src, user)) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) + return + + if(!anchored) + return ..() + + var/surface_idx = clickpos_to_surface(modifiers) + if(!surface_idx) + return + var/datum/cooking_surface/surface = surfaces[surface_idx] + + var/list/surface_options = list( + RADIAL_ACTION_SET_ALARM = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_setalarm"), + RADIAL_ACTION_ON_OFF = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_onoff"), + ) + if(surface.allow_temp_change) + surface_options[RADIAL_ACTION_SET_TEMPERATURE] = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_settemp") + var/option_choice = show_radial_menu(user, src, surface_options, require_near = TRUE) + + switch(option_choice) + if(RADIAL_ACTION_SET_ALARM) + surface.handle_timer(user) + if(RADIAL_ACTION_SET_TEMPERATURE) + surface.handle_temperature(user) + if(RADIAL_ACTION_ON_OFF) + if(surface.handle_switch(user)) + makeSpeedProcess() + update_appearance() + +/obj/machinery/cooking/proc/surface_item_interaction(mob/living/user, obj/item/used, datum/cooking_surface/surface) + if(surface.container) + surface.container.item_interaction(user, used) + return ITEM_INTERACT_COMPLETE + + for(var/allowed_container_type in allowed_containers) + if(istype(used, allowed_container_type)) + if(ismob(user)) + to_chat(user, "You put [used] on [src].") + if(user.drop_item()) + used.forceMove(src) + else + used.forceMove(src) + + surface.container = used + surface.prob_quality_decrease = 0 + surface.RegisterSignal(used, COMSIG_PARENT_EXAMINE, TYPE_PROC_REF(/datum/cooking_surface, container_examine), override = TRUE) + if(surface.on) + surface.reset_cooktime() + + update_icon() + return ITEM_INTERACT_COMPLETE + +/// Empty the container on the surface if it exists. +/obj/machinery/cooking/AltClick(mob/user, modifiers) + if(user.stat || user.restrained() || (!in_range(src, user)) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) + return + + var/input = clickpos_to_surface(modifiers) + var/datum/cooking_surface/burner = surfaces[input] + if(!burner) + return + + var/obj/item/reagent_containers/cooking/container = burner.container + if(!(istype(container))) + return + + container.do_empty(user) + burner.unset_callbacks() + +/obj/machinery/cooking/proc/ignite() + new /obj/effect/fire(loc, T0C + 300, (roll("2d10+15") SECONDS), 1) + + // Chance of spreading + var/spread_count = rand(1, 3) + if(prob(30)) + var/list/dirs = GLOB.alldirs.Copy() + while(spread_count && length(dirs)) + var/direction = pick_n_take(dirs) + var/turf/T = get_step(src, direction) + if(T.density) + continue + new /obj/effect/fire(T, T0C + 300, (roll("2d10+15") SECONDS), 1) + spread_count-- + + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + surface.handle_switch() + + makeNormalProcess() + +/obj/machinery/cooking/proc/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + SHOULD_CALL_PARENT(FALSE) + return + +/obj/machinery/cooking/proc/remove_from_visible(obj/item/reagent_containers/cooking/container, input) + container.vis_flags = 0 + container.blend_mode = 0 + container.transform = null + container.appearance_flags &= PIXEL_SCALE + container.unmake_mini() + vis_contents.Remove(container) + +/obj/machinery/cooking/update_icon(updates) + cooking = FALSE + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + cooking = TRUE + + . = ..() + for(var/obj/item/our_item in vis_contents) + remove_from_visible(our_item) + + for(var/i in 1 to length(surfaces)) + update_surface_icon(i) + +/obj/machinery/cooking/update_overlays() + . = ..() + if(panel_open) + . += image(icon = icon, icon_state = "[icon_state]_openpanel") + +/obj/machinery/cooking/proc/update_surface_icon(surface_idx) + SHOULD_CALL_PARENT(FALSE) + return + +/obj/machinery/cooking/power_change() + . = ..() + if(stat & NOPOWER) + machine_state_change() + +/obj/machinery/cooking/proc/machine_state_change() + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + surface.turn_off() + var/obj/item/reagent_containers/cooking/container = surface.container + if(istype(container) && container.tracker) + SEND_SIGNAL(container, COMSIG_COOK_MACHINE_STEP_INTERRUPTED, surface) diff --git a/code/modules/cooking/machines/cooking_surface.dm b/code/modules/cooking/machines/cooking_surface.dm new file mode 100644 index 00000000000..a8aa1041f25 --- /dev/null +++ b/code/modules/cooking/machines/cooking_surface.dm @@ -0,0 +1,144 @@ +RESTRICT_TYPE(/datum/cooking_surface) + +/** + * Cooking surfaces are representations of the available "slots" on a cooking machine + * that can hold a cooking container. + */ +/datum/cooking_surface + var/surface_name = "surface" + var/cooker_id + var/obj/machinery/cooking/parent + var/temperature = J_LO + var/timer = 0 + var/cooktime + var/obj/item/reagent_containers/cooking/container + var/on = FALSE + var/prob_quality_decrease = 0 + var/allow_temp_change = TRUE + VAR_PRIVATE/burn_callback + VAR_PRIVATE/fire_callback + VAR_PRIVATE/alarm_callback + +/datum/cooking_surface/New(obj/machinery/cooking/parent_) + . = ..() + parent = parent_ + +/datum/cooking_surface/proc/container_examine(datum/source, mob/user, list/examine_list) + SIGNAL_HANDLER // COMSIG_PARENT_EXAMINE + examine_list += "[examine_text()]" + if(timer) + examine_list += "Its alarm is configured for [timer / (1 SECONDS)] seconds." + +/datum/cooking_surface/proc/examine_text() + return "This [surface_name] will cook at [temperature] temperature." + +/datum/cooking_surface/proc/handle_cooking(mob/user) + if(container) + if(isnull(container.get_cooker_time(cooker_id, temperature))) + reset_cooktime() + + #ifdef PCWJ_DEBUG + log_debug("timer=[timer] cooktime=[cooktime] stopwatch=[stop_watch(cooktime)]") + #endif + + container.set_cooker_data(src, stop_watch(cooktime) SECONDS) + var/process_result = container.process_item(user, parent) + if(process_result == PCWJ_COMPLETE) + SEND_SIGNAL(container, COMSIG_COOK_MACHINE_STEP_COMPLETE, src) + +/datum/cooking_surface/proc/handle_switch(mob/user) + playsound(parent, 'sound/items/lighter.ogg', 100, TRUE, 0) + if(on) + turn_off() + else + turn_on() + + parent.update_appearance(UPDATE_ICON) + return on + +/datum/cooking_surface/proc/set_burn_ignite_callbacks() + if(container) + var/burn_time = PCWJ_BURN_TIME_LOW + var/fire_time = PCWJ_IGNITE_TIME_LOW + switch(temperature) + if(J_MED) + burn_time = PCWJ_BURN_TIME_MEDIUM + fire_time = PCWJ_IGNITE_TIME_MEDIUM + if(J_HI) + burn_time = PCWJ_BURN_TIME_HIGH + fire_time = PCWJ_IGNITE_TIME_HIGH + + burn_callback = addtimer(CALLBACK(src, PROC_REF(handle_burn)), burn_time, TIMER_STOPPABLE) + fire_callback = addtimer(CALLBACK(src, PROC_REF(handle_fire)), fire_time, TIMER_STOPPABLE) + +/datum/cooking_surface/proc/turn_on(mob/user) + on = TRUE + set_burn_ignite_callbacks() + restart_timer() + reset_cooktime() + +/datum/cooking_surface/proc/restart_timer() + if(alarm_callback) + deltimer(alarm_callback) + if(timer) + alarm_callback = addtimer(CALLBACK(src, PROC_REF(handle_alarm)), timer, TIMER_STOPPABLE) + +/datum/cooking_surface/proc/turn_off(mob/user) + playsound(parent, 'sound/items/lighter.ogg', 100, TRUE, 0) + on = FALSE + unset_callbacks() + deltimer(alarm_callback) + cooktime = -1 + parent.update_appearance(UPDATE_ICON) + +/datum/cooking_surface/proc/handle_burn() + if(istype(container)) + container.handle_burning() + +/datum/cooking_surface/proc/handle_fire() + if(istype(container) && container.handle_ignition()) + parent.ignite() + +/datum/cooking_surface/proc/handle_alarm() + parent.atom_emote("dings.") + playsound(parent.loc, 'sound/machines/bell.ogg', 50, FALSE) + +/datum/cooking_surface/proc/unset_callbacks() + deltimer(burn_callback) + deltimer(fire_callback) + +/datum/cooking_surface/proc/handle_timer(mob/user) + var/old_time = timer ? timer / (1 SECONDS) : 1 + var/timer_input = tgui_input_number( + user, + message = "Enter an alarm for the burner in seconds. Enter zero to disable alarm.", + title = "Set Alarm", + default = old_time, + max_value = 60) + if(!isnull(timer_input)) + timer = timer_input SECONDS + if(on) + restart_timer() + + parent.update_appearance(UPDATE_ICON) + +/datum/cooking_surface/proc/handle_temperature(mob/user) + var/old_temp = temperature + var/choice = tgui_input_list( + user, + "Select a heat setting for the burner.\nCurrent temp: [old_temp]", + "Select Temperature", + items = list(J_HI, J_MED, J_LO, "Cancel"), + default = old_temp + ) + if(choice && choice != "Cancel" && choice != old_temp) + temperature = choice + if(on) + reset_cooktime() + handle_cooking(user) + +/datum/cooking_surface/proc/reset_cooktime() + cooktime = start_watch() + #ifdef PCWJ_DEBUG + log_debug("reset_cooktime") + #endif diff --git a/code/modules/cooking/machines/deep_fryer.dm b/code/modules/cooking/machines/deep_fryer.dm new file mode 100644 index 00000000000..0829aea9c7e --- /dev/null +++ b/code/modules/cooking/machines/deep_fryer.dm @@ -0,0 +1,133 @@ +/datum/cooking_surface/deepfryer_basin + cooker_id = COOKER_SURFACE_DEEPFRYER + allow_temp_change = FALSE + +// TODO: add back special attack for deep fryer for v2 +// Yes, that's a v2 thing, I'm not doing it right now +/obj/machinery/cooking/deepfryer + name = "deep fryer" + desc = "A deep fryer that can hold two baskets." + icon_state = "deep_fryer" + density = TRUE + anchored = TRUE + layer = BELOW_OBJ_LAYER + cooking = FALSE + allowed_containers = list( + /obj/item/reagent_containers/cooking/deep_basket, + ) + +/obj/machinery/cooking/deepfryer/Initialize(mapload) + . = ..() + + InitializeParts() + + for(var/i in 1 to 2) + surfaces += new/datum/cooking_surface/deepfryer_basin(src) + +/obj/machinery/cooking/deepfryer/proc/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/deep_fryer(null) + component_parts += new /obj/item/stack/cable_coil(null, 5) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/capacitor(null) + RefreshParts() + +/obj/machinery/cooking/deepfryer/examine(mob/user) + . = ..() + . += "Ctrl-Click on a basin to set its timer and toggle it on or off." + +#define ICON_SPLIT_X 16 +#define ICON_SPLIT_Y 16 + +/obj/machinery/cooking/deepfryer/clickpos_to_surface(modifiers) + var/icon_x = text2num(modifiers["icon-x"]) + var/icon_y = text2num(modifiers["icon-y"]) + if(icon_y <= ICON_SPLIT_Y) + return + + if(icon_x <= ICON_SPLIT_X) + return 1 + else if(icon_x > ICON_SPLIT_X) + return 2 + +#undef ICON_SPLIT_X +#undef ICON_SPLIT_Y + +/obj/machinery/cooking/deepfryer/attack_hand(mob/user, params) + var/input = clickpos_to_surface(params2list(params)) + if(!input) + return + + var/datum/cooking_surface/surface = surfaces[input] + if(surface && surface.container) + if(surface.on) + surface.handle_cooking(user) + var/mob/living/carbon/human/burn_victim = user + if(istype(burn_victim) && !burn_victim.gloves) + var/which_hand = "l_hand" + if(!burn_victim.hand) + which_hand = "r_hand" + + burn_victim.adjustFireLossByPart(20, which_hand) + to_chat(burn_victim, "You burn your hand a little taking [surface.container] off of [src].") + + user.put_in_hands(surface.container) + surface.UnregisterSignal(surface.container, COMSIG_PARENT_EXAMINE) + surface.container = null + update_appearance(UPDATE_ICON) + +/obj/machinery/cooking/deepfryer/update_overlays() + . = ..() + + for(var/i in 1 to length(surfaces)) + var/datum/cooking_surface/surface = surfaces[i] + if(!surface.container) + continue + +/obj/machinery/cooking/deepfryer/update_surface_icon(surface_idx) + var/datum/cooking_surface/surface = surfaces[surface_idx] + + if(!surface.container) + return + var/obj/item/reagent_containers/cooking/deep_basket/basket = surface.container + if(surface.on) + basket.frying = TRUE + basket.update_icon() + else + basket.frying = FALSE + basket.update_icon() + switch(surface_idx) + if(1) + basket.pixel_x = -6 + basket.pixel_y = 4 + if(2) + basket.pixel_x = 7 + basket.pixel_y = 4 + + add_to_visible(basket, surface_idx) + +/obj/machinery/cooking/deepfryer/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + container.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + container.make_mini() + vis_contents += container + +/obj/machinery/cooking/deepfryer/upgraded/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/deep_fryer(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/capacitor/super(null) + component_parts += new /obj/item/stack/cable_coil(null, 5) + RefreshParts() + +/obj/item/circuitboard/cooking/deep_fryer + board_name = "Deep Fryer" + build_path = /obj/machinery/cooking/deepfryer + board_type = "machine" + origin_tech = list(TECH_BIO = 1) + req_components = list( + /obj/item/stack/cable_coil = 5, + /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/capacitor = 1, + ) diff --git a/code/modules/cooking/machines/grill.dm b/code/modules/cooking/machines/grill.dm new file mode 100644 index 00000000000..2bea8148911 --- /dev/null +++ b/code/modules/cooking/machines/grill.dm @@ -0,0 +1,202 @@ +/datum/cooking_surface/grill_surface + cooker_id = COOKER_SURFACE_GRILL + +/datum/cooking_surface/grill_surface/handle_switch(mob/user) + var/obj/machinery/cooking/grill/grill = parent + if(!istype(grill)) + return + + if(!on) + if(grill.stored_wood <= 0) + to_chat(user, "There is no wood in the grill. Insert some planks first.") + return + + return ..() + +/obj/effect/grill_hopper + icon = 'icons/obj/cooking/machines.dmi' + icon_state = "blank" + vis_flags = VIS_INHERIT_ID + mouse_opacity = 0 + invisibility = 0 + +// TODO: add back special attack for grill for v2 +// Yes, that's a v2 thing, I'm not doing it right now +/obj/machinery/cooking/grill + name = "grill" + desc = "A deep pit of charcoal for cooking food. A slot on the side of the machine takes wood and converts it into charcoal." + icon_state = "grill" + density = FALSE + anchored = TRUE + layer = BELOW_OBJ_LAYER + pass_flags = PASSTABLE + interact_offline = TRUE + active_power_consumption = 50 // uses more wood than power + allowed_containers = list( + /obj/item/reagent_containers/cooking/grill_grate, + ) + + var/stored_wood = 0 + var/wood_maximum = 30 + var/wood_consumption_rate = 0.025 + var/obj/effect/grill_hopper/hopper_overlay + +/obj/machinery/cooking/grill/Initialize(mapload) + . = ..() + + hopper_overlay = new + vis_contents += hopper_overlay + InitializeParts() + + for(var/i in 1 to 2) + surfaces += new /datum/cooking_surface/grill_surface(src) + update_appearance() + +/obj/machinery/cooking/grill/proc/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/grill(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) + RefreshParts() + +/obj/machinery/cooking/grill/examine(mob/user) + . = ..() + . += "It contains [round(stored_wood, 0.01)]/[wood_maximum] units of charcoal." + . += "Ctrl-Click on a surface to set its timer, temperature, and toggle it on or off." + +/obj/machinery/cooking/grill/process() + . = ..() + + for(var/datum/cooking_surface/surface in surfaces) + if(surface.on) + if(!stored_wood) + SEND_SIGNAL(surface.container, COMSIG_COOK_GRILL_NO_FUEL) + surface.turn_off() + else + stored_wood = max(0, stored_wood - wood_consumption_rate) + +/obj/machinery/cooking/grill/RefreshParts() + . = ..() + + var/las_rating = 0 + for(var/obj/item/stock_parts/micro_laser/M in component_parts) + las_rating += M.rating + wood_consumption_rate = initial(wood_consumption_rate) / max(1, las_rating / 2) + + var/bin_rating = 0 + for(var/obj/item/stock_parts/matter_bin/M in component_parts) + bin_rating += M.rating + wood_maximum = 15 * bin_rating + +#define ICON_SPLIT_X 16 + +//Retrieve which half of the baking pan is being used. +/obj/machinery/cooking/grill/clickpos_to_surface(modifiers) + var/icon_x = text2num(modifiers["icon-x"]) + if(icon_x <= ICON_SPLIT_X) + return 1 + else if(icon_x > ICON_SPLIT_X) + return 2 + +#undef ICON_SPLIT_X + +/obj/machinery/cooking/grill/item_interaction(mob/living/user, obj/item/used, list/modifiers) + if(istype(used, /obj/item/stack/sheet/wood)) + var/obj/item/stack/sheet/wood/stack = used + var/used_sheets = min(stack.get_amount(), (wood_maximum - stored_wood)) + if(!used_sheets) + to_chat(user, "The grill's hopper is full.") + return ITEM_INTERACT_COMPLETE + to_chat(user, "You add [used_sheets] wood plank\s into [src]'s hopper.") + if(!stack.use(used_sheets)) + qdel(stack) // Protects against weirdness + stored_wood += used_sheets + + flick("wood_load", hopper_overlay) + return ITEM_INTERACT_COMPLETE + + return ..() + +/obj/machinery/cooking/grill/attack_hand(mob/user, params) + var/input = clickpos_to_surface(params2list(params)) + if(!input) + return + + var/datum/cooking_surface/surface = surfaces[input] + if(surface && surface.container) + if(surface.on) + surface.handle_cooking(user) + var/mob/living/carbon/human/burn_victim = user + if(istype(burn_victim) && !burn_victim.gloves) + var/which_hand = "l_hand" + if(!burn_victim.hand) + which_hand = "r_hand" + + switch(surface.temperature) + if(J_HI) + burn_victim.adjustFireLossByPart(5, which_hand) + if(J_MED) + burn_victim.adjustFireLossByPart(2, which_hand) + if(J_LO) + burn_victim.adjustFireLossByPart(1, which_hand) + + to_chat(burn_victim, "You burn your hand a little taking [surface.container] off of [src].") + + user.put_in_hands(surface.container) + surface.UnregisterSignal(surface.container, COMSIG_PARENT_EXAMINE) + surface.container = null + update_appearance(UPDATE_ICON) + +/obj/machinery/cooking/grill/update_surface_icon(surface_idx) + var/datum/cooking_surface/surface = surfaces[surface_idx] + + if(!surface.container) + return + + switch(surface_idx) + if(1) + surface.container.pixel_x = -7 + surface.container.pixel_y = 3 + if(2) + surface.container.pixel_x = 7 + surface.container.pixel_y = 3 + + add_to_visible(surface.container, surface_idx) + +/obj/machinery/cooking/grill/update_overlays() + . = ..() + for(var/i in 1 to length(surfaces)) + var/datum/cooking_surface/surface = surfaces[i] + if(surface.on) + . += image(icon, icon_state = "fire_[i]") + +/obj/machinery/cooking/grill/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + container.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + vis_contents += container + if(surface_idx == 2 || surface_idx == 4) + var/matrix/M = matrix() + M.Scale(-1, 1) + container.transform = M + + container.make_mini() + +/obj/machinery/cooking/grill/upgraded/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/grill(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/matter_bin/super(null) + component_parts += new /obj/item/stock_parts/matter_bin/super(null) + RefreshParts() + +/obj/item/circuitboard/grill + board_name = "Charcoal Grill" + build_path = /obj/machinery/cooking/grill + board_type = "machine" + origin_tech = list(TECH_BIO = 1) + req_components = list( + /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/matter_bin = 2, + ) diff --git a/code/modules/cooking/machines/ice_cream_mixer.dm b/code/modules/cooking/machines/ice_cream_mixer.dm new file mode 100644 index 00000000000..a3e7821871c --- /dev/null +++ b/code/modules/cooking/machines/ice_cream_mixer.dm @@ -0,0 +1,87 @@ +/datum/cooking_surface/ice_cream_mixer + cooker_id = COOKER_SURFACE_ICE_CREAM_MIXER + allow_temp_change = FALSE + +/obj/machinery/cooking/ice_cream_mixer + name = "ice cream mixer" + desc = "An industrial mixing device for desserts of all kinds." + icon_state = "ice_cream_mixer" + active_power_consumption = 200 + allowed_containers = list( + /obj/item/reagent_containers/cooking/icecream_bowl, + /obj/item/reagent_containers/cooking/mould, + ) + +/obj/machinery/cooking/ice_cream_mixer/Initialize(mapload) + . = ..() + InitializeParts() + surfaces += new /datum/cooking_surface/ice_cream_mixer(src) + update_icon() + +/obj/machinery/cooking/ice_cream_mixer/proc/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/ice_cream_mixer(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/capacitor(null) + RefreshParts() + +/obj/machinery/cooking/ice_cream_mixer/examine(mob/user) + . = ..() + . += "Ctrl-Click to set its timer and toggle it on or off." + +/obj/machinery/cooking/ice_cream_mixer/clickpos_to_surface(modifiers) + return 1 + +/obj/machinery/cooking/ice_cream_mixer/attack_hand(mob/user) + var/datum/cooking_surface/surface = surfaces[1] + if(!surface.container) + return + + if(surface.on) + to_chat(user, "\The [src] must be off to retrieve its contents.") + return + + user.put_in_hands(surface.container) + surface.UnregisterSignal(surface.container, COMSIG_PARENT_EXAMINE) + surface.container = null + update_appearance(UPDATE_ICON) + +/obj/machinery/cooking/ice_cream_mixer/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + container.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + container.make_mini() + vis_contents += container + +/obj/machinery/cooking/ice_cream_mixer/update_surface_icon(surface_idx) + var/datum/cooking_surface/surface = surfaces[1] + if(surface.container) + surface.container.pixel_x = 0 + surface.container.pixel_y = 2 + add_to_visible(surface.container, surface_idx) + +/obj/machinery/cooking/ice_cream_mixer/update_overlays() + . = ..() + var/datum/cooking_surface/surface = surfaces[1] + if(surface.on) + . += image(icon = icon, icon_state = "ice_cream_mixer_door", layer = ABOVE_OBJ_LAYER) + . += image(icon = icon, icon_state = "ice_cream_mixer_on") + else + . += image(icon = icon, icon_state = "ice_cream_mixer_door_open", layer = ABOVE_OBJ_LAYER) + +/obj/machinery/cooking/ice_cream_mixer/upgraded/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/ice_cream_mixer(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/capacitor/super(null) + RefreshParts() + +/obj/item/circuitboard/cooking/ice_cream_mixer + board_name = "Ice Cream Mixer" + build_path = /obj/machinery/cooking/ice_cream_mixer + board_type = "machine" + origin_tech = list(TECH_BIO = 1) + req_components = list( + /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/capacitor = 1, + ) diff --git a/code/modules/cooking/machines/oven.dm b/code/modules/cooking/machines/oven.dm new file mode 100644 index 00000000000..cb7249c0d93 --- /dev/null +++ b/code/modules/cooking/machines/oven.dm @@ -0,0 +1,166 @@ +/datum/cooking_surface/oven + cooker_id = COOKER_SURFACE_OVEN + +/datum/cooking_surface/oven/handle_switch(mob/user) + var/obj/machinery/cooking/oven/oven = parent + if(istype(oven)) + if(!on && oven.opened) + to_chat(user, "The oven must be closed in order to turn it on.") + return + + return ..() + +// TODO: add back special attack for oven for v2 +// Yes, that's a v2 thing, I'm not doing it right now +/obj/machinery/cooking/oven + name = "oven" + desc = "A cozy oven for baking food." + icon_state = "oven" + density = TRUE + anchored = TRUE + layer = BELOW_OBJ_LAYER + cooking = FALSE + var/opened = FALSE + + var/on_fire = FALSE //if the oven has caught fire or not. + allowed_containers = list( + /obj/item/reagent_containers/cooking/oven + ) + +/obj/machinery/cooking/oven/Initialize(mapload) + . = ..() + + InitializeParts() + surfaces += new /datum/cooking_surface/oven(src) + update_appearance() + +/obj/machinery/cooking/oven/proc/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/oven(null) + component_parts += new /obj/item/stack/cable_coil(null, 5) + component_parts += new /obj/item/stack/sheet/glass(null) + component_parts += new /obj/item/stock_parts/capacitor(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + + RefreshParts() + +/obj/machinery/cooking/oven/examine(mob/user) + . = ..() + . += "Ctrl-Click to set its timer, temperature, and toggle it on or off." + +/obj/machinery/cooking/oven/RefreshParts() + ..() + + var/las_rating = 0 + for(var/obj/item/stock_parts/micro_laser/M in component_parts) + las_rating += M.rating + +/obj/machinery/cooking/oven/item_interaction(mob/living/user, obj/item/used, list/modifiers) + if(istype(used, /obj/item/storage/part_replacer) || istype(used, /obj/item/autochef_remote)) + return ..() + + if(!opened) + handle_open(user) + update_icon() + return ITEM_INTERACT_COMPLETE + + return ..() + +/obj/machinery/cooking/oven/attack_hand(mob/user as mob, params) + var/input = clickpos_to_surface(params2list(params)) + + // If we didn't click on the door, toggle it. + if(!input) + handle_open(user) + return + + var/datum/cooking_surface/surface = surfaces[input] + if(surface && surface.container && opened) + user.put_in_hands(surface.container) + surface.UnregisterSignal(surface.container, COMSIG_PARENT_EXAMINE) + surface.container = null + update_appearance(UPDATE_ICON) + else + handle_open(user) + +/obj/machinery/cooking/oven/AltClick(mob/user, params) + if(user.stat || user.restrained() || (!in_range(src, user))) + return + + if(!opened) + to_chat(user, "The oven must be open to retrieve the food.") + return + + return ..() + +/obj/machinery/cooking/oven/proc/handle_open(mob/user) + if(opened) + opened = FALSE + else + opened = TRUE + var/datum/cooking_surface/surface = surfaces[1] + if(surface.on) + surface.handle_switch(user) + makeNormalProcess() + + update_appearance() + +#define ICON_SPLIT_X_1 5 +#define ICON_SPLIT_X_2 28 +#define ICON_SPLIT_Y_1 5 +#define ICON_SPLIT_Y_2 20 + +/obj/machinery/cooking/oven/clickpos_to_surface(modifiers) + var/icon_x = text2num(modifiers["icon-x"]) + var/icon_y = text2num(modifiers["icon-y"]) + if(icon_x >= ICON_SPLIT_X_1 && icon_x <= ICON_SPLIT_X_2 && icon_y >= ICON_SPLIT_Y_1 && icon_y <= ICON_SPLIT_Y_2) + return 1 + +#undef ICON_SPLIT_X_1 +#undef ICON_SPLIT_X_2 +#undef ICON_SPLIT_Y_1 +#undef ICON_SPLIT_Y_2 + +/obj/machinery/cooking/oven/update_surface_icon(surface_idx) + var/datum/cooking_surface/surface = surfaces[1] + if(surface.container) + surface.container.pixel_x = 0 + surface.container.pixel_y = -2 + add_to_visible(surface.container) + +/obj/machinery/cooking/oven/update_overlays() + . = ..() + if(opened) + . += image(icon, icon_state = "oven_hatch_open", layer = ABOVE_OBJ_LAYER) + else + var/datum/cooking_surface/surface = surfaces[1] + . += image(icon, icon_state = "oven_hatch[surface.on ? "_on" : ""]", layer = ABOVE_OBJ_LAYER) + +/obj/machinery/cooking/oven/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + container.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + container.make_mini() + vis_contents += container + +/obj/machinery/cooking/oven/upgraded/InitializeParts() + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/oven(null) + component_parts += new /obj/item/stack/cable_coil(null, 5) + component_parts += new /obj/item/stack/sheet/glass(null) + component_parts += new /obj/item/stock_parts/capacitor/super(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) + + RefreshParts() + +/obj/item/circuitboard/cooking/oven + board_name = "Convection Oven" + build_path = /obj/machinery/cooking/oven + board_type = "machine" + origin_tech = list(TECH_BIO = 1) + req_components = list( + /obj/item/stack/cable_coil = 5, + /obj/item/stack/sheet/glass = 1, + /obj/item/stock_parts/capacitor = 1, + /obj/item/stock_parts/micro_laser = 2, + ) diff --git a/code/modules/cooking/machines/stovetop.dm b/code/modules/cooking/machines/stovetop.dm new file mode 100644 index 00000000000..6735eccf32b --- /dev/null +++ b/code/modules/cooking/machines/stovetop.dm @@ -0,0 +1,133 @@ +/datum/cooking_surface/stovetop_burner + surface_name = "burner" + cooker_id = COOKER_SURFACE_STOVE + +/obj/machinery/cooking/stovetop + name = "stovetop" + desc = "An electric stovetop with four burners." + icon_state = "stove" + density = FALSE + anchored = TRUE + layer = BELOW_OBJ_LAYER + cooking = FALSE + pass_flags = PASSTABLE + allowed_containers = list( + /obj/item/reagent_containers/cooking/pot, + /obj/item/reagent_containers/cooking/pan, + ) + +/obj/machinery/cooking/stovetop/Initialize(mapload) + . = ..() + + component_parts = list() + component_parts += new /obj/item/circuitboard/cooking/stove(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stock_parts/capacitor(null) + + for(var/i in 1 to 4) + surfaces += new/datum/cooking_surface/stovetop_burner(src) + + RefreshParts() + +/obj/machinery/cooking/stovetop/examine(mob/user) + . = ..() + . += "Ctrl-Click on a burner to set its timer, temperature, and toggle it on or off." + +#define ICON_SPLIT_X 16 +#define ICON_SPLIT_Y 21 + +/obj/machinery/cooking/stovetop/clickpos_to_surface(modifiers) + var/icon_x = text2num(modifiers["icon-x"]) + var/icon_y = text2num(modifiers["icon-y"]) + if(icon_x <= ICON_SPLIT_X && icon_y <= ICON_SPLIT_Y) + return 1 + else if(icon_x > ICON_SPLIT_X && icon_y <= ICON_SPLIT_Y) + return 2 + else if(icon_x <= ICON_SPLIT_X && icon_y > ICON_SPLIT_Y) + return 3 + else if(icon_x > ICON_SPLIT_X && icon_y > ICON_SPLIT_Y) + return 4 + +#undef ICON_SPLIT_X +#undef ICON_SPLIT_Y + +/obj/machinery/cooking/stovetop/attack_hand(mob/user, params) + var/input = clickpos_to_surface(params2list(params)) + if(!input) + return + + var/datum/cooking_surface/burner = surfaces[input] + if(burner && burner.container) + if(burner.on) + SEND_SIGNAL(burner.container, COMSIG_COOK_MACHINE_STEP_INTERRUPTED, burner) + var/mob/living/carbon/human/burn_victim = user + if(istype(burn_victim) && !burn_victim.gloves) + var/which_hand = "l_hand" + if(!burn_victim.hand) + which_hand = "r_hand" + switch(burner.temperature) + if(J_HI) + burn_victim.adjustFireLossByPart(5, which_hand) + if(J_MED) + burn_victim.adjustFireLossByPart(2, which_hand) + if(J_LO) + burn_victim.adjustFireLossByPart(1, which_hand) + + to_chat(burn_victim, "You burn your hand a little taking [burner.container] off of the stove.") + user.put_in_hands(burner.container) + burner.UnregisterSignal(burner.container, COMSIG_PARENT_EXAMINE) + burner.container = null + update_appearance(UPDATE_ICON) + +/obj/machinery/cooking/stovetop/update_surface_icon(surface_idx) + var/datum/cooking_surface/surface = surfaces[surface_idx] + + if(!surface.container) + return + switch(surface_idx) + if(1) + surface.container.pixel_x = -7 + surface.container.pixel_y = 1 + if(2) + surface.container.pixel_x = 7 + surface.container.pixel_y = 1 + if(3) + surface.container.pixel_x = -7 + surface.container.pixel_y = 12 + if(4) + surface.container.pixel_x = 7 + surface.container.pixel_y = 12 + add_to_visible(surface.container, surface_idx) + +/obj/machinery/cooking/stovetop/update_overlays() + . = ..() + + if(cooking) + . += image(icon, icon_state = "indicator") + + for(var/i in 1 to length(surfaces)) + var/datum/cooking_surface/surface = surfaces[i] + if(surface.on) + . += image(icon, icon_state = "burner_[i]") + if(surface.container) + . += image(icon, icon_state="steam_[i]", layer = ABOVE_OBJ_LAYER) + +/obj/machinery/cooking/stovetop/add_to_visible(obj/item/reagent_containers/cooking/container, surface_idx) + container.vis_flags = VIS_INHERIT_LAYER | VIS_INHERIT_PLANE | VIS_INHERIT_ID + container.make_mini() + vis_contents += container + if(surface_idx == 2 || surface_idx == 4) + var/matrix/M = matrix() + M.Scale(-1, 1) + container.transform = M + +/obj/item/circuitboard/cooking/stove + board_name = "Stovetop" + build_path = /obj/machinery/cooking/stovetop + board_type = "machine" + origin_tech = list(TECH_BIO = 1) + req_components = list( + /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/capacitor = 1, + ) diff --git a/code/modules/cooking/recipe_tracker.dm b/code/modules/cooking/recipe_tracker.dm new file mode 100644 index 00000000000..e6dd4237070 --- /dev/null +++ b/code/modules/cooking/recipe_tracker.dm @@ -0,0 +1,152 @@ +/// A recipe tracker is an abstract representation of the progress that a +/// cooking container has made towards any of its possible recipe outcomes. +/// +/// When items are added/steps are performed on a cooking container, the tracker +/// is responsible for determining what known recipes are possible after the +/// step occurs, and tracking whether or not the step was successful. Once a +/// step has been performed that ends a recipe and is successful, the tracker +/// coordinates with the winning recipe to create the result, using what it +/// knows about the steps performed to choose the quality and other attributes +/// of the output. +/datum/cooking/recipe_tracker + /// The parent object holding the recipe tracker. + var/container_uid + /// Tells if steps have been taken for this recipe. + var/recipe_started = FALSE + /// A list of recipe types to the index of the latest step we know we've + /// gotten to. + var/list/recipes_last_completed_step = list() + /// A list of recipe types to list of step indices we know we've performed. + /// Ensures we don't perform e.g. optional steps we skipped on completion. + var/list/recipes_all_applied_steps = list() + /// A list of recipe types to metadata returned from completing its steps. + /// This may include things like a custom message shown to the player, or + /// the UID of relevant items used for determining quality at recipe + /// completion. + var/list/recipes_applied_step_data = list() + var/step_reaction_message + +/datum/cooking/recipe_tracker/New(obj/item/reagent_containers/cooking/container) + container_uid = container.UID() + +/datum/cooking/recipe_tracker/Destroy(force, ...) + // Not QDEL_LIST_CONTENTS because there's references to the global recipe + // singletons. + recipes_last_completed_step.Cut() + recipes_all_applied_steps.Cut() + recipes_applied_step_data.Cut() + + return ..() + +/// Wrapper function for analyzing process_item internally. +/datum/cooking/recipe_tracker/proc/process_item_wrap(mob/user, obj/used) + #ifdef PCWJ_DEBUG + log_debug("/datum/cooking/recipe_tracker/proc/process_item_wrap called!") + #endif + + var/response = process_item(user, used) + if(response == PCWJ_SUCCESS || response == PCWJ_COMPLETE || response == PCWJ_PARTIAL_SUCCESS) + if(!recipe_started) + recipe_started = TRUE + return response + +/// Core function that checks if a object meets all the requirements for certain +/// recipe actions. +/datum/cooking/recipe_tracker/proc/process_item(mob/user, obj/used) + // TODO: I *hate* passing in a user here and want to move all the necessary + // UI interactions (selecting which recipe to complete, selecting which step + // to perform) to be moved somewhere else entirely. + var/list/valid_steps = list() + var/list/valid_recipes = list() + var/list/completed_recipes = list() + var/list/silent_recipes = list() + var/list/attempted_step_per_recipe = list() + var/datum/cooking/recipe_step/use_step_type + + + for(var/datum/cooking/recipe/recipe in recipes_last_completed_step) + var/current_idx = recipes_last_completed_step[recipe] + var/datum/cooking/recipe_step/next_step + + var/match = FALSE + do + next_step = recipe.steps[++current_idx] + var/conditions = next_step.check_conditions_met(used, src) + if(conditions == PCWJ_CHECK_VALID) + LAZYADD(valid_steps[next_step], next_step) + LAZYADD(valid_recipes[next_step.type], recipe) + attempted_step_per_recipe[recipe] = current_idx + if(!use_step_type) + use_step_type = next_step.type + match = TRUE + break + else if(conditions == PCWJ_CHECK_SILENT) + LAZYADD(silent_recipes, recipe) + while(next_step && next_step.optional && current_idx <= length(recipe.steps)) + + if(match) + LAZYOR(recipes_all_applied_steps[recipe], current_idx) + if(length(recipe.steps) == current_idx) + completed_recipes |= recipe + + if(!length(valid_steps)) + if(length(silent_recipes)) + return PCWJ_PARTIAL_SUCCESS + return PCWJ_NO_STEPS + + var/datum/cooking/recipe_step/sample_step = valid_steps[1] + var/step_data = sample_step.follow_step(used, src) + step_reaction_message = step_data["message"] + var/complete_steps = 0 + for(var/i in 1 to length(valid_recipes[use_step_type])) + var/datum/cooking/recipe/recipe = valid_recipes[use_step_type][i] + var/datum/cooking/recipe_step/recipe_step = valid_steps[i] + if(recipe_step.is_complete(used, src, step_data)) + recipes_last_completed_step[recipe] = attempted_step_per_recipe[recipe] + complete_steps++ + + var/obj/item/reagent_containers/cooking/container = locateUID(container_uid) + if(complete_steps) + recipes_applied_step_data += list(step_data) + + // Empty out the stove data here so that it can be reused from zero for + // other cooking steps, as well as to prevent cheatiness where a recipe + // gets all of its cooking time done before it was supposed to in the + // recipe order + if(container) + container.clear_cooking_data() + + if("signal" in step_data) + SEND_SIGNAL(container, step_data["signal"]) + else + return PCWJ_PARTIAL_SUCCESS + + for(var/datum/cooking/recipe in recipes_last_completed_step) + if(!(recipe in valid_recipes[sample_step.type])) + recipes_last_completed_step -= recipe + + var/datum/cooking/recipe/recipe_to_complete + if(length(completed_recipes)) + if(length(completed_recipes) == 1) + recipe_to_complete = completed_recipes[1] + else if(length(completed_recipes) > 1) + var/list/types = list() + for(var/datum/cooking/recipe/recipe in completed_recipes) + types += "[recipe.type]" + log_debug("More than one valid recipe completion at the same step, this shouldn't happen. Valid recipes: [jointext(types, ", ")]") + recipe_to_complete = completed_recipes[1] + + if(recipe_to_complete) + var/result = recipe_to_complete.create_product(src) + if(!container) + return PCWJ_COMPLETE + + if(user && user.Adjacent(container)) + if(result) + to_chat(user, "You have completed \a [result]!") + else + log_debug("failure to create result for recipe tracker") + + return PCWJ_COMPLETE + + return PCWJ_SUCCESS diff --git a/code/modules/cooking/recipes/cutting_board_recipes.dm b/code/modules/cooking/recipes/cutting_board_recipes.dm new file mode 100644 index 00000000000..09f2bc66f3f --- /dev/null +++ b/code/modules/cooking/recipes/cutting_board_recipes.dm @@ -0,0 +1,513 @@ +/datum/cooking/recipe/appendixburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/appendix + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/organ/internal/appendix), + ) + +/datum/cooking/recipe/appendixburger_bitten + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/appendix + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/appendix), + ) + appear_in_default_catalog = FALSE + +/datum/cooking/recipe/baconburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/bacon + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + ) + +/datum/cooking/recipe/baseballburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/baseball + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/melee/baseball_bat), + ) + +/datum/cooking/recipe/bearger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/bearger + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/bearmeat), + ) + +/datum/cooking/recipe/bigbiteburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/bigbite + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/burger/plain), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + ) + +/datum/cooking/recipe/brainburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/brain + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/organ/internal/brain), + ) + +/datum/cooking/recipe/cheeseburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/cheese + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + ) + +/datum/cooking/recipe/chickenburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/chicken + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/chicken), + ) + +/datum/cooking/recipe/clownburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/clown + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/clothing/mask/gas/clown_hat), + ) + +/datum/cooking/recipe/crazyburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/crazy + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/toy/crayon/green), + PCWJ_ADD_ITEM(/obj/item/flashlight/flare), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_REAGENT("cornoil", 15), + ) + +/datum/cooking/recipe/elecburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/elec + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/stack/sheet/mineral/plasma), + PCWJ_ADD_ITEM(/obj/item/stack/sheet/mineral/plasma), + ) + +/datum/cooking/recipe/fishburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/fishburger + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + ) + +/datum/cooking/recipe/fivealarmburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/fivealarm + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ghost_chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ghost_chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + ) + +/datum/cooking/recipe/ghostburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ghost + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/ectoplasm), + ) + +/datum/cooking/recipe/hamborger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/hamborger + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/robot_parts/head), + ) + +/datum/cooking/recipe/hotdog + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/hotdog + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/sausage), + ) + +/datum/cooking/recipe/jellyburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_REAGENT("cherryjelly", 5), + ) + +/datum/cooking/recipe/mcguffin + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/mcguffin + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_ITEM(/obj/item/food/friedegg), + ) + +/datum/cooking/recipe/mcrib + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/mcrib + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/bbqribs), + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice), + ) + +/datum/cooking/recipe/mimeburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/mime + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/clothing/head/beret), + ) + +/datum/cooking/recipe/plainburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/plain + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + ) + +/datum/cooking/recipe/ppattyblue + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/blue + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("berryjuice", 5), + ) + +/datum/cooking/recipe/ppattygreen + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/green + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("limejuice", 5), + ) + +/datum/cooking/recipe/ppattyorange + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/orange + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("orangejuice", 5), + ) + +/datum/cooking/recipe/ppattypurple + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/purple + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("grapejuice", 5), + ) + +/datum/cooking/recipe/ppattyrainbow + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/rainbow + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/red), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/orange), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/yellow), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/green), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/blue), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/purple), + PCWJ_ADD_ITEM(/obj/item/food/burger/ppatty/white), + ) + +/datum/cooking/recipe/ppattyred + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/red + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("cherryjelly", 5), + ) + +/datum/cooking/recipe/ppattywhite + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/white + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("sugar", 5), + ) + +/datum/cooking/recipe/ppattyyellow + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/ppatty/yellow + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_REAGENT("lemonjuice", 5), + ) + +/datum/cooking/recipe/ratburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/rat + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/holder/mouse), + ) + +/datum/cooking/recipe/slimeburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/jelly/slime + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_REAGENT("slimejelly", 5), + ) + +/datum/cooking/recipe/spellburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/spell + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/clothing/head/wizard), + ) + +/datum/cooking/recipe/superbiteburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/superbite + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/burger/bigbite), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/meat/patty), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_ITEM(/obj/item/food/sliced/tomato), + PCWJ_ADD_REAGENT("sodiumchloride", 5), + PCWJ_ADD_REAGENT("blackpepper", 5), + ) + +/datum/cooking/recipe/tofuburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/tofu + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + ) + +/datum/cooking/recipe/xenoburger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burger/xeno + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + ) + +/datum/cooking/recipe/cherrysandwich + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/jellysandwich/cherry + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("cherryjelly", 5), + ) + +/datum/cooking/recipe/slimesandwich + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/jellysandwich/slime + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/twobread + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/twobread + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("wine", 5), + ) + +/datum/cooking/recipe/wrap + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/wrap + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/friedegg), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_REAGENT("soysauce", 10), + ) + +/datum/cooking/recipe/sandwich + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/sandwich + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/meatsteak), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/philly_cheesesteak + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/philly_cheesesteak + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/pbj_cherry + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/peanut_butter_jelly/cherry + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("peanutbutter", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/slime + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/peanut_butter_jelly/slime + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("peanutbutter", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/peanut_butter_banana + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/peanut_butter_banana + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("peanutbutter", 5), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/notasandwich + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/notasandwich + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/clothing/mask/fakemoustache), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) + +/datum/cooking/recipe/jelliedtoast + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/jelliedtoast/cherry + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_REAGENT("cherryjelly", 5), + ) + +/datum/cooking/recipe/human_burger + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/human/burger + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bun), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_ITEM(/obj/item/food/meat/human), + ) + appear_in_default_catalog = FALSE + +/datum/cooking/recipe/burrito + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/burrito + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/tortilla), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/beans), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_REAGENT("capsaicin", 5), + PCWJ_ADD_REAGENT("rice", 5), + ) + +/datum/cooking/recipe/blt + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/blt + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_ITEM(/obj/item/food/sliced/tomato), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + ) diff --git a/code/modules/cooking/recipes/deep_fryer_recipes.dm b/code/modules/cooking/recipes/deep_fryer_recipes.dm new file mode 100644 index 00000000000..1a063246b07 --- /dev/null +++ b/code/modules/cooking/recipes/deep_fryer_recipes.dm @@ -0,0 +1,506 @@ +/datum/cooking/recipe/apple_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/apple + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("applejuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/apple_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/apple/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("applejuice", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherryapple_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/apple/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("applejuice", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/apple_slime_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/apple/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("applejuice", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/blumpkin_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/blumpkin + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("blumpkinjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_blumpkin_berry_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/blumpkin/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("blumpkinjuice", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_blumpkin + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/blumpkin/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("blumpkinjuice", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_blumpkin_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/blumpkin/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("blumpkinjuice", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/bungo_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/bungo + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("bungojuice", 5), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_bungo_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/bungo/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("bungojuice", 5), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_bungo_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/bungo/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("bungojuice", 5), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_bungo_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/bungo/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("bungojuice", 5), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/caramel_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/caramel + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_caramel_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/caramel/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_caramel_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/caramel/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_caramel_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/caramel/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/chaosdonut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/chaos + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_ADD_REAGENT("capsaicin", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/chocolate_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/chocolate + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_choco_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/chocolate/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_choco_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/chocolate/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_chocolate_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/chocolate/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/sprinkles + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/sprinkles + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("sprinkles", 2), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jellydonut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/jelly/cherryjelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slimejelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/jelly/slimejelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/matcha_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/matcha + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("teapowder", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_matcha_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/matcha/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("teapowder", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_matcha_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/matcha/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("teapowder", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_matcha_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/matcha/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("teapowder", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/meat_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/meat + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_REAGENT("ketchup", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/pink_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/pink + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/pink_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/pink/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/pink_cherry_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/pink/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/pink_slime_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/pink/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/spaceman_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/spaceman + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/jelly_spaceman_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/spaceman/jelly + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/cherry_spaceman_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/spaceman/jelly/cherry + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/slime_spaceman_jelly_donut + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/donut/spaceman/jelly/slime + catalog_category = COOKBOOK_CATEGORY_DONUTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/donut, exact = TRUE), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_DEEP_FRYER(20 SECONDS), + ) + +/datum/cooking/recipe/deepfryer_friedbanana + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/friedbanana + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/carrotfries + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/carrotfries + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot/wedges), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/chimichanga + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/chimichanga + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/burrito), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/corn_chips + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/cornchips + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/fried_tofu + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/fried_tofu + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/fries + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/fries + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/rawsticks), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/onionrings + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/onionrings + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/potato_chips + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/chips + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/wedges), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + +/datum/cooking/recipe/shrimp + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/fried_shrimp + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + diff --git a/code/modules/cooking/recipes/grill_recipes.dm b/code/modules/cooking/recipes/grill_recipes.dm new file mode 100644 index 00000000000..616d6c2df54 --- /dev/null +++ b/code/modules/cooking/recipes/grill_recipes.dm @@ -0,0 +1,286 @@ +/datum/cooking/recipe/bacon + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/bacon + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/raw_bacon), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/bbqribs + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/bbqribs + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_REAGENT("bbqsauce", 5), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/birdsteak + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meatsteak/chicken + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/chicken), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/cutlet + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/cutlet + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/rawcutlet), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/fish_skewer + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/fish_skewer + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/fishfingers + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/fishfingers + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/goliath + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/goliath_steak + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/goliath), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/grilledcheese + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/grilledcheese + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/human_kebab + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/human/kebab + steps = list( + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_ITEM(/obj/item/food/meat/human), + PCWJ_ADD_ITEM(/obj/item/food/meat/human), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + appear_in_default_catalog = FALSE + +/datum/cooking/recipe/meatkeb + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meatkebab + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/meatsteak + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meatsteak + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/omelette + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/omelette + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_GRILL(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/picoss_kebab + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/picoss_kebab + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_REAGENT("vinegar", 5), + PCWJ_USE_GRILL(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/rofflewaffles + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/rofflewaffles + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("psilocybin", 5), + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/salmonsteak + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/salmonsteak + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/sausage + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/sausage + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/shrimp_skewer + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/shrimp_skewer + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_USE_GRILL(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/sushi_tamago + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/sliced/sushi_tamago + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + PCWJ_ADD_REAGENT("sake", 5), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/sushi_unagi + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/sushi_unagi + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/fish/electric_eel), + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + PCWJ_ADD_REAGENT("sake", 5), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/syntikebab + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/syntikebab + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/syntisteak + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meatsteak + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/syntitelebacon + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/telebacon + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_ITEM(/obj/item/assembly/signaler), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/telebacon + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/telebacon + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/assembly/signaler), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/tofukebab + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/tofukebab + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/stack/rods), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/waffles + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/waffles + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/wingfangchu + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/wingfangchu + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + PCWJ_ADD_REAGENT("soysauce", 5), + PCWJ_USE_GRILL(J_MED, 10 SECONDS), + ) + diff --git a/code/modules/cooking/recipes/ice_cream_mixer_recipes.dm b/code/modules/cooking/recipes/ice_cream_mixer_recipes.dm new file mode 100644 index 00000000000..ee672136cef --- /dev/null +++ b/code/modules/cooking/recipes/ice_cream_mixer_recipes.dm @@ -0,0 +1,872 @@ +/datum/cooking/recipe/antpopsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/ant + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("ants", 10), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/bananatopsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/bananatop + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("banana", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/berrycreamsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/berrycream + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_ADD_REAGENT("berryjuice", 4), + PCWJ_ADD_REAGENT("ice", 2), + PCWJ_ADD_REAGENT("vanilla", 2), + PCWJ_ADD_REAGENT("cream", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/berryicecreamsandwich + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/berryicecreamsandwich + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/wafflecone), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_REAGENT("ice", 5), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/berrytopsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/berrytop + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cornuto + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/cornuto + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("ice", 2), + PCWJ_ADD_REAGENT("sugar", 4), + PCWJ_ADD_REAGENT("cream", 4), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/frozenpineapplepop + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/frozenpineapple + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_ITEM(/obj/item/food/sliced/pineapple), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/honkdae + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/honkdae + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/wafflecone), + PCWJ_ADD_ITEM(/obj/item/clothing/mask/gas/clown_hat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_ADD_REAGENT("ice", 5), + PCWJ_USE_ICE_CREAM_MIXER(20 SECONDS), + ) + +/datum/cooking/recipe/icecreamsandwich + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/icecreamsandwich + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/frozen/icecream), + PCWJ_ADD_REAGENT("ice", 5), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jumboicecream + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_ADD_REAGENT("ice", 2), + PCWJ_ADD_REAGENT("vanilla", 3), + PCWJ_ADD_REAGENT("cream", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/licoricecreamsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/licoricecream + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_ADD_REAGENT("blumpkinjuice", 4), + PCWJ_ADD_REAGENT("ice", 2), + PCWJ_ADD_REAGENT("vanilla", 2), + PCWJ_ADD_REAGENT("cream", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/orangecreamsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/orangecream + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_ADD_REAGENT("orangejuice", 4), + PCWJ_ADD_REAGENT("ice", 2), + PCWJ_ADD_REAGENT("vanilla", 2), + PCWJ_ADD_REAGENT("cream", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/peanutbuttermochi + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/peanutbuttermochi + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/wafflecone), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_ADD_REAGENT("rice", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("peanutbutter", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/pineappletopsicle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/pineappletop + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("pineapplejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/seasalticecream + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/popsicle/sea_salt + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/popsicle_stick), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("sodiumchloride", 3), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/apple + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/apple + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("applejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/berry + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/berry + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/bluecherry + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/bluecherry + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("bluecherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cherry_snowcone + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/cherry + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cola + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/cola + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("cola", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/flavorless + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fruitsalad_snowcone + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/fruitsalad + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("banana", 5), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_ADD_REAGENT("watermelonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/grape + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/grape + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("grapejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/honey + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/honey + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("honey", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/lemon + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/lemon + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("lemonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/lime + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/lime + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("limejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/mime + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/mime + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("nothing", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/orange + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/orange + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/pineapple + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/pineapple + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("pineapplejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/rainbow + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/rainbow + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("colorful_reagent", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/spacemountainwind + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/snowcone/spacemountain + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/reagent_containers/drinks/sillycup), + PCWJ_ADD_REAGENT("ice", 15), + PCWJ_ADD_REAGENT("spacemountainwind", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/spacefreezy + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/spacefreezy + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/frozen/icecream), + PCWJ_ADD_REAGENT("bluecherryjelly", 5), + PCWJ_ADD_REAGENT("spacemountainwind", 15), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/sundae + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/frozen/sundae + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/wafflecone), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/candycane + container_type = /obj/item/reagent_containers/cooking/mould/cane + product_type = /obj/item/food/candy/candycane + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/mint), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cash + container_type = /obj/item/reagent_containers/cooking/mould/cash + product_type = /obj/item/food/candy/cash + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/coin + container_type = /obj/item/reagent_containers/cooking/mould/coin + product_type = /obj/item/food/candy/coin + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/crunch + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/confectionery/rice + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/candybar), + PCWJ_ADD_REAGENT("rice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jawbreaker + container_type = /obj/item/reagent_containers/cooking/mould/ball + product_type = /obj/item/food/candy/jawbreaker + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/malper + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/confectionery/caramel + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/candybar), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/sucker + container_type = /obj/item/reagent_containers/cooking/mould/loli + product_type = /obj/item/food/candy/sucker + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/toolerone + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/confectionery/nougat + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/candybar), + PCWJ_ADD_ITEM(/obj/item/food/candy/nougat), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/toxinstest + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/confectionery/caramel_nougat + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/candybar), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_ADD_ITEM(/obj/item/food/candy/nougat), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/yumbaton + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/confectionery/toffee + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/candybar), + PCWJ_ADD_ITEM(/obj/item/food/candy/toffee), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/candied_pineapple + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/candied_pineapple + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/pineapple), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_ADD_REAGENT("water", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/candybar + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/candybar + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/caramel + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/caramel + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_bar + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/chocolatebar + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("soymilk", 2), + PCWJ_ADD_REAGENT("cocoa", 2), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_bar2 + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/chocolatebar + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("milk", 2), + PCWJ_ADD_REAGENT("cocoa", 2), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_bunny + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/chocolate_bunny + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("sugar", 2), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_coin + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/chocolate_coin + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/coin), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_orange + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/chocolate_orange + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/c_tube), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_blue + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/blue + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_green + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/green + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("limejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_orange + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/orange + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_pink + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/pink + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("watermelonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_poison + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/poison + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("poisonberryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_purple + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/purple + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("grapejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_rainbow + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/rainbow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/red), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/blue), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/green), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/yellow), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/orange), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/purple), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/pink), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_rainbow2 + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/bad_rainbow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/red), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/poison), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/green), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/yellow), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/orange), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/purple), + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton/pink), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_red + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/red + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/cottoncandy_yellow + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/cotton/yellow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/candy/cotton), + PCWJ_ADD_REAGENT("lemonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge_cherry + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge/cherry + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge_cookies_n_cream + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge/cookies_n_cream + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/cookie), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge_dice + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge_dice + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/dice), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge_peanut + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge/peanut + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/peanuts), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/peanuts), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/peanuts), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/fudge_turtle + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/fudge/turtle + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/candy/caramel), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/peanuts), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gum + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/gum + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/nougat + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/nougat + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/taffy + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/taffy + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("salglu_solution", 15), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/toffee + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/candy/toffee + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/wafflecone + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/wafflecone + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("milk", 1), + PCWJ_ADD_REAGENT("sugar", 1), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/mint_2 + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/mint + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("frostoil", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/chocolateegg + container_type = /obj/item/reagent_containers/cooking/icecream_bowl + product_type = /obj/item/food/chocolateegg + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) diff --git a/code/modules/cooking/recipes/midway_recipes.dm b/code/modules/cooking/recipes/midway_recipes.dm new file mode 100644 index 00000000000..b9236ef9cf5 --- /dev/null +++ b/code/modules/cooking/recipes/midway_recipes.dm @@ -0,0 +1,448 @@ +// Midway recipes are manually added post PCWJ to make recipes more sensible and +// introduce new steps to the existing, converted recipes. They're in a separate +// place for now because the converted recipes are autogenerated and we don't +// want them to be overwritten. + +/datum/cooking/recipe/torilla + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/tortilla + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/dough), + PCWJ_USE_STOVE(J_LO, 10 SECONDS), + ) + +/datum/cooking/recipe/cooked_patty + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meat/patty + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/patty_raw), + PCWJ_ADD_REAGENT("sodiumchloride", 1, optional = TRUE), + PCWJ_USE_GRILL(J_LO, 10 SECONDS), + ) + +/datum/cooking/recipe/cooked_meatball + container_type = /obj/item/reagent_containers/cooking/grill_grate + product_type = /obj/item/food/meatball + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/raw_meatball), + PCWJ_ADD_REAGENT("sodiumchloride", 1, optional = TRUE), + PCWJ_USE_GRILL(J_LO, 10 SECONDS), + ) + +/datum/cooking/recipe/taco + container_type = /obj/item/reagent_containers/cooking/board + product_type = /obj/item/food/taco + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/tortilla), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + ) + +/datum/cooking/recipe_step/add_item/fried_vox + +/datum/cooking/recipe_step/add_item/fried_vox/check_conditions_met(obj/added_item, datum/cooking/recipe_tracker/tracker) + var/obj/item/organ/external/external = added_item + if(!istype(external)) + return PCWJ_CHECK_INVALID + + if(istype(external.dna.species, /datum/species/vox)) + return PCWJ_CHECK_VALID + + return PCWJ_CHECK_INVALID + +/datum/cooking/recipe/kfv + container_type = /obj/item/reagent_containers/cooking/deep_basket + product_type = /obj/item/food/fried_vox + steps = list( + new /datum/cooking/recipe_step/add_item/fried_vox(), + PCWJ_USE_DEEP_FRYER(10 SECONDS), + ) + appear_in_default_catalog = FALSE + +/datum/cooking/recipe/jellybean_red + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/red + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_blue + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/blue + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_poison + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/poison + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("poisonberryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_green + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/green + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("limejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_yellow + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/yellow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("lemonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_orange + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/orange + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_blue + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/blue + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_green + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/green + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("limejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_orange + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/orange + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_poison + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/poison + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("poisonberryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_purple + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/purple + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("grapejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_red + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/red + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_wtf + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("space_drugs", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_wtf2 + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummybear_yellow + container_type = /obj/item/reagent_containers/cooking/mould/bear + product_type = /obj/item/food/candy/gummybear/yellow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("lemonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_blue + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/blue + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_green + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/green + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("limejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_orange + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/orange + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("orangejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_poison + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/poison + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("poisonberryjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_purple + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/purple + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("grapejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_red + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/red + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("cherryjelly", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_wtf + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("space_drugs", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_wtf2 + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/gummyworm_yellow + container_type = /obj/item/reagent_containers/cooking/mould/worm + product_type = /obj/item/food/candy/gummyworm/yellow + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("lemonjuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_chocolate + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/chocolate + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_coffee + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/cola + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("coffee", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_cola + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/cola + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("cola", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_drgibb + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/cola + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("dr_gibb", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_popcorn + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/popcorn + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_ITEM(/obj/item/food/popcorn), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_purple + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/purple + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("grapejuice", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_wtf + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_REAGENT("space_drugs", 5), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) + +/datum/cooking/recipe/jellybean_wtf2 + container_type = /obj/item/reagent_containers/cooking/mould/bean + product_type = /obj/item/food/candy/jellybean/wtf + catalog_category = COOKBOOK_CATEGORY_CANDY + steps = list( + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_USE_ICE_CREAM_MIXER(10 SECONDS), + ) diff --git a/code/modules/cooking/recipes/oven_recipes.dm b/code/modules/cooking/recipes/oven_recipes.dm new file mode 100644 index 00000000000..c7a41f5ca11 --- /dev/null +++ b/code/modules/cooking/recipes/oven_recipes.dm @@ -0,0 +1,1183 @@ +/datum/cooking/recipe/amanita_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/amanita_pie + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/amanita), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/applecake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/applecake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/applepie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/applepie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/appletart + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/appletart + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple/gold), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/baguette + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/baguette + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/bananabread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/bananabread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/bananacake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/bananacake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/banarnarbread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/banarnarbread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("blood", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/beary_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/beary_pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/bearmeat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/berry_muffin + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/berry_muffin + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/berryclafoutis + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/berryclafoutis + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/birthdaycake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/birthdaycake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/candle), + PCWJ_ADD_ITEM(/obj/item/candle), + PCWJ_ADD_ITEM(/obj/item/candle), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_ADD_REAGENT("vanilla", 10), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/blumpkin_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/blumpkin_pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/pumpkin/blumpkin), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/booberry_muffin + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/booberry_muffin + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/ectoplasm), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/braincake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/braincake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/organ/internal/brain), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/bread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/bread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/bun + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/bun + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/cannoli + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/cannoli + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_REAGENT("milk", 1), + PCWJ_ADD_REAGENT("sugar", 3), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/carrotcake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/carrotcake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/cheesecake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/cheesecake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/cheesepizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/cheesepizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/cherry_cupcake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/cherry_cupcake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/blue + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/cherry_cupcake/blue + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/bluecherries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/cherrypie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/cherrypie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cherries), + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_cornet + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/chocolate_cornet + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/chocolate_lava_tart + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/chocolate_lava_tart + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/slime_extract), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/chocolatecake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/chocolatecake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/clowncake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/clowncake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/frozen/sundae), + PCWJ_ADD_ITEM(/obj/item/food/frozen/sundae), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 50 SECONDS), + ) + +/datum/cooking/recipe/cookies + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/storage/bag/tray/cookies_tray + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/rawcookies/chocochips), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/cracker + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/cracker + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/dough), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/creamcheesebread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/creamcheesebread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/croissant + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/croissant + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/dankpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/dankpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cannabis), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cannabis), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cannabis), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cannabis), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/donkpocketpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/donkpocketpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/donkpocket), + PCWJ_ADD_ITEM(/obj/item/food/donkpocket), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/firecrackerpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/firecrackerpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_REAGENT("capsaicin", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/flatbread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/flatbread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/fortunecookie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/fortunecookie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/dough), + PCWJ_ADD_ITEM(/obj/item/paper), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/french_silk_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/french_silk_pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/frosty_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/frosty_pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/bluecherries), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/garlicpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/garlicpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/garlic), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/garlic), + PCWJ_ADD_REAGENT("garlic", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/grape_tart + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/grape_tart + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/grapes), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/grapes), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/grapes), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/hardware_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/hardware_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/circuitboard), + PCWJ_ADD_ITEM(/obj/item/circuitboard), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_ADD_REAGENT("sacid", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/hawaiianpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/hawaiianpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/pineapple), + PCWJ_ADD_ITEM(/obj/item/food/sliced/pineapple), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/holy_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/holy_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_ADD_REAGENT("holywater", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/honey_bun + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/honey_bun + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("honey", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/lasagna + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/lasagna + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/lemoncake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/lemoncake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lemon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lemon), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/liars_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/liars_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 50 SECONDS), + ) + +/datum/cooking/recipe/limecake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/limecake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lime), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lime), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/loadedbakedpotato + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/loadedbakedpotato + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/macncheesepizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/macpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/macncheese), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/meatbread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/meatbread + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/meatpie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/meatpie + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/meatpizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/meatpizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/mime_tart + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/mime_tart + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_REAGENT("nothing", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/moffin + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/moffin + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/grown/cotton), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/mothmallow + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/mothmallow + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/soybeans), + PCWJ_ADD_REAGENT("vanilla", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_ADD_REAGENT("rum", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/muffin + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/muffin + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/mushroompizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/mushroompizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/oatmeal_cookie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/oatmeal_cookie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/oat), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/orangecake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/orangecake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/peanut_butter_cookie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/peanut_butter_cookie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("peanutbutter", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pepperonipizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/pepperonipizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sausage), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pestopizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/pestopizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("wasabi", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pizzamargherita + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/margheritapizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/plaincake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/plaincake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/plum_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/plum_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/plum), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/plum), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/plump_pie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/plump_pie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/plumphelmet), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/plumphelmetbiscuit + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/plumphelmetbiscuit + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/plumphelmet), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("flour", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pound_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pound_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/plaincake), + PCWJ_ADD_ITEM(/obj/item/food/sliceable/plaincake), + PCWJ_ADD_ITEM(/obj/item/food/sliceable/plaincake), + PCWJ_ADD_ITEM(/obj/item/food/sliceable/plaincake), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pumpkin_spice_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pumpkin_spice_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/pumpkin), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/pumpkin), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/pumpkinpie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pumpkinpie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/pumpkin), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/raisin_cookie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/raisin_cookie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/no_raisin), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/slime_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/slime_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/slime_extract), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/spaceman_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/spaceman_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/trumpet), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_ADD_REAGENT("berryjuice", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/sugarcookies + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/storage/bag/tray/cookies_tray/sugarcookie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/rawcookies), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/syntibread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/meatbread + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_ITEM(/obj/item/food/meat/syntiflesh), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/toastedsandwich + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/toastedsandwich + catalog_category = COOKBOOK_CATEGORY_BURGS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sandwich), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/tofubread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/tofubread + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/tofupie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/tofupie + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/tofurkey + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/tofurkey + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/stuffing), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/turkey + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/turkey + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/stuffing), + PCWJ_ADD_ITEM(/obj/item/food/stuffing), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/vanilla_berry_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/vanilla_berry_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/vanilla_cake + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/vanilla_cake + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/vanillapod), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/vanillapod), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("sugar", 15), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/vegetablepizza + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/pizza/vegetablepizza + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/eggplant), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_OVEN(J_MED, 15 SECONDS), + ) + +/datum/cooking/recipe/xemeatpie + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/xemeatpie + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/flatdough), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/xenomeatbread + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/sliceable/xenomeatbread + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/xenomeat), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/yakiimo + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/yakiimo + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/poppypretzel + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/poppypretzel + catalog_category = COOKBOOK_CATEGORY_BREAD + steps = list( + PCWJ_ADD_ITEM(/obj/item/seeds/poppy), + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/dionaroast + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/dionaroast + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/holder/diona), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_REAGENT("facid", 5), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/donkpocket + container_type = /obj/item/reagent_containers/cooking/oven + product_type = /obj/item/food/donkpocket + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_USE_OVEN(J_MED, 10 SECONDS), + ) diff --git a/code/modules/cooking/recipes/prep_bowl_recipes.dm b/code/modules/cooking/recipes/prep_bowl_recipes.dm new file mode 100644 index 00000000000..7089d25e4da --- /dev/null +++ b/code/modules/cooking/recipes/prep_bowl_recipes.dm @@ -0,0 +1,152 @@ +/datum/cooking/recipe/aesirsalad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/aesir + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/deus), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/deus), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/deus), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple/gold), + ) + +/datum/cooking/recipe/antipasto_salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/antipasto + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/olive), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + ) + +/datum/cooking/recipe/caesar_salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/caesar + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice/red), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_REAGENT("oliveoil", 5), + ) + +/datum/cooking/recipe/citrusdelight + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/citrusdelight + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lime), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lemon), + ) + +/datum/cooking/recipe/fruitsalad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/fruit + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/watermelon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/grapes), + ) + +/datum/cooking/recipe/greek_salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/greek + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice/red), + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice/red), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/olive), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("oliveoil", 5), + ) + +/datum/cooking/recipe/herbsalad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/herb + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + ) + +/datum/cooking/recipe/junglesalad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/jungle + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/watermelon), + PCWJ_ADD_ITEM(/obj/item/food/sliced/watermelon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/grapes), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + ) + +/datum/cooking/recipe/kale_salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/kale + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice/red), + PCWJ_ADD_ITEM(/obj/item/food/sliced/onion_slice/red), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_REAGENT("oliveoil", 5), + ) + +/datum/cooking/recipe/melonfruitbowl + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/melonfruitbowl + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/watermelon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/orange), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/citrus/lemon), + ) + +/datum/cooking/recipe/potato_salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/potato + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledegg), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_REAGENT("mayonnaise", 5), + ) + +/datum/cooking/recipe/salad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/lettuce), + ) + +/datum/cooking/recipe/validsalad + container_type = /obj/item/reagent_containers/cooking/bowl + product_type = /obj/item/food/salad/valid + catalog_category = COOKBOOK_CATEGORY_SALADS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris, exclude_reagents = list("toxin")), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris, exclude_reagents = list("toxin")), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/ambrosia/vulgaris, exclude_reagents = list("toxin")), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + ) + diff --git a/code/modules/cooking/recipes/stove_recipes.dm b/code/modules/cooking/recipes/stove_recipes.dm new file mode 100644 index 00000000000..175efe54d91 --- /dev/null +++ b/code/modules/cooking/recipes/stove_recipes.dm @@ -0,0 +1,812 @@ +/datum/cooking/recipe/friedegg + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/friedegg + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_STOVE(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/beanstew + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/beanstew + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/beans), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/beetsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/beetsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/whitebeet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/bloodsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/bloodsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato/blood), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato/blood), + PCWJ_ADD_REAGENT("blood", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/chicken_noodle_soup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/chicken_noodle_soup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_ITEM(/obj/item/food/boiledspaghetti), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/clownchili + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/clownchili + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/clothing/shoes/clown_shoes), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/clownstears + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/clownstears + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/stack/ore/bananium), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/coldchili + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/coldchili + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/icepepper), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/cornchowder + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/cornchowder + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("cream", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/cullenskink + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/cullenskink + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("milk", 10), + PCWJ_ADD_REAGENT("blackpepper", 4), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/eyesoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/eyesoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/organ/internal/eyes), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/frenchonionsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/frenchonionsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/hong_kong_borscht + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/hong_kong_borscht + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("soysauce", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/hong_kong_macaroni + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/hong_kong_macaroni + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledspaghetti), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/bacon), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("cream", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/hotchili + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/hotchili + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/meatball_noodles + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/meatball_noodles + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/spaghetti), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/peanuts), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/meatballsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/meatballsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/misosoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/misosoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/soydope), + PCWJ_ADD_ITEM(/obj/item/food/soydope), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/mushroomsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/mushroomsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/mysterysoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/mysterysoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/badrecipe), + PCWJ_ADD_ITEM(/obj/item/food/tofu), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/nettlesoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/nettlesoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_PRODUCE(/obj/item/grown/nettle/basic), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/oatstew + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/oatstew + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/oat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/parsnip), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/red_porridge + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/red_porridge + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/redbeet), + PCWJ_ADD_REAGENT("vanilla", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("yogurt", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/redbeetsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/redbeetsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/redbeet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/redbeet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/seedsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/seedsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/seeds/sunflower), + PCWJ_ADD_ITEM(/obj/item/seeds/poppy/lily), + PCWJ_ADD_ITEM(/obj/item/seeds/ambrosia), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("vinegar", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/slimesoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/slimesoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("slimejelly", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/stew + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/stew + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/eggplant), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/sweetpotatosoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/sweetpotatosoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("milk", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/tomatosoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/tomatosoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/vegetablesoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/vegetablesoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/eggplant), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/wishsoup + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/wishsoup + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_REAGENT("water", 20), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/zurek + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soup/zurek + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledegg), + PCWJ_ADD_ITEM(/obj/item/food/sausage), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/onion), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/amanitajelly + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/amanitajelly + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/amanita), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/amanita), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/amanita), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("vodka", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/beans + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/beans + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/soybeans), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/soybeans), + PCWJ_ADD_REAGENT("ketchup", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/benedict + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/benedict + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/friedegg), + PCWJ_ADD_ITEM(/obj/item/food/meatsteak), + PCWJ_ADD_ITEM(/obj/item/food/sliced/bread), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiled_shrimp + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiled_shrimp + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/shrimp), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiledegg + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiledegg + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiledrice + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiledrice + steps = list( + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("rice", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiledslimeextract + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiledslimecore + steps = list( + PCWJ_ADD_ITEM(/obj/item/slime_extract), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiledspaghetti + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiledspaghetti + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/spaghetti), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/boiledspiderleg + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/boiledspiderleg + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/spiderleg, exclude_reagents = list("toxin")), + PCWJ_ADD_REAGENT("water", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/candiedapple + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/candiedapple + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/apple), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/chawanmushi + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/chawanmushi + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("soysauce", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/cheese_balls + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/cheese_balls + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cheese_curds), + PCWJ_ADD_ITEM(/obj/item/food/chocolatebar), + PCWJ_ADD_REAGENT("flour", 5), + PCWJ_ADD_REAGENT("sugar", 5), + PCWJ_ADD_REAGENT("honey", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/cheesyfries + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/cheesyfries + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/fries), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/cubancarp + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/cubancarp + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/dulce_de_batata + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/sliceable/dulce_de_batata + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato/sweet), + PCWJ_ADD_REAGENT("vanilla", 5), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/eggplantparm + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/eggplantparm + catalog_category = COOKBOOK_CATEGORY_VEGE + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/eggplant), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/enchiladas + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/enchiladas + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cutlet), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/chili), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/fishandchips + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/fishandchips + catalog_category = COOKBOOK_CATEGORY_SEAFOOD + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/fries), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/friedbanana + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/friedbanana + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("sugar", 10), + PCWJ_ADD_REAGENT("cornoil", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/macncheese + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/macncheese + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/cheesewedge), + PCWJ_ADD_ITEM(/obj/item/food/macaroni), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/mashedtaters + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/mashed_potatoes + catalog_category = COOKBOOK_CATEGORY_SIDES + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/potato), + PCWJ_ADD_REAGENT("gravy", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/meatballspaggetti + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/meatballspaghetti + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/spaghetti), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/meatbun + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/meatbun + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/dough), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/cabbage), + PCWJ_ADD_REAGENT("soysauce", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/monkeysdelight + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/monkeysdelight + catalog_category = COOKBOOK_CATEGORY_MEAT + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monkeycube), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/banana), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/pastatomato + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/pastatomato + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/spaghetti), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/popcorn + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/popcorn + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/corn), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/ricepudding + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/ricepudding + catalog_category = COOKBOOK_CATEGORY_DESSERTS + steps = list( + PCWJ_ADD_REAGENT("milk", 5), + PCWJ_ADD_REAGENT("rice", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/sashimi + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/sashimi + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/spidereggs), + PCWJ_ADD_ITEM(/obj/item/food/carpmeat), + PCWJ_ADD_REAGENT("soysauce", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/soylentgreen + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soylentgreen + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/meat/human), + PCWJ_ADD_ITEM(/obj/item/food/meat/human), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + appear_in_default_catalog = FALSE + +/datum/cooking/recipe/soylentviridians + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/soylentviridians + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/soybeans), + PCWJ_ADD_REAGENT("flour", 10), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/spacylibertyduff + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/spacylibertyduff + steps = list( + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/libertycap), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/libertycap), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/mushroom/libertycap), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("vodka", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/spesslaw + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/spesslaw + catalog_category = COOKBOOK_CATEGORY_PIZZAS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/spaghetti), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_ITEM(/obj/item/food/meatball), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/spidereggsham + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/spidereggsham + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/spidereggs), + PCWJ_ADD_ITEM(/obj/item/food/monstermeat/spidermeat), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/stewedsoymeat + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/stewedsoymeat + catalog_category = COOKBOOK_CATEGORY_SOUPS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/soydope), + PCWJ_ADD_ITEM(/obj/item/food/soydope), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/carrot), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/tomato), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/stuffing + container_type = /obj/item/reagent_containers/cooking/pot + product_type = /obj/item/food/stuffing + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliceable/bread), + PCWJ_ADD_REAGENT("water", 5), + PCWJ_ADD_REAGENT("sodiumchloride", 1), + PCWJ_ADD_REAGENT("blackpepper", 1), + PCWJ_USE_STOVE(J_MED, 20 SECONDS), + ) + +/datum/cooking/recipe/pancake + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/pancake + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_USE_STOVE(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/berry_pancake + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/pancake/berry_pancake + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_PRODUCE(/obj/item/food/grown/berries), + PCWJ_USE_STOVE(J_MED, 10 SECONDS), + ) + +/datum/cooking/recipe/choc_chip_pancake + container_type = /obj/item/reagent_containers/cooking/pan + product_type = /obj/item/food/pancake/choc_chip_pancake + catalog_category = COOKBOOK_CATEGORY_BREAKFASTS + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/cookiedough), + PCWJ_ADD_ITEM(/obj/item/food/choc_pile), + PCWJ_USE_STOVE(J_MED, 10 SECONDS), + ) diff --git a/code/modules/cooking/recipes/sushi_mat_recipes.dm b/code/modules/cooking/recipes/sushi_mat_recipes.dm new file mode 100644 index 00000000000..5d911dbc063 --- /dev/null +++ b/code/modules/cooking/recipes/sushi_mat_recipes.dm @@ -0,0 +1,210 @@ +/datum/cooking/recipe/ebi_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/ebi_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/boiled_shrimp), + PCWJ_ADD_ITEM(/obj/item/food/boiled_shrimp), + PCWJ_ADD_ITEM(/obj/item/food/boiled_shrimp), + PCWJ_ADD_ITEM(/obj/item/food/boiled_shrimp), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/ikura_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/ikura_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/salmon), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/salmon), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/salmon), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/salmon), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/inari_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/inari_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/fried_tofu), + PCWJ_ADD_ITEM(/obj/item/food/fried_tofu), + PCWJ_ADD_ITEM(/obj/item/food/fried_tofu), + PCWJ_ADD_ITEM(/obj/item/food/fried_tofu), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/masago_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/masago_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/goldfish), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/goldfish), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/goldfish), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/goldfish), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sake_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/sake_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/smoked_salmon_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/smoked_salmon_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/salmonsteak), + PCWJ_ADD_ITEM(/obj/item/food/salmonsteak), + PCWJ_ADD_ITEM(/obj/item/food/salmonsteak), + PCWJ_ADD_ITEM(/obj/item/food/salmonsteak), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_ebi + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_ebi + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/boiled_shrimp), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_ikura + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_ikura + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/salmon), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_inari + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_inari + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/fried_tofu), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_masago + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_masago + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/goldfish), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_sake + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_sake + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/salmonmeat), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_smoked_salmon + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_smoked_salmon + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/salmonsteak), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_tai + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_tai + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/catfishmeat), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_tobiko + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_tobiko + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/shark), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/sushi_tobiko_egg + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliced/sushi_tobiko_egg + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/sushi_tobiko), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/tai_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/tai_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/food/catfishmeat), + PCWJ_ADD_ITEM(/obj/item/food/catfishmeat), + PCWJ_ADD_ITEM(/obj/item/food/catfishmeat), + PCWJ_ADD_ITEM(/obj/item/food/catfishmeat), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/tobiko_egg_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/tobiko_egg_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/sliced/sushi_tobiko), + PCWJ_ADD_ITEM(/obj/item/food/sliced/sushi_tobiko), + PCWJ_ADD_ITEM(/obj/item/food/sliced/sushi_tobiko), + PCWJ_ADD_ITEM(/obj/item/food/sliced/sushi_tobiko), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/food/egg), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + +/datum/cooking/recipe/tobiko_maki + container_type = /obj/item/reagent_containers/cooking/sushimat + product_type = /obj/item/food/sliceable/tobiko_maki + catalog_category = COOKBOOK_CATEGORY_SUSHI + steps = list( + PCWJ_ADD_ITEM(/obj/item/food/boiledrice), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/shark), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/shark), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/shark), + PCWJ_ADD_ITEM(/obj/item/fish_eggs/shark), + PCWJ_ADD_ITEM(/obj/item/stack/seaweed), + ) + diff --git a/code/modules/cooking/steps/recipe_step.dm b/code/modules/cooking/steps/recipe_step.dm new file mode 100644 index 00000000000..79daf5ba2fa --- /dev/null +++ b/code/modules/cooking/steps/recipe_step.dm @@ -0,0 +1,44 @@ +RESTRICT_TYPE(/datum/cooking/recipe_step) + +/datum/cooking/recipe_step + /// Whether or not the recipe requires this step to be performed. + var/optional = FALSE + +/datum/cooking/recipe_step/New(options) + if("optional" in options) + optional = options["optional"] + +/datum/cooking/recipe_step/proc/check_conditions_met(obj/used_item, datum/cooking/recipe_tracker/tracker) + SHOULD_CALL_PARENT(FALSE) + return PCWJ_CHECK_VALID + +/// Attempt to satisfy the requirements of this step with the object *used_item* +/// being used on the cooking container that the tracker is tracking. +/// +/// The return value is a list of metadata about the step used by the tracker +/// during the preparation and final recipe creation. There is no fixed set of +/// values to return here, and different recipe steps may return different +/// useful keys to the tracker. One key that is returned by most steps is +/// "message", which returns the visible message that should be shown in chat to +/// the user when the step is followed. +/datum/cooking/recipe_step/proc/follow_step(obj/used_item, datum/cooking/recipe_tracker/tracker, mob/user) + return list() + +/// Special function to check if the step has been satisfied. Sometimed just following the step is enough, but not always. +/datum/cooking/recipe_step/proc/is_complete(obj/added_item, datum/cooking/recipe_tracker/tracker, list/step_data) + return TRUE + +/// Return a human readable description of the recipe step as an instruction to the reader. +/datum/cooking/recipe_step/proc/get_pda_formatted_desc() + SHOULD_CALL_PARENT(FALSE) + return "" + +/// Attempt to see if the autochef can finish the recipe with the available resources it has. +/// This is done in the "preparation" stage of the autochef. +/datum/cooking/recipe_step/proc/attempt_autochef_prepare(obj/machinery/autochef/autochef) + return AUTOCHEF_ACT_FAILED + +/// Attempt to have the autochef actually perform this step. This is during the "performance" +/// stage of the autochef, during which other steps of the recipe may have already been performed. +/datum/cooking/recipe_step/proc/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + return AUTOCHEF_ACT_FAILED diff --git a/code/modules/cooking/steps/recipe_step_add_item.dm b/code/modules/cooking/steps/recipe_step_add_item.dm new file mode 100644 index 00000000000..f2ec53c5832 --- /dev/null +++ b/code/modules/cooking/steps/recipe_step_add_item.dm @@ -0,0 +1,118 @@ +RESTRICT_TYPE(/datum/cooking/recipe_step/add_item) + +// TODO for v2: See if a "count" option can be added to reduce +// the need for both longer recipe step lists, and whatever +// fuckery I eventually come up with for combining equivalent +// steps for generating instructions for the wiki. +/datum/cooking/recipe_step/add_item + var/obj/item_type + var/exact_path + var/skip_reagents = FALSE + // The original cooking system removed nutriment from + // the ingredients put into a recipe + var/list/exclude_reagents = list("nutriment") + +/datum/cooking/recipe_step/add_item/New(item_type_, options) + item_type = item_type_ + + if("exact" in options) + exact_path = options["exact"] + if("skip_reagents" in options) + skip_reagents = options["skip_reagents"] + if("exclude_reagents" in options) + exclude_reagents |= options["exclude_reagents"] + + ..(options) + +/datum/cooking/recipe_step/add_item/check_conditions_met(obj/added_item, datum/cooking/recipe_tracker/tracker) + #ifdef PCWJ_DEBUG + log_debug("Called add_item/check_conditions_met for [added_item], checking against item type [item_type]. Exact_path = [exact_path]") + #endif + if(!istype(added_item, /obj/item)) + return PCWJ_CHECK_INVALID + if(exact_path) + if(added_item.type == item_type) + return PCWJ_CHECK_VALID + else + if(istype(added_item, item_type)) + return PCWJ_CHECK_VALID + return PCWJ_CHECK_INVALID + +/datum/cooking/recipe_step/add_item/is_complete(obj/added_item, datum/cooking/recipe_tracker/tracker, list/step_data) + var/obj/item/container = locateUID(tracker.container_uid) + if(!istype(container)) + return FALSE + + if(exact_path) + if(step_data["stack_added"] == item_type) + return TRUE + else + if(ispath(step_data["stack_added"], item_type)) + return TRUE + + return (added_item in container.contents) + +/datum/cooking/recipe_step/add_item/follow_step(obj/used_item, datum/cooking/recipe_tracker/tracker, mob/user) + #ifdef PCWJ_DEBUG + log_debug("Called: /datum/cooking/recipe_step/add_item/follow_step") + #endif + var/obj/item/container = locateUID(tracker.container_uid) + if(!user && ismob(used_item.loc)) + user = used_item.loc + if(container) + if(istype(user) && user.Adjacent(container)) + var/obj/item/stack/stack = used_item + if(istype(stack)) + if(stack.use(1)) + var/stack_type = stack.type + new stack_type(container, 1) + return list(message = "You add one of \the [stack.name] to \the [container].", stack_added = stack_type) + else + to_chat(user, "You can't remove one of \the [stack.name] from the stack!") + return list() + if(user.unequip(used_item)) + used_item.forceMove(container) + else + to_chat(user, "You can't remove [used_item] from your hands!") + return list() + else + used_item.forceMove(container) + + return list(message = "You add \the [used_item] to \the [container].", target = used_item.UID()) + + return list(message = "Something went real fucking wrong here!") + +/datum/cooking/recipe_step/add_item/get_pda_formatted_desc() + return "Add \a [item_type::name]." + +/datum/cooking/recipe_step/add_item/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + for(var/obj/machinery/smartfridge/storage in task.autochef.linked_storages) + for(var/obj/possible_item in storage) + if(check_conditions_met(possible_item, task.container.tracker)) + var/result = task.container.process_item(null, possible_item) + switch(result) + if(PCWJ_CONTAINER_FULL, PCWJ_NO_STEPS, PCWJ_NO_RECIPES) + return AUTOCHEF_ACT_FAILED + if(PCWJ_COMPLETE, PCWJ_SUCCESS, PCWJ_PARTIAL_SUCCESS) + task.autochef.Beam(storage, icon_state = "rped_upgrade", icon = 'icons/effects/effects.dmi', time = 5) + // Boy howdy I sure do love having to manually update + // the recorded quantities of items in smartfridges + storage.item_quants[possible_item.name]-- + return AUTOCHEF_ACT_STEP_COMPLETE + + task.autochef.atom_say("Missing [item_type::name].") + return AUTOCHEF_ACT_MISSING_INGREDIENT + +/datum/cooking/recipe_step/add_item/attempt_autochef_prepare(obj/machinery/autochef/autochef) + var/storage_count = 0 + for(var/obj/machinery/smartfridge/storage in autochef.linked_storages) + storage_count++ + for(var/obj/possible_item in storage) + if(check_conditions_met(possible_item, null)) + return AUTOCHEF_ACT_VALID + + if(!storage_count) + return AUTOCHEF_ACT_NO_AVAILABLE_STORAGE + + autochef.atom_say("Cannot find [item_type::name].") + return AUTOCHEF_ACT_MISSING_INGREDIENT diff --git a/code/modules/cooking/steps/recipe_step_add_produce.dm b/code/modules/cooking/steps/recipe_step_add_produce.dm new file mode 100644 index 00000000000..9914e369b4f --- /dev/null +++ b/code/modules/cooking/steps/recipe_step_add_produce.dm @@ -0,0 +1,89 @@ +RESTRICT_TYPE(/datum/cooking/recipe_step/add_produce) + +/// A cooking step that involves using grown foods. +/datum/cooking/recipe_step/add_produce + var/obj/produce_type + var/base_potency + var/exact_path + var/skip_reagents = FALSE + var/list/exclude_reagents + +/datum/cooking/recipe_step/add_produce/New(produce_type_, options) + produce_type = produce_type_ + + if("exact" in options) + exact_path = options["exact"] + if("skip_reagents" in options) + skip_reagents = options["skip_reagents"] + if("exclude_reagents" in options) + exclude_reagents = options["exclude_reagents"] + + ..(options) + +/datum/cooking/recipe_step/add_produce/check_conditions_met(obj/added_item, datum/cooking/recipe_tracker/tracker) + if(!istype(added_item, /obj/item/food/grown)) + return PCWJ_CHECK_INVALID + if(exact_path) + if(added_item == produce_type) + return PCWJ_CHECK_VALID + else + if(istype(added_item, produce_type)) + return PCWJ_CHECK_VALID + + return PCWJ_CHECK_INVALID + +/datum/cooking/recipe_step/add_produce/is_complete(obj/added_item, datum/cooking/recipe_tracker/tracker, list/step_data) + var/obj/item/container = locateUID(tracker.container_uid) + if(!istype(container)) + return FALSE + + return (added_item in container.contents) + +/datum/cooking/recipe_step/add_produce/follow_step(obj/used_item, datum/cooking/recipe_tracker/tracker, mob/user) + #ifdef PCWJ_DEBUG + log_debug("Called: /datum/cooking/recipe_step/add_produce/follow_step") + #endif + var/obj/item/container = locateUID(tracker.container_uid) + if(!user && ismob(used_item.loc)) + user = used_item.loc + if(container) + if(istype(user) && user.Adjacent(container)) + if(user.unequip(used_item)) + used_item.forceMove(container) + else + to_chat(user, "You can't remove [used_item] from your hands!") + return list() + else + used_item.forceMove(container) + + return list(message = "You add \the [used_item] to \the [container].", target = used_item.UID()) + + return list(message = "Something went real fucking wrong here!") + +/datum/cooking/recipe_step/add_produce/get_pda_formatted_desc() + return "Add \a [produce_type::name]." + +/datum/cooking/recipe_step/add_produce/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + for(var/obj/machinery/smartfridge/storage in task.autochef.linked_storages) + for(var/obj/possible_item in storage) + if(check_conditions_met(possible_item, task.container.tracker)) + var/result = task.container.process_item(null, possible_item) + switch(result) + if(PCWJ_CONTAINER_FULL, PCWJ_NO_STEPS, PCWJ_NO_RECIPES) + return AUTOCHEF_ACT_FAILED + if(PCWJ_COMPLETE, PCWJ_SUCCESS, PCWJ_PARTIAL_SUCCESS) + task.autochef.Beam(storage, icon_state = "rped_upgrade", icon = 'icons/effects/effects.dmi', time = 5) + // Boy howdy I sure do love having to manually update + // the recorded quantities of items in smartfridges + storage.item_quants[possible_item.name]-- + return AUTOCHEF_ACT_STEP_COMPLETE + + return AUTOCHEF_ACT_MISSING_INGREDIENT + +/datum/cooking/recipe_step/add_produce/attempt_autochef_prepare(obj/machinery/autochef/autochef) + for(var/storage in autochef.linked_storages) + for(var/obj/possible_item in storage) + if(check_conditions_met(possible_item, null)) + return AUTOCHEF_ACT_VALID + + return AUTOCHEF_ACT_MISSING_INGREDIENT diff --git a/code/modules/cooking/steps/recipe_step_add_reagent.dm b/code/modules/cooking/steps/recipe_step_add_reagent.dm new file mode 100644 index 00000000000..826f89541e4 --- /dev/null +++ b/code/modules/cooking/steps/recipe_step_add_reagent.dm @@ -0,0 +1,127 @@ +RESTRICT_TYPE(/datum/cooking/recipe_step/add_reagent) + +/datum/cooking/recipe_step/add_reagent + var/expected_total + var/reagent_id + var/amount + /// What percentage of the reagent ends up in the product, as a value from 0.0 to 1.0 + var/remain_percent = 0.0 + +/datum/cooking/recipe_step/add_reagent/New(reagent_id_, amount_, options) + reagent_id = reagent_id_ + amount = amount_ + + if("remain_percent" in options) + remain_percent = options["remain_percent"] + + ..(options) + +/datum/cooking/recipe_step/add_reagent/check_conditions_met(obj/used_item, datum/cooking/recipe_tracker/tracker) + // Autochefs may do this up front before a tracker exists if nothing + // has been added to the container yet. In this case, we just check + // to see if the container has what we need. + if(!tracker) + if(!(used_item.container_type & OPENCONTAINER)) + return PCWJ_CHECK_INVALID + + var/obj/item/reagent_containers/reagent_container = used_item + if(istype(reagent_container)) + if(reagent_container.reagents.has_reagent(reagent_id, amount)) + return PCWJ_CHECK_VALID + + return PCWJ_CHECK_INVALID + + + var/obj/item/container = locateUID(tracker.container_uid) + + // Potentially might break shit, but we'll see; if we're currently being + // processed on a cooking machine, look for that case specifically, and just + // check to make sure we have the amount of reagents we need already, in + // order to skip this step. + // + // This should hopefully make it easier to deal with adding reagents across + // steps if, for example, you are adding a mix of reagents from a container, + // or if you added the reagents in two consecutive steps in the wrong order + // (e.g. adding pepper before salt versus salt before pepper, which really + // shouldn't matter.) + if(istype(used_item, /obj/machinery/cooking)) + if(container.reagents.has_reagent(reagent_id, amount)) + return PCWJ_CHECK_VALID + + return PCWJ_CHECK_SILENT + + if((container.reagents.total_volume + amount - container.reagents.get_reagent_amount(reagent_id)) > container.reagents.maximum_volume) + return PCWJ_CHECK_FULL + + if(!istype(used_item, /obj/item/reagent_containers)) + return PCWJ_CHECK_INVALID + if(!(used_item.container_type & OPENCONTAINER)) + return PCWJ_CHECK_INVALID + + var/obj/item/reagent_containers/reagent_container = used_item + if(!istype(reagent_container)) + return PCWJ_CHECK_INVALID + if(reagent_container.amount_per_transfer_from_this <= 0) + return PCWJ_CHECK_INVALID + if(reagent_container.reagents.total_volume == 0) + return PCWJ_CHECK_INVALID + + if(reagent_container.reagents.total_volume) + var/part = reagent_container.reagents.get_reagent_amount(reagent_id) / reagent_container.reagents.total_volume + var/incoming_amount = max(0, min(reagent_container.amount_per_transfer_from_this, reagent_container.reagents.total_volume, container.reagents.get_free_space())) + var/incoming_valid_amount = incoming_amount * part + + if(incoming_valid_amount > 0) + return PCWJ_CHECK_VALID + + return PCWJ_CHECK_INVALID + +/datum/cooking/recipe_step/add_reagent/follow_step(obj/used_item, datum/cooking/recipe_tracker/tracker) + var/obj/item/reagent_containers/our_item = used_item + if(!istype(our_item)) + return list() + + var/obj/item/container = locateUID(tracker.container_uid) + var/trans = our_item.reagents.trans_to(container, our_item.amount_per_transfer_from_this) + + return list(message = "You transfer [trans] units to \the [container].") + +/datum/cooking/recipe_step/add_reagent/is_complete(obj/used_item, datum/cooking/recipe_tracker/tracker, list/step_data) + var/obj/item/container = locateUID(tracker.container_uid) + if(!istype(container)) + return FALSE + return container.reagents.has_reagent(reagent_id, amount) + +/datum/cooking/recipe_step/add_reagent/get_pda_formatted_desc() + var/datum/reagent/reagent = GLOB.chemical_reagents_list[reagent_id] + return "Add [amount] unit[amount > 1 ? "s" : ""] of [reagent.name]." + +/datum/cooking/recipe_step/add_reagent/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + for(var/obj/machinery/smartfridge/storage in task.autochef.linked_storages) + for(var/obj/item/reagent_containers/container in storage) + if(check_conditions_met(container, task.container.tracker)) + var/old_amount_per_transfer = container.amount_per_transfer_from_this + container.amount_per_transfer_from_this = amount + var/result = task.container.process_item(null, container) + container.amount_per_transfer_from_this = old_amount_per_transfer + + switch(result) + if(PCWJ_CONTAINER_FULL, PCWJ_NO_STEPS, PCWJ_NO_RECIPES) + return AUTOCHEF_ACT_FAILED + if(PCWJ_SUCCESS, PCWJ_PARTIAL_SUCCESS, PCWJ_COMPLETE) + task.autochef.Beam(storage, icon_state = "rped_upgrade", icon = 'icons/effects/effects.dmi', time = 5) + return AUTOCHEF_ACT_STEP_COMPLETE + + var/datum/reagent/reagent = GLOB.chemical_reagents_list[reagent_id] + task.autochef.atom_say("Missing [reagent.name].") + return AUTOCHEF_ACT_MISSING_REAGENT + +/datum/cooking/recipe_step/add_reagent/attempt_autochef_prepare(obj/machinery/autochef/autochef) + for(var/storage in autochef.linked_storages) + for(var/obj/item/reagent_containers/container in storage) + if(container.reagents.has_reagent(reagent_id, amount)) + return AUTOCHEF_ACT_VALID + + var/datum/reagent/reagent = GLOB.chemical_reagents_list[reagent_id] + autochef.atom_say("Cannot find [reagent.name].") + return AUTOCHEF_ACT_MISSING_REAGENT diff --git a/code/modules/cooking/steps/recipe_step_use_machine.dm b/code/modules/cooking/steps/recipe_step_use_machine.dm new file mode 100644 index 00000000000..dbc727154b2 --- /dev/null +++ b/code/modules/cooking/steps/recipe_step_use_machine.dm @@ -0,0 +1,167 @@ +/datum/cooking/recipe_step/use_machine + var/time + var/temperature + var/obj/machinery/cooking/machine_type + var/cooker_surface_name + +/datum/cooking/recipe_step/use_machine/New(temperature_, time_, options) + temperature = temperature_ + time = time_ + + ..(options) + +/datum/cooking/recipe_step/use_machine/proc/extra_machine_step(obj/machinery/cooking/machine) + return + +/datum/cooking/recipe_step/use_machine/check_conditions_met(obj/used_item, datum/cooking/recipe_tracker/tracker) + var/obj/item/reagent_containers/cooking/container = locateUID(tracker.container_uid) + + if(container.get_cooker_time(cooker_surface_name, temperature) >= time) + return PCWJ_CHECK_VALID + + if(istype(used_item, machine_type)) + return PCWJ_CHECK_SILENT + + return PCWJ_CHECK_INVALID + +/datum/cooking/recipe_step/use_machine/follow_step(obj/used_item, datum/cooking/recipe_tracker/tracker, mob/user) + var/list/step_data = list(target = used_item.UID()) + var/obj/item/reagent_containers/cooking/container = locateUID(tracker.container_uid) + if(istype(container)) + step_data["cooker_data"] = container.cooker_data.Copy() + + if(istype(used_item, machine_type)) + var/obj/machinery/cooking/machine = used_item + step_data["rating"] = machine.quality_mod + + step_data["signal"] = COMSIG_COOK_MACHINE_STEP_COMPLETE + + return step_data + +/datum/cooking/recipe_step/use_machine/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + var/matching_machines = 0 + var/unavailable_machines = 0 + + var/obj/item/reagent_containers/cooking/container = task.container + for(var/obj/machinery/cooking/machine in task.autochef.linked_machines) + if(!istype(machine, machine_type)) + continue + + if(!can_use_machine(task.autochef, machine)) + continue + + matching_machines++ + var/list/free_surfaces = list() + for(var/datum/cooking_surface/surface in machine.surfaces) + if(!surface.container) + free_surfaces.Add(surface) + + // If the container is already on the machine, no need to move it around + if(surface.container == container) + start_cooking(task, surface) + return AUTOCHEF_ACT_WAIT_FOR_RESULT + + if(length(free_surfaces)) + // Grab that shit + var/datum/cooking_surface/surface = free_surfaces[1] + container.Beam(machine, icon_state = "rped_upgrade", icon = 'icons/effects/effects.dmi', time = 5) + machine.surface_item_interaction(null, container, surface) + start_cooking(task, surface) + return AUTOCHEF_ACT_WAIT_FOR_RESULT + else + unavailable_machines++ + + if(!matching_machines) + return AUTOCHEF_ACT_MISSING_MACHINE + if(unavailable_machines) + return AUTOCHEF_ACT_NO_AVAILABLE_MACHINES + + return AUTOCHEF_ACT_FAILED + +/datum/cooking/recipe_step/use_machine/proc/start_cooking(datum/autochef_task/follow_recipe/task, datum/cooking_surface/surface) + task.autochef.atom_say("Preparing on [surface.parent.name].") + surface.timer = time + surface.temperature = temperature + extra_machine_step(surface.parent) + if(surface.on) + surface.handle_cooking(null) + else + surface.handle_switch(null) + + task.register_for_completion(surface.container) + +/datum/cooking/recipe_step/use_machine/attempt_autochef_prepare(obj/machinery/autochef/autochef) + for(var/obj/machinery/cooking/machine in autochef.linked_machines) + if(can_use_machine(autochef, machine)) + return AUTOCHEF_ACT_VALID + + return AUTOCHEF_ACT_NO_AVAILABLE_MACHINES + +/datum/cooking/recipe_step/use_machine/proc/can_use_machine(obj/machinery/autochef, obj/machinery/cooking/machine) + if(machine.stat & (NOPOWER|BROKEN)) + return FALSE + + for(var/datum/cooking_surface/surface in machine.surfaces) + if(!surface.container) + return TRUE + if(surface.container && !surface.container.claimed) + return TRUE + if(surface.container && surface.container.claimed == autochef) + return TRUE + + return FALSE + +/datum/cooking/recipe_step/use_machine/oven + machine_type = /obj/machinery/cooking/oven + cooker_surface_name = COOKER_SURFACE_OVEN + +/datum/cooking/recipe_step/use_machine/oven/get_pda_formatted_desc() + return "Bake in an oven for [DisplayTimeText(time)] at [lowertext(temperature)] temperature." + +/datum/cooking/recipe_step/use_machine/oven/extra_machine_step(obj/machinery/cooking/machine) + var/obj/machinery/cooking/oven/oven = machine + oven.opened = FALSE + +/datum/cooking/recipe_step/use_machine/stovetop + machine_type = /obj/machinery/cooking/stovetop + cooker_surface_name = COOKER_SURFACE_STOVE + +/datum/cooking/recipe_step/use_machine/stovetop/get_pda_formatted_desc() + return "Heat on a stove for [DisplayTimeText(time)] at [lowertext(temperature)] temperature." + +/datum/cooking/recipe_step/use_machine/ice_cream_mixer + machine_type = /obj/machinery/cooking/ice_cream_mixer + cooker_surface_name = COOKER_SURFACE_ICE_CREAM_MIXER + +/datum/cooking/recipe_step/use_machine/ice_cream_mixer/New(time_, options) + ..(J_LO, time_, options) + +/datum/cooking/recipe_step/use_machine/ice_cream_mixer/get_pda_formatted_desc() + return "Mix in an ice cream mixer for [DisplayTimeText(time)]." + +/datum/cooking/recipe_step/use_machine/grill + machine_type = /obj/machinery/cooking/grill + cooker_surface_name = COOKER_SURFACE_GRILL + +/datum/cooking/recipe_step/use_machine/grill/get_pda_formatted_desc() + return "Cook on a grill for [DisplayTimeText(time)] at [lowertext(temperature)] temperature." + +/datum/cooking/recipe_step/use_machine/grill/can_use_machine(obj/machinery/autochef, obj/machinery/cooking/machine) + . = ..() + var/obj/machinery/cooking/grill/grill = machine + return . && istype(grill) && grill.stored_wood > 0 + +/datum/cooking/recipe_step/use_machine/grill/attempt_autochef_perform(datum/autochef_task/follow_recipe/task) + . = ..() + if(. == AUTOCHEF_ACT_WAIT_FOR_RESULT) + RegisterSignal(task.container, COMSIG_COOK_GRILL_NO_FUEL) + +/datum/cooking/recipe_step/use_machine/deepfryer + machine_type = /obj/machinery/cooking/deepfryer + cooker_surface_name = COOKER_SURFACE_DEEPFRYER + +/datum/cooking/recipe_step/use_machine/deepfryer/New(time_, options) + ..(J_LO, time_, options) + +/datum/cooking/recipe_step/use_machine/deepfryer/get_pda_formatted_desc() + return "Deep-fry for [DisplayTimeText(time)]." diff --git a/code/modules/crafting/recipes.dm b/code/modules/crafting/recipes.dm index 4a3a3f88998..1301245c6b6 100644 --- a/code/modules/crafting/recipes.dm +++ b/code/modules/crafting/recipes.dm @@ -549,7 +549,7 @@ /datum/crafting_recipe/sushimat name = "Sushi Mat" - result = list(/obj/item/kitchen/sushimat) + result = list(/obj/item/reagent_containers/cooking/sushimat) time = 10 reqs = list(/obj/item/stack/sheet/wood = 1, /obj/item/stack/cable_coil = 2) diff --git a/code/modules/food_and_drinks/food/foods/baked_goods.dm b/code/modules/food_and_drinks/food/foods/baked_goods.dm index d9c3857e654..035ad095c77 100644 --- a/code/modules/food_and_drinks/food/foods/baked_goods.dm +++ b/code/modules/food_and_drinks/food/foods/baked_goods.dm @@ -1183,7 +1183,7 @@ goal_difficulty = FOOD_GOAL_NORMAL /obj/item/food/berry_muffin - name = "berry_muffin" + name = "berry muffin" desc = "A delicious and spongy little cake, with berries." icon = 'icons/obj/food/breakfast.dmi' icon_state = "berry_muffin" diff --git a/code/modules/food_and_drinks/food/foods/ethnic.dm b/code/modules/food_and_drinks/food/foods/ethnic.dm index 4751501bd93..43200125c1b 100644 --- a/code/modules/food_and_drinks/food/foods/ethnic.dm +++ b/code/modules/food_and_drinks/food/foods/ethnic.dm @@ -3,6 +3,16 @@ // Mexican // ////////////////////// +/obj/item/food/tortilla + name = "tortilla" + desc = "A baked flatbread, perfect for tacos." + icon = 'icons/obj/food/food_ingredients.dmi' + icon_state = "tortilla" + bitesize = 3 + list_reagents = list("nutriment" = 7, "vitamin" = 1) + tastes = list("wheat") + goal_difficulty = FOOD_GOAL_EASY + /obj/item/food/taco name = "taco" desc = "Take a bite!" diff --git a/code/modules/food_and_drinks/food/foods/meat.dm b/code/modules/food_and_drinks/food/foods/meat.dm index 9c0f7b8a94b..d49ae88550d 100644 --- a/code/modules/food_and_drinks/food/foods/meat.dm +++ b/code/modules/food_and_drinks/food/foods/meat.dm @@ -113,6 +113,8 @@ else qdel(src) + return ..() + ////////////////////////// // Monster Meat // ////////////////////////// @@ -253,6 +255,76 @@ baconbeacon.digest_delay() baconbeacon = null +/obj/item/food/meat/patty + name = "patty" + desc = "A juicy cooked patty, ready to be slapped between two buns." + icon = 'icons/obj/food/food_ingredients.dmi' + icon_state = "patty" + bitesize = 3 + list_reagents = list("protein" = 3) + +/obj/item/food/meat/patty_raw + name = "raw patty" + desc = "A raw patty ready to be grilled into a juicy and delicious burger." + icon = 'icons/obj/food/food_ingredients.dmi' + icon_state = "patty_raw" + bitesize = 3 + list_reagents = list("protein" = 2) + +/obj/item/food/meat/patty_raw/attack_self__legacy__attackchain(mob/user) + user.visible_message( + "[user] shapes [src] into a ball.", + "You shape [src] into a ball." + ) + playsound(user, 'sound/effects/blobattack.ogg', 50, 1) + var/obj/item/food/meat/raw_meatball/M = new(get_turf(user)) + user.drop_item() + qdel(src) + user.put_in_hands(M) + return 1 + +/obj/item/food/ground_meat + name = "ground meat" + desc = "Some meat that has minced with a processor." + icon = 'icons/obj/food/food_ingredients.dmi' + icon_state = "groundbeef" + filling_color = "#DB0000" + list_reagents = list("protein" = 4, "vitamin" = 1) + tastes = list("raw meat" = 1) + +/obj/item/food/ground_meat/attack_self__legacy__attackchain(mob/living/user) + user.visible_message( + "[user] shapes [src] into a ball.", + "You shape [src] into a ball of raw ground meat." + ) + playsound(user, 'sound/effects/blobattack.ogg', 50, TRUE) + var/obj/item/food/meat/raw_meatball/M = new(get_turf(user)) + user.drop_item() + qdel(src) + user.put_in_hands(M) + return TRUE + +/obj/item/food/meat/raw_meatball + name = "raw meatball" + desc = "Some ground meat shaped into a ball." + icon = 'icons/obj/food/meat.dmi' + icon_state = "meatball_raw" + filling_color = "#DB4444" + list_reagents = list("protein" = 4, "vitamin" = 1) + tastes = list("raw meat" = 1) + +/obj/item/food/meat/raw_meatball/attack_self__legacy__attackchain(mob/user) + user.visible_message( + "[user] flattens [src] into a patty.", + "You flatten [src] into a raw patty." + ) + playsound(user, 'sound/effects/blobattack.ogg', 50, TRUE) + var/obj/item/food/meat/patty_raw/M = new(get_turf(user)) + user.drop_item() + qdel(src) + user.put_in_hands(M) + return TRUE + /obj/item/food/meatball name = "meatball" desc = "A great meal all round." diff --git a/code/modules/food_and_drinks/food_base.dm b/code/modules/food_and_drinks/food_base.dm index 51c2f3587e2..b599568e4fc 100644 --- a/code/modules/food_and_drinks/food_base.dm +++ b/code/modules/food_and_drinks/food_base.dm @@ -127,6 +127,7 @@ /obj/item/food/examine(mob/user) . = ..() + if(in_range(user, src)) if(bitecount > 0) if(bitecount==1) diff --git a/code/modules/food_and_drinks/kitchen_machinery/candy_maker.dm b/code/modules/food_and_drinks/kitchen_machinery/candy_maker.dm deleted file mode 100644 index 60091f44b4b..00000000000 --- a/code/modules/food_and_drinks/kitchen_machinery/candy_maker.dm +++ /dev/null @@ -1,42 +0,0 @@ - -/obj/machinery/kitchen_machine/candy_maker - name = "candy machine" - desc = "The stuff of nightmares for a dentist." - icon = 'icons/obj/cooking_machines.dmi' - icon_state = "candymaker_off" - cook_verbs = list("Wonderizing", "Scrumpdiddlyumptiousification", "Miracle-coating", "Flavorifaction") - recipe_type = RECIPE_CANDY - off_icon = "candymaker_off" - on_icon = "candymaker_on" - dirty_icon = "candymaker_dirty" - open_icon = "candymaker_open" - -// see code/modules/food/recipes_candy.dm for recipes - -/******************* -* Initialising -********************/ - -/obj/machinery/kitchen_machine/candy_maker/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/candy_maker(null) - component_parts += new /obj/item/stock_parts/manipulator(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/candy_maker/upgraded/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/candy_maker(null) - component_parts += new /obj/item/stock_parts/manipulator/pico(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/candy_maker/RefreshParts() - var/E - for(var/obj/item/stock_parts/manipulator/M in component_parts) - E += M.rating - efficiency = E diff --git a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm deleted file mode 100644 index f3d1fff923d..00000000000 --- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm +++ /dev/null @@ -1,207 +0,0 @@ -/obj/machinery/cooker/deepfryer - name = "deep fryer" - desc = "Deep fried everything." - icon = 'icons/obj/cooking_machines.dmi' - icon_state = "fryer_off" - thiscooktype = "deep fried" - burns = TRUE - firechance = 100 - cooktime = 200 - foodcolor = "#FFAD33" - officon = "fryer_off" - onicon = "fryer_on" - openicon = "fryer_open" - has_specials = TRUE - upgradeable = TRUE - -/obj/machinery/cooker/deepfryer/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/deepfryer(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/cooker/deepfryer/upgraded/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/deepfryer(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/cooker/deepfryer/RefreshParts() - var/E = 0 - for(var/obj/item/stock_parts/micro_laser/L in component_parts) - E += L.rating - E -= 2 //Standard parts is 0 (1+1-2), Tier 4 parts is 6 (4+4-2) - cooktime = (200 - (E * 20)) //Effectively each laser improves cooktime by 20 per rating beyond the first (200 base, 80 max upgrade) - -/obj/machinery/cooker/deepfryer/gettype() - var/obj/item/food/deepfryholder/type = new(get_turf(src)) - return type - -/obj/machinery/cooker/deepfryer/item_interaction(mob/living/user, obj/item/used, list/modifiers) - if(istype(used, /obj/item/reagent_containers/glass) || istype(used, /obj/item/reagent_containers/drinks/ice)) - var/ice_amount = used.reagents.get_reagent_amount("ice") - if(ice_amount) - used.reagents.remove_all(used.reagents.total_volume) - add_attack_logs(user, src, "poured [ice_amount]u ice into") - user.visible_message( - "[user] pours [used] into [src], and it seems to fizz a bit.", - "You pour [used] into [src], and it seems to fizz a bit.", - "You hear a splash, and a sizzle." - ) - - playsound(src, 'sound/goonstation/misc/drinkfizz.ogg', 25) - addtimer(CALLBACK(src, PROC_REF(boil_leadup), user), 4 SECONDS) - addtimer(CALLBACK(src, PROC_REF(make_foam), ice_amount), 5 SECONDS) - - return ITEM_INTERACT_COMPLETE - - return ..() - -/obj/machinery/cooker/deepfryer/proc/boil_leadup(mob/user) - visible_message( - "[src] starts to bubble and froth unnervingly!", - "You hear a growling and intimidating bubbling!" - ) - - playsound(src, 'sound/machines/fryer/deep_fryer_emerge.ogg', 75) - to_chat(user, "Are you sure that was such a good idea?") - -/obj/machinery/cooker/deepfryer/examine(mob/user) - . = ..() - if(emagged) - . += "The heating element is smoking slightly." - -/obj/machinery/cooker/deepfryer/emag_act() - if(!emagged) - to_chat(usr, "You short out the fryer's safeties, allowing non-food objects to be placed in the oil.") - playsound(src, "sparks", 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) - emagged = TRUE - return TRUE - -/obj/machinery/cooker/deepfryer/special_attack_shove(mob/living/target, mob/living/attacker) - target.visible_message( - "[attacker] shoves [target] against [src], and [target] reaches into the hot oil trying to catch [target.p_their()] fall!", - "[attacker] shoves you into [src], your hands landing in hot oil!", - "You hear a splash and a loud sizzle." - ) - target.apply_damage(10, BURN, BODY_ZONE_PRECISE_L_HAND) - target.apply_damage(10, BURN, BODY_ZONE_PRECISE_R_HAND) - playsound(src, 'sound/goonstation/misc/drinkfizz.ogg', 25) - return FALSE - -/obj/machinery/cooker/deepfryer/special_attack(mob/user, mob/living/carbon/target) - var/obj/item/organ/external/head/head = target.get_organ("head") - if(!istype(head)) - to_chat(user, "This person doesn't have a head!") - return FALSE // you'll probably get smacked against it - target.visible_message( - "[user] dunks [target]'s face into [src]!", - "[user] dunks your face into [src]!", - "You hear a splash and a loud sizzle." - ) - playsound(src, "sound/machines/kitchen/deep_fryer_emerge.ogg", 100) - target.emote("scream") - target.apply_damage(45, BURN, "head") // 45 fire damage and disfigurement because your face was just deep fried! - head.disfigure() - add_attack_logs(user, target, "Deep-fried with [src]") - return TRUE - -/// Make foam consisting of burning oil. -/obj/machinery/cooker/deepfryer/proc/make_foam(ice_amount) - if(!reagents) - create_reagents() - // the cooking oil should spread through the foam. - // when it gets added, it's at 1000 degrees so it quickly fireflashes and reacts to form inert cooking oil. - reagents.add_reagent("cooking_oil", ice_amount * 2, reagtemp = 1000, no_react = TRUE) - reagents.chem_temp = 1000 - var/datum/effect_system/foam_spread/oil/S = new() - S.set_up(ice_amount * 2, loc, reagents, FALSE) - S.temperature = 1000 - S.start() - - -/obj/machinery/cooker/deepfryer/checkSpecials(obj/item/I) - if(!I) - return 0 - for(var/Type in subtypesof(/datum/deepfryer_special)) - var/datum/deepfryer_special/P = new Type() - if(!P.validate(I)) - continue - return P - return 0 - -/obj/machinery/cooker/deepfryer/cookSpecial(special) - if(!special) - return 0 - var/datum/deepfryer_special/recipe = special - if(!recipe.output) - return 0 - new recipe.output(get_turf(src)) - -////////////////////////////////// -// Deepfryer Special // -// Interaction Datums // -////////////////////////////////// - -/datum/deepfryer_special - var/input //Thing that goes in - var/output //Thing that comes out - -/datum/deepfryer_special/proc/validate(obj/item/I) - return istype(I, input) - -/datum/deepfryer_special/shrimp - input = /obj/item/food/shrimp - output = /obj/item/food/fried_shrimp - -/datum/deepfryer_special/banana - input = /obj/item/food/grown/banana - output = /obj/item/food/friedbanana - -/datum/deepfryer_special/fries - input = /obj/item/food/rawsticks - output = /obj/item/food/fries - -/datum/deepfryer_special/corn_chips - input = /obj/item/food/grown/corn - output = /obj/item/food/cornchips - -/datum/deepfryer_special/fried_tofu - input = /obj/item/food/tofu - output = /obj/item/food/fried_tofu - -/datum/deepfryer_special/chimichanga - input = /obj/item/food/burrito - output = /obj/item/food/chimichanga - -/datum/deepfryer_special/potato_chips - input = /obj/item/food/grown/potato/wedges - output = /obj/item/food/chips - -/datum/deepfryer_special/carrotfries - input = /obj/item/food/grown/carrot/wedges - output = /obj/item/food/carrotfries - -/datum/deepfryer_special/onionrings - input = /obj/item/food/sliced/onion_slice - output = /obj/item/food/onionrings - -/datum/deepfryer_special/fried_vox - input = /obj/item/organ/external - output = /obj/item/food/fried_vox - -/datum/deepfryer_special/fried_vox/validate(obj/item/I) - if(!..()) - return FALSE - var/obj/item/organ/external/E = I - return istype(E.dna.species, /datum/species/vox) - -/obj/machinery/cooker/deepfryer/wrench_act(mob/user, obj/item/I) - . = TRUE - default_unfasten_wrench(user, I, 30) diff --git a/code/modules/food_and_drinks/kitchen_machinery/grill_new.dm b/code/modules/food_and_drinks/kitchen_machinery/grill_new.dm deleted file mode 100644 index d44d9e3caad..00000000000 --- a/code/modules/food_and_drinks/kitchen_machinery/grill_new.dm +++ /dev/null @@ -1,67 +0,0 @@ - -/obj/machinery/kitchen_machine/grill - name = "grill" - desc = "Backyard grilling, IN SPACE." - icon = 'icons/obj/cooking_machines.dmi' - icon_state = "grill_off" - cook_verbs = list("Grilling", "Searing", "Frying") - recipe_type = RECIPE_GRILL - off_icon = "grill_off" - on_icon = "grill_on" - dirty_icon = "grill_dirty" - open_icon = "grill_open" - soundloop_type = /datum/looping_sound/kitchen/grill - -// see code/modules/food/recipes_grill.dm for recipes - -/******************* -* Initialising -********************/ - -/obj/machinery/kitchen_machine/grill/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/grill(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/grill/upgraded/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/grill(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/grill/RefreshParts() - var/E - for(var/obj/item/stock_parts/micro_laser/M in component_parts) - E += M.rating - efficiency = round((E/2), 1) // There's 2 lasers, so halve the effect on the efficiency to keep it balanced - -/obj/machinery/kitchen_machine/grill/special_attack_shove(mob/user, mob/living/carbon/target) - target.visible_message( - "[user] shoves [target] onto [src], the active grill surface searing [user.p_them()]!", - "[user] shoves you onto [src], and the hot surface sears you!", - ) - target.adjustFireLoss(15) - -/obj/machinery/kitchen_machine/grill/special_attack(mob/user, mob/living/carbon/target, from_grab) - target.visible_message( - "[user] forces [target] onto [src]'s hot cooking surface, searing [target]'s body!", - "[user] forces you onto [src]! HOT HOT HOT!", - "You hear some meat being put on to cook." - ) - - target.emote("scream") - playsound(src, "sound/machines/kitchen/grill_mid.ogg", 100) - target.adjustFireLoss(30) - target.forceMove(get_turf(src)) - target.Weaken(2 SECONDS) - add_attack_logs(user, target, "Burned with [src]") - return TRUE diff --git a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm index 0d5a3c8e2a6..995d588430f 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm @@ -98,7 +98,7 @@ to_chat(user, "It's dirty!") return ITEM_INTERACT_COMPLETE - if(is_type_in_list(used, GLOB.cooking_ingredients[recipe_type]) || istype(used, /obj/item/mixing_bowl)) + if(is_type_in_list(used, GLOB.cooking_ingredients[recipe_type])) if(length(contents) >= max_n_of_items) to_chat(user, "This [src] is full of ingredients, you cannot put more.") return ITEM_INTERACT_COMPLETE @@ -136,7 +136,7 @@ to_chat(user, "[used] is empty!") return ITEM_INTERACT_COMPLETE for(var/obj/item/ingredient in used.contents) - if(!is_type_in_list(ingredient, GLOB.cooking_ingredients[recipe_type]) && !istype(ingredient, /obj/item/mixing_bowl)) + if(!is_type_in_list(ingredient, GLOB.cooking_ingredients[recipe_type])) to_chat(user, "Your [used.name] contains contents unsuitable for cookery.") return ITEM_INTERACT_COMPLETE S.hide_from(user) @@ -336,14 +336,9 @@ //builds a list of the selected recipes to be made in a later proc by associating the "source" of the ingredients (mixing bowl, machine) with the recipe for that source /obj/machinery/kitchen_machine/proc/choose_recipes() var/list/recipes_to_make = list() - for(var/obj/item/mixing_bowl/mb in contents) //if we have mixing bowls present, check each one for possible recipes from its respective contents. Mixing bowls act like a wrapper for recipes and ingredients, isolating them from other ingredients and mixing bowls within a machine. - var/datum/recipe/recipe = select_recipe(GLOB.cooking_recipes[recipe_type], mb) - if(recipe) - recipes_to_make.Add(list(list(mb, recipe))) - else //if the ingredients of the mixing bowl don't make a valid recipe, we return a fail recipe to generate the burned mess - recipes_to_make.Add(list(list(mb, RECIPE_FAIL))) - var/datum/recipe/recipe_src = select_recipe(GLOB.cooking_recipes[recipe_type], src, ignored_items = list(/obj/item/mixing_bowl)) //check the machine's directly-inserted ingredients for possible recipes as well, ignoring the mixing bowls when selecting recipe + //check the machine's directly-inserted ingredients for possible recipes as well + var/datum/recipe/recipe_src = select_recipe(GLOB.cooking_recipes[recipe_type], src) if(recipe_src) //if we found a valid recipe for directly-inserted ingredients, add that to our list recipes_to_make.Add(list(list(src, recipe_src))) else if(!length(recipes_to_make)) //if the machine has no mixing bowls to make recipes from AND also doesn't have a valid recipe of directly-inserted ingredients, return a failure so we can make a burned mess @@ -365,9 +360,6 @@ continue for(var/obj/O in source.contents) // Process supplied ingredients - if(istype(O, /obj/item/mixing_bowl)) // Mixing bowls are not ingredients, ignore - continue - if(O.reagents) O.reagents.del_reagent("nutriment") O.reagents.update_total() @@ -388,11 +380,6 @@ if(byproduct) new byproduct(loc) - if(istype(source, /obj/item/mixing_bowl)) // Cooking in mixing bowls returns them dirtier - var/obj/item/mixing_bowl/mb = source - mb.make_dirty(5 * portions) - mb.forceMove(loc) - stop() /obj/machinery/kitchen_machine/proc/wzhzhzh(seconds) @@ -405,7 +392,7 @@ /obj/machinery/kitchen_machine/proc/has_extra_item() for(var/obj/O in contents) - if(!is_type_in_list(O, list(/obj/item/food, /obj/item/grown, /obj/item/mixing_bowl))) + if(!is_type_in_list(O, list(/obj/item/food, /obj/item/grown))) return TRUE return FALSE @@ -446,9 +433,6 @@ /obj/machinery/kitchen_machine/proc/fail() var/amount = 0 - for(var/obj/item/mixing_bowl/mb in contents) //fail and remove any mixing bowls present before making the burned mess from the machine itself (to avoid them being destroyed as part of the failure) - mb.fail(src) - mb.forceMove(get_turf(src)) for(var/obj/O in contents) if(O.reagents?.total_volume) amount += O.reagents.total_volume @@ -484,10 +468,6 @@ if(!HAS_MIND_TRAIT(user, TRAIT_KNOWS_COOKING_RECIPES)) return - if(locate(/obj/item/mixing_bowl) in contents) - . += "You can't see inside the mixing bowl, you're not sure what it would do." - return - var/list/recipes = choose_recipes() if(length(recipes) == 1 && recipes[1][2] != RECIPE_FAIL) var/datum/recipe/recipe = recipes[1][2] diff --git a/code/modules/food_and_drinks/kitchen_machinery/oven_new.dm b/code/modules/food_and_drinks/kitchen_machinery/oven_new.dm deleted file mode 100644 index 6abaa5d8d0d..00000000000 --- a/code/modules/food_and_drinks/kitchen_machinery/oven_new.dm +++ /dev/null @@ -1,60 +0,0 @@ - -/obj/machinery/kitchen_machine/oven - name = "oven" - desc = "Cookies are ready, dear." - icon = 'icons/obj/cooking_machines.dmi' - icon_state = "oven_off" - cook_verbs = list("Baking", "Roasting", "Broiling") - recipe_type = RECIPE_OVEN - off_icon = "oven_off" - on_icon = "oven_on" - dirty_icon = "oven_dirty" - open_icon = "oven_open" - soundloop_type = /datum/looping_sound/kitchen/oven - -// see code/modules/food/recipes_oven.dm for recipes - -/******************* -* Initialising -********************/ - -/obj/machinery/kitchen_machine/oven/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/oven(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stock_parts/micro_laser(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/oven/upgraded/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/oven(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stock_parts/micro_laser/ultra(null) - component_parts += new /obj/item/stack/sheet/glass(null) - component_parts += new /obj/item/stack/cable_coil(null, 5) - RefreshParts() - -/obj/machinery/kitchen_machine/oven/RefreshParts() - var/E - for(var/obj/item/stock_parts/micro_laser/M in component_parts) - E += M.rating - efficiency = round((E/2), 1) // There's 2 lasers, so halve the effect on the efficiency to keep it balanced - -/obj/machinery/kitchen_machine/oven/special_attack(mob/user, mob/living/target) - var/obj/item/organ/external/head/head = target.get_organ("head") - if(!istype(head)) - to_chat(user, "This person doesn't have a head!") - return FALSE - target.visible_message("[user] bashes [target]'s head in [src]'s door!", \ - "[user] bashes your head in [src]'s door! It feels rather hot in the oven!") - target.apply_damage(25, BURN, "head") //5 fire damage, 15 brute damage, and weakening because your head was just in a hot oven with the door bashing into your neck! - target.apply_damage(25, BRUTE, "head") - target.Weaken(4 SECONDS) // With the weaken, you PROBABLY can't run unless they are slow to grab you again... - target.emote("scream") - playsound(src, "sound/machines/kitchen/oven_loop_end.ogg", 100) - add_attack_logs(user, target, "Smashed with [src]") - return TRUE diff --git a/code/modules/food_and_drinks/kitchen_machinery/processor.dm b/code/modules/food_and_drinks/kitchen_machinery/processor.dm index 7926e2edf5a..309bd224c39 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/processor.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/processor.dm @@ -90,7 +90,7 @@ ///////////////////////// /datum/food_processor_process/meat input = /obj/item/food/meat - output = /obj/item/food/meatball + output = /obj/item/food/ground_meat /datum/food_processor_process/potato input = /obj/item/food/grown/potato diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 17cac16a67f..7bbda0229e5 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -183,6 +183,9 @@ SStgui.update_uis(src) return + if(istype(used, /obj/item/autochef_remote)) + return + if(stat & (BROKEN|NOPOWER)) to_chat(user, "[src] is unpowered and useless.") return ITEM_INTERACT_COMPLETE diff --git a/code/modules/food_and_drinks/recipes/recipes_candy.dm b/code/modules/food_and_drinks/recipes/recipes_candy.dm deleted file mode 100644 index 03d1e7ba02f..00000000000 --- a/code/modules/food_and_drinks/recipes/recipes_candy.dm +++ /dev/null @@ -1,571 +0,0 @@ - -/* -* /datum/recipe/candy/ -* reagents = list() -* items = list() -* result = /obj/item/food/ -* byproduct = /obj/item/ // only set this if the recipe has a byproduct, like returning it's mould -* -* NOTE: If using a mould, make sure to list it in *BOTH* the items and byproduct lists if it is to be returned. -* Failure to list in both places will result in either consumption of the mould, or spontaneous generation of a mould. -* -*/ - -// *********************************************************** -// Candy Ingredients / Flavorings Recipes -// *********************************************************** - -/datum/recipe/candy/chocolate_bar - reagents = list("soymilk" = 2, "cocoa" = 2, "sugar" = 2) - items = list() - result = /obj/item/food/chocolatebar - -/datum/recipe/candy/chocolate_bar2 - reagents = list("milk" = 2, "cocoa" = 2, "sugar" = 2) - items = list() - result = /obj/item/food/chocolatebar - -/datum/recipe/candy/fudge_peanut - reagents = list("sugar" = 5, "milk" = 5) - items = list(/obj/item/food/chocolatebar, /obj/item/food/grown/peanuts, - /obj/item/food/grown/peanuts, /obj/item/food/grown/peanuts) - result = /obj/item/food/candy/fudge/peanut - -/datum/recipe/candy/fudge_cherry - reagents = list("sugar" = 5, "milk" = 5) - items = list(/obj/item/food/chocolatebar, /obj/item/food/grown/cherries, - /obj/item/food/grown/cherries, /obj/item/food/grown/cherries) - result = /obj/item/food/candy/fudge/cherry - -/datum/recipe/candy/fudge_cookies_n_cream - reagents = list("sugar" = 5, "milk" = 5, "cream" = 5) - items = list( - /obj/item/food/chocolatebar, - /obj/item/food/cookie, - ) - result = /obj/item/food/candy/fudge/cookies_n_cream - -/datum/recipe/candy/fudge_turtle - reagents = list("sugar" = 5, "milk" = 5) - items = list( - /obj/item/food/chocolatebar, - /obj/item/food/candy/caramel, - /obj/item/food/grown/peanuts - ) - result = /obj/item/food/candy/fudge/turtle - -/datum/recipe/candy/fudge - reagents = list("sugar" = 5, "milk" = 5) - items = list(/obj/item/food/chocolatebar) - result = /obj/item/food/candy/fudge - -/datum/recipe/candy/caramel - reagents = list("sugar" = 5, "cream" = 5) - items = list() - result = /obj/item/food/candy/caramel - -/datum/recipe/candy/toffee - reagents = list("sugar" = 5, "flour" = 10) - result = /obj/item/food/candy/toffee - -/datum/recipe/candy/taffy - reagents = list("salglu_solution" = 15) - items = list() - result = /obj/item/food/candy/taffy - -/datum/recipe/candy/nougat - reagents = list("sugar" = 5, "cornoil" = 5) - items = list(/obj/item/food/egg) - result = /obj/item/food/candy/nougat - -/datum/recipe/candy/nougat/make_food(obj/container) - var/obj/item/food/candy/nougat/being_cooked = ..() - being_cooked.reagents.del_reagent("egg") - return being_cooked - -/datum/recipe/candy/wafflecone - reagents = list("milk" = 1, "sugar" = 1) - result = /obj/item/food/wafflecone - -/datum/recipe/candy/candied_pineapple - reagents = list("sugar" = 2, "water" = 2) - items = list( - /obj/item/food/sliced/pineapple - ) - result = /obj/item/food/candy/candied_pineapple - -/datum/recipe/candy/chocolate_orange - items = list( - /obj/item/food/grown/citrus/orange, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/candy/chocolate_orange - -/datum/recipe/candy/chocolate_coin - items = list( - /obj/item/coin, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/candy/chocolate_coin - -/datum/recipe/candy/chocolate_bunny - reagents = list("sugar" = 2) - items = list( - /obj/item/food/chocolatebar - ) - result = /obj/item/food/candy/chocolate_bunny - -/datum/recipe/candy/fudge_dice - items = list( - /obj/item/dice, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/candy/fudge_dice - -// *********************************************************** -// Base Candy Recipes (unflavored / plain) -// *********************************************************** - -/datum/recipe/candy/cottoncandy - reagents = list("sugar" = 15) - items = list( - /obj/item/c_tube, - ) - result = /obj/item/food/candy/cotton - -/datum/recipe/candy/gummybear - reagents = list("sugar" = 5, "water" = 5, "cornoil" = 5) - items = list( - /obj/item/kitchen/mould/bear, - ) - result = /obj/item/food/candy/gummybear - byproduct = /obj/item/kitchen/mould/bear - -/datum/recipe/candy/gummyworm - reagents = list("sugar" = 5, "water" = 5, "cornoil" = 5) - items = list( - /obj/item/kitchen/mould/worm, - ) - result = /obj/item/food/candy/gummyworm - byproduct = /obj/item/kitchen/mould/worm - -/datum/recipe/candy/jellybean - reagents = list("sugar" = 5, "water" = 5, "cornoil" = 5) - items = list( - /obj/item/kitchen/mould/bean, - ) - result = /obj/item/food/candy/jellybean - byproduct = /obj/item/kitchen/mould/bean - -/datum/recipe/candy/jawbreaker - reagents = list("sugar" = 10, "cornoil" = 5) - items = list( - /obj/item/kitchen/mould/ball, - ) - result = /obj/item/food/candy/jawbreaker - byproduct = /obj/item/kitchen/mould/ball - -/datum/recipe/candy/candycane - reagents = list("sugar" = 5) - items = list( - /obj/item/kitchen/mould/cane, - /obj/item/food/mint, - ) - result = /obj/item/food/candy/candycane - byproduct = /obj/item/kitchen/mould/cane - -/datum/recipe/candy/gum - reagents = list("sugar" = 5, "water" = 5, "cornoil" = 5) - items = list() - result = /obj/item/food/candy/gum - -/datum/recipe/candy/candybar - reagents = list("sugar" = 5) - items = list( - /obj/item/food/chocolatebar, - ) - result = /obj/item/food/candy/candybar - -/datum/recipe/candy/cash - items = list( - /obj/item/kitchen/mould/cash, - /obj/item/food/chocolatebar, - ) - result = /obj/item/food/candy/cash - byproduct = /obj/item/kitchen/mould/cash - -/datum/recipe/candy/coin - items = list( - /obj/item/kitchen/mould/coin, - /obj/item/food/chocolatebar, - ) - result = /obj/item/food/candy/coin - byproduct = /obj/item/kitchen/mould/coin - -/datum/recipe/candy/sucker - reagents = list("sugar" = 10, "cornoil" = 5) - items = list( - /obj/item/kitchen/mould/loli, - ) - result = /obj/item/food/candy/sucker - byproduct = /obj/item/kitchen/mould/loli - -// *********************************************************** -// Cotton Candy Recipes (flavored) -// *********************************************************** - -/datum/recipe/candy/cottoncandy_red - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/red - -/datum/recipe/candy/cottoncandy_blue - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/blue - -/datum/recipe/candy/cottoncandy_poison - reagents = list("poisonberryjuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/poison - -/datum/recipe/candy/cottoncandy_green - reagents = list("limejuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/green - -/datum/recipe/candy/cottoncandy_yellow - reagents = list("lemonjuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/yellow - -/datum/recipe/candy/cottoncandy_orange - reagents = list("orangejuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/orange - -/datum/recipe/candy/cottoncandy_purple - reagents = list("grapejuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/purple - -/datum/recipe/candy/cottoncandy_pink - reagents = list("watermelonjuice" = 5) - items = list( - /obj/item/food/candy/cotton, - ) - result = /obj/item/food/candy/cotton/pink - -/datum/recipe/candy/cottoncandy_rainbow - reagents = list() - items = list( - /obj/item/food/candy/cotton/red, - /obj/item/food/candy/cotton/blue, - /obj/item/food/candy/cotton/green, - /obj/item/food/candy/cotton/yellow, - /obj/item/food/candy/cotton/orange, - /obj/item/food/candy/cotton/purple, - /obj/item/food/candy/cotton/pink, - ) - result = /obj/item/food/candy/cotton/rainbow - -/datum/recipe/candy/cottoncandy_rainbow2 - reagents = list() - items = list( - /obj/item/food/candy/cotton/red, - /obj/item/food/candy/cotton/poison, - /obj/item/food/candy/cotton/green, - /obj/item/food/candy/cotton/yellow, - /obj/item/food/candy/cotton/orange, - /obj/item/food/candy/cotton/purple, - /obj/item/food/candy/cotton/pink, - ) - result = /obj/item/food/candy/cotton/bad_rainbow - -// *********************************************************** -// Gummy Bear Recipes (flavored) -// *********************************************************** - -/datum/recipe/candy/gummybear_red - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/red - -/datum/recipe/candy/gummybear_blue - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/blue - -/datum/recipe/candy/gummybear_poison - reagents = list("poisonberryjuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/poison - -/datum/recipe/candy/gummybear_green - reagents = list("limejuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/green - -/datum/recipe/candy/gummybear_yellow - reagents = list("lemonjuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/yellow - -/datum/recipe/candy/gummybear_orange - reagents = list("orangejuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/orange - -/datum/recipe/candy/gummybear_purple - reagents = list("grapejuice" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/purple - -/datum/recipe/candy/gummybear_wtf - reagents = list("space_drugs" = 5) - items = list( - /obj/item/food/candy/gummybear, - ) - result = /obj/item/food/candy/gummybear/wtf - -/datum/recipe/candy/gummybear_wtf2 - reagents = list() - items = list(/obj/item/food/candy/gummybear, /obj/item/food/grown/ambrosia/vulgaris) - result = /obj/item/food/candy/gummybear/wtf - -// *********************************************************** -// Gummy Worm Recipes (flavored) -// *********************************************************** - -/datum/recipe/candy/gummyworm_red - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/red - -/datum/recipe/candy/gummyworm_blue - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/blue - -/datum/recipe/candy/gummyworm_poison - reagents = list("poisonberryjuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/poison - -/datum/recipe/candy/gummyworm_green - reagents = list("limejuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/green - -/datum/recipe/candy/gummyworm_yellow - reagents = list("lemonjuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/yellow - -/datum/recipe/candy/gummyworm_orange - reagents = list("orangejuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/orange - -/datum/recipe/candy/gummyworm_purple - reagents = list("grapejuice" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/purple - -/datum/recipe/candy/gummyworm_wtf - reagents = list("space_drugs" = 5) - items = list( - /obj/item/food/candy/gummyworm, - ) - result = /obj/item/food/candy/gummyworm/wtf - -/datum/recipe/candy/gummyworm_wtf2 - items = list(/obj/item/food/candy/gummyworm, /obj/item/food/grown/ambrosia/vulgaris) - result = /obj/item/food/candy/gummyworm/wtf - -// *********************************************************** -// Jelly Bean Recipes (flavored) -// *********************************************************** - -/datum/recipe/candy/jellybean_red - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/red - -/datum/recipe/candy/jellybean_blue - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/blue - -/datum/recipe/candy/jellybean_poison - reagents = list("poisonberryjuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/poison - -/datum/recipe/candy/jellybean_green - reagents = list("limejuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/green - -/datum/recipe/candy/jellybean_yellow - reagents = list("lemonjuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/yellow - -/datum/recipe/candy/jellybean_orange - reagents = list("orangejuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/orange - -/datum/recipe/candy/jellybean_purple - reagents = list("grapejuice" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/purple - -/datum/recipe/candy/jellybean_chocolate - reagents = list() - items = list( - /obj/item/food/candy/jellybean, - /obj/item/food/chocolatebar, - ) - result = /obj/item/food/candy/jellybean/chocolate - -/datum/recipe/candy/jellybean_cola - reagents = list("cola" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/cola - -/datum/recipe/candy/jellybean_popcorn - reagents = list() - items = list( - /obj/item/food/popcorn, - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/popcorn - -/datum/recipe/candy/jellybean_coffee - reagents = list("coffee" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/cola - -/datum/recipe/candy/jellybean_drgibb - reagents = list("dr_gibb" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/cola - -/datum/recipe/candy/jellybean_wtf - reagents = list("space_drugs" = 5) - items = list( - /obj/item/food/candy/jellybean, - ) - result = /obj/item/food/candy/jellybean/wtf - -/datum/recipe/candy/jellybean_wtf2 - items = list(/obj/item/food/candy/jellybean, /obj/item/food/grown/ambrosia/vulgaris) - result = /obj/item/food/candy/jellybean/wtf - -// *********************************************************** -// Candybar Recipes (flavored) -// *********************************************************** - -/datum/recipe/candy/malper - reagents = list() - items = list( - /obj/item/food/candy/candybar, - /obj/item/food/candy/caramel, - ) - result = /obj/item/food/candy/confectionery/caramel - -/datum/recipe/candy/toolerone - reagents = list() - items = list( - /obj/item/food/candy/candybar, - /obj/item/food/candy/nougat, - ) - result = /obj/item/food/candy/confectionery/nougat - -/datum/recipe/candy/yumbaton - reagents = list() - items = list( - /obj/item/food/candy/candybar, - /obj/item/food/candy/toffee, - ) - result = /obj/item/food/candy/confectionery/toffee - -/datum/recipe/candy/crunch - reagents = list("rice" = 5) - items = list( - /obj/item/food/candy/candybar, - ) - result = /obj/item/food/candy/confectionery/rice - -/datum/recipe/candy/toxinstest - reagents = list() - items = list( - /obj/item/food/candy/candybar, - /obj/item/food/candy/caramel, - /obj/item/food/candy/nougat, - ) - result = /obj/item/food/candy/confectionery/caramel_nougat diff --git a/code/modules/food_and_drinks/recipes/recipes_grill.dm b/code/modules/food_and_drinks/recipes/recipes_grill.dm deleted file mode 100644 index 5f4cf2919fd..00000000000 --- a/code/modules/food_and_drinks/recipes/recipes_grill.dm +++ /dev/null @@ -1,314 +0,0 @@ - -// /datum/recipe/grill - -/datum/recipe/grill/bacon - items = list( - /obj/item/food/raw_bacon, - ) - result = /obj/item/food/bacon - -/datum/recipe/grill/telebacon - items = list( - /obj/item/food/meat, - /obj/item/assembly/signaler - ) - result = /obj/item/food/telebacon - - -/datum/recipe/grill/syntitelebacon - items = list( - /obj/item/food/meat/syntiflesh, - /obj/item/assembly/signaler - ) - result = /obj/item/food/telebacon - -/datum/recipe/grill/friedegg - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/egg - ) - result = /obj/item/food/friedegg - -/datum/recipe/grill/birdsteak - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/meat/chicken - ) - result = /obj/item/food/meatsteak/chicken - -/datum/recipe/grill/meatsteak - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/meat - ) - result = /obj/item/food/meatsteak - -/datum/recipe/grill/salmonsteak - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/salmonmeat - ) - result = /obj/item/food/salmonsteak - -/datum/recipe/grill/syntisteak - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/meat/syntiflesh - ) - result = /obj/item/food/meatsteak - -/datum/recipe/grill/waffles - reagents = list("sugar" = 10) - items = list( - /obj/item/food/dough, - /obj/item/food/dough - ) - result = /obj/item/food/waffles - -/datum/recipe/grill/rofflewaffles - reagents = list("psilocybin" = 5, "sugar" = 10) - items = list( - /obj/item/food/dough, - /obj/item/food/dough - ) - result = /obj/item/food/rofflewaffles - -/datum/recipe/grill/grilledcheese - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/grilledcheese - -/datum/recipe/grill/sausage - items = list( - /obj/item/food/meatball, - /obj/item/food/cutlet - ) - result = /obj/item/food/sausage - -/datum/recipe/grill/fishfingers - reagents = list("flour" = 10) - items = list( - /obj/item/food/egg, - /obj/item/food/carpmeat - ) - result = /obj/item/food/fishfingers - -/datum/recipe/grill/fishfingers/make_food(obj/container) - var/obj/item/food/fishfingers/being_cooked = ..() - being_cooked.reagents.del_reagent("egg") - being_cooked.reagents.del_reagent("carpotoxin") - return being_cooked - -/datum/recipe/grill/cutlet - items = list( - /obj/item/food/rawcutlet - ) - result = /obj/item/food/cutlet - -/datum/recipe/grill/omelette - items = list( - /obj/item/food/egg, - /obj/item/food/egg, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/omelette - -/datum/recipe/grill/wingfangchu - reagents = list("soysauce" = 5) - items = list( - /obj/item/food/monstermeat/xenomeat - ) - result = /obj/item/food/wingfangchu - -/datum/recipe/grill/human_kebab - items = list( - /obj/item/stack/rods, - /obj/item/food/meat/human, - /obj/item/food/meat/human - ) - result = /obj/item/food/human/kebab - -/datum/recipe/grill/syntikebab - items = list( - /obj/item/stack/rods, - /obj/item/food/meat/syntiflesh, - /obj/item/food/meat/syntiflesh - ) - result = /obj/item/food/syntikebab - -/datum/recipe/grill/meatkeb // Do not put this above the other meat kebab variants or it will override them. - items = list( - /obj/item/stack/rods, - /obj/item/food/meat, - /obj/item/food/meat - ) - result = /obj/item/food/meatkebab - -/datum/recipe/grill/tofukebab - items = list( - /obj/item/stack/rods, - /obj/item/food/tofu, - /obj/item/food/tofu - ) - result = /obj/item/food/tofukebab - -/datum/recipe/grill/picoss_kebab - reagents = list("vinegar" = 5) - items = list( - /obj/item/food/carpmeat, - /obj/item/food/carpmeat, - /obj/item/food/grown/onion, - /obj/item/food/grown/chili, - /obj/item/stack/rods - ) - result = /obj/item/food/picoss_kebab - -/datum/recipe/grill/picoss_kebab/make_food(obj/container) - var/obj/item/food/picoss_kebab/being_cooked = ..() - being_cooked.reagents.del_reagent("carpotoxin") - return being_cooked - -/datum/recipe/grill/sushi_tamago - reagents = list("sake" = 5) - items = list( - /obj/item/food/egg, - /obj/item/food/boiledrice, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_tamago - -/datum/recipe/grill/sushi_unagi - reagents = list("sake" = 5) - items = list( - /obj/item/fish/electric_eel, - /obj/item/food/boiledrice, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sushi_unagi - -/datum/recipe/grill/sushi_ebi - items = list( - /obj/item/food/boiledrice, - /obj/item/food/boiled_shrimp, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_ebi - -/datum/recipe/grill/sushi_ikura - items = list( - /obj/item/food/boiledrice, - /obj/item/fish_eggs/salmon, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_ikura - -/datum/recipe/grill/sushi_inari - items = list( - /obj/item/food/boiledrice, - /obj/item/food/fried_tofu, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_inari - -/datum/recipe/grill/sushi_sake - items = list( - /obj/item/food/boiledrice, - /obj/item/food/salmonmeat, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_sake - -/datum/recipe/grill/sushi_smoked_salmon - items = list( - /obj/item/food/boiledrice, - /obj/item/food/salmonsteak, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_smoked_salmon - -/datum/recipe/grill/sushi_masago - items = list( - /obj/item/food/boiledrice, - /obj/item/fish_eggs/goldfish, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_masago - -/datum/recipe/grill/sushi_tobiko - items = list( - /obj/item/food/boiledrice, - /obj/item/fish_eggs/shark, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_tobiko - -/datum/recipe/grill/sushi_tobiko_egg - items = list( - /obj/item/food/sliced/sushi_tobiko, - /obj/item/food/egg, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_tobiko_egg - -/datum/recipe/grill/sushi_tai - items = list( - /obj/item/food/boiledrice, - /obj/item/food/catfishmeat, - /obj/item/stack/seaweed - ) - result = /obj/item/food/sliced/sushi_tai - -/datum/recipe/grill/goliath - items = list(/obj/item/food/monstermeat/goliath) - result = /obj/item/food/goliath_steak - -/datum/recipe/grill/shrimp_skewer - items = list( - /obj/item/food/shrimp, - /obj/item/food/shrimp, - /obj/item/food/shrimp, - /obj/item/food/shrimp, - /obj/item/stack/rods - ) - result = /obj/item/food/shrimp_skewer - -/datum/recipe/grill/fish_skewer - reagents = list("flour" = 10) - items = list( - /obj/item/food/salmonmeat, - /obj/item/food/salmonmeat, - /obj/item/stack/rods - ) - result = /obj/item/food/fish_skewer - -/datum/recipe/grill/pancake - items = list( - /obj/item/food/cookiedough - ) - result = /obj/item/food/pancake - -/datum/recipe/grill/berry_pancake - items = list( - /obj/item/food/cookiedough, - /obj/item/food/grown/berries - ) - result = /obj/item/food/pancake/berry_pancake - -/datum/recipe/grill/choc_chip_pancake - items = list( - /obj/item/food/cookiedough, - /obj/item/food/choc_pile - ) - result = /obj/item/food/pancake/choc_chip_pancake - -/datum/recipe/grill/bbqribs - reagents = list("bbqsauce" = 5) - items = list( - /obj/item/food/meat, - /obj/item/food/meat - ) - result = /obj/item/food/bbqribs diff --git a/code/modules/food_and_drinks/recipes/recipes_microwave.dm b/code/modules/food_and_drinks/recipes/recipes_microwave.dm index 433cf5e8341..4f973d7f10c 100644 --- a/code/modules/food_and_drinks/recipes/recipes_microwave.dm +++ b/code/modules/food_and_drinks/recipes/recipes_microwave.dm @@ -1,499 +1,3 @@ - - -// see code/datums/recipe.dm - -/datum/recipe/microwave/boiledegg - reagents = list("water" = 5) - items = list( - /obj/item/food/egg - ) - result = /obj/item/food/boiledegg - -/datum/recipe/microwave/dionaroast - reagents = list("facid" = 5) //It dissolves the carapace. Still poisonous, though. - items = list( - /obj/item/holder/diona, - /obj/item/food/grown/apple - ) - result = /obj/item/food/dionaroast - -/datum/recipe/microwave/jellydonut - reagents = list("berryjuice" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut/jelly - -/datum/recipe/microwave/jellydonut/slime - reagents = list("slimejelly" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut/jelly/slimejelly - -/datum/recipe/microwave/jellydonut/cherry - reagents = list("cherryjelly" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut/jelly/cherryjelly - -/datum/recipe/microwave/donut - reagents = list("sugar" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut - -/datum/recipe/microwave/donut/sprinkles - reagents = list("sugar" = 5, "sprinkles" = 2) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut/sprinkles - -/datum/recipe/microwave/apple_donut - reagents = list("applejuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/apple - -/datum/recipe/microwave/apple_donut/jelly - reagents = list("applejuice" = 5, "berryjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/apple/jelly - -/datum/recipe/microwave/apple_donut/jelly/slime - reagents = list("applejuice" = 5, "slimejelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/apple/jelly/slime - -/datum/recipe/microwave/apple_donut/jelly/cherry - reagents = list("applejuice" = 5, "cherryjelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/apple/jelly/cherry - -/datum/recipe/microwave/pink_donut - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/pink - -/datum/recipe/microwave/pink_donut/jelly - reagents = list("berryjuice" = 5, "sugar" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/pink/jelly - -/datum/recipe/microwave/pink_donut/jelly/slime - reagents = list("berryjuice" = 5, "slimejelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/pink/jelly/slime - -/datum/recipe/microwave/pink_donut/jelly/cherry - reagents = list("berryjuice" = 5, "cherryjelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/pink/jelly/cherry - -/datum/recipe/microwave/blumpkin_donut - reagents = list("blumpkinjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/blumpkin - -/datum/recipe/microwave/blumpkin_donut/jelly - reagents = list("blumpkinjuice" = 5, "berryjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/blumpkin/jelly - -/datum/recipe/microwave/blumpkin_donut/jelly/slime - reagents = list("blumpkinjuice" = 5, "slimejelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/blumpkin/jelly/slime - -/datum/recipe/microwave/blumpkin_donut/jelly/cherry - reagents = list("blumpkinjuice" = 5, "cherryjelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/blumpkin/jelly/cherry - -/datum/recipe/microwave/bungo_donut - reagents = list("bungojuice" = 5, "frostoil" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/bungo - -/datum/recipe/microwave/bungo_donut/jelly - reagents = list("bungojuice" = 5, "frostoil" = 5, "berryjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/bungo/jelly - -/datum/recipe/microwave/bungo_donut/jelly/slime - reagents = list("bungojuice" = 5, "frostoil" = 5, "slimejelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/bungo/jelly/slime - -/datum/recipe/microwave/bungo_donut/jelly/cherry - reagents = list("bungojuice" = 5, "frostoil" = 5, "cherryjelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/bungo/jelly/cherry - -/datum/recipe/microwave/caramel_donut - items = list( - /obj/item/food/donut, - /obj/item/food/candy/caramel - ) - result = /obj/item/food/donut/caramel - -/datum/recipe/microwave/caramel_donut/jelly - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/candy/caramel - ) - result = /obj/item/food/donut/caramel/jelly - -/datum/recipe/microwave/caramel_donut/jelly/slime - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/candy/caramel - ) - result = /obj/item/food/donut/caramel/jelly/slime - -/datum/recipe/microwave/caramel_donut/jelly/cherry - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/candy/caramel - ) - result = /obj/item/food/donut/caramel/jelly/cherry - -/datum/recipe/microwave/chocolate_donut - items = list( - /obj/item/food/donut, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/donut/chocolate - -/datum/recipe/microwave/chocolate_donut/jelly - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/donut/chocolate/jelly - -/datum/recipe/microwave/chocolate_donut/jelly/slime - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/donut/chocolate/jelly/slime - -/datum/recipe/microwave/chocolate_donut/jelly/cherry - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/donut/chocolate/jelly/cherry - -/datum/recipe/microwave/matcha_donut - reagents = list("teapowder" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/matcha - -/datum/recipe/microwave/matcha_donut/jelly - reagents = list("teapowder" = 5, "berryjuice" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/matcha/jelly - -/datum/recipe/microwave/matcha_donut/jelly/slime - reagents = list("teapowder" = 5, "slimejelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/matcha/jelly/slime - -/datum/recipe/microwave/matcha_donut/jelly/cherry - reagents = list("teapowder" = 5, "cherryjelly" = 5) - items = list( - /obj/item/food/donut - ) - result = /obj/item/food/donut/matcha/jelly/cherry - -/datum/recipe/microwave/meat_donut - reagents = list("ketchup" = 5) - items = list( - /obj/item/food/cookiedough, - /obj/item/food/meat - ) - result = /obj/item/food/donut/meat - -/datum/recipe/microwave/spaceman_donut - items = list( - /obj/item/food/donut, - /obj/item/food/grown/trumpet - ) - result = /obj/item/food/donut/spaceman - -/datum/recipe/microwave/spaceman_donut/jelly - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/grown/trumpet - ) - result = /obj/item/food/donut/spaceman/jelly - -/datum/recipe/microwave/spaceman_donut/jelly/slime - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/grown/trumpet - ) - result = /obj/item/food/donut/spaceman/jelly/slime - -/datum/recipe/microwave/spaceman_donut/jelly/cherry - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/donut, - /obj/item/food/grown/trumpet - ) - result = /obj/item/food/donut/spaceman/jelly/cherry - -/datum/recipe/microwave/human_burger - items = list( - /obj/item/food/meat/human, - /obj/item/food/grown/lettuce, - /obj/item/food/bun - ) - result = /obj/item/food/human/burger - -/datum/recipe/microwave/chickenburger - items = list( - /obj/item/food/bun, - /obj/item/food/meat/chicken - ) - result = /obj/item/food/burger/chicken - -/datum/recipe/microwave/plainburger - items = list( - /obj/item/food/bun, - /obj/item/food/grown/lettuce, - /obj/item/food/meat //do not place this recipe before /datum/recipe/microwave/human_burger - ) - result = /obj/item/food/burger/plain - -/datum/recipe/microwave/syntiburger - items = list( - /obj/item/food/bun, - /obj/item/food/grown/lettuce, - /obj/item/food/meat/syntiflesh - ) - result = /obj/item/food/burger/plain - -/datum/recipe/microwave/bigbiteburger - items = list( - /obj/item/food/burger/plain, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/burger/bigbite - -/datum/recipe/microwave/superbiteburger - reagents = list("sodiumchloride" = 5, "blackpepper" = 5) - items = list( - /obj/item/food/burger/bigbite, - /obj/item/food/dough, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/bacon, - /obj/item/food/sliced/tomato - ) - result = /obj/item/food/burger/superbite - -/datum/recipe/microwave/brainburger - items = list( - /obj/item/food/bun, - /obj/item/organ/internal/brain - ) - result = /obj/item/food/burger/brain - -/datum/recipe/microwave/hamborger - items = list( - /obj/item/food/bun, - /obj/item/robot_parts/head - ) - result = /obj/item/food/burger/hamborger - -/datum/recipe/microwave/xenoburger - items = list( - /obj/item/food/bun, - /obj/item/food/monstermeat/xenomeat - ) - result = /obj/item/food/burger/xeno - -/datum/recipe/microwave/fishburger - items = list( - /obj/item/food/bun, - /obj/item/food/carpmeat - ) - result = /obj/item/food/fishburger - -/datum/recipe/microwave/fishburger/make_food(obj/container) - var/obj/item/food/fishburger/being_cooked = ..() - being_cooked.reagents.del_reagent("carpotoxin") - return being_cooked - -/datum/recipe/microwave/tofuburger - items = list( - /obj/item/food/bun, - /obj/item/food/tofu - ) - result = /obj/item/food/burger/tofu - -/datum/recipe/microwave/ghostburger - items = list( - /obj/item/food/bun, - /obj/item/food/ectoplasm //where do you even find this stuff - ) - result = /obj/item/food/burger/ghost - -/datum/recipe/microwave/clownburger - items = list( - /obj/item/food/bun, - /obj/item/clothing/mask/gas/clown_hat - ) - result = /obj/item/food/burger/clown - -/datum/recipe/microwave/mimeburger - items = list( - /obj/item/food/bun, - /obj/item/clothing/head/beret - ) - result = /obj/item/food/burger/mime - -/datum/recipe/microwave/baseballburger - items = list( - /obj/item/food/bun, - /obj/item/melee/baseball_bat - ) - result = /obj/item/food/burger/baseball - -/datum/recipe/microwave/cheeseburger - items = list( - /obj/item/food/bun, - /obj/item/food/meat, - /obj/item/food/grown/lettuce, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/burger/cheese - -/datum/recipe/microwave/appendixburger - items = list( - /obj/item/food/bun, - /obj/item/organ/internal/appendix - ) - result = /obj/item/food/burger/appendix - -/datum/recipe/microwave/appendixburger_bitten - items = list( - /obj/item/food/appendix, - /obj/item/food/bun - ) - result = /obj/item/food/burger/appendix - -/datum/recipe/microwave/bearger - items = list( - /obj/item/food/bun, - /obj/item/food/monstermeat/bearmeat - ) - result = /obj/item/food/burger/bearger - -/datum/recipe/microwave/fivealarmburger - items = list( - /obj/item/food/bun, - /obj/item/food/grown/ghost_chili, - /obj/item/food/grown/ghost_chili, - /obj/item/food/grown/lettuce - ) - result = /obj/item/food/burger/fivealarm - -/datum/recipe/microwave/baconburger - items = list( - /obj/item/food/bun, - /obj/item/food/bacon, - /obj/item/food/bacon, - /obj/item/food/grown/lettuce, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/burger/bacon - -/datum/recipe/microwave/mcrib - items = list( - /obj/item/food/bun, - /obj/item/food/bbqribs, - /obj/item/food/sliced/onion_slice - ) - result = /obj/item/food/burger/mcrib - -/datum/recipe/microwave/mcguffin - items = list( - /obj/item/food/bun, - /obj/item/food/bacon, - /obj/item/food/bacon, - /obj/item/food/friedegg - ) - result = /obj/item/food/burger/mcguffin - -/datum/recipe/microwave/hotdog - items = list( - /obj/item/food/bun, - /obj/item/food/sausage - ) - result = /obj/item/food/hotdog - -/datum/recipe/microwave/donkpocket - items = list( - /obj/item/food/dough, - /obj/item/food/meatball - ) - result = /obj/item/food/donkpocket - /datum/recipe/microwave/warmdonkpocket duplicate = FALSE items = list( @@ -508,1232 +12,15 @@ ) result = /obj/item/food/warmdonkpocket -/datum/recipe/microwave/eggplantparm - items = list( - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/eggplant - ) - result = /obj/item/food/eggplantparm - -/datum/recipe/microwave/soylentviridians - reagents = list("flour" = 10) - items = list( - /obj/item/food/grown/soybeans - ) - result = /obj/item/food/soylentviridians - -/datum/recipe/microwave/soylentgreen - reagents = list("flour" = 10) - items = list( - /obj/item/food/meat/human, - /obj/item/food/meat/human - ) - result = /obj/item/food/soylentgreen - -/datum/recipe/microwave/chaosdonut - reagents = list("frostoil" = 5, "capsaicin" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/donut/chaos - -/datum/recipe/microwave/cheesyfries - items = list( - /obj/item/food/fries, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/cheesyfries - -/datum/recipe/microwave/cubancarp - items = list( - /obj/item/food/dough, - /obj/item/food/carpmeat, - /obj/item/food/grown/chili - ) - result = /obj/item/food/cubancarp - -/datum/recipe/microwave/cubancarp/make_food(obj/container) - var/obj/item/food/cubancarp/being_cooked = ..() - being_cooked.reagents.del_reagent("carpotoxin") - return being_cooked - -/datum/recipe/microwave/popcorn - items = list( - /obj/item/food/grown/corn - ) - result = /obj/item/food/popcorn - -/datum/recipe/microwave/spacylibertyduff - reagents = list("water" = 5, "vodka" = 5) - items = list( - /obj/item/food/grown/mushroom/libertycap, - /obj/item/food/grown/mushroom/libertycap, - /obj/item/food/grown/mushroom/libertycap - ) - result = /obj/item/food/spacylibertyduff - -/datum/recipe/microwave/amanitajelly - reagents = list("water" = 5, "vodka" = 5) - items = list( - /obj/item/food/grown/mushroom/amanita, - /obj/item/food/grown/mushroom/amanita, - /obj/item/food/grown/mushroom/amanita - ) - result = /obj/item/food/amanitajelly - -/datum/recipe/microwave/amanitajelly/make_food(obj/container) - var/obj/item/food/amanitajelly/being_cooked = ..() - being_cooked.reagents.del_reagent("amanitin") - return being_cooked - -/datum/recipe/microwave/meatballsoup - reagents = list("water" = 10) - items = list( - /obj/item/food/meatball, - /obj/item/food/grown/potato, - /obj/item/food/grown/carrot - ) - result = /obj/item/food/soup/meatballsoup - -/datum/recipe/microwave/vegetablesoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/potato, - /obj/item/food/grown/carrot, - /obj/item/food/grown/corn, - /obj/item/food/grown/eggplant - ) - result = /obj/item/food/soup/vegetablesoup - -/datum/recipe/microwave/nettlesoup - reagents = list("water" = 10) - items = list( - /obj/item/food/egg, - /obj/item/grown/nettle/basic, - /obj/item/food/grown/potato - ) - result = /obj/item/food/soup/nettlesoup - -/datum/recipe/microwave/wishsoup - reagents = list("water" = 20) - result = /obj/item/food/soup/wishsoup - -/datum/recipe/microwave/hotchili - items = list( - /obj/item/food/meat, - /obj/item/food/grown/chili, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/soup/hotchili - -/datum/recipe/microwave/coldchili - items = list( - /obj/item/food/meat, - /obj/item/food/grown/icepepper, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/soup/coldchili - -/datum/recipe/microwave/spellburger - items = list( - /obj/item/food/bun, - /obj/item/clothing/head/wizard - ) - result = /obj/item/food/burger/spell - -/datum/recipe/microwave/enchiladas - items = list( - /obj/item/food/cutlet, - /obj/item/food/grown/chili, - /obj/item/food/grown/chili, - /obj/item/food/grown/corn - ) - result = /obj/item/food/enchiladas - -/datum/recipe/microwave/burrito - reagents = list("capsaicin" = 5, "rice" = 5) - items = list( - /obj/item/food/cutlet, - /obj/item/food/beans, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliceable/flatdough - ) - result = /obj/item/food/burrito - -/datum/recipe/microwave/monkeysdelight - reagents = list("sodiumchloride" = 1, "blackpepper" = 1, "flour" = 10) - items = list( - /obj/item/food/monkeycube, - /obj/item/food/grown/banana - ) - result = /obj/item/food/monkeysdelight - -/datum/recipe/microwave/fishandchips - items = list( - /obj/item/food/fries, - /obj/item/food/carpmeat, - ) - result = /obj/item/food/fishandchips - -/datum/recipe/microwave/fishandchips/make_food(obj/container) - var/obj/item/food/fishandchips/being_cooked = ..() - being_cooked.reagents.del_reagent("carpotoxin") - return being_cooked - -/datum/recipe/microwave/sandwich - items = list( - /obj/item/food/meatsteak, - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/sandwich - -/datum/recipe/microwave/tomatosoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/soup/tomatosoup - -/datum/recipe/microwave/stew - reagents = list("water" = 10) - items= list( - /obj/item/food/grown/tomato, - /obj/item/food/grown/potato, - /obj/item/food/grown/carrot, - /obj/item/food/grown/eggplant, - /obj/item/food/grown/mushroom, - /obj/item/food/meat - ) - result = /obj/item/food/soup/stew - -/datum/recipe/microwave/slimetoast - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/sliced/bread, - ) - result = /obj/item/food/jelliedtoast/slime - -/datum/recipe/microwave/jelliedtoast - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/sliced/bread - ) - result = /obj/item/food/jelliedtoast/cherry - -/datum/recipe/microwave/misosoup - reagents = list("water" = 10) - items = list( - /obj/item/food/soydope, - /obj/item/food/soydope, - /obj/item/food/tofu, - /obj/item/food/tofu - ) - result = /obj/item/food/soup/misosoup - -/datum/recipe/microwave/stewedsoymeat - items = list( - /obj/item/food/soydope, - /obj/item/food/soydope, - /obj/item/food/grown/carrot, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/stewedsoymeat - -/datum/recipe/microwave/boiledspaghetti - reagents = list("water" = 5) - items = list( - /obj/item/food/spaghetti - ) - result = /obj/item/food/boiledspaghetti - -/datum/recipe/microwave/boiledrice - reagents = list("water" = 5, "rice" = 10) - result = /obj/item/food/boiledrice - -/datum/recipe/microwave/ricepudding - reagents = list("milk" = 5, "rice" = 10) - result = /obj/item/food/ricepudding - -/datum/recipe/microwave/pastatomato - reagents = list("water" = 5) - items = list( - /obj/item/food/spaghetti, - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/pastatomato - -/datum/recipe/microwave/poppypretzel - items = list( - /obj/item/seeds/poppy, - /obj/item/food/dough - ) - result = /obj/item/food/poppypretzel - -/datum/recipe/microwave/meatballspaggetti - reagents = list("water" = 5) - items = list( - /obj/item/food/spaghetti, - /obj/item/food/meatball, - /obj/item/food/meatball, - ) - result = /obj/item/food/meatballspaghetti - -/datum/recipe/microwave/spesslaw - reagents = list("water" = 5) - items = list( - /obj/item/food/spaghetti, - /obj/item/food/meatball, - /obj/item/food/meatball, - /obj/item/food/meatball, - /obj/item/food/meatball, - ) - result = /obj/item/food/spesslaw - -/datum/recipe/microwave/macncheese - reagents = list("water" = 5, "milk" = 5) - items = list( - /obj/item/food/sliced/cheesewedge, - /obj/item/food/macaroni, - ) - result = /obj/item/food/macncheese - -/datum/recipe/microwave/crazyburger - reagents = list("cornoil" = 15) - items = list( - /obj/item/food/bun, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/lettuce, - /obj/item/food/grown/chili, - /obj/item/toy/crayon/green, - /obj/item/flashlight/flare - ) - result = /obj/item/food/burger/crazy - -/datum/recipe/microwave/blt - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/food/grown/lettuce, - /obj/item/food/sliced/tomato, - /obj/item/food/bacon - ) - result = /obj/item/food/blt - -/datum/recipe/microwave/peanut_butter_jelly/cherry - reagents = list("cherryjelly" = 5, "peanutbutter" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/peanut_butter_jelly/cherry - -/datum/recipe/microwave/peanut_butter_jelly/slime - reagents = list("slimejelly" = 5, "peanutbutter" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/peanut_butter_jelly/slime - -/datum/recipe/microwave/peanut_butter_banana - reagents = list("peanutbutter" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/food/grown/banana - ) - result = /obj/item/food/peanut_butter_banana - -/datum/recipe/microwave/philly_cheesesteak - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/food/cutlet, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/onion - ) - result = /obj/item/food/philly_cheesesteak - -/datum/recipe/microwave/ppattyred - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/red - -/datum/recipe/microwave/ppattyorange - reagents = list("orangejuice" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/orange - -/datum/recipe/microwave/ppattyyellow - reagents = list("lemonjuice" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/yellow - -/datum/recipe/microwave/ppattygreen - reagents = list("limejuice" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/green - -/datum/recipe/microwave/ppattyblue - reagents = list("berryjuice" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/blue - -/datum/recipe/microwave/ppattypurple - reagents = list("grapejuice" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/purple - -/datum/recipe/microwave/ppattywhite - reagents = list("sugar" = 5) - items = list( - /obj/item/food/bun, - /obj/item/food/meat - ) - result = /obj/item/food/burger/ppatty/white - -/datum/recipe/microwave/ppattyrainbow - items = list( - /obj/item/food/burger/ppatty/red, - /obj/item/food/burger/ppatty/orange, - /obj/item/food/burger/ppatty/yellow, - /obj/item/food/burger/ppatty/green, - /obj/item/food/burger/ppatty/blue, - /obj/item/food/burger/ppatty/purple, - /obj/item/food/burger/ppatty/white - ) - result = /obj/item/food/burger/ppatty/rainbow - -/datum/recipe/microwave/elecburger - items = list( - /obj/item/food/bun, - /obj/item/stack/sheet/mineral/plasma, - /obj/item/stack/sheet/mineral/plasma - ) - result = /obj/item/food/burger/elec - -/datum/recipe/microwave/ratburger - items = list( - /obj/item/food/bun, - /obj/item/holder/mouse - ) - result = /obj/item/food/burger/rat - -/datum/recipe/microwave/candiedapple - reagents = list("water" = 5, "sugar" = 5) - items = list(/obj/item/food/grown/apple) - result = /obj/item/food/candiedapple - -/datum/recipe/microwave/slimeburger - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/bun - ) - result = /obj/item/food/burger/jelly/slime - -/datum/recipe/microwave/jellyburger - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/bun - ) - result = /obj/item/food/burger/jelly/cherry - -/datum/recipe/microwave/twobread - reagents = list("wine" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/twobread - -/datum/recipe/microwave/slimesandwich - reagents = list("slimejelly" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/jellysandwich/slime - -/datum/recipe/microwave/cherrysandwich - reagents = list("cherryjelly" = 5) - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/jellysandwich/cherry - -/datum/recipe/microwave/bloodsoup - reagents = list("blood" = 10) - items = list( - /obj/item/food/grown/tomato/blood, - /obj/item/food/grown/tomato/blood - ) - result = /obj/item/food/soup/bloodsoup - -/datum/recipe/microwave/slimesoup - reagents = list("water" = 10, "slimejelly" = 5) - result = /obj/item/food/soup/slimesoup - -/datum/recipe/microwave/clownstears - reagents = list("water" = 10) - items = list( - /obj/item/stack/ore/bananium, - /obj/item/food/grown/banana - ) - result = /obj/item/food/soup/clownstears - -/datum/recipe/microwave/clownchili - reagents = list("water" = 10) - items = list( - /obj/item/food/cutlet, - /obj/item/food/cutlet, - /obj/item/food/grown/chili, - /obj/item/food/grown/tomato, - /obj/item/clothing/shoes/clown_shoes - ) - result = /obj/item/food/soup/clownchili - -/datum/recipe/microwave/eyesoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato, - /obj/item/organ/internal/eyes - ) - result = /obj/item/food/soup/eyesoup - -/datum/recipe/microwave/sweetpotatosoup - reagents = list("water" = 10, "milk" = 10) - items = list( - /obj/item/food/grown/potato/sweet, - /obj/item/food/grown/potato/sweet - ) - result = /obj/item/food/soup/sweetpotatosoup - -/datum/recipe/microwave/redbeetsoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/redbeet, - /obj/item/food/grown/redbeet, - /obj/item/food/grown/cabbage - ) - result = /obj/item/food/soup/redbeetsoup - -/datum/recipe/microwave/frenchonionsoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/onion, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/soup/frenchonionsoup - -/datum/recipe/microwave/zurek - reagents = list("water" = 10, "flour" = 10) - items = list( - /obj/item/food/boiledegg, - /obj/item/food/sausage, - /obj/item/food/grown/carrot, - /obj/item/food/grown/onion - ) - result = /obj/item/food/soup/zurek - -/datum/recipe/microwave/cullenskink - reagents = list("water" = 10, "milk" = 10, "blackpepper" = 4) - items = list( - /obj/item/food/salmonmeat, - /obj/item/food/grown/onion, - /obj/item/food/grown/potato - ) - result = /obj/item/food/soup/cullenskink - -/datum/recipe/microwave/chicken_noodle_soup - reagents = list("water" = 10) - items = list( - /obj/item/food/meat, - /obj/item/food/grown/carrot, - /obj/item/food/boiledspaghetti - ) - result = /obj/item/food/soup/chicken_noodle_soup - -/datum/recipe/microwave/cornchowder - reagents = list("water" = 10, "cream" = 5) - items = list( - /obj/item/food/grown/corn, - /obj/item/food/grown/potato, - /obj/item/food/grown/carrot, - /obj/item/food/bacon - ) - result = /obj/item/food/soup/cornchowder - -/datum/recipe/microwave/meatball_noodles - reagents = list("water" = 10) - items = list( - /obj/item/food/cutlet, - /obj/item/food/cutlet, - /obj/item/food/grown/onion, - /obj/item/food/grown/peanuts, - /obj/item/food/meatball, - /obj/item/food/meatball, - /obj/item/food/spaghetti - ) - result = /obj/item/food/soup/meatball_noodles - -/datum/recipe/microwave/seedsoup - reagents = list("water" = 10, "vinegar" = 10) - items = list( - /obj/item/seeds/sunflower, - /obj/item/seeds/poppy/lily, - /obj/item/seeds/ambrosia - ) - result = /obj/item/food/soup/seedsoup - -/datum/recipe/microwave/beanstew - reagents = list("water" = 10) - items = list( - /obj/item/food/beans, - /obj/item/food/grown/cabbage, - /obj/item/food/grown/tomato, - /obj/item/food/grown/onion, - /obj/item/food/grown/chili, - /obj/item/food/grown/corn - ) - result = /obj/item/food/soup/beanstew - -/datum/recipe/microwave/oatstew - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/oat, - /obj/item/food/grown/potato/sweet, - /obj/item/food/grown/parsnip, - /obj/item/food/grown/carrot - ) - result = /obj/item/food/soup/oatstew - -/datum/recipe/microwave/hong_kong_borscht - reagents = list("water" = 10, "soysauce" = 5) - items = list( - /obj/item/food/grown/tomato, - /obj/item/food/grown/cabbage, - /obj/item/food/grown/onion, - /obj/item/food/grown/carrot, - /obj/item/food/cutlet - ) - result = /obj/item/food/soup/hong_kong_borscht - -/datum/recipe/microwave/hong_kong_macaroni - reagents = list("water" = 10, "cream" = 10) - items = list( - /obj/item/food/boiledspaghetti, - /obj/item/food/cutlet, - /obj/item/food/bacon - ) - result = /obj/item/food/soup/hong_kong_macaroni - -/datum/recipe/microwave/boiledslimeextract - reagents = list("water" = 5) - items = list( - /obj/item/slime_extract, - ) - result = /obj/item/food/boiledslimecore - -/datum/recipe/microwave/mint - reagents = list("toxin" = 5) - result = /obj/item/food/mint - -/datum/recipe/microwave/chocolateegg - items = list( - /obj/item/food/egg, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/chocolateegg - -/datum/recipe/microwave/mysterysoup - reagents = list("water" = 10) - items = list( - /obj/item/food/badrecipe, - /obj/item/food/tofu, - /obj/item/food/egg, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/soup/mysterysoup - -/datum/recipe/microwave/mushroomsoup - reagents = list("water" = 5, "milk" = 5) - items = list( - /obj/item/food/grown/mushroom - ) - result = /obj/item/food/soup/mushroomsoup - -/datum/recipe/microwave/chawanmushi - reagents = list("water" = 5, "soysauce" = 5) - items = list( - /obj/item/food/egg, - /obj/item/food/egg, - /obj/item/food/grown/mushroom - ) - result = /obj/item/food/chawanmushi - -/datum/recipe/microwave/beetsoup - reagents = list("water" = 10) - items = list( - /obj/item/food/grown/whitebeet, - /obj/item/food/grown/cabbage - ) - result = /obj/item/food/soup/beetsoup - -/datum/recipe/microwave/salad - items = list( - /obj/item/food/grown/lettuce, - /obj/item/food/grown/lettuce - ) - result = /obj/item/food/salad -/datum/recipe/microwave/antipasto_salad - items = list( - /obj/item/food/grown/lettuce, - /obj/item/food/grown/lettuce, - /obj/item/food/grown/olive, - /obj/item/food/grown/tomato, - /obj/item/food/cutlet, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/salad/antipasto - -/datum/recipe/microwave/caesar_salad - reagents = list("oliveoil" = 5) - items = list( - /obj/item/food/grown/lettuce, - /obj/item/food/sliced/onion_slice/red, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/salad/caesar - -/datum/recipe/microwave/citrusdelight - items = list( - /obj/item/food/grown/citrus/lime, - /obj/item/food/grown/citrus/orange, - /obj/item/food/grown/citrus/lemon - ) - result = /obj/item/food/salad/citrusdelight - -/datum/recipe/microwave/fruitsalad - items = list( - /obj/item/food/grown/citrus/orange, - /obj/item/food/grown/apple, - /obj/item/food/grown/grapes, - /obj/item/food/sliced/watermelon - ) - result = /obj/item/food/salad/fruit - -/datum/recipe/microwave/greek_salad - reagents = list("oliveoil" = 5) - items = list( - /obj/item/food/grown/olive, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/onion_slice/red, - /obj/item/food/sliced/onion_slice/red, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/salad/greek - -/datum/recipe/microwave/junglesalad - items = list( - /obj/item/food/grown/apple, - /obj/item/food/grown/grapes, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana, - /obj/item/food/sliced/watermelon, - /obj/item/food/sliced/watermelon - ) - result = /obj/item/food/salad/jungle - -/datum/recipe/microwave/kale_salad - reagents = list("oliveoil" = 5) - items = list( - /obj/item/food/grown/carrot, - /obj/item/food/grown/lettuce, - /obj/item/food/sliced/onion_slice/red, - /obj/item/food/sliced/onion_slice/red - ) - result = /obj/item/food/salad/kale - -/datum/recipe/microwave/potato_salad - reagents = list("mayonnaise" = 5) - items = list( - /obj/item/food/grown/potato, - /obj/item/food/grown/potato, - /obj/item/food/boiledegg - ) - result = /obj/item/food/salad/potato - -/datum/recipe/microwave/melonfruitbowl - items = list( - /obj/item/food/grown/watermelon, - /obj/item/food/grown/apple, - /obj/item/food/grown/ambrosia, - /obj/item/food/grown/banana, - /obj/item/food/grown/citrus/orange, - /obj/item/food/grown/citrus/lemon - ) - result = /obj/item/food/salad/melonfruitbowl - - -/datum/recipe/microwave/herbsalad - items = list( - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/apple - ) - result = /obj/item/food/salad/herb - -/datum/recipe/microwave/herbsalad/make_food(obj/container) - var/obj/item/food/salad/herb/being_cooked = ..() - being_cooked.reagents.del_reagent("toxin") - return being_cooked - -/datum/recipe/microwave/aesirsalad - items = list( - /obj/item/food/grown/ambrosia/deus, - /obj/item/food/grown/ambrosia/deus, - /obj/item/food/grown/ambrosia/deus, - /obj/item/food/grown/apple/gold - ) - result = /obj/item/food/salad/aesir - -/datum/recipe/microwave/validsalad - items = list( - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/ambrosia/vulgaris, - /obj/item/food/grown/potato, - /obj/item/food/meatball - ) - result = /obj/item/food/salad/valid - -/datum/recipe/microwave/validsalad/make_food(obj/container) - var/obj/item/food/salad/valid/being_cooked = ..() - being_cooked.reagents.del_reagent("toxin") - return being_cooked - -////////////////////////////FOOD ADDITTIONS/////////////////////////////// - -/datum/recipe/microwave/wrap - reagents = list("soysauce" = 10) - items = list( - /obj/item/food/friedegg, - /obj/item/food/grown/cabbage - ) - result = /obj/item/food/wrap - -/datum/recipe/microwave/beans - reagents = list("ketchup" = 5) - items = list( - /obj/item/food/grown/soybeans, - /obj/item/food/grown/soybeans - ) - result = /obj/item/food/beans - -/datum/recipe/microwave/benedict - items = list( - /obj/item/food/friedegg, - /obj/item/food/meatsteak, - /obj/item/food/sliced/bread - ) - result = /obj/item/food/benedict - -/datum/recipe/microwave/meatbun - reagents = list("soysauce" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/meatball, - /obj/item/food/grown/cabbage - ) - result = /obj/item/food/meatbun - -/datum/recipe/microwave/icecreamsandwich - reagents = list("ice" = 5, "cream" = 5) - items = list( - /obj/item/food/frozen/icecream - ) - result = /obj/item/food/frozen/icecreamsandwich - -/datum/recipe/microwave/cheese_balls - reagents = list("flour" = 5, "sugar" = 5, "honey" = 5) - items = list( - /obj/item/food/cheese_curds, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/cheese_balls - -/datum/recipe/microwave/red_porridge - reagents = list("vanilla" = 5, "sugar" = 5, "yogurt" = 10) - items = list( - /obj/item/food/grown/redbeet - ) - result = /obj/item/food/soup/red_porridge - -/datum/recipe/microwave/dulce_de_batata - reagents = list("vanilla" = 5, "water" = 5) - items = list( - /obj/item/food/grown/potato/sweet, - /obj/item/food/grown/potato/sweet - ) - result = /obj/item/food/sliceable/dulce_de_batata - -/datum/recipe/microwave/berryicecreamsandwich - reagents = list("ice" = 5, "cream" = 5) - items = list( - /obj/item/food/grown/cherries, - /obj/item/food/grown/cherries, - /obj/item/food/wafflecone - ) - result = /obj/item/food/frozen/berryicecreamsandwich - -/datum/recipe/microwave/sundae - reagents = list("cream" = 5) - items = list( - /obj/item/food/wafflecone, - /obj/item/food/grown/cherries, - /obj/item/food/grown/banana - ) - result = /obj/item/food/frozen/sundae - -/datum/recipe/microwave/bananatopsicle - reagents = list("sugar" = 5, "banana" = 5) - items = list( - /obj/item/popsicle_stick, - /obj/item/food/tofu - ) - result = /obj/item/food/frozen/popsicle/bananatop - -/datum/recipe/microwave/berrytopsicle - reagents = list("sugar" = 5, "berryjuice" = 5) - items = list( - /obj/item/popsicle_stick, - /obj/item/food/tofu - ) - result = /obj/item/food/frozen/popsicle/berrytop - -/datum/recipe/microwave/pineappletopsicle - reagents = list("sugar" = 5, "pineapplejuice" = 5) - items = list( - /obj/item/popsicle_stick, - /obj/item/food/tofu - ) - result = /obj/item/food/frozen/popsicle/pineappletop - -/datum/recipe/microwave/licoricecreamsicle - reagents = list("sugar" = 2, "blumpkinjuice" = 4, "ice" = 2, "vanilla" = 2, "cream" = 2) - items = list( - /obj/item/popsicle_stick - ) - result = /obj/item/food/frozen/popsicle/licoricecream - -/datum/recipe/microwave/orangecreamsicle - reagents = list("sugar" = 2, "orangejuice" = 4, "ice" = 2, "vanilla" = 2, "cream" = 2) - items = list( - /obj/item/popsicle_stick - ) - result = /obj/item/food/frozen/popsicle/orangecream - -/datum/recipe/microwave/berrycreamsicle - reagents = list("sugar" = 2, "berryjuice" = 4, "ice" = 2, "vanilla" = 2, "cream" = 2) - items = list( - /obj/item/popsicle_stick - ) - result = /obj/item/food/frozen/popsicle/berrycream - -/datum/recipe/microwave/frozenpineapplepop - items = list( - /obj/item/popsicle_stick, - /obj/item/food/sliced/pineapple, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/frozen/popsicle/frozenpineapple - -/datum/recipe/microwave/jumboicecream - reagents = list("sugar" = 2, "ice" = 2, "vanilla" = 3, "cream" = 2) - items = list( - /obj/item/popsicle_stick, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/frozen/popsicle - -/datum/recipe/microwave/seasalticecream - reagents = list("sugar" = 5, "sodiumchloride" = 3, "cream" = 5) - items = list( - /obj/item/popsicle_stick - ) - result = /obj/item/food/frozen/popsicle/sea_salt - -/datum/recipe/microwave/cornuto - reagents = list("ice" = 2, "sugar" = 4, "cream" = 4) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/frozen/cornuto - -/datum/recipe/microwave/honkdae - reagents = list("cream" = 5, "ice" = 5) - items = list( - /obj/item/food/wafflecone, - /obj/item/food/grown/cherries, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana, - /obj/item/clothing/mask/gas/clown_hat - ) - result = /obj/item/food/frozen/honkdae - -/datum/recipe/microwave/peanutbuttermochi - reagents = list("cream" = 5, "rice" = 5, "sugar" = 5, "peanutbutter" = 2) - items = list( - /obj/item/food/wafflecone - ) - result = /obj/item/food/frozen/peanutbuttermochi - -/datum/recipe/microwave/spacefreezy - reagents = list("bluecherryjelly" = 5,"spacemountainwind" = 15) - items = list( - /obj/item/food/frozen/icecream - ) - result = /obj/item/food/frozen/spacefreezy - -/datum/recipe/microwave/snowcone/apple - reagents = list("ice" = 15, "applejuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/apple - -/datum/recipe/microwave/snowcone/berry - reagents = list("ice" = 15, "berryjuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/berry - -/datum/recipe/microwave/snowcone/bluecherry - reagents = list("ice" = 15, "bluecherryjelly" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/bluecherry -/datum/recipe/microwave/snowcone/cherry - reagents = list("ice" = 15, "cherryjelly" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/cherry - -/datum/recipe/microwave/snowcone/flavorless - reagents = list("ice" = 15) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone - -/datum/recipe/microwave/snowcone/fruitsalad - reagents = list("ice" = 15, "banana" = 5, "orangejuice" = 5, "watermelonjuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/fruitsalad - -/datum/recipe/microwave/snowcone/grape - reagents = list("ice" = 15, "grapejuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/grape - -/datum/recipe/microwave/snowcone/honey - reagents = list("ice" = 15, "honey" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/honey - -/datum/recipe/microwave/snowcone/lemon - reagents = list("ice" = 15, "lemonjuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/lemon - -/datum/recipe/microwave/snowcone/lime - reagents = list("ice" = 15, "limejuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/lime - -/datum/recipe/microwave/snowcone/mime - reagents = list("ice" = 15, "nothing" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/mime - -/datum/recipe/microwave/snowcone/orange - reagents = list("ice" = 15, "orangejuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/orange - -/datum/recipe/microwave/snowcone/pineapple - reagents = list("ice" = 15, "pineapplejuice" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/pineapple - -/datum/recipe/microwave/snowcone/rainbow - reagents = list("ice" = 15, "colorful_reagent" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/rainbow - -/datum/recipe/microwave/snowcone/cola - reagents = list("ice" = 15, "cola" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/cola - -/datum/recipe/microwave/snowcone/spacemountainwind - reagents = list("ice" = 15, "spacemountainwind" = 5) - items = list( - /obj/item/reagent_containers/drinks/sillycup - ) - result = /obj/item/food/frozen/snowcone/spacemountain - -/datum/recipe/microwave/antpopsicle - reagents = list("sugar" = 5, "water" = 5, "ants" = 10) - items = list( - /obj/item/popsicle_stick - ) - result = /obj/item/food/frozen/popsicle/ant - -/datum/recipe/microwave/notasandwich - items = list( - /obj/item/food/sliced/bread, - /obj/item/food/sliced/bread, - /obj/item/clothing/mask/fakemoustache - ) - result = /obj/item/food/notasandwich - -/datum/recipe/microwave/friedbanana - reagents = list("sugar" = 10, "cornoil" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/banana - ) - result = /obj/item/food/friedbanana - -/datum/recipe/microwave/stuffing - reagents = list("water" = 5, "sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/sliceable/bread - ) - result = /obj/item/food/stuffing - -/datum/recipe/microwave/boiledspiderleg - reagents = list("water" = 10) - items = list( - /obj/item/food/monstermeat/spiderleg - ) - result = /obj/item/food/boiledspiderleg - -/datum/recipe/microwave/boiledspiderleg/make_food(obj/container) - var/obj/item/food/boiledspiderleg/being_cooked = ..() - being_cooked.reagents.del_reagent("toxin") - return being_cooked - -/datum/recipe/microwave/spidereggsham - reagents = list("sodiumchloride" = 1) - items = list( - /obj/item/food/monstermeat/spidereggs, - /obj/item/food/monstermeat/spidermeat - ) - result = /obj/item/food/spidereggsham - -/datum/recipe/microwave/spidereggsham/make_food(obj/container) - var/obj/item/food/spidereggsham/being_cooked = ..() - being_cooked.reagents.del_reagent("toxin") - return being_cooked - -/datum/recipe/microwave/sashimi - reagents = list("soysauce" = 5) - items = list( - /obj/item/food/monstermeat/spidereggs, - /obj/item/food/carpmeat - ) - result = /obj/item/food/sashimi - -/datum/recipe/microwave/sashimi/make_food(obj/container) - var/obj/item/food/sashimi/being_cooked = ..() - being_cooked.reagents.del_reagent("carpotoxin") - being_cooked.reagents.del_reagent("toxin") - return being_cooked - -/datum/recipe/microwave/mashedtaters - reagents = list("gravy" = 5) - items = list( - /obj/item/food/grown/potato - ) - result = /obj/item/food/mashed_potatoes - -////////////////////////////////////////// -// bs12 food port stuff -////////////////////////////////////////// - -/datum/recipe/microwave/taco - items = list( - /obj/item/food/sliced/dough, - /obj/item/food/cutlet, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/taco - -/datum/recipe/microwave/mint_2 - reagents = list("sugar" = 5, "frostoil" = 5) - result = /obj/item/food/mint - -/datum/recipe/microwave/boiled_shrimp - reagents = list("water" = 5) - items = list( - /obj/item/food/shrimp - ) - result = /obj/item/food/boiled_shrimp - +/// This recipe exists solely so that placing a brain in a microwave destroys it +/// for the purpose of round-removing antag assassination targets. Because an +/// effect can never be inserted into a microwave by hand, one hopes, the recipe +/// itself cannot be completed. However, it accepts a brain as an ingredient, so +/// microwaves can take that as input. +/datum/recipe/microwave/brain_disposal_method + duplicate = FALSE + items = list( + /obj/item/organ/internal/brain, + /obj/effect + ) + result = /obj/item/food/badrecipe diff --git a/code/modules/food_and_drinks/recipes/recipes_oven.dm b/code/modules/food_and_drinks/recipes/recipes_oven.dm deleted file mode 100644 index 8dacef0d42d..00000000000 --- a/code/modules/food_and_drinks/recipes/recipes_oven.dm +++ /dev/null @@ -1,869 +0,0 @@ - - -// /datum/recipe/oven - -/datum/recipe/oven/bun - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/bun - -/datum/recipe/oven/meatbread - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/meatbread - -/datum/recipe/oven/syntibread - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/meat/syntiflesh, - /obj/item/food/meat/syntiflesh, - /obj/item/food/meat/syntiflesh, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/meatbread - -/datum/recipe/oven/xenomeatbread - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/monstermeat/xenomeat, - /obj/item/food/monstermeat/xenomeat, - /obj/item/food/monstermeat/xenomeat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/xenomeatbread - -/datum/recipe/oven/bananabread - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/banana - ) - result = /obj/item/food/sliceable/bananabread - -/datum/recipe/oven/banarnarbread - reagents = list("milk" = 5, "sugar" = 5, "blood" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/banana - ) - result = /obj/item/food/sliceable/banarnarbread - -/datum/recipe/oven/muffin - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - ) - result = /obj/item/food/muffin - -/datum/recipe/oven/berry_muffin - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/berries - ) - result = /obj/item/food/berry_muffin - -/datum/recipe/oven/booberry_muffin - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/berries, - /obj/item/food/ectoplasm - ) - result = /obj/item/food/booberry_muffin - -/datum/recipe/oven/moffin - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/grown/cotton - ) - result = /obj/item/food/moffin - -/datum/recipe/oven/holy_cake - reagents = list("milk" = 5, "sugar" = 15, "holywater" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough - ) - result = /obj/item/food/sliceable/holy_cake - -/datum/recipe/oven/liars_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/chocolatebar, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/sliceable/liars_cake - -/datum/recipe/oven/vanilla_berry_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries, - /obj/item/food/grown/berries - ) - result = /obj/item/food/sliceable/vanilla_berry_cake - -/datum/recipe/oven/hardware_cake - reagents = list("milk" = 5, "sugar" = 15, "sacid" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/circuitboard, - /obj/item/circuitboard - ) - result = /obj/item/food/sliceable/hardware_cake - -/datum/recipe/oven/plum_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/plum, - /obj/item/food/grown/plum - ) - result = /obj/item/food/sliceable/plum_cake - -/datum/recipe/oven/pound_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/sliceable/plaincake, - /obj/item/food/sliceable/plaincake, - /obj/item/food/sliceable/plaincake, - /obj/item/food/sliceable/plaincake - ) - result = /obj/item/food/sliceable/pound_cake - -/datum/recipe/oven/pumpkin_spice_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/pumpkin, - /obj/item/food/grown/pumpkin - ) - result = /obj/item/food/sliceable/pumpkin_spice_cake - -/datum/recipe/oven/slime_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/slime_extract - ) - result = /obj/item/food/sliceable/slime_cake - -/datum/recipe/oven/spaceman_cake - reagents = list("milk" = 5, "sugar" = 15, "cream" = 5, "berryjuice" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/trumpet, - /obj/item/food/grown/trumpet - ) - result = /obj/item/food/sliceable/spaceman_cake - -/datum/recipe/oven/vanilla_cake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/vanillapod, - /obj/item/food/grown/vanillapod - ) - result = /obj/item/food/sliceable/vanilla_cake - -/datum/recipe/oven/mothmallow - reagents = list("vanilla" = 5, "sugar" = 15, "rum" = 5) - items = list( - /obj/item/food/grown/soybeans - ) - result = /obj/item/food/sliceable/mothmallow - -/datum/recipe/oven/carrotcake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/carrot, - /obj/item/food/grown/carrot, - /obj/item/food/grown/carrot - ) - result = /obj/item/food/sliceable/carrotcake - -/datum/recipe/oven/cheesecake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/cheesecake - -/datum/recipe/oven/plaincake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - ) - result = /obj/item/food/sliceable/plaincake - -/datum/recipe/oven/clowncake - reagents = list("milk" = 5, "sugar" = 15) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/frozen/sundae, - /obj/item/food/frozen/sundae, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana - ) - result = /obj/item/food/sliceable/clowncake - -/datum/recipe/oven/meatpie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/meat, - ) - result = /obj/item/food/meatpie - -/datum/recipe/oven/tofupie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/tofu, - ) - result = /obj/item/food/tofupie - -/datum/recipe/oven/xemeatpie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/monstermeat/xenomeat - ) - result = /obj/item/food/xemeatpie - -/datum/recipe/oven/pie - reagents = list("sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/banana - ) - result = /obj/item/food/pie - -/datum/recipe/oven/cherrypie - reagents = list("sugar" = 10) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/cherries - ) - result = /obj/item/food/cherrypie - -/datum/recipe/oven/berryclafoutis - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/berries - ) - result = /obj/item/food/berryclafoutis - -/datum/recipe/oven/cherry_cupcake - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/cherries - ) - result = /obj/item/food/cherry_cupcake - -/datum/recipe/oven/cherry_cupcake/blue - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/bluecherries - ) - result = /obj/item/food/cherry_cupcake/blue - -/datum/recipe/oven/oatmeal_cookie - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/grown/oat - ) - result = /obj/item/food/oatmeal_cookie - -/datum/recipe/oven/raisin_cookie - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/no_raisin - ) - result = /obj/item/food/raisin_cookie - -/datum/recipe/oven/peanut_butter_cookie - reagents = list("milk" = 5, "sugar" = 5, "peanutbutter" = 5) - items = list( - /obj/item/food/dough - ) - result = /obj/item/food/peanut_butter_cookie - -/datum/recipe/oven/chocolate_cornet - reagents = list("milk" = 5, "sugar" = 5, "sodiumchloride" = 1) - items = list( - /obj/item/food/cookiedough, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/chocolate_cornet - -/datum/recipe/oven/honey_bun - reagents = list("milk" = 5, "sugar" = 5, "honey" = 5) - items = list( - /obj/item/food/cookiedough - ) - result = /obj/item/food/honey_bun - -/datum/recipe/oven/cannoli - reagents = list("milk" = 1, "sugar" = 3) - items = list( - /obj/item/food/cookiedough - ) - result = /obj/item/food/cannoli - -/datum/recipe/oven/beary_pie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/monstermeat/bearmeat, - /obj/item/food/grown/berries - ) - result = /obj/item/food/beary_pie - -/datum/recipe/oven/blumpkin_pie - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/pumpkin/blumpkin - ) - result = /obj/item/food/sliceable/blumpkin_pie - -/datum/recipe/oven/chocolate_lava_tart - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/chocolatebar, - /obj/item/food/chocolatebar, - /obj/item/food/chocolatebar, - /obj/item/slime_extract - ) - result = /obj/item/food/chocolate_lava_tart - -/datum/recipe/oven/french_silk_pie - reagents = list("sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/chocolatebar, - /obj/item/food/chocolatebar - ) - result = /obj/item/food/sliceable/french_silk_pie - -/datum/recipe/oven/frosty_pie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/bluecherries - ) - result = /obj/item/food/sliceable/frosty_pie - -/datum/recipe/oven/grape_tart - reagents = list("milk = 5", "sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/grapes, - /obj/item/food/grown/grapes, - /obj/item/food/grown/grapes - ) - result = /obj/item/food/grape_tart - -/datum/recipe/oven/mime_tart - reagents = list("nothing" = 5, "milk = 5", "sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough - ) - result = /obj/item/food/mime_tart - -/datum/recipe/oven/tofubread - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/tofu, - /obj/item/food/tofu, - /obj/item/food/tofu, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/tofubread - -/datum/recipe/oven/loadedbakedpotato - items = list( - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/potato - ) - result = /obj/item/food/loadedbakedpotato - -/datum/recipe/oven/yakiimo - items = list( - /obj/item/food/grown/potato/sweet - ) - result = /obj/item/food/yakiimo - -////cookies by Ume - -/datum/recipe/oven/cookies - items = list( - /obj/item/food/rawcookies/chocochips, - ) - result = /obj/item/storage/bag/tray/cookies_tray - -/datum/recipe/oven/sugarcookies - items = list( - /obj/item/food/rawcookies, - ) - result = /obj/item/storage/bag/tray/cookies_tray/sugarcookie - - -//// - -/datum/recipe/oven/fortunecookie - reagents = list("sugar" = 5) - items = list( - /obj/item/food/sliced/dough, - /obj/item/paper, - ) - result = /obj/item/food/fortunecookie - -/datum/recipe/oven/fortunecookie/make_food(obj/container) - var/obj/item/paper/P = locate() in container - P.loc = null //So we don't delete the paper while cooking the cookie - var/obj/item/food/fortunecookie/being_cooked = ..() - if(P.info) //If there's anything written on the paper, just move it into the fortune cookie - P.forceMove(being_cooked) //Prevents the oven deleting our paper - being_cooked.trash = P //so the paper is left behind as trash without special-snowflake(TM Nodrak) code ~carn - else - qdel(P) - return being_cooked - -// Pizzas -/datum/recipe/oven/pizzamargherita - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/sliceable/pizza/margheritapizza - -/datum/recipe/oven/meatpizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/sliceable/pizza/meatpizza - -/datum/recipe/oven/mushroompizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/mushroom, - /obj/item/food/grown/mushroom, - /obj/item/food/grown/mushroom, - /obj/item/food/grown/mushroom, - /obj/item/food/grown/mushroom, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/sliceable/pizza/mushroompizza - -/datum/recipe/oven/vegetablepizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/eggplant, - /obj/item/food/grown/carrot, - /obj/item/food/grown/corn, - /obj/item/food/grown/tomato - ) - result = /obj/item/food/sliceable/pizza/vegetablepizza - -/datum/recipe/oven/hawaiianpizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/pineapple, - /obj/item/food/sliced/pineapple, - /obj/item/food/meat, - ) - result = /obj/item/food/sliceable/pizza/hawaiianpizza - -/datum/recipe/oven/macncheesepizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/macncheese, - ) - result = /obj/item/food/sliceable/pizza/macpizza - -/datum/recipe/oven/cheesepizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/sliceable/pizza/cheesepizza - -/datum/recipe/oven/pepperonipizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sausage - ) - result = /obj/item/food/sliceable/pizza/pepperonipizza - -/datum/recipe/oven/donkpocketpizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/donkpocket, - /obj/item/food/donkpocket - ) - result = /obj/item/food/sliceable/pizza/donkpocketpizza - -/datum/recipe/oven/dankpizza - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/cannabis, - /obj/item/food/grown/cannabis, - /obj/item/food/grown/cannabis, - /obj/item/food/grown/cannabis - ) - result = /obj/item/food/sliceable/pizza/dankpizza - -/datum/recipe/oven/firecrackerpizza - reagents = list("capsaicin" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/chili, - /obj/item/food/grown/chili - ) - result = /obj/item/food/sliceable/pizza/firecrackerpizza - -/datum/recipe/oven/pestopizza - reagents = list("wasabi" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/sliceable/pizza/pestopizza - -/datum/recipe/oven/garlicpizza - reagents = list("garlic" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/garlic, - /obj/item/food/grown/garlic, - /obj/item/food/sliced/cheesewedge - ) - result = /obj/item/food/sliceable/pizza/garlicpizza - - - -/datum/recipe/oven/amanita_pie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/mushroom/amanita - ) - result = /obj/item/food/amanita_pie - -/datum/recipe/oven/plump_pie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/mushroom/plumphelmet - ) - result = /obj/item/food/plump_pie - -/datum/recipe/oven/plumphelmetbiscuit - reagents = list("water" = 5, "flour" = 5) - items = list(/obj/item/food/grown/mushroom/plumphelmet) - result = /obj/item/food/plumphelmetbiscuit - -/datum/recipe/oven/creamcheesebread - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - ) - result = /obj/item/food/sliceable/creamcheesebread - -/datum/recipe/oven/baguette - reagents = list("sodiumchloride" = 1, "blackpepper" = 1) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - ) - result = /obj/item/food/baguette - -/datum/recipe/oven/croissant - items = list( - /obj/item/food/dough, - /obj/item/food/egg - ) - reagents = list("sodiumchloride" = 1, "milk" = 5, "sugar" = 5) - result = /obj/item/food/croissant - -/datum/recipe/oven/birthdaycake - reagents = list("milk" = 5, "sugar" = 15, "vanilla" = 10) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/candle, - /obj/item/candle, - /obj/item/candle, - ) - result = /obj/item/food/sliceable/birthdaycake - -/datum/recipe/oven/bread - items = list( - /obj/item/food/dough, - /obj/item/food/egg - ) - result = /obj/item/food/sliceable/bread - -/datum/recipe/oven/bread/make_food(obj/container) - var/obj/item/food/sliceable/bread/being_cooked = ..() - being_cooked.reagents.del_reagent("egg") - return being_cooked - -/datum/recipe/oven/applepie - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/apple - ) - result = /obj/item/food/applepie - -/datum/recipe/oven/applecake - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/apple, - /obj/item/food/grown/apple - ) - result = /obj/item/food/sliceable/applecake - -/datum/recipe/oven/orangecake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/citrus/orange, - /obj/item/food/grown/citrus/orange - ) - result = /obj/item/food/sliceable/orangecake - -/datum/recipe/oven/bananacake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/banana, - /obj/item/food/grown/banana - ) - result = /obj/item/food/sliceable/bananacake - -/datum/recipe/oven/limecake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/citrus/lime, - /obj/item/food/grown/citrus/lime - ) - result = /obj/item/food/sliceable/limecake - -/datum/recipe/oven/lemoncake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/grown/citrus/lemon, - /obj/item/food/grown/citrus/lemon - ) - result = /obj/item/food/sliceable/lemoncake - -/datum/recipe/oven/chocolatecake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/chocolatebar, - /obj/item/food/chocolatebar, - ) - result = /obj/item/food/sliceable/chocolatecake - -/datum/recipe/oven/braincake - reagents = list("milk" = 5) - items = list( - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/food/dough, - /obj/item/organ/internal/brain - ) - result = /obj/item/food/sliceable/braincake - -/datum/recipe/oven/pumpkinpie - reagents = list("milk" = 5, "sugar" = 5) - items = list( - /obj/item/food/sliceable/flatdough, - /obj/item/food/grown/pumpkin - ) - result = /obj/item/food/sliceable/pumpkinpie - -/datum/recipe/oven/appletart - reagents = list("sugar" = 5, "milk" = 5, "flour" = 10) - items = list( - /obj/item/food/egg, - /obj/item/food/grown/apple/gold - ) - result = /obj/item/food/appletart - -/datum/recipe/oven/appletart/make_food(obj/container) - var/obj/item/food/appletart/being_cooked = ..() - being_cooked.reagents.del_reagent("egg") - return being_cooked - -/datum/recipe/oven/cracker - reagents = list("sodiumchloride" = 1) - items = list( - /obj/item/food/sliced/dough - ) - result = /obj/item/food/cracker - -/datum/recipe/oven/sugarcookie/make_food(obj/container) - var/obj/item/food/sugarcookie/being_cooked = ..() - being_cooked.reagents.del_reagent("egg") - return being_cooked - -/datum/recipe/oven/flatbread - items = list( - /obj/item/food/sliceable/flatdough - ) - result = /obj/item/food/flatbread - -/datum/recipe/oven/toastedsandwich - items = list( - /obj/item/food/sandwich - ) - result = /obj/item/food/toastedsandwich - -/// Magic -/datum/recipe/oven/turkey - items = list( - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/stuffing, - /obj/item/food/stuffing - ) - result = /obj/item/food/sliceable/turkey - -/datum/recipe/oven/tofurkey - items = list( - /obj/item/food/tofu, - /obj/item/food/tofu, - /obj/item/food/stuffing, - ) - result = /obj/item/food/tofurkey - -/datum/recipe/oven/lasagna - items = list( - /obj/item/food/meat, - /obj/item/food/meat, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/sliced/cheesewedge, - /obj/item/food/grown/tomato, - /obj/item/food/grown/tomato, - /obj/item/food/dough - ) - result = /obj/item/food/lasagna diff --git a/code/modules/food_and_drinks/recipes/tablecraft/recipes_table.dm b/code/modules/food_and_drinks/recipes/tablecraft/recipes_table.dm index 2d69c756430..6fa058fd9fc 100644 --- a/code/modules/food_and_drinks/recipes/tablecraft/recipes_table.dm +++ b/code/modules/food_and_drinks/recipes/tablecraft/recipes_table.dm @@ -87,7 +87,7 @@ /obj/item/food/boiled_shrimp = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/ebi_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -110,7 +110,7 @@ /obj/item/fish_eggs/salmon = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/ikura_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -133,7 +133,7 @@ /obj/item/food/fried_tofu = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/inari_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -156,7 +156,7 @@ /obj/item/food/salmonmeat = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/sake_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -179,7 +179,7 @@ /obj/item/food/salmonsteak = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/smoked_salmon_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -202,7 +202,7 @@ /obj/item/fish_eggs/goldfish = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/masago_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -225,7 +225,7 @@ /obj/item/fish_eggs/shark = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/tobiko_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -248,7 +248,7 @@ /obj/item/food/egg = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/tobiko_egg_maki) category = CAT_FOOD subcategory = CAT_SUSHI @@ -271,7 +271,7 @@ /obj/item/food/catfishmeat = 4, /obj/item/stack/seaweed = 1, ) - pathtools = list(/obj/item/kitchen/sushimat) + pathtools = list(/obj/item/reagent_containers/cooking/sushimat) result = list(/obj/item/food/sliceable/tai_maki) category = CAT_FOOD subcategory = CAT_SUSHI diff --git a/code/modules/mob/living/carbon/carbon_procs.dm b/code/modules/mob/living/carbon/carbon_procs.dm index a75310785c0..daa9c1aefec 100644 --- a/code/modules/mob/living/carbon/carbon_procs.dm +++ b/code/modules/mob/living/carbon/carbon_procs.dm @@ -1171,18 +1171,22 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven to_chat(src, "You don't feel like eating any more junk food at the moment.") return FALSE + var/list/reaction_msg = list() if(fullness <= 50) - to_chat(src, "You hungrily chew out a piece of [to_eat] and gobble it!") + reaction_msg += "You hungrily chew out a piece of [to_eat] and gobble it!" + to_chat(src, "") else if(fullness > 50 && fullness < 150) - to_chat(src, "You hungrily begin to eat [to_eat].") + reaction_msg += "You hungrily begin to eat [to_eat]." else if(fullness > 150 && fullness < 500) - to_chat(src, "You take a bite of [to_eat].") + reaction_msg += "You take a bite of [to_eat]." else if(fullness > 500 && fullness < 600) - to_chat(src, "You unwillingly chew a bit of [to_eat].") + reaction_msg += "You unwillingly chew a bit of [to_eat]." else if(fullness > (600 * (1 + overeatduration / 2000))) // The more you eat - the more you can eat to_chat(src, "You cannot force any more of [to_eat] to go down your throat.") return FALSE + to_chat(src, "[jointext(reaction_msg, " ")]") + return TRUE /mob/living/carbon/proc/selfDrink(obj/item/reagent_containers/drinks/toDrink, mob/user) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index e0f3c1d304f..59a40a56e50 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -125,7 +125,7 @@ var/obj/item/organ/external/O = get_organ(organ_name) if(amount > 0) - O.receive_damage(0, amount, sharp = damage_source.sharp, used_weapon = damage_source, forbidden_limbs = list(), ignore_resists = FALSE, updating_health = updating_health) + O.receive_damage(0, amount, sharp = (damage_source ? damage_source.sharp : null), used_weapon = damage_source, forbidden_limbs = list(), ignore_resists = FALSE, updating_health = updating_health) else //if you don't want to heal robot organs, they you will have to check that yourself before using this proc. O.heal_damage(0, -amount, internal = 0, robo_repair = O.is_robotic(), updating_health = updating_health) diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index ecccb338f42..5016c15c736 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -2035,12 +2035,6 @@ Eyes need to have significantly high darksight to shine unless the mob has the X if(recipe.check_reagents_assoc_list(available_reagents) != INGREDIENT_CHECK_FAILURE && recipe.check_items_assoc_list(available_ingredients) != INGREDIENT_CHECK_FAILURE) if(istype(recipe, /datum/recipe/microwave)) possible_recipes[recipe] = RECIPE_MICROWAVE - else if(istype(recipe, /datum/recipe/oven)) - possible_recipes[recipe] = RECIPE_OVEN - else if(istype(recipe, /datum/recipe/grill)) - possible_recipes[recipe] = RECIPE_GRILL - else if(istype(recipe, /datum/recipe/candy)) - possible_recipes[recipe] = RECIPE_CANDY else possible_recipes[recipe] = "something? This shouldn't happen, make a bug report" diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 09586607ba9..6eb5268e1ff 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -631,10 +631,6 @@ name = "Greetings from Billy Bob" info = "Hey fellow botanist!
\n
\nI didn't trust the station folk so I left
\na couple of weeks ago. But here's some
\ninstructions on how to operate things here.
\nYou can grow plants and each iteration they become
\nstronger, more potent and have better yield, if you
\nknow which ones to pick. Use your botanist's analyzer
\nfor that. You can turn harvested plants into seeds
\nat the seed extractor, and replant them for better stuff!
\nSometimes if the weed level gets high in the tray
\nmutations into different mushroom or weed species have
\nbeen witnessed. On the rare occassion even weeds mutate!
\n
\nEither way, have fun!
\n
\nBest regards,
\nBilly Bob Johnson.
\n
\nPS.
\nHere's a few tips:
\nIn nettles, potency = damage
\nIn amanitas, potency = deadliness + side effect
\nIn Liberty caps, potency = drug power + effect
\nIn chilis, potency = heat
\nNutrients keep mushrooms alive!
\nWater keeps weeds such as nettles alive!
\nAll other plants need both." -/obj/item/paper/chef - name = "Cooking advice from Morgan Ramslay" - info = "Right, so you're wanting to learn how to feed the teeming masses of the station yeah?
\n
\nWell I was asked to write these tips to help you not burn all of your meals and prevent food poisonings.
\n
\nOkay first things first, making a humble ball of dough.
\n
\nCheck the lockers for a bag or two of flour and then find a glass cup or a beaker, something that can hold liquids. Next pour 15 units of flour into the container and then pour 10 units of water in as well. Hey presto! You've made a ball of dough, which can lead to many possibilities.
\n
\nAlso, before I forget, KEEP YOUR FOOD OFF THE DAMN FLOOR! Space ants love getting onto any food not on a table or kept away in a closed locker. You wouldn't believe how many injuries have resulted from space ants...
\n
\nOkay back on topic, let's make some cheese, just follow along with me here.
\n
\nLook in the lockers again for some milk cartons and grab another glass to mix with. Next look around for a bottle named 'Universal Enzyme' unless they changed the look of it, it should be a green bottle with a red label. Now pour 5 units of enzyme into a glass and 40 units of milk into the glass as well. In a matter of moments you'll have a whole wheel of cheese at your disposal.
\n
\nOkay now that you've got the ingredients, let's make a classic crewman food, cheese bread.
\n
\nMake another ball of dough, and cut up your cheese wheel with a knife or something else sharp such as a pair of wire cutters. Okay now look around for an oven in the kitchen and put 2 balls of dough and 2 cheese wedges into the oven and turn it on. After a few seconds a fresh and hot loaf of cheese bread will pop out. Lastly cut it into slices with a knife and serve.
\n
\nCongratulations on making it this far. If you haven't created a burnt mess of slop after following these directions you might just be on your way to becoming a master chef someday.
\n
\nBe sure to look up other recipes and bug the Head of Personnel if Botany isn't providing you with crops, wheat is your friend and lifeblood.
\n
\nGood luck in the kitchen, and try not to burn down the place.
\n
\n-Morgan Ramslay" - /obj/item/paper/djstation name = "Mission Briefing" info = "

Welcome to Listening Post Yenisei!


\ diff --git a/code/modules/pda/cart.dm b/code/modules/pda/cart.dm index 3c8e4ddb003..37a42e717d1 100644 --- a/code/modules/pda/cart.dm +++ b/code/modules/pda/cart.dm @@ -141,6 +141,14 @@ new /datum/data/pda/app/signaller ) +/obj/item/cartridge/chef + name = "Chef's Guide to the Galaxy" + desc = "A data cartridge for portable microcomputers. Contains every cooking recipe ever." + icon_state = "cart-chef" + programs = list( + new /datum/data/pda/app/cookbook + ) + /obj/item/cartridge/cargo name = "Space Parts & Space Vendors Cartridge" desc = "A data cartridge for portable microcomputers. Has supply records and MULEbot control." diff --git a/code/modules/pda/cookbook.dm b/code/modules/pda/cookbook.dm new file mode 100644 index 00000000000..25015f67160 --- /dev/null +++ b/code/modules/pda/cookbook.dm @@ -0,0 +1,39 @@ +// PDA apps don't seem to support ui_static_data so we do a bunch of back and +// forth filtering the recipes by category on the BYOND side +/datum/data/pda/app/cookbook + name = "Recipe Book" + title = "Chef's Guide to the Galaxy" + template = "pda_cookbook" + // Almost positive this is never used anywhere but sure + update = PDA_APP_NOUPDATE + + var/current_category + var/list/recipe_list = list() + var/search_text = "" + +/datum/data/pda/app/cookbook/ui_interact(mob/user, datum/tgui/ui) + . = ..() + ui.set_autoupdate(FALSE) + +/datum/data/pda/app/cookbook/update_ui(mob/user, list/data) + data["categories"] = list() + for(var/category in GLOB.pcwj_cookbook_lookup) + data["categories"] += category + + data["recipes"] = recipe_list + data["current_category"] = current_category + data["search_text"] = search_text + + return data + +/datum/data/pda/app/cookbook/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return + + switch(action) + if("set_category") + current_category = params["name"] + search_text = params["search_text"] + recipe_list = isnull(current_category) ? list() : GLOB.pcwj_cookbook_lookup[current_category] + SStgui.update_uis(pda) + diff --git a/code/modules/pda/pdas.dm b/code/modules/pda/pdas.dm index 4191bd58f10..05e1be0b5d2 100644 --- a/code/modules/pda/pdas.dm +++ b/code/modules/pda/pdas.dm @@ -179,6 +179,7 @@ model_name = "Thinktronic 5230 Personal Data Assistant Deluxe Special Max Turbo Limited Edition" /obj/item/pda/chef + default_cartridge = /obj/item/cartridge/chef icon_state = "pda-chef" /obj/item/pda/bar diff --git a/code/modules/reagents/chemistry/reagents_holder.dm b/code/modules/reagents/chemistry/reagents_holder.dm index e5e9780c74a..c6a46cead10 100644 --- a/code/modules/reagents/chemistry/reagents_holder.dm +++ b/code/modules/reagents/chemistry/reagents_holder.dm @@ -675,6 +675,9 @@ var/amt = list_reagents[r_id] add_reagent(r_id, amt, data) +/datum/reagents/proc/get_free_space() + return maximum_volume - total_volume + /** * Attempts to add X of the matching reagent to the holder. * @@ -783,6 +786,9 @@ return FALSE return FALSE +/datum/reagents/proc/is_empty() + return length(reagent_list) == 0 + /** * Returns the amount of the matching reagent inside the holder. * diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 25554d88c93..ea5d0ab56d4 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -34,6 +34,9 @@ if(!length(possible_transfer_amounts)) // Nothing to configure. return FALSE + return TRUE + +/obj/item/reagent_containers/proc/is_valid_interaction(mob/user) if(isrobot(user) && src.loc == user) // Borgs can configure their modules. return TRUE @@ -49,6 +52,7 @@ // I guess there's, like, a switch or a dial or something? // Whatever, you need to use your hands for this. return FALSE + return TRUE /obj/item/reagent_containers/AltClick(mob/user) diff --git a/code/modules/research/designs/machine_designs.dm b/code/modules/research/designs/machine_designs.dm index 627988fba98..d82c4eefccf 100644 --- a/code/modules/research/designs/machine_designs.dm +++ b/code/modules/research/designs/machine_designs.dm @@ -449,7 +449,7 @@ req_tech = list("programming" = 2, "magnets" = 2) build_type = IMPRINTER materials = list(MAT_GLASS = 1000) - build_path = /obj/item/circuitboard/oven + build_path = /obj/item/circuitboard/cooking/oven category = list("Misc. Machinery") /datum/design/grill @@ -462,14 +462,14 @@ build_path = /obj/item/circuitboard/grill category = list("Misc. Machinery") -/datum/design/candy_maker - name = "Machine Board (Candy Maker)" - desc = "The circuit board for a Candy Maker." - id = "candymaker" +/datum/design/ice_cream_mixer + name = "Machine Board (Ice Cream Mixer)" + desc = "The circuit board for an Ice Cream Mixer." + id = "ice_cream_mixer" req_tech = list("programming" = 2, "magnets" = 2) build_type = IMPRINTER materials = list(MAT_GLASS = 1000) - build_path = /obj/item/circuitboard/candy_maker + build_path = /obj/item/circuitboard/cooking/ice_cream_mixer category = list("Misc. Machinery") /datum/design/deepfryer @@ -661,3 +661,13 @@ materials = list(MAT_GLASS = 1000) build_path = /obj/item/circuitboard/merch category = list("Misc. Machinery") + +/datum/design/autochef + name = "Machine Design (Autochef)" + desc = "The circuit board for an autochef." + id = "autochef" + req_tech = list("programming" = 3, "bluespace" = 3, "materials" = 3) + build_type = IMPRINTER + materials = list(MAT_GLASS = 1000) + build_path = /obj/item/circuitboard/autochef + category = list("Misc. Machinery") diff --git a/code/modules/research/designs/misc_designs.dm b/code/modules/research/designs/misc_designs.dm index 1adb89055c4..b3c6c0177eb 100644 --- a/code/modules/research/designs/misc_designs.dm +++ b/code/modules/research/designs/misc_designs.dm @@ -161,3 +161,13 @@ materials = list(MAT_METAL=3000, MAT_GLASS=500) build_path = /obj/item/tank/internals/oxygen/empty category = list("Miscellaneous") + +/datum/design/autochef_remote + name = "Autochef Remote" + desc = "A remote for configuring an autochef." + id = "autochef_remote" + req_tech = list("programming" = 3, "bluespace" = 3, "materials" = 3) + build_type = PROTOLATHE + materials = list(MAT_METAL=3000) + build_path = /obj/item/autochef_remote + category = list("Miscellaneous") diff --git a/code/modules/supply/supply_packs/pack_miscellaneous.dm b/code/modules/supply/supply_packs/pack_miscellaneous.dm index 894ef3a8e77..57b438145eb 100644 --- a/code/modules/supply/supply_packs/pack_miscellaneous.dm +++ b/code/modules/supply/supply_packs/pack_miscellaneous.dm @@ -622,3 +622,24 @@ ) special = TRUE department_restrictions = list(DEPARTMENT_COMMAND) + +/datum/supply_packs/misc/cookware_crate + name = "Kitchen Cookware Crate" + cost = 250 + contains = list( + /obj/item/reagent_containers/cooking/board, + /obj/item/reagent_containers/cooking/bowl, + /obj/item/reagent_containers/cooking/bowl, + /obj/item/reagent_containers/cooking/deep_basket, + /obj/item/reagent_containers/cooking/deep_basket, + /obj/item/reagent_containers/cooking/grill_grate, + /obj/item/reagent_containers/cooking/grill_grate, + /obj/item/reagent_containers/cooking/icecream_bowl, + /obj/item/reagent_containers/cooking/oven, + /obj/item/reagent_containers/cooking/pan, + /obj/item/reagent_containers/cooking/pan, + /obj/item/reagent_containers/cooking/pot, + /obj/item/reagent_containers/cooking/pot, + ) + containertype = /obj/structure/closet/crate/cookware + containername = "cookware crate" diff --git a/code/modules/supply/supply_packs/pack_organic.dm b/code/modules/supply/supply_packs/pack_organic.dm index 78bd8766544..1ff467b6928 100644 --- a/code/modules/supply/supply_packs/pack_organic.dm +++ b/code/modules/supply/supply_packs/pack_organic.dm @@ -15,8 +15,6 @@ /obj/item/reagent_containers/condiment/peppermill, /obj/item/kitchen/rollingpin, /obj/item/storage/fancy/egg_box, - /obj/item/mixing_bowl, - /obj/item/mixing_bowl, /obj/item/reagent_containers/condiment/enzyme, /obj/item/reagent_containers/condiment/sugar, /obj/item/food/meat/monkey, diff --git a/code/tests/attack_chain/test_attack_chain_reagent_containers.dm b/code/tests/attack_chain/test_attack_chain_reagent_containers.dm index 3b6b9024697..2e64bc8d116 100644 --- a/code/tests/attack_chain/test_attack_chain_reagent_containers.dm +++ b/code/tests/attack_chain/test_attack_chain_reagent_containers.dm @@ -25,6 +25,13 @@ // ToasTODO: Add an AltClick test +// Test recipe for testing reagent containers in old kitchen machinery +/datum/recipe/microwave/test_recipe + duplicate = FALSE + reagents = list("sodiumchloride" = 50) + items = list(/obj/item/food/grown/apple) + result = /obj/item/food/badrecipe + /datum/game_test/attack_chain_condiment/Run() var/datum/test_puppeteer/player = new(src) var/obj/item/reagent_containers/saltshaker = player.spawn_obj_in_hand(/obj/item/reagent_containers/condiment/saltshaker) @@ -33,8 +40,8 @@ player.click_on(watertank) TEST_ASSERT_LAST_CHATLOG(player, "[saltshaker] is full!") - var/obj/machinery/kitchen_machine/grill = player.spawn_obj_nearby(/obj/machinery/kitchen_machine/grill) - player.click_on(grill) + var/obj/machinery/kitchen_machine/microwave = player.spawn_obj_nearby(/obj/machinery/kitchen_machine/microwave) + player.click_on(microwave) TEST_ASSERT_ANY_CHATLOG(player, "You transfer") TEST_ASSERT_NOT_CHATLOG(player, "You hit") @@ -42,7 +49,7 @@ TEST_ASSERT_LAST_CHATLOG(player, "You swallow some") saltshaker.reagents.total_volume = 0 - player.click_on(grill) + player.click_on(microwave) TEST_ASSERT_LAST_CHATLOG(player, "is empty!") player.click_on(player) TEST_ASSERT_LAST_CHATLOG(player, "None of [saltshaker] left, oh no!") diff --git a/icons/hud/radial.dmi b/icons/hud/radial.dmi index b8c96fd02a0..a4051bd68fa 100644 Binary files a/icons/hud/radial.dmi and b/icons/hud/radial.dmi differ diff --git a/icons/obj/cooking/autochef.dmi b/icons/obj/cooking/autochef.dmi new file mode 100644 index 00000000000..6673b14aac0 Binary files /dev/null and b/icons/obj/cooking/autochef.dmi differ diff --git a/icons/obj/cooking/containers.dmi b/icons/obj/cooking/containers.dmi new file mode 100644 index 00000000000..fd644ef3d9f Binary files /dev/null and b/icons/obj/cooking/containers.dmi differ diff --git a/icons/obj/cooking/machines.dmi b/icons/obj/cooking/machines.dmi new file mode 100644 index 00000000000..01df6270b14 Binary files /dev/null and b/icons/obj/cooking/machines.dmi differ diff --git a/icons/obj/cooking/misc.dmi b/icons/obj/cooking/misc.dmi new file mode 100644 index 00000000000..2d5859be67b Binary files /dev/null and b/icons/obj/cooking/misc.dmi differ diff --git a/icons/obj/crates.dmi b/icons/obj/crates.dmi index ce6214e9011..59f9b397ed9 100644 Binary files a/icons/obj/crates.dmi and b/icons/obj/crates.dmi differ diff --git a/icons/obj/food/food_ingredients.dmi b/icons/obj/food/food_ingredients.dmi index 0e444b05e6b..85d7da73600 100644 Binary files a/icons/obj/food/food_ingredients.dmi and b/icons/obj/food/food_ingredients.dmi differ diff --git a/icons/obj/food/meat.dmi b/icons/obj/food/meat.dmi index 09b8c195dc1..7dc1f9b2b05 100644 Binary files a/icons/obj/food/meat.dmi and b/icons/obj/food/meat.dmi differ diff --git a/icons/obj/kitchen.dmi b/icons/obj/kitchen.dmi index 9a172e1a671..52245571df9 100644 Binary files a/icons/obj/kitchen.dmi and b/icons/obj/kitchen.dmi differ diff --git a/icons/obj/pda.dmi b/icons/obj/pda.dmi index 77e236449f3..3ef10727c4d 100644 Binary files a/icons/obj/pda.dmi and b/icons/obj/pda.dmi differ diff --git a/paradise.dme b/paradise.dme index 1020d783a8e..27a797526c4 100644 --- a/paradise.dme +++ b/paradise.dme @@ -50,6 +50,7 @@ #include "code\__DEFINES\color_defines.dm" #include "code\__DEFINES\combat_defines.dm" #include "code\__DEFINES\construction_defines.dm" +#include "code\__DEFINES\cooking_defines.dm" #include "code\__DEFINES\crafting.dm" #include "code\__DEFINES\criminal_status.dm" #include "code\__DEFINES\cult_defines.dm" @@ -1130,7 +1131,6 @@ #include "code\game\objects\items\hand_item.dm" #include "code\game\objects\items\his_grace.dm" #include "code\game\objects\items\latexballoon.dm" -#include "code\game\objects\items\mixing_bowl.dm" #include "code\game\objects\items\random_items.dm" #include "code\game\objects\items\roulette.dm" #include "code\game\objects\items\salvage.dm" @@ -1141,6 +1141,7 @@ #include "code\game\objects\items\toys.dm" #include "code\game\objects\items\trash.dm" #include "code\game\objects\items\devices\aicard.dm" +#include "code\game\objects\items\devices\autochef_remote.dm" #include "code\game\objects\items\devices\autopsy.dm" #include "code\game\objects\items\devices\camera_bug.dm" #include "code\game\objects\items\devices\chameleon_counter.dm" @@ -1885,6 +1886,35 @@ #include "code\modules\clothing\under\jobs\plasmamen\engineering_plasmasuits.dm" #include "code\modules\clothing\under\jobs\plasmamen\medsci.dm" #include "code\modules\clothing\under\jobs\plasmamen\security_plasmasuits.dm" +#include "code\modules\cooking\cooking_container.dm" +#include "code\modules\cooking\cooking_recipe.dm" +#include "code\modules\cooking\recipe_tracker.dm" +#include "code\modules\cooking\autochef\autochef.dm" +#include "code\modules\cooking\autochef\autochef_guide.dm" +#include "code\modules\cooking\autochef\autochef_task.dm" +#include "code\modules\cooking\autochef\autochef_task_follow_recipe.dm" +#include "code\modules\cooking\autochef\autochef_task_make_item.dm" +#include "code\modules\cooking\machines\cooking_machine.dm" +#include "code\modules\cooking\machines\cooking_surface.dm" +#include "code\modules\cooking\machines\deep_fryer.dm" +#include "code\modules\cooking\machines\grill.dm" +#include "code\modules\cooking\machines\ice_cream_mixer.dm" +#include "code\modules\cooking\machines\oven.dm" +#include "code\modules\cooking\machines\stovetop.dm" +#include "code\modules\cooking\recipes\cutting_board_recipes.dm" +#include "code\modules\cooking\recipes\deep_fryer_recipes.dm" +#include "code\modules\cooking\recipes\grill_recipes.dm" +#include "code\modules\cooking\recipes\ice_cream_mixer_recipes.dm" +#include "code\modules\cooking\recipes\midway_recipes.dm" +#include "code\modules\cooking\recipes\oven_recipes.dm" +#include "code\modules\cooking\recipes\prep_bowl_recipes.dm" +#include "code\modules\cooking\recipes\stove_recipes.dm" +#include "code\modules\cooking\recipes\sushi_mat_recipes.dm" +#include "code\modules\cooking\steps\recipe_step.dm" +#include "code\modules\cooking\steps\recipe_step_add_item.dm" +#include "code\modules\cooking\steps\recipe_step_add_produce.dm" +#include "code\modules\cooking\steps\recipe_step_add_reagent.dm" +#include "code\modules\cooking\steps\recipe_step_use_machine.dm" #include "code\modules\countdown\countdown.dm" #include "code\modules\crafting\craft.dm" #include "code\modules\crafting\guncrafting.dm" @@ -2009,23 +2039,16 @@ #include "code\modules\food_and_drinks\food\foods\seafood.dm" #include "code\modules\food_and_drinks\food\foods\side_dishes.dm" #include "code\modules\food_and_drinks\food\foods\soups.dm" -#include "code\modules\food_and_drinks\kitchen_machinery\candy_maker.dm" #include "code\modules\food_and_drinks\kitchen_machinery\cereal_maker.dm" #include "code\modules\food_and_drinks\kitchen_machinery\cooker.dm" -#include "code\modules\food_and_drinks\kitchen_machinery\deep_fryer.dm" #include "code\modules\food_and_drinks\kitchen_machinery\gibber.dm" -#include "code\modules\food_and_drinks\kitchen_machinery\grill_new.dm" #include "code\modules\food_and_drinks\kitchen_machinery\icecream_vat.dm" #include "code\modules\food_and_drinks\kitchen_machinery\kitchen_machine.dm" #include "code\modules\food_and_drinks\kitchen_machinery\microwave.dm" #include "code\modules\food_and_drinks\kitchen_machinery\monkeyrecycler.dm" -#include "code\modules\food_and_drinks\kitchen_machinery\oven_new.dm" #include "code\modules\food_and_drinks\kitchen_machinery\processor.dm" #include "code\modules\food_and_drinks\kitchen_machinery\smartfridge.dm" -#include "code\modules\food_and_drinks\recipes\recipes_candy.dm" -#include "code\modules\food_and_drinks\recipes\recipes_grill.dm" #include "code\modules\food_and_drinks\recipes\recipes_microwave.dm" -#include "code\modules\food_and_drinks\recipes\recipes_oven.dm" #include "code\modules\food_and_drinks\recipes\tablecraft\recipes_table.dm" #include "code\modules\games\52card.dm" #include "code\modules\games\cards.dm" @@ -2663,6 +2686,7 @@ #include "code\modules\pda\app.dm" #include "code\modules\pda\cart.dm" #include "code\modules\pda\cart_apps.dm" +#include "code\modules\pda\cookbook.dm" #include "code\modules\pda\core_apps.dm" #include "code\modules\pda\games.dm" #include "code\modules\pda\messenger.dm" diff --git a/sound/effects/Liquid_transfer_mono.ogg b/sound/effects/Liquid_transfer_mono.ogg new file mode 100644 index 00000000000..8db7d100e02 Binary files /dev/null and b/sound/effects/Liquid_transfer_mono.ogg differ diff --git a/sound/items/lighter.ogg b/sound/items/lighter.ogg new file mode 100644 index 00000000000..9deb37057ea Binary files /dev/null and b/sound/items/lighter.ogg differ diff --git a/tgui/packages/tgui/interfaces/pda/pda_cookbook.js b/tgui/packages/tgui/interfaces/pda/pda_cookbook.js new file mode 100644 index 00000000000..af19da0970b --- /dev/null +++ b/tgui/packages/tgui/interfaces/pda/pda_cookbook.js @@ -0,0 +1,58 @@ +import { useBackend, useLocalState } from '../../backend'; +import { createSearch, decodeHtmlEntities } from 'common/string'; +import { flow } from 'common/fp'; +import { filter, sortBy } from 'common/collections'; +import { Box, Button, Input, Section, Stack } from '../../components'; + +export const pda_cookbook = (props, context) => { + const { act, data } = useBackend(context); + const { categories, current_category, recipes, search_text } = data; + + const [recipeList, setRecipeList] = useLocalState(context, 'recipeList', recipes); + const [searchText, setSearchText] = useLocalState(context, 'searchText', search_text); + + return ( + + {categories.sort().map((category, i) => ( + + ))} + {current_category && ( +
setSearchText(value)} + value={searchText} + /> + } + > + + {recipes + .filter( + createSearch(searchText, (recipe) => { + return recipe.name + '|' + recipe.container + '|' + recipe.instructions.toString(); + }) + ) + .sort((a, b) => a?.name.localeCompare(b?.name)) + .map((recipe, i) => ( + +
+ {recipe.container}: +
    + {recipe.instructions.map((instruction, j) => ( +
  1. {instruction}
  2. + ))} +
+
+
+ ))} +
+
+ )} +
+ ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index e6be98bb92d..0b5974d3410 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,30 +1,30 @@ -(function(){(function(){var Jt={96376:function(T,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=g(n(74758)),a=g(n(28811)),t=g(n(98309)),o=g(n(44896)),f=g(n(33118)),b=g(n(10579)),y=g(n(56500)),B=g(n(17633));r.detectOverflow=B.default;var k=n(75573);function g(u){return u&&u.__esModule?u:{default:u}}var i={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var u=arguments.length,s=new Array(u),d=0;d0&&(0,a.round)(g.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(g.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,l=m.visualViewport,u=!(0,o.default)()&&k,s=(g.left+(u&&l?l.offsetLeft:0))/i,d=(g.top+(u&&l?l.offsetTop:0))/c,v=g.width/i,C=g.height/c;return{width:v,height:C,top:d,right:s+v,bottom:d+C,left:s,x:s,y:d}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),y=u(n(16599)),B=n(75573),k=u(n(37786)),g=u(n(57819)),i=u(n(4206)),c=u(n(12972)),m=u(n(81666)),l=n(63618);function u(h){return h&&h.__esModule?h:{default:h}}function s(h,p){var N=(0,k.default)(h,!1,p==="fixed");return N.top=N.top+h.clientTop,N.left=N.left+h.clientLeft,N.bottom=N.top+h.clientHeight,N.right=N.left+h.clientWidth,N.width=h.clientWidth,N.height=h.clientHeight,N.x=N.left,N.y=N.top,N}function d(h,p,N){return p===e.viewport?(0,m.default)((0,a.default)(h,N)):(0,B.isElement)(p)?s(p,N):(0,m.default)((0,t.default)((0,b.default)(h)))}function v(h){var p=(0,o.default)((0,g.default)(h)),N=["absolute","fixed"].indexOf((0,y.default)(h).position)>=0,V=N&&(0,B.isHTMLElement)(h)?(0,f.default)(h):h;return(0,B.isElement)(V)?p.filter(function(S){return(0,B.isElement)(S)&&(0,i.default)(S,V)&&(0,c.default)(S)!=="body"}):[]}function C(h,p,N,V){var S=p==="clippingParents"?v(h):[].concat(p),I=[].concat(S,[N]),L=I[0],w=I.reduce(function(A,x){var E=d(h,x,V);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},d(h,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),y=k(n(10798)),B=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function g(c){var m=c.getBoundingClientRect(),l=(0,B.round)(m.width)/c.offsetWidth||1,u=(0,B.round)(m.height)/c.offsetHeight||1;return l!==1||u!==1}function i(c,m,l){l===void 0&&(l=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&g(m),d=(0,b.default)(m),v=(0,e.default)(c,s,l),C={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(u||!u&&!l)&&(((0,t.default)(m)!=="body"||(0,y.default)(d))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(h=(0,e.default)(m,!0),h.x+=m.clientLeft,h.y+=m.clientTop):d&&(h.x=(0,f.default)(d))),{x:v.left+C.scrollLeft-h.x,y:v.top+C.scrollTop-h.y,width:v.width,height:v.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(B){return B&&B.__esModule?B:{default:B}}function y(B){var k,g=(0,e.default)(B),i=(0,o.default)(B),c=(k=B.ownerDocument)==null?void 0:k.body,m=(0,f.max)(g.scrollWidth,g.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(g.scrollHeight,g.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-i.scrollLeft+(0,t.default)(B),s=-i.scrollTop;return(0,a.default)(c||g).direction==="rtl"&&(u+=(0,f.max)(g.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:u,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=B(n(95115)),a=B(n(12972)),t=B(n(16599)),o=n(75573),f=B(n(87031)),b=B(n(57819)),y=B(n(35366));function B(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function g(c){var m=/firefox/i.test((0,y.default)()),l=/Trident/i.test((0,y.default)());if(l&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var d=(0,t.default)(s);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||m&&d.willChange==="filter"||m&&d.filter&&d.filter!=="none")return s;s=s.parentNode}return null}function i(c){for(var m=(0,e.default)(c),l=k(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=k(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||g(c)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,B){var k=(0,e.default)(y),g=(0,a.default)(y),i=k.visualViewport,c=g.clientWidth,m=g.clientHeight,l=0,u=0;if(i){c=i.width,m=i.height;var s=(0,o.default)();(s||!s&&B==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(y),y:u}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,y=f.overflowX,B=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+B+y)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,B){var k;B===void 0&&(B=[]);var g=(0,e.default)(y),i=g===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(g),m=i?[c].concat(c.visualViewport||[],(0,o.default)(g)?g:[]):g,l=B.concat(m);return i?l:l.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",B=r.clippingParents="clippingParents",k=r.viewport="viewport",g=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=f.reduce(function(S,I){return S.concat([I+"-"+b,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(S,I){return S.concat([I,I+"-"+b,I+"-"+y])},[]),l=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",d=r.beforeMain="beforeMain",v=r.main="main",C=r.afterMain="afterMain",h=r.beforeWrite="beforeWrite",p=r.write="write",N=r.afterWrite="afterWrite",V=r.modifierPhases=[l,u,s,d,v,C,h,p,N]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var B=y.state;Object.keys(B.elements).forEach(function(k){var g=B.styles[k]||{},i=B.attributes[k]||{},c=B.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,g),Object.keys(i).forEach(function(m){var l=i[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(y){var B=y.state,k={popper:{position:B.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(B.elements.popper.style,k.popper),B.styles=k,B.elements.arrow&&Object.assign(B.elements.arrow.style,k.arrow),function(){Object.keys(B.elements).forEach(function(g){var i=B.elements[g],c=B.attributes[g]||{},m=Object.keys(B.styles.hasOwnProperty(g)?B.styles[g]:k[g]),l=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(u){i.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=g(n(83104)),a=g(n(28811)),t=g(n(4206)),o=g(n(44896)),f=g(n(41199)),b=n(28595),y=g(n(43286)),B=g(n(81447)),k=n(46206);function g(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(s,d){return s=typeof s=="function"?s(Object.assign({},d.rects,{placement:d.placement})):s,(0,y.default)(typeof s!="number"?s:(0,B.default)(s,k.basePlacements))}return u}();function c(u){var s,d=u.state,v=u.name,C=u.options,h=d.elements.arrow,p=d.modifiersData.popperOffsets,N=(0,e.default)(d.placement),V=(0,f.default)(N),S=[k.left,k.right].indexOf(N)>=0,I=S?"height":"width";if(!(!h||!p)){var L=i(C.padding,d),w=(0,a.default)(h),A=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,E=d.rects.reference[I]+d.rects.reference[V]-p[V]-d.rects.popper[I],P=p[V]-d.rects.reference[V],D=(0,o.default)(h),M=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-P/2,O=L[A],F=M-w[I]-L[x],_=M/2-w[I]/2+R,U=(0,b.within)(O,_,F),z=V;d.modifiersData[v]=(s={},s[z]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,d=u.options,v=d.element,C=v===void 0?"[data-popper-arrow]":v;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),y=k(n(45)),B=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(u,s){var d=u.x,v=u.y,C=s.devicePixelRatio||1;return{x:(0,B.round)(d*C)/C||0,y:(0,B.round)(v*C)/C||0}}function c(u){var s,d=u.popper,v=u.popperRect,C=u.placement,h=u.variation,p=u.offsets,N=u.position,V=u.gpuAcceleration,S=u.adaptive,I=u.roundOffsets,L=u.isFixed,w=p.x,A=w===void 0?0:w,x=p.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var D=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,O=e.top,F=window;if(S){var _=(0,a.default)(d),U="clientHeight",z="clientWidth";if(_===(0,t.default)(d)&&(_=(0,o.default)(d),(0,f.default)(_).position!=="static"&&N==="absolute"&&(U="scrollHeight",z="scrollWidth")),_=_,C===e.top||(C===e.left||C===e.right)&&h===e.end){O=e.bottom;var $=L&&_===F&&F.visualViewport?F.visualViewport.height:_[U];E-=$-v.height,E*=V?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&h===e.end){R=e.right;var G=L&&_===F&&F.visualViewport?F.visualViewport.width:_[z];A-=G-v.width,A*=V?1:-1}}var X=Object.assign({position:N},S&&g),J=I===!0?i({x:A,y:E},(0,t.default)(d)):{x:A,y:E};if(A=J.x,E=J.y,V){var se;return Object.assign({},X,(se={},se[O]=M?"0":"",se[R]=D?"0":"",se.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",se))}return Object.assign({},X,(s={},s[O]=M?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,d=u.options,v=d.gpuAcceleration,C=v===void 0?!0:v,h=d.adaptive,p=h===void 0?!0:h,N=d.roundOffsets,V=N===void 0?!0:N,S={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:C,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},S,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},S,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,B=b.instance,k=b.options,g=k.scroll,i=g===void 0?!0:g,c=k.resize,m=c===void 0?!0:c,l=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&u.forEach(function(s){s.addEventListener("scroll",B.update,t)}),m&&l.addEventListener("resize",B.update,t),function(){i&&u.forEach(function(s){s.removeEventListener("scroll",B.update,t)}),m&&l.removeEventListener("resize",B.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=B(n(71376)),a=B(n(83104)),t=B(n(86459)),o=B(n(17633)),f=B(n(9041)),b=n(46206),y=B(n(45));function B(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function g(c){var m=c.state,l=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=l.mainAxis,d=s===void 0?!0:s,v=l.altAxis,C=v===void 0?!0:v,h=l.fallbackPlacements,p=l.padding,N=l.boundary,V=l.rootBoundary,S=l.altBoundary,I=l.flipVariations,L=I===void 0?!0:I,w=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=h||(E||!L?[(0,e.default)(A)]:k(A)),D=[A].concat(P).reduce(function(ne,te){return ne.concat((0,a.default)(te)===b.auto?(0,f.default)(m,{placement:te,boundary:N,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):te)},[]),M=m.rects.reference,R=m.rects.popper,O=new Map,F=!0,_=D[0],U=0;U=0,J=X?"width":"height",se=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:V,altBoundary:S,padding:p}),ie=X?G?b.right:b.left:G?b.bottom:b.top;M[J]>R[J]&&(ie=(0,e.default)(ie));var me=(0,e.default)(ie),q=[];if(d&&q.push(se[$]<=0),C&&q.push(se[ie]<=0,se[me]<=0),q.every(function(ne){return ne})){_=z,F=!1;break}O.set(z,q)}if(F)for(var re=L?3:1,ae=function(){function ne(te){var fe=D.find(function(pe){var ce=O.get(pe);if(ce)return ce.slice(0,te).every(function(Ve){return Ve})});if(fe)return _=fe,"break"}return ne}(),le=re;le>0;le--){var Z=ae(le);if(Z==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:g,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(B){return B&&B.__esModule?B:{default:B}}function o(B,k,g){return g===void 0&&(g={x:0,y:0}),{top:B.top-k.height-g.y,right:B.right-k.width+g.x,bottom:B.bottom-k.height+g.y,left:B.left-k.width-g.x}}function f(B){return[e.top,e.right,e.bottom,e.left].some(function(k){return B[k]>=0})}function b(B){var k=B.state,g=B.name,i=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,l=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(l,i),d=o(u,c,m),v=f(s),C=f(d);k.modifiersData[g]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:v,hasPopperEscaped:C},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":C})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=g(n(19975));r.applyStyles=e.default;var a=g(n(52744));r.arrow=a.default;var t=g(n(59894));r.computeStyles=t.default;var o=g(n(36692));r.eventListeners=o.default;var f=g(n(23798));r.flip=f.default;var b=g(n(83761));r.hide=b.default;var y=g(n(61410));r.offset=y.default;var B=g(n(40107));r.popperOffsets=B.default;var k=g(n(75137));r.preventOverflow=k.default;function g(i){return i&&i.__esModule?i:{default:i}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,B,k){var g=(0,e.default)(y),i=[a.left,a.top].indexOf(g)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},B,{placement:y})):k,m=c[0],l=c[1];return m=m||0,l=(l||0)*i,[a.left,a.right].indexOf(g)>=0?{x:l,y:m}:{x:m,y:l}}function f(y){var B=y.state,k=y.options,g=y.name,i=k.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(d,v){return d[v]=o(v,B.rects,c),d},{}),l=m[B.placement],u=l.x,s=l.y;B.modifiersData.popperOffsets!=null&&(B.modifiersData.popperOffsets.x+=u,B.modifiersData.popperOffsets.y+=s),B.modifiersData[g]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,y=f.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),f=n(28595),b=c(n(28811)),y=c(n(44896)),B=c(n(17633)),k=c(n(45)),g=c(n(34780)),i=n(63618);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,d=u.options,v=u.name,C=d.mainAxis,h=C===void 0?!0:C,p=d.altAxis,N=p===void 0?!1:p,V=d.boundary,S=d.rootBoundary,I=d.altBoundary,L=d.padding,w=d.tether,A=w===void 0?!0:w,x=d.tetherOffset,E=x===void 0?0:x,P=(0,B.default)(s,{boundary:V,rootBoundary:S,padding:L,altBoundary:I}),D=(0,a.default)(s.placement),M=(0,k.default)(s.placement),R=!M,O=(0,t.default)(D),F=(0,o.default)(O),_=s.modifiersData.popperOffsets,U=s.rects.reference,z=s.rects.popper,$=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,G=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(h){var se,ie=O==="y"?e.top:e.left,me=O==="y"?e.bottom:e.right,q=O==="y"?"height":"width",re=_[O],ae=re+P[ie],le=re-P[me],Z=A?-z[q]/2:0,ne=M===e.start?U[q]:z[q],te=M===e.start?-z[q]:-U[q],fe=s.elements.arrow,pe=A&&fe?(0,b.default)(fe):{width:0,height:0},ce=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,g.default)(),Ve=ce[ie],Ce=ce[me],Ne=(0,f.within)(0,U[q],pe[q]),Be=R?U[q]/2-Z-Ne-Ve-G.mainAxis:ne-Ne-Ve-G.mainAxis,be=R?-U[q]/2+Z+Ne+Ce+G.mainAxis:te+Ne+Ce+G.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?O==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(se=X==null?void 0:X[O])!=null?se:0,Re=re+Be-xe-we,He=re+be-xe,ye=(0,f.within)(A?(0,i.min)(ae,Re):ae,re,A?(0,i.max)(le,He):le);_[O]=ye,J[O]=ye-re}if(N){var de,he=O==="x"?e.top:e.left,ke=O==="x"?e.bottom:e.right,ve=_[F],Se=F==="y"?"height":"width",Pe=ve+P[he],je=ve-P[ke],Fe=[e.top,e.left].indexOf(D)!==-1,ze=(de=X==null?void 0:X[F])!=null?de:0,We=Fe?Pe:ve-U[Se]-z[Se]-ze+G.altAxis,Ue=Fe?ve+U[Se]+z[Se]-ze-G.altAxis:je,Xe=A&&Fe?(0,f.withinMaxClamp)(We,ve,Ue):(0,f.within)(A?We:Pe,ve,A?Ue:je);_[F]=Xe,J[F]=Xe-ve}s.modifiersData[v]=J}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],B=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),f=l(n(59894)),b=l(n(19975)),y=l(n(61410)),B=l(n(23798)),k=l(n(75137)),g=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(e,d)||d in r&&r[d]===m[d]||(r[d]=m[d])});function l(d){return d&&d.__esModule?d:{default:d}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,y.default,B.default,k.default,g.default,i.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,B){B===void 0&&(B={});var k=B,g=k.placement,i=k.boundary,c=k.rootBoundary,m=k.padding,l=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,d=(0,e.default)(g),v=d?l?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===d}):a.basePlacements,C=v.filter(function(p){return s.indexOf(p)>=0});C.length===0&&(C=v);var h=C.reduce(function(p,N){return p[N]=(0,t.default)(y,{placement:N,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(N)],p},{});return Object.keys(h).sort(function(p,N){return h[p]-h[N]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){var B=y.reference,k=y.element,g=y.placement,i=g?(0,e.default)(g):null,c=g?(0,a.default)(g):null,m=B.x+B.width/2-k.width/2,l=B.y+B.height/2-k.height/2,u;switch(i){case o.top:u={x:m,y:B.y-k.height};break;case o.bottom:u={x:m,y:B.y+B.height};break;case o.right:u={x:B.x+B.width,y:l};break;case o.left:u={x:B.x-k.width,y:l};break;default:u={x:B.x,y:B.y}}var s=i?(0,t.default)(i):null;if(s!=null){var d=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(B[d]/2-k[d]/2);break;case o.end:u[s]=u[s]+(B[d]/2-k[d]/2);break;default:}}return u}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=g(n(49035)),a=g(n(40600)),t=g(n(37786)),o=g(n(89951)),f=g(n(81666)),b=n(46206),y=n(75573),B=g(n(43286)),k=g(n(81447));function g(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var l=m,u=l.placement,s=u===void 0?c.placement:u,d=l.strategy,v=d===void 0?c.strategy:d,C=l.boundary,h=C===void 0?b.clippingParents:C,p=l.rootBoundary,N=p===void 0?b.viewport:p,V=l.elementContext,S=V===void 0?b.popper:V,I=l.altBoundary,L=I===void 0?!1:I,w=l.padding,A=w===void 0?0:w,x=(0,B.default)(typeof A!="number"?A:(0,k.default)(A,b.basePlacements)),E=S===b.popper?b.reference:b.popper,P=c.rects.popper,D=c.elements[L?E:S],M=(0,e.default)((0,y.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),h,N,v),R=(0,t.default)(c.elements.reference),O=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},P,O)),_=S===b.popper?F:R,U={top:M.top-_.top+x.top,bottom:_.bottom-M.bottom+x.bottom,left:M.left-_.left+x.left,right:_.right-M.right+x.right},z=c.modifiersData.offset;if(S===b.popper&&z){var $=z[s];Object.keys(U).forEach(function(G){var X=[b.right,b.bottom].indexOf(G)>=0?1:-1,J=[b.top,b.bottom].indexOf(G)>=0?"y":"x";U[G]+=$[J]*X})}return U}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function B(k){b.add(k.name);var g=[].concat(k.requires||[],k.requiresIfExists||[]);g.forEach(function(i){if(!b.has(i)){var c=f.get(i);c&&B(c)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||B(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(f.filter(function(B){return B.phase===y}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var y=a(o,f,b);return y>b?b:y}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=pe,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=_t,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=se,r.createFragment=me,r.createPortal=Z,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=$,r.directClone=ae,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=te,r.linkEvent=g,r.normalizeProps=q,r.options=void 0,r.render=zt,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(j){var W=typeof j;return W==="string"||W==="number"}function a(j){return j==null}function t(j){return j===null||j===!1||j===!0||j===void 0}function o(j){return typeof j=="function"}function f(j){return typeof j=="string"}function b(j){return typeof j=="number"}function y(j){return j===null}function B(j){return j===void 0}function k(j,W){var H={};if(j)for(var K in j)H[K]=j[K];if(W)for(var Q in W)H[Q]=W[Q];return H}function g(j,W){return o(W)?{data:j,event:W}:null}function i(j){return!y(j)&&typeof j=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",l=r.AnimationQueues=function(){function j(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return j}();function u(j){return j.substring(2).toLowerCase()}function s(j,W){j.appendChild(W)}function d(j,W,H){y(H)?s(j,W):j.insertBefore(W,H)}function v(j,W){return W?document.createElementNS("http://www.w3.org/2000/svg",j):document.createElement(j)}function C(j,W,H){j.replaceChild(W,H)}function h(j,W){j.removeChild(W)}function p(j){for(var W=0;W0?S(H.componentWillDisappear,w(j,W)):L(j,W,!1)}function x(j,W,H,K,Q,ee,oe,ue){j.componentWillMove.push({dom:K,fn:function(){function ge(){oe&4?H.componentWillMove(W,Q,K):oe&8&&H.onComponentWillMove(W,Q,K,ue)}return ge}(),next:ee,parent:Q})}function E(j,W,H,K,Q){var ee,oe,ue=W.flags;do{var ge=W.flags;if(ge&1521){!a(ee)&&(o(ee.componentWillMove)||o(ee.onComponentWillMove))?x(Q,j,ee,W.dom,H,K,ue,oe):d(H,W.dom,K);return}var Te=W.children;if(ge&4)ee=W.children,oe=W.props,W=Te.$LI;else if(ge&8)ee=W.ref,oe=W.props,W=Te;else if(ge&8192)if(W.childFlags===2)W=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(ue),Ie=f(ue)&&ue[0]===U;ge||Te||Ie?(H=H||W.slice(0,ee),(ge||Ie)&&(oe=ae(oe)),(Te||Ie)&&(oe.key=U+ee),H.push(oe)):H&&H.push(oe),oe.flags|=65536}}H=H||W,H.length===0?K=1:K=8}else H=W,H.flags|=65536,W.flags&81920&&(H=ae(W)),K=2;return j.children=H,j.childFlags=K,j}function pe(j){return t(j)||e(j)?ie(j,null):n(j)?me(j,0,null):j.flags&16384?ae(j):j}var ce="http://www.w3.org/1999/xlink",Ve="http://www.w3.org/XML/1998/namespace",Ce={"xlink:actuate":ce,"xlink:arcrole":ce,"xlink:href":ce,"xlink:role":ce,"xlink:show":ce,"xlink:title":ce,"xlink:type":ce,"xml:base":Ve,"xml:lang":Ve,"xml:space":Ve};function Ne(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var Be=Ne(0),be=Ne(null),Le=Ne(!0);function we(j,W){var H=W.$EV;return H||(H=W.$EV=Ne(null)),H[j]||++Be[j]===1&&(be[j]=je(j)),H}function xe(j,W){var H=W.$EV;H&&H[j]&&(--Be[j]===0&&(document.removeEventListener(u(j),be[j]),be[j]=null),H[j]=null)}function Re(j,W,H,K){if(o(H))we(j,K)[j]=H;else if(i(H)){if(O(W,H))return;we(j,K)[j]=H}else xe(j,K)}function He(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function ye(j,W,H,K){var Q=He(j);do{if(W&&Q.disabled)return;var ee=Q.$EV;if(ee){var oe=ee[H];if(oe&&(K.dom=Q,oe.event?oe.event(oe.data,j):oe(j),j.cancelBubble))return}Q=Q.parentNode}while(!y(Q))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function he(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ve(j){var W={dom:document};return j.isDefaultPrevented=he,j.isPropagationStopped=ke,j.stopPropagation=de,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function H(){return W.dom}return H}()}),W}function Se(j){return function(W){if(W.button!==0){W.stopPropagation();return}ye(W,!0,j,ve(W))}}function Pe(j){return function(W){ye(W,!1,j,ve(W))}}function je(j){var W=j==="onClick"||j==="onDblClick"?Se(j):Pe(j);return document.addEventListener(u(j),W),W}function Fe(j,W){var H=document.createElement("i");return H.innerHTML=W,H.innerHTML===j.innerHTML}function ze(j,W,H){if(j[W]){var K=j[W];K.event?K.event(K.data,H):K(H)}else{var Q=W.toLowerCase();j[Q]&&j[Q](H)}}function We(j,W){var H=function(){function K(Q){var ee=this.$V;if(ee){var oe=ee.props||c,ue=ee.dom;if(f(j))ze(oe,j,Q);else for(var ge=0;ge-1&&W.options[ee]&&(ue=W.options[ee].value),H&&a(ue)&&(ue=j.defaultValue),rt(K,ue)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(j,W){Ue(j,"input",Zt),W.onChange&&Ue(j,"change",qt)}function Tt(j,W,H){var K=j.value,Q=W.value;if(a(K)){if(H){var ee=j.defaultValue;!a(ee)&&ee!==Q&&(W.defaultValue=ee,W.value=ee)}}else Q!==K&&(W.defaultValue=K,W.value=K)}function xt(j,W,H,K,Q,ee){j&64?ut(K,H):j&256?wt(K,H,Q,W):j&128&&Tt(K,H,Q),ee&&(H.$V=W)}function tn(j,W,H){j&64?Bt(W,H):j&256?Qt(W):j&128&&en(W,H)}function At(j){return j.type&&Xe(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var W={render:j};return W}function st(j){j&&!_(j,null)&&j.current&&(j.current=null)}function at(j,W,H){j&&(o(j)||j.current!==void 0)&&H.push(function(){!_(j,W)&&j.current!==void 0&&(j.current=W)})}function Je(j,W,H){Ze(j,H),A(j,W,H)}function Ze(j,W){var H=j.flags,K=j.children,Q;if(H&481){Q=j.ref;var ee=j.props;st(Q);var oe=j.childFlags;if(!y(ee))for(var ue=Object.keys(ee),ge=0,Te=ue.length;ge0?S(H.componentWillDisappear,rn(W,j)):j.textContent=""}function pt(j,W,H,K){ct(H,K),W.flags&8192?A(W,j,K):mt(j,H,K)}function Et(j,W,H,K,Q){j.componentWillDisappear.push(function(ee){K&4?W.componentWillDisappear(H,ee):K&8&&W.onComponentWillDisappear(H,Q,ee)})}function an(j){var W=j.event;return function(H){W(j.data,H)}}function cn(j,W,H,K){if(i(H)){if(O(W,H))return;H=an(H)}Ue(K,u(j),H)}function ln(j,W,H){if(a(W)){H.removeAttribute("style");return}var K=H.style,Q,ee;if(f(W)){K.cssText=W;return}if(!a(j)&&!f(j)){for(Q in W)ee=W[Q],ee!==j[Q]&&K.setProperty(Q,ee);for(Q in j)a(W[Q])&&K.removeProperty(Q)}else for(Q in W)ee=W[Q],K.setProperty(Q,ee)}function dn(j,W,H,K,Q){var ee=j&&j.__html||"",oe=W&&W.__html||"";ee!==oe&&!a(oe)&&!Fe(K,oe)&&(y(H)||(H.childFlags&12?ct(H.children,Q):H.childFlags===2&&Ze(H.children,Q),H.children=null,H.childFlags=1),K.innerHTML=oe)}function vt(j,W,H,K,Q,ee,oe,ue){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":K.autofocus=!!H;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":K[j]=!!H;break;case"defaultChecked":case"value":case"volume":if(ee&&j==="value")break;var ge=a(H)?"":H;K[j]!==ge&&(K[j]=ge);break;case"style":ln(W,H,K);break;case"dangerouslySetInnerHTML":dn(W,H,oe,K,ue);break;default:Le[j]?Re(j,W,H,K):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,W,H,K):a(H)?K.removeAttribute(j):Q&&Ce[j]?K.setAttributeNS(Ce[j],j,H):K.setAttribute(j,H);break}}function Mt(j,W,H,K,Q,ee){var oe=!1,ue=(W&448)>0;ue&&(oe=At(H),oe&&tn(W,K,H));for(var ge in H)vt(ge,null,H[ge],K,Q,oe,null,ee);ue&&xt(W,j,K,H,!0,oe)}function Pt(j,W,H){var K=pe(j.render(W,j.state,H)),Q=H;return o(j.getChildContext)&&(Q=k(H,j.getChildContext())),j.$CX=Q,K}function Ot(j,W,H,K,Q,ee){var oe=new W(H,K),ue=oe.$N=!!(W.getDerivedStateFromProps||oe.getSnapshotBeforeUpdate);if(oe.$SVG=Q,oe.$L=ee,j.children=oe,oe.$BS=!1,oe.context=K,oe.props===c&&(oe.props=H),ue)oe.state=P(oe,H,oe.state);else if(o(oe.componentWillMount)){oe.$BR=!0,oe.componentWillMount();var ge=oe.$PS;if(!y(ge)){var Te=oe.state;if(y(Te))oe.state=ge;else for(var Ie in ge)Te[Ie]=ge[Ie];oe.$PS=null}oe.$BR=!1}return oe.$LI=Pt(oe,H,K),oe}function gt(j,W){var H=j.props||c;return j.flags&32768?j.type.render(H,j.ref,W):j.type(H,W)}function Ke(j,W,H,K,Q,ee,oe){var ue=j.flags|=16384;ue&481?Dt(j,W,H,K,Q,ee,oe):ue&4?mn(j,W,H,K,Q,ee,oe):ue&8?pn(j,W,H,K,Q,ee,oe):ue&16?Rt(j,W,Q):ue&8192?sn(j,H,W,K,Q,ee,oe):ue&1024&&un(j,H,W,Q,ee,oe)}function un(j,W,H,K,Q,ee){Ke(j.children,j.ref,W,!1,null,Q,ee);var oe=le();Rt(oe,H,K),j.dom=oe.dom}function sn(j,W,H,K,Q,ee,oe){var ue=j.children,ge=j.childFlags;ge&12&&ue.length===0&&(ge=j.childFlags=2,ue=j.children=le()),ge===2?Ke(ue,H,W,K,Q,ee,oe):ot(ue,H,W,K,Q,ee,oe)}function Rt(j,W,H){var K=j.dom=document.createTextNode(j.children);y(W)||d(W,K,H)}function Dt(j,W,H,K,Q,ee,oe){var ue=j.flags,ge=j.props,Te=j.className,Ie=j.childFlags,Ee=j.dom=v(j.type,K=K||(ue&32)>0),Ae=j.children;if(!a(Te)&&Te!==""&&(K?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Me=K&&j.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(j.children=Ae=ae(Ae)),Ke(Ae,Ee,H,Me,null,ee,oe)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ee,oe)}y(W)||d(W,Ee,Q),y(ge)||Mt(j,ue,ge,Ee,K,oe),at(j.ref,Ee,ee)}function ot(j,W,H,K,Q,ee,oe){for(var ue=0;ueMe)&&(Ee=V(ue[Me-1],!1).nextSibling)}Nt(Te,Ie,ue,ge,H,K,Q,Ee,j,ee,oe)}function Vn(j,W,H,K,Q){var ee=j.ref,oe=W.ref,ue=W.children;if(Nt(j.childFlags,W.childFlags,j.children,ue,ee,H,!1,null,j,K,Q),W.dom=j.dom,ee!==oe&&!t(ue)){var ge=ue.dom;h(ee,ge),s(oe,ge)}}function bn(j,W,H,K,Q,ee,oe){var ue=W.dom=j.dom,ge=j.props,Te=W.props,Ie=!1,Ee=!1,Ae;if(K=K||(Q&32)>0,ge!==Te){var Me=ge||c;if(Ae=Te||c,Ae!==c){Ie=(Q&448)>0,Ie&&(Ee=At(Ae));for(var _e in Ae){var Oe=Me[_e],$e=Ae[_e];Oe!==$e&&vt(_e,Oe,$e,ue,K,Ee,j,oe)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,ue,K,Ee,j,oe)}var tt=W.children,Ye=W.className;j.className!==Ye&&(a(Ye)?ue.removeAttribute("class"):K?ue.setAttribute("class",Ye):ue.className=Ye),Q&4096?gn(ue,tt):Nt(j.childFlags,W.childFlags,j.children,tt,ue,H,K&&W.type!=="foreignObject",null,j,ee,oe),Ie&&xt(Q,W,ue,Ae,!1,Ee);var it=W.ref,Qe=j.ref;Qe!==it&&(st(Qe),at(it,ue,ee))}function kn(j,W,H,K,Q,ee,oe){Ze(j,oe),ot(W,H,K,Q,V(j,!0),ee,oe),A(j,H,oe)}function Nt(j,W,H,K,Q,ee,oe,ue,ge,Te,Ie){switch(j){case 2:switch(W){case 2:qe(H,K,Q,ee,oe,ue,Te,Ie);break;case 1:Je(H,Q,Ie);break;case 16:Ze(H,Ie),R(Q,K);break;default:kn(H,K,Q,ee,oe,Te,Ie);break}break;case 1:switch(W){case 2:Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:break;case 16:R(Q,K);break;default:ot(K,Q,ee,oe,ue,Te,Ie);break}break;case 16:switch(W){case 16:vn(H,K,Q);break;case 2:mt(Q,H,Ie),Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:mt(Q,H,Ie);break;default:mt(Q,H,Ie),ot(K,Q,ee,oe,ue,Te,Ie);break}break;default:switch(W){case 16:ct(H,Ie),R(Q,K);break;case 2:pt(Q,ge,H,Ie),Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:pt(Q,ge,H,Ie);break;default:var Ee=H.length|0,Ae=K.length|0;Ee===0?Ae>0&&ot(K,Q,ee,oe,ue,Te,Ie):Ae===0?pt(Q,ge,H,Ie):W===8&&j===8?wn(H,K,Q,ee,oe,Ee,Ae,ue,ge,Te,Ie):Ln(H,K,Q,ee,oe,Ee,Ae,ue,Te,Ie);break}break}}function yn(j,W,H,K,Q){Q.push(function(){j.componentDidUpdate(W,H,K)})}function Wt(j,W,H,K,Q,ee,oe,ue,ge,Te){var Ie=j.state,Ee=j.props,Ae=!!j.$N,Me=o(j.shouldComponentUpdate);if(Ae&&(W=P(j,H,W!==Ie?k(Ie,W):W)),oe||!Me||Me&&j.shouldComponentUpdate(H,W,Q)){!Ae&&o(j.componentWillUpdate)&&j.componentWillUpdate(H,W,Q),j.props=H,j.state=W,j.context=Q;var _e=null,Oe=Pt(j,H,Q);Ae&&o(j.getSnapshotBeforeUpdate)&&(_e=j.getSnapshotBeforeUpdate(Ee,Ie)),qe(j.$LI,Oe,K,j.$CX,ee,ue,ge,Te),j.$LI=Oe,o(j.componentDidUpdate)&&yn(j,Ee,Ie,_e,ge)}else j.props=H,j.state=W,j.context=Q}function Sn(j,W,H,K,Q,ee,oe,ue){var ge=W.children=j.children;if(!y(ge)){ge.$L=oe;var Te=W.props||c,Ie=W.ref,Ee=j.ref,Ae=ge.state;if(!ge.$N){if(o(ge.componentWillReceiveProps)){if(ge.$BR=!0,ge.componentWillReceiveProps(Te,K),ge.$UN)return;ge.$BR=!1}y(ge.$PS)||(Ae=k(Ae,ge.$PS),ge.$PS=null)}Wt(ge,Ae,Te,H,K,Q,!1,ee,oe,ue),Ee!==Ie&&(st(Ee),at(Ie,ge,oe))}}function Bn(j,W,H,K,Q,ee,oe,ue){var ge=!0,Te=W.props||c,Ie=W.ref,Ee=j.props,Ae=!a(Ie),Me=j.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ge=Ie.onComponentShouldUpdate(Ee,Te)),ge!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var _e=pe(gt(W,K));qe(Me,_e,H,K,Q,ee,oe,ue),W.children=_e,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else W.children=Me}function In(j,W){var H=W.children,K=W.dom=j.dom;H!==j.children&&(K.nodeValue=H)}function Ln(j,W,H,K,Q,ee,oe,ue,ge,Te){for(var Ie=ee>oe?oe:ee,Ee=0,Ae,Me;Eeoe)for(Ee=Ie;EeEe||Me>Ae)break e;_e=j[Me],Oe=W[Me]}for(_e=j[Ee],Oe=W[Ae];_e.key===Oe.key;){if(Oe.flags&16384&&(W[Ae]=Oe=ae(Oe)),qe(_e,Oe,H,K,Q,ue,Te,Ie),j[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;_e=j[Ee],Oe=W[Ae]}}if(Me>Ee){if(Me<=Ae)for($e=Ae+1,De=$eAe)for(;Me<=Ee;)Je(j[Me++],H,Ie);else Tn(j,W,K,ee,oe,Ee,Ae,Me,H,Q,ue,ge,Te,Ie)}function Tn(j,W,H,K,Q,ee,oe,ue,ge,Te,Ie,Ee,Ae,Me){var _e,Oe,$e=0,De=0,tt=ue,Ye=ue,it=ee-ue+1,Qe=oe-ue+1,lt=new Int32Array(Qe+1),nt=it===K,bt=!1,Ge=0,dt=0;if(Q<4||(it|Qe)<32)for(De=tt;De<=ee;++De)if(_e=j[De],dtue?bt=!0:Ge=ue,Oe.flags&16384&&(W[ue]=Oe=ae(Oe)),qe(_e,Oe,ge,H,Te,Ie,Ae,Me),++dt;break}!nt&&ue>oe&&Je(_e,ge,Me)}else nt||Je(_e,ge,Me);else{var Yt={};for(De=Ye;De<=oe;++De)Yt[W[De].key]=De;for(De=tt;De<=ee;++De)if(_e=j[De],dttt;)Je(j[tt++],ge,Me);lt[ue-Ye]=De+1,Ge>ue?bt=!0:Ge=ue,Oe=W[ue],Oe.flags&16384&&(W[ue]=Oe=ae(Oe)),qe(_e,Oe,ge,H,Te,Ie,Ae,Me),++dt}else nt||Je(_e,ge,Me);else nt||Je(_e,ge,Me)}if(nt)pt(ge,Ee,j,Me),ot(W,ge,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(ue=Xt.length-1,De=Qe-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=W[Ge],Oe.flags&16384&&(W[Ge]=Oe=ae(Oe)),$e=Ge+1,Ke(Oe,ge,H,Te,$e0&&I(Me.componentWillMove)}else if(dt!==Qe)for(De=Qe-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=W[Ge],Oe.flags&16384&&(W[Ge]=Oe=ae(Oe)),$e=Ge+1,Ke(Oe,ge,H,Te,$eUt&&(Ut=ge,et=new Int32Array(ge),ft=new Int32Array(ge));H>1,j[et[ue]]0&&(ft[H]=et[ee-1]),et[ee]=H)}ee=Q+1;var Te=new Int32Array(ee);for(oe=et[ee-1];ee-- >0;)Te[ee]=oe,oe=ft[oe],et[ee]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,W,H,K){var Q=[],ee=new l,oe=W.$V;D.v=!0,a(oe)?a(j)||(j.flags&16384&&(j=ae(j)),Ke(j,W,K,!1,null,Q,ee),W.$V=j,oe=j):a(j)?(Je(oe,W,ee),W.$V=null):(j.flags&16384&&(j=ae(j)),qe(oe,j,W,K,!1,null,Q,ee),oe=W.$V=j),p(Q),S(ee.componentDidAppear),D.v=!1,o(H)&&H(),o(M.renderComplete)&&M.renderComplete(oe,W)}function zt(j,W,H,K){H===void 0&&(H=null),K===void 0&&(K=c),Ht(j,W,H,K)}function En(j){return function(){function W(H,K,Q,ee){j||(j=H),zt(K,j,Q,ee)}return W}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},Vt=!1;function Kt(j,W,H,K){var Q=j.$PS;if(o(W)&&(W=W(Q?k(j.state,Q):j.state,j.props,j.context)),a(Q))j.$PS=W;else for(var ee in W)Q[ee]=W[ee];if(j.$BR)o(H)&&j.$L.push(H.bind(j));else{if(!D.v&&ht.length===0){Gt(j,K),o(H)&&H.call(j);return}if(ht.indexOf(j)===-1&&ht.push(j),K&&(j.$F=!0),Vt||(Vt=!0,Mn($t)),o(H)){var oe=j.$QU;oe||(oe=j.$QU=[]),oe.push(H)}}}function Pn(j){for(var W=j.$QU,H=0;H=0;--_){var U=this.tryEntries[_],z=U.completion;if(U.tryLoc==="root")return F("end");if(U.tryLoc<=this.prev){var $=a.call(U,"catchLoc"),G=a.call(U,"finallyLoc");if($&&G){if(this.prev=0;--F){var _=this.tryEntries[F];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=O&&O<=U.finallyLoc&&(U=null);var z=U?U.completion:{};return z.type=R,z.arg=O,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(z)}return M}(),complete:function(){function M(R,O){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&O&&(this.next=O),s}return M}(),finish:function(){function M(R){for(var O=this.tryEntries.length-1;O>=0;--O){var F=this.tryEntries[O];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return M}(),catch:function(){function M(R){for(var O=this.tryEntries.length-1;O>=0;--O){var F=this.tryEntries[O];if(F.tryLoc===R){var _=F.completion;if(_.type==="throw"){var U=_.arg;x(F)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,O,F){return this.delegate={iterator:P(R),resultName:O,nextLoc:F},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function B(){return Promise.resolve(a.responseText)}return B}(),json:function(){function B(){return Promise.resolve(a.responseText).then(JSON.parse)}return B}(),blob:function(){function B(){return Promise.resolve(new Blob([a.response]))}return B}(),clone:y,headers:{keys:function(){function B(){return t}return B}(),entries:function(){function B(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return B}(),get:function(){function B(k){return a.getResponseHeader(k)}return B}(),has:function(){function B(k){return a.getResponseHeader(k)!=null}return B}()}}}return y}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,B){o[B]||t.push(o[B]=B)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(d,v){var C=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(C)return(C=C.call(d)).next.bind(C);if(Array.isArray(d)||(C=e(d))||v&&d&&typeof d.length=="number"){C&&(d=C);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(d,v){if(d){if(typeof d=="string")return a(d,v);var C={}.toString.call(d).slice(8,-1);return C==="Object"&&d.constructor&&(C=d.constructor.name),C==="Map"||C==="Set"?Array.from(d):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?a(d,v):void 0}}function a(d,v){(v==null||v>d.length)&&(v=d.length);for(var C=0,h=Array(v);C0&&(0,a.round)(g.width)/S.offsetWidth||1,c=S.offsetHeight>0&&(0,a.round)(g.height)/S.offsetHeight||1);var m=(0,e.isElement)(S)?(0,t.default)(S):window,l=m.visualViewport,u=!(0,o.default)()&&k,s=(g.left+(u&&l?l.offsetLeft:0))/i,d=(g.top+(u&&l?l.offsetTop:0))/c,v=g.width/i,C=g.height/c;return{width:v,height:C,top:d,right:s+v,bottom:d+C,left:s,x:s,y:d}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),S=u(n(16599)),B=n(75573),k=u(n(37786)),g=u(n(57819)),i=u(n(4206)),c=u(n(12972)),m=u(n(81666)),l=n(63618);function u(h){return h&&h.__esModule?h:{default:h}}function s(h,p){var N=(0,k.default)(h,!1,p==="fixed");return N.top=N.top+h.clientTop,N.left=N.left+h.clientLeft,N.bottom=N.top+h.clientHeight,N.right=N.left+h.clientWidth,N.width=h.clientWidth,N.height=h.clientHeight,N.x=N.left,N.y=N.top,N}function d(h,p,N){return p===e.viewport?(0,m.default)((0,a.default)(h,N)):(0,B.isElement)(p)?s(p,N):(0,m.default)((0,t.default)((0,b.default)(h)))}function v(h){var p=(0,o.default)((0,g.default)(h)),N=["absolute","fixed"].indexOf((0,S.default)(h).position)>=0,V=N&&(0,B.isHTMLElement)(h)?(0,f.default)(h):h;return(0,B.isElement)(V)?p.filter(function(y){return(0,B.isElement)(y)&&(0,i.default)(y,V)&&(0,c.default)(y)!=="body"}):[]}function C(h,p,N,V){var y=p==="clippingParents"?v(h):[].concat(p),I=[].concat(y,[N]),L=I[0],w=I.reduce(function(A,x){var E=d(h,x,V);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},d(h,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),S=k(n(10798)),B=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function g(c){var m=c.getBoundingClientRect(),l=(0,B.round)(m.width)/c.offsetWidth||1,u=(0,B.round)(m.height)/c.offsetHeight||1;return l!==1||u!==1}function i(c,m,l){l===void 0&&(l=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&g(m),d=(0,b.default)(m),v=(0,e.default)(c,s,l),C={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(u||!u&&!l)&&(((0,t.default)(m)!=="body"||(0,S.default)(d))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(h=(0,e.default)(m,!0),h.x+=m.clientLeft,h.y+=m.clientTop):d&&(h.x=(0,f.default)(d))),{x:v.left+C.scrollLeft-h.x,y:v.top+C.scrollTop-h.y,width:v.width,height:v.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=S;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(B){return B&&B.__esModule?B:{default:B}}function S(B){var k,g=(0,e.default)(B),i=(0,o.default)(B),c=(k=B.ownerDocument)==null?void 0:k.body,m=(0,f.max)(g.scrollWidth,g.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(g.scrollHeight,g.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-i.scrollLeft+(0,t.default)(B),s=-i.scrollTop;return(0,a.default)(c||g).direction==="rtl"&&(u+=(0,f.max)(g.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:u,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,S=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-S)<=1&&(S=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:S}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(S){return S&&S.__esModule?S:{default:S}}function b(S){return S===(0,a.default)(S)||!(0,t.isHTMLElement)(S)?(0,e.default)(S):(0,o.default)(S)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=B(n(95115)),a=B(n(12972)),t=B(n(16599)),o=n(75573),f=B(n(87031)),b=B(n(57819)),S=B(n(35366));function B(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function g(c){var m=/firefox/i.test((0,S.default)()),l=/Trident/i.test((0,S.default)());if(l&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var d=(0,t.default)(s);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||m&&d.willChange==="filter"||m&&d.filter&&d.filter!=="none")return s;s=s.parentNode}return null}function i(c){for(var m=(0,e.default)(c),l=k(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=k(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||g(c)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(S){return S&&S.__esModule?S:{default:S}}function b(S){return["html","body","#document"].indexOf((0,t.default)(S))>=0?S.ownerDocument.body:(0,o.isHTMLElement)(S)&&(0,a.default)(S)?S:b((0,e.default)(S))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(S){return S&&S.__esModule?S:{default:S}}function b(S,B){var k=(0,e.default)(S),g=(0,a.default)(S),i=k.visualViewport,c=g.clientWidth,m=g.clientHeight,l=0,u=0;if(i){c=i.width,m=i.height;var s=(0,o.default)();(s||!s&&B==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(S),y:u}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,S=f.pageYOffset;return{scrollLeft:b,scrollTop:S}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var S=(0,e.default)(b).Element;return b instanceof S||b instanceof Element}function o(b){var S=(0,e.default)(b).HTMLElement;return b instanceof S||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var S=(0,e.default)(b).ShadowRoot;return b instanceof S||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,S=f.overflowX,B=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+B+S)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(S){return S&&S.__esModule?S:{default:S}}function b(S,B){var k;B===void 0&&(B=[]);var g=(0,e.default)(S),i=g===((k=S.ownerDocument)==null?void 0:k.body),c=(0,t.default)(g),m=i?[c].concat(c.visualViewport||[],(0,o.default)(g)?g:[]):g,l=B.concat(m);return i?l:l.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",S=r.end="end",B=r.clippingParents="clippingParents",k=r.viewport="viewport",g=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=f.reduce(function(y,I){return y.concat([I+"-"+b,I+"-"+S])},[]),m=r.placements=[].concat(f,[o]).reduce(function(y,I){return y.concat([I,I+"-"+b,I+"-"+S])},[]),l=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",d=r.beforeMain="beforeMain",v=r.main="main",C=r.afterMain="afterMain",h=r.beforeWrite="beforeWrite",p=r.write="write",N=r.afterWrite="afterWrite",V=r.modifierPhases=[l,u,s,d,v,C,h,p,N]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(S){S==="default"||S==="__esModule"||Object.prototype.hasOwnProperty.call(e,S)||S in r&&r[S]===a[S]||(r[S]=a[S])});var t=n(39805);Object.keys(t).forEach(function(S){S==="default"||S==="__esModule"||Object.prototype.hasOwnProperty.call(e,S)||S in r&&r[S]===t[S]||(r[S]=t[S])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(S){return S&&S.__esModule?S:{default:S}}function o(S){var B=S.state;Object.keys(B.elements).forEach(function(k){var g=B.styles[k]||{},i=B.attributes[k]||{},c=B.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,g),Object.keys(i).forEach(function(m){var l=i[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(S){var B=S.state,k={popper:{position:B.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(B.elements.popper.style,k.popper),B.styles=k,B.elements.arrow&&Object.assign(B.elements.arrow.style,k.arrow),function(){Object.keys(B.elements).forEach(function(g){var i=B.elements[g],c=B.attributes[g]||{},m=Object.keys(B.styles.hasOwnProperty(g)?B.styles[g]:k[g]),l=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(u){i.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=g(n(83104)),a=g(n(28811)),t=g(n(4206)),o=g(n(44896)),f=g(n(41199)),b=n(28595),S=g(n(43286)),B=g(n(81447)),k=n(46206);function g(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(s,d){return s=typeof s=="function"?s(Object.assign({},d.rects,{placement:d.placement})):s,(0,S.default)(typeof s!="number"?s:(0,B.default)(s,k.basePlacements))}return u}();function c(u){var s,d=u.state,v=u.name,C=u.options,h=d.elements.arrow,p=d.modifiersData.popperOffsets,N=(0,e.default)(d.placement),V=(0,f.default)(N),y=[k.left,k.right].indexOf(N)>=0,I=y?"height":"width";if(!(!h||!p)){var L=i(C.padding,d),w=(0,a.default)(h),A=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,E=d.rects.reference[I]+d.rects.reference[V]-p[V]-d.rects.popper[I],P=p[V]-d.rects.reference[V],D=(0,o.default)(h),M=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-P/2,O=L[A],F=M-w[I]-L[x],_=M/2-w[I]/2+R,U=(0,b.within)(O,_,F),z=V;d.modifiersData[v]=(s={},s[z]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,d=u.options,v=d.element,C=v===void 0?"[data-popper-arrow]":v;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),S=k(n(45)),B=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(u,s){var d=u.x,v=u.y,C=s.devicePixelRatio||1;return{x:(0,B.round)(d*C)/C||0,y:(0,B.round)(v*C)/C||0}}function c(u){var s,d=u.popper,v=u.popperRect,C=u.placement,h=u.variation,p=u.offsets,N=u.position,V=u.gpuAcceleration,y=u.adaptive,I=u.roundOffsets,L=u.isFixed,w=p.x,A=w===void 0?0:w,x=p.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var D=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,O=e.top,F=window;if(y){var _=(0,a.default)(d),U="clientHeight",z="clientWidth";if(_===(0,t.default)(d)&&(_=(0,o.default)(d),(0,f.default)(_).position!=="static"&&N==="absolute"&&(U="scrollHeight",z="scrollWidth")),_=_,C===e.top||(C===e.left||C===e.right)&&h===e.end){O=e.bottom;var $=L&&_===F&&F.visualViewport?F.visualViewport.height:_[U];E-=$-v.height,E*=V?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&h===e.end){R=e.right;var G=L&&_===F&&F.visualViewport?F.visualViewport.width:_[z];A-=G-v.width,A*=V?1:-1}}var X=Object.assign({position:N},y&&g),J=I===!0?i({x:A,y:E},(0,t.default)(d)):{x:A,y:E};if(A=J.x,E=J.y,V){var se;return Object.assign({},X,(se={},se[O]=M?"0":"",se[R]=D?"0":"",se.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",se))}return Object.assign({},X,(s={},s[O]=M?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,d=u.options,v=d.gpuAcceleration,C=v===void 0?!0:v,h=d.adaptive,p=h===void 0?!0:h,N=d.roundOffsets,V=N===void 0?!0:N,y={placement:(0,b.default)(s.placement),variation:(0,S.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:C,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},y,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},y,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var S=b.state,B=b.instance,k=b.options,g=k.scroll,i=g===void 0?!0:g,c=k.resize,m=c===void 0?!0:c,l=(0,e.default)(S.elements.popper),u=[].concat(S.scrollParents.reference,S.scrollParents.popper);return i&&u.forEach(function(s){s.addEventListener("scroll",B.update,t)}),m&&l.addEventListener("resize",B.update,t),function(){i&&u.forEach(function(s){s.removeEventListener("scroll",B.update,t)}),m&&l.removeEventListener("resize",B.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=B(n(71376)),a=B(n(83104)),t=B(n(86459)),o=B(n(17633)),f=B(n(9041)),b=n(46206),S=B(n(45));function B(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function g(c){var m=c.state,l=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=l.mainAxis,d=s===void 0?!0:s,v=l.altAxis,C=v===void 0?!0:v,h=l.fallbackPlacements,p=l.padding,N=l.boundary,V=l.rootBoundary,y=l.altBoundary,I=l.flipVariations,L=I===void 0?!0:I,w=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=h||(E||!L?[(0,e.default)(A)]:k(A)),D=[A].concat(P).reduce(function(ne,te){return ne.concat((0,a.default)(te)===b.auto?(0,f.default)(m,{placement:te,boundary:N,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):te)},[]),M=m.rects.reference,R=m.rects.popper,O=new Map,F=!0,_=D[0],U=0;U=0,J=X?"width":"height",se=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:V,altBoundary:y,padding:p}),ie=X?G?b.right:b.left:G?b.bottom:b.top;M[J]>R[J]&&(ie=(0,e.default)(ie));var me=(0,e.default)(ie),q=[];if(d&&q.push(se[$]<=0),C&&q.push(se[ie]<=0,se[me]<=0),q.every(function(ne){return ne})){_=z,F=!1;break}O.set(z,q)}if(F)for(var re=L?3:1,ae=function(){function ne(te){var fe=D.find(function(pe){var ce=O.get(pe);if(ce)return ce.slice(0,te).every(function(Ve){return Ve})});if(fe)return _=fe,"break"}return ne}(),le=re;le>0;le--){var Z=ae(le);if(Z==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:g,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(B){return B&&B.__esModule?B:{default:B}}function o(B,k,g){return g===void 0&&(g={x:0,y:0}),{top:B.top-k.height-g.y,right:B.right-k.width+g.x,bottom:B.bottom-k.height+g.y,left:B.left-k.width-g.x}}function f(B){return[e.top,e.right,e.bottom,e.left].some(function(k){return B[k]>=0})}function b(B){var k=B.state,g=B.name,i=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,l=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(l,i),d=o(u,c,m),v=f(s),C=f(d);k.modifiersData[g]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:v,hasPopperEscaped:C},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":C})}var S=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=g(n(19975));r.applyStyles=e.default;var a=g(n(52744));r.arrow=a.default;var t=g(n(59894));r.computeStyles=t.default;var o=g(n(36692));r.eventListeners=o.default;var f=g(n(23798));r.flip=f.default;var b=g(n(83761));r.hide=b.default;var S=g(n(61410));r.offset=S.default;var B=g(n(40107));r.popperOffsets=B.default;var k=g(n(75137));r.preventOverflow=k.default;function g(i){return i&&i.__esModule?i:{default:i}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(S){return S&&S.__esModule?S:{default:S}}function o(S,B,k){var g=(0,e.default)(S),i=[a.left,a.top].indexOf(g)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},B,{placement:S})):k,m=c[0],l=c[1];return m=m||0,l=(l||0)*i,[a.left,a.right].indexOf(g)>=0?{x:l,y:m}:{x:m,y:l}}function f(S){var B=S.state,k=S.options,g=S.name,i=k.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(d,v){return d[v]=o(v,B.rects,c),d},{}),l=m[B.placement],u=l.x,s=l.y;B.modifiersData.popperOffsets!=null&&(B.modifiersData.popperOffsets.x+=u,B.modifiersData.popperOffsets.y+=s),B.modifiersData[g]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,S=f.name;b.modifiersData[S]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),f=n(28595),b=c(n(28811)),S=c(n(44896)),B=c(n(17633)),k=c(n(45)),g=c(n(34780)),i=n(63618);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,d=u.options,v=u.name,C=d.mainAxis,h=C===void 0?!0:C,p=d.altAxis,N=p===void 0?!1:p,V=d.boundary,y=d.rootBoundary,I=d.altBoundary,L=d.padding,w=d.tether,A=w===void 0?!0:w,x=d.tetherOffset,E=x===void 0?0:x,P=(0,B.default)(s,{boundary:V,rootBoundary:y,padding:L,altBoundary:I}),D=(0,a.default)(s.placement),M=(0,k.default)(s.placement),R=!M,O=(0,t.default)(D),F=(0,o.default)(O),_=s.modifiersData.popperOffsets,U=s.rects.reference,z=s.rects.popper,$=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,G=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(h){var se,ie=O==="y"?e.top:e.left,me=O==="y"?e.bottom:e.right,q=O==="y"?"height":"width",re=_[O],ae=re+P[ie],le=re-P[me],Z=A?-z[q]/2:0,ne=M===e.start?U[q]:z[q],te=M===e.start?-z[q]:-U[q],fe=s.elements.arrow,pe=A&&fe?(0,b.default)(fe):{width:0,height:0},ce=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,g.default)(),Ve=ce[ie],Ce=ce[me],Ne=(0,f.within)(0,U[q],pe[q]),Be=R?U[q]/2-Z-Ne-Ve-G.mainAxis:ne-Ne-Ve-G.mainAxis,be=R?-U[q]/2+Z+Ne+Ce+G.mainAxis:te+Ne+Ce+G.mainAxis,Le=s.elements.arrow&&(0,S.default)(s.elements.arrow),we=Le?O==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(se=X==null?void 0:X[O])!=null?se:0,Re=re+Be-xe-we,He=re+be-xe,ye=(0,f.within)(A?(0,i.min)(ae,Re):ae,re,A?(0,i.max)(le,He):le);_[O]=ye,J[O]=ye-re}if(N){var de,he=O==="x"?e.top:e.left,ke=O==="x"?e.bottom:e.right,ve=_[F],Se=F==="y"?"height":"width",Pe=ve+P[he],je=ve-P[ke],Fe=[e.top,e.left].indexOf(D)!==-1,ze=(de=X==null?void 0:X[F])!=null?de:0,We=Fe?Pe:ve-U[Se]-z[Se]-ze+G.altAxis,Ue=Fe?ve+U[Se]+z[Se]-ze-G.altAxis:je,Xe=A&&Fe?(0,f.withinMaxClamp)(We,ve,Ue):(0,f.within)(A?We:Pe,ve,A?Ue:je);_[F]=Xe,J[F]=Xe-ve}s.modifiersData[v]=J}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var S=r.defaultModifiers=[a.default,t.default,o.default,f.default],B=r.createPopper=(0,e.popperGenerator)({defaultModifiers:S})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),f=l(n(59894)),b=l(n(19975)),S=l(n(61410)),B=l(n(23798)),k=l(n(75137)),g=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(e,d)||d in r&&r[d]===m[d]||(r[d]=m[d])});function l(d){return d&&d.__esModule?d:{default:d}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,S.default,B.default,k.default,g.default,i.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(S){return S&&S.__esModule?S:{default:S}}function b(S,B){B===void 0&&(B={});var k=B,g=k.placement,i=k.boundary,c=k.rootBoundary,m=k.padding,l=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,d=(0,e.default)(g),v=d?l?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===d}):a.basePlacements,C=v.filter(function(p){return s.indexOf(p)>=0});C.length===0&&(C=v);var h=C.reduce(function(p,N){return p[N]=(0,t.default)(S,{placement:N,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(N)],p},{});return Object.keys(h).sort(function(p,N){return h[p]-h[N]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(S){return S&&S.__esModule?S:{default:S}}function b(S){var B=S.reference,k=S.element,g=S.placement,i=g?(0,e.default)(g):null,c=g?(0,a.default)(g):null,m=B.x+B.width/2-k.width/2,l=B.y+B.height/2-k.height/2,u;switch(i){case o.top:u={x:m,y:B.y-k.height};break;case o.bottom:u={x:m,y:B.y+B.height};break;case o.right:u={x:B.x+B.width,y:l};break;case o.left:u={x:B.x-k.width,y:l};break;default:u={x:B.x,y:B.y}}var s=i?(0,t.default)(i):null;if(s!=null){var d=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(B[d]/2-k[d]/2);break;case o.end:u[s]=u[s]+(B[d]/2-k[d]/2);break;default:}}return u}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=g(n(49035)),a=g(n(40600)),t=g(n(37786)),o=g(n(89951)),f=g(n(81666)),b=n(46206),S=n(75573),B=g(n(43286)),k=g(n(81447));function g(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var l=m,u=l.placement,s=u===void 0?c.placement:u,d=l.strategy,v=d===void 0?c.strategy:d,C=l.boundary,h=C===void 0?b.clippingParents:C,p=l.rootBoundary,N=p===void 0?b.viewport:p,V=l.elementContext,y=V===void 0?b.popper:V,I=l.altBoundary,L=I===void 0?!1:I,w=l.padding,A=w===void 0?0:w,x=(0,B.default)(typeof A!="number"?A:(0,k.default)(A,b.basePlacements)),E=y===b.popper?b.reference:b.popper,P=c.rects.popper,D=c.elements[L?E:y],M=(0,e.default)((0,S.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),h,N,v),R=(0,t.default)(c.elements.reference),O=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},P,O)),_=y===b.popper?F:R,U={top:M.top-_.top+x.top,bottom:_.bottom-M.bottom+x.bottom,left:M.left-_.left+x.left,right:_.right-M.right+x.right},z=c.modifiersData.offset;if(y===b.popper&&z){var $=z[s];Object.keys(U).forEach(function(G){var X=[b.right,b.bottom].indexOf(G)>=0?1:-1,J=[b.top,b.bottom].indexOf(G)>=0?"y":"x";U[G]+=$[J]*X})}return U}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,S=[];o.forEach(function(k){f.set(k.name,k)});function B(k){b.add(k.name);var g=[].concat(k.requires||[],k.requiresIfExists||[]);g.forEach(function(i){if(!b.has(i)){var c=f.get(i);c&&B(c)}}),S.push(k)}return o.forEach(function(k){b.has(k.name)||B(k)}),S}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,S){return b.concat(f.filter(function(B){return B.phase===S}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var S=a(o,f,b);return S>b?b:S}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=pe,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=_t,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=se,r.createFragment=me,r.createPortal=Z,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=$,r.directClone=ae,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=te,r.linkEvent=g,r.normalizeProps=q,r.options=void 0,r.render=zt,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(j){var W=typeof j;return W==="string"||W==="number"}function a(j){return j==null}function t(j){return j===null||j===!1||j===!0||j===void 0}function o(j){return typeof j=="function"}function f(j){return typeof j=="string"}function b(j){return typeof j=="number"}function S(j){return j===null}function B(j){return j===void 0}function k(j,W){var H={};if(j)for(var K in j)H[K]=j[K];if(W)for(var Q in W)H[Q]=W[Q];return H}function g(j,W){return o(W)?{data:j,event:W}:null}function i(j){return!S(j)&&typeof j=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",l=r.AnimationQueues=function(){function j(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return j}();function u(j){return j.substring(2).toLowerCase()}function s(j,W){j.appendChild(W)}function d(j,W,H){S(H)?s(j,W):j.insertBefore(W,H)}function v(j,W){return W?document.createElementNS("http://www.w3.org/2000/svg",j):document.createElement(j)}function C(j,W,H){j.replaceChild(W,H)}function h(j,W){j.removeChild(W)}function p(j){for(var W=0;W0?y(H.componentWillDisappear,w(j,W)):L(j,W,!1)}function x(j,W,H,K,Q,ee,oe,ue){j.componentWillMove.push({dom:K,fn:function(){function ge(){oe&4?H.componentWillMove(W,Q,K):oe&8&&H.onComponentWillMove(W,Q,K,ue)}return ge}(),next:ee,parent:Q})}function E(j,W,H,K,Q){var ee,oe,ue=W.flags;do{var ge=W.flags;if(ge&1521){!a(ee)&&(o(ee.componentWillMove)||o(ee.onComponentWillMove))?x(Q,j,ee,W.dom,H,K,ue,oe):d(H,W.dom,K);return}var Te=W.children;if(ge&4)ee=W.children,oe=W.props,W=Te.$LI;else if(ge&8)ee=W.ref,oe=W.props,W=Te;else if(ge&8192)if(W.childFlags===2)W=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=S(ue),Ie=f(ue)&&ue[0]===U;ge||Te||Ie?(H=H||W.slice(0,ee),(ge||Ie)&&(oe=ae(oe)),(Te||Ie)&&(oe.key=U+ee),H.push(oe)):H&&H.push(oe),oe.flags|=65536}}H=H||W,H.length===0?K=1:K=8}else H=W,H.flags|=65536,W.flags&81920&&(H=ae(W)),K=2;return j.children=H,j.childFlags=K,j}function pe(j){return t(j)||e(j)?ie(j,null):n(j)?me(j,0,null):j.flags&16384?ae(j):j}var ce="http://www.w3.org/1999/xlink",Ve="http://www.w3.org/XML/1998/namespace",Ce={"xlink:actuate":ce,"xlink:arcrole":ce,"xlink:href":ce,"xlink:role":ce,"xlink:show":ce,"xlink:title":ce,"xlink:type":ce,"xml:base":Ve,"xml:lang":Ve,"xml:space":Ve};function Ne(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var Be=Ne(0),be=Ne(null),Le=Ne(!0);function we(j,W){var H=W.$EV;return H||(H=W.$EV=Ne(null)),H[j]||++Be[j]===1&&(be[j]=je(j)),H}function xe(j,W){var H=W.$EV;H&&H[j]&&(--Be[j]===0&&(document.removeEventListener(u(j),be[j]),be[j]=null),H[j]=null)}function Re(j,W,H,K){if(o(H))we(j,K)[j]=H;else if(i(H)){if(O(W,H))return;we(j,K)[j]=H}else xe(j,K)}function He(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function ye(j,W,H,K){var Q=He(j);do{if(W&&Q.disabled)return;var ee=Q.$EV;if(ee){var oe=ee[H];if(oe&&(K.dom=Q,oe.event?oe.event(oe.data,j):oe(j),j.cancelBubble))return}Q=Q.parentNode}while(!S(Q))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function he(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ve(j){var W={dom:document};return j.isDefaultPrevented=he,j.isPropagationStopped=ke,j.stopPropagation=de,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function H(){return W.dom}return H}()}),W}function Se(j){return function(W){if(W.button!==0){W.stopPropagation();return}ye(W,!0,j,ve(W))}}function Pe(j){return function(W){ye(W,!1,j,ve(W))}}function je(j){var W=j==="onClick"||j==="onDblClick"?Se(j):Pe(j);return document.addEventListener(u(j),W),W}function Fe(j,W){var H=document.createElement("i");return H.innerHTML=W,H.innerHTML===j.innerHTML}function ze(j,W,H){if(j[W]){var K=j[W];K.event?K.event(K.data,H):K(H)}else{var Q=W.toLowerCase();j[Q]&&j[Q](H)}}function We(j,W){var H=function(){function K(Q){var ee=this.$V;if(ee){var oe=ee.props||c,ue=ee.dom;if(f(j))ze(oe,j,Q);else for(var ge=0;ge-1&&W.options[ee]&&(ue=W.options[ee].value),H&&a(ue)&&(ue=j.defaultValue),rt(K,ue)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(j,W){Ue(j,"input",Zt),W.onChange&&Ue(j,"change",qt)}function Tt(j,W,H){var K=j.value,Q=W.value;if(a(K)){if(H){var ee=j.defaultValue;!a(ee)&&ee!==Q&&(W.defaultValue=ee,W.value=ee)}}else Q!==K&&(W.defaultValue=K,W.value=K)}function xt(j,W,H,K,Q,ee){j&64?ut(K,H):j&256?wt(K,H,Q,W):j&128&&Tt(K,H,Q),ee&&(H.$V=W)}function tn(j,W,H){j&64?Bt(W,H):j&256?Qt(W):j&128&&en(W,H)}function At(j){return j.type&&Xe(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var W={render:j};return W}function st(j){j&&!_(j,null)&&j.current&&(j.current=null)}function at(j,W,H){j&&(o(j)||j.current!==void 0)&&H.push(function(){!_(j,W)&&j.current!==void 0&&(j.current=W)})}function Je(j,W,H){Ze(j,H),A(j,W,H)}function Ze(j,W){var H=j.flags,K=j.children,Q;if(H&481){Q=j.ref;var ee=j.props;st(Q);var oe=j.childFlags;if(!S(ee))for(var ue=Object.keys(ee),ge=0,Te=ue.length;ge0?y(H.componentWillDisappear,rn(W,j)):j.textContent=""}function pt(j,W,H,K){ct(H,K),W.flags&8192?A(W,j,K):mt(j,H,K)}function Et(j,W,H,K,Q){j.componentWillDisappear.push(function(ee){K&4?W.componentWillDisappear(H,ee):K&8&&W.onComponentWillDisappear(H,Q,ee)})}function an(j){var W=j.event;return function(H){W(j.data,H)}}function cn(j,W,H,K){if(i(H)){if(O(W,H))return;H=an(H)}Ue(K,u(j),H)}function ln(j,W,H){if(a(W)){H.removeAttribute("style");return}var K=H.style,Q,ee;if(f(W)){K.cssText=W;return}if(!a(j)&&!f(j)){for(Q in W)ee=W[Q],ee!==j[Q]&&K.setProperty(Q,ee);for(Q in j)a(W[Q])&&K.removeProperty(Q)}else for(Q in W)ee=W[Q],K.setProperty(Q,ee)}function dn(j,W,H,K,Q){var ee=j&&j.__html||"",oe=W&&W.__html||"";ee!==oe&&!a(oe)&&!Fe(K,oe)&&(S(H)||(H.childFlags&12?ct(H.children,Q):H.childFlags===2&&Ze(H.children,Q),H.children=null,H.childFlags=1),K.innerHTML=oe)}function vt(j,W,H,K,Q,ee,oe,ue){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":K.autofocus=!!H;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":K[j]=!!H;break;case"defaultChecked":case"value":case"volume":if(ee&&j==="value")break;var ge=a(H)?"":H;K[j]!==ge&&(K[j]=ge);break;case"style":ln(W,H,K);break;case"dangerouslySetInnerHTML":dn(W,H,oe,K,ue);break;default:Le[j]?Re(j,W,H,K):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,W,H,K):a(H)?K.removeAttribute(j):Q&&Ce[j]?K.setAttributeNS(Ce[j],j,H):K.setAttribute(j,H);break}}function Mt(j,W,H,K,Q,ee){var oe=!1,ue=(W&448)>0;ue&&(oe=At(H),oe&&tn(W,K,H));for(var ge in H)vt(ge,null,H[ge],K,Q,oe,null,ee);ue&&xt(W,j,K,H,!0,oe)}function Pt(j,W,H){var K=pe(j.render(W,j.state,H)),Q=H;return o(j.getChildContext)&&(Q=k(H,j.getChildContext())),j.$CX=Q,K}function Ot(j,W,H,K,Q,ee){var oe=new W(H,K),ue=oe.$N=!!(W.getDerivedStateFromProps||oe.getSnapshotBeforeUpdate);if(oe.$SVG=Q,oe.$L=ee,j.children=oe,oe.$BS=!1,oe.context=K,oe.props===c&&(oe.props=H),ue)oe.state=P(oe,H,oe.state);else if(o(oe.componentWillMount)){oe.$BR=!0,oe.componentWillMount();var ge=oe.$PS;if(!S(ge)){var Te=oe.state;if(S(Te))oe.state=ge;else for(var Ie in ge)Te[Ie]=ge[Ie];oe.$PS=null}oe.$BR=!1}return oe.$LI=Pt(oe,H,K),oe}function gt(j,W){var H=j.props||c;return j.flags&32768?j.type.render(H,j.ref,W):j.type(H,W)}function Ke(j,W,H,K,Q,ee,oe){var ue=j.flags|=16384;ue&481?Dt(j,W,H,K,Q,ee,oe):ue&4?mn(j,W,H,K,Q,ee,oe):ue&8?pn(j,W,H,K,Q,ee,oe):ue&16?Rt(j,W,Q):ue&8192?sn(j,H,W,K,Q,ee,oe):ue&1024&&un(j,H,W,Q,ee,oe)}function un(j,W,H,K,Q,ee){Ke(j.children,j.ref,W,!1,null,Q,ee);var oe=le();Rt(oe,H,K),j.dom=oe.dom}function sn(j,W,H,K,Q,ee,oe){var ue=j.children,ge=j.childFlags;ge&12&&ue.length===0&&(ge=j.childFlags=2,ue=j.children=le()),ge===2?Ke(ue,H,W,K,Q,ee,oe):ot(ue,H,W,K,Q,ee,oe)}function Rt(j,W,H){var K=j.dom=document.createTextNode(j.children);S(W)||d(W,K,H)}function Dt(j,W,H,K,Q,ee,oe){var ue=j.flags,ge=j.props,Te=j.className,Ie=j.childFlags,Ee=j.dom=v(j.type,K=K||(ue&32)>0),Ae=j.children;if(!a(Te)&&Te!==""&&(K?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Me=K&&j.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(j.children=Ae=ae(Ae)),Ke(Ae,Ee,H,Me,null,ee,oe)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ee,oe)}S(W)||d(W,Ee,Q),S(ge)||Mt(j,ue,ge,Ee,K,oe),at(j.ref,Ee,ee)}function ot(j,W,H,K,Q,ee,oe){for(var ue=0;ueMe)&&(Ee=V(ue[Me-1],!1).nextSibling)}Nt(Te,Ie,ue,ge,H,K,Q,Ee,j,ee,oe)}function Vn(j,W,H,K,Q){var ee=j.ref,oe=W.ref,ue=W.children;if(Nt(j.childFlags,W.childFlags,j.children,ue,ee,H,!1,null,j,K,Q),W.dom=j.dom,ee!==oe&&!t(ue)){var ge=ue.dom;h(ee,ge),s(oe,ge)}}function bn(j,W,H,K,Q,ee,oe){var ue=W.dom=j.dom,ge=j.props,Te=W.props,Ie=!1,Ee=!1,Ae;if(K=K||(Q&32)>0,ge!==Te){var Me=ge||c;if(Ae=Te||c,Ae!==c){Ie=(Q&448)>0,Ie&&(Ee=At(Ae));for(var _e in Ae){var Oe=Me[_e],$e=Ae[_e];Oe!==$e&&vt(_e,Oe,$e,ue,K,Ee,j,oe)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,ue,K,Ee,j,oe)}var tt=W.children,Ye=W.className;j.className!==Ye&&(a(Ye)?ue.removeAttribute("class"):K?ue.setAttribute("class",Ye):ue.className=Ye),Q&4096?gn(ue,tt):Nt(j.childFlags,W.childFlags,j.children,tt,ue,H,K&&W.type!=="foreignObject",null,j,ee,oe),Ie&&xt(Q,W,ue,Ae,!1,Ee);var it=W.ref,Qe=j.ref;Qe!==it&&(st(Qe),at(it,ue,ee))}function kn(j,W,H,K,Q,ee,oe){Ze(j,oe),ot(W,H,K,Q,V(j,!0),ee,oe),A(j,H,oe)}function Nt(j,W,H,K,Q,ee,oe,ue,ge,Te,Ie){switch(j){case 2:switch(W){case 2:qe(H,K,Q,ee,oe,ue,Te,Ie);break;case 1:Je(H,Q,Ie);break;case 16:Ze(H,Ie),R(Q,K);break;default:kn(H,K,Q,ee,oe,Te,Ie);break}break;case 1:switch(W){case 2:Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:break;case 16:R(Q,K);break;default:ot(K,Q,ee,oe,ue,Te,Ie);break}break;case 16:switch(W){case 16:vn(H,K,Q);break;case 2:mt(Q,H,Ie),Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:mt(Q,H,Ie);break;default:mt(Q,H,Ie),ot(K,Q,ee,oe,ue,Te,Ie);break}break;default:switch(W){case 16:ct(H,Ie),R(Q,K);break;case 2:pt(Q,ge,H,Ie),Ke(K,Q,ee,oe,ue,Te,Ie);break;case 1:pt(Q,ge,H,Ie);break;default:var Ee=H.length|0,Ae=K.length|0;Ee===0?Ae>0&&ot(K,Q,ee,oe,ue,Te,Ie):Ae===0?pt(Q,ge,H,Ie):W===8&&j===8?wn(H,K,Q,ee,oe,Ee,Ae,ue,ge,Te,Ie):Ln(H,K,Q,ee,oe,Ee,Ae,ue,Te,Ie);break}break}}function yn(j,W,H,K,Q){Q.push(function(){j.componentDidUpdate(W,H,K)})}function Wt(j,W,H,K,Q,ee,oe,ue,ge,Te){var Ie=j.state,Ee=j.props,Ae=!!j.$N,Me=o(j.shouldComponentUpdate);if(Ae&&(W=P(j,H,W!==Ie?k(Ie,W):W)),oe||!Me||Me&&j.shouldComponentUpdate(H,W,Q)){!Ae&&o(j.componentWillUpdate)&&j.componentWillUpdate(H,W,Q),j.props=H,j.state=W,j.context=Q;var _e=null,Oe=Pt(j,H,Q);Ae&&o(j.getSnapshotBeforeUpdate)&&(_e=j.getSnapshotBeforeUpdate(Ee,Ie)),qe(j.$LI,Oe,K,j.$CX,ee,ue,ge,Te),j.$LI=Oe,o(j.componentDidUpdate)&&yn(j,Ee,Ie,_e,ge)}else j.props=H,j.state=W,j.context=Q}function Sn(j,W,H,K,Q,ee,oe,ue){var ge=W.children=j.children;if(!S(ge)){ge.$L=oe;var Te=W.props||c,Ie=W.ref,Ee=j.ref,Ae=ge.state;if(!ge.$N){if(o(ge.componentWillReceiveProps)){if(ge.$BR=!0,ge.componentWillReceiveProps(Te,K),ge.$UN)return;ge.$BR=!1}S(ge.$PS)||(Ae=k(Ae,ge.$PS),ge.$PS=null)}Wt(ge,Ae,Te,H,K,Q,!1,ee,oe,ue),Ee!==Ie&&(st(Ee),at(Ie,ge,oe))}}function Bn(j,W,H,K,Q,ee,oe,ue){var ge=!0,Te=W.props||c,Ie=W.ref,Ee=j.props,Ae=!a(Ie),Me=j.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ge=Ie.onComponentShouldUpdate(Ee,Te)),ge!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var _e=pe(gt(W,K));qe(Me,_e,H,K,Q,ee,oe,ue),W.children=_e,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else W.children=Me}function In(j,W){var H=W.children,K=W.dom=j.dom;H!==j.children&&(K.nodeValue=H)}function Ln(j,W,H,K,Q,ee,oe,ue,ge,Te){for(var Ie=ee>oe?oe:ee,Ee=0,Ae,Me;Eeoe)for(Ee=Ie;EeEe||Me>Ae)break e;_e=j[Me],Oe=W[Me]}for(_e=j[Ee],Oe=W[Ae];_e.key===Oe.key;){if(Oe.flags&16384&&(W[Ae]=Oe=ae(Oe)),qe(_e,Oe,H,K,Q,ue,Te,Ie),j[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;_e=j[Ee],Oe=W[Ae]}}if(Me>Ee){if(Me<=Ae)for($e=Ae+1,De=$eAe)for(;Me<=Ee;)Je(j[Me++],H,Ie);else Tn(j,W,K,ee,oe,Ee,Ae,Me,H,Q,ue,ge,Te,Ie)}function Tn(j,W,H,K,Q,ee,oe,ue,ge,Te,Ie,Ee,Ae,Me){var _e,Oe,$e=0,De=0,tt=ue,Ye=ue,it=ee-ue+1,Qe=oe-ue+1,lt=new Int32Array(Qe+1),nt=it===K,bt=!1,Ge=0,dt=0;if(Q<4||(it|Qe)<32)for(De=tt;De<=ee;++De)if(_e=j[De],dtue?bt=!0:Ge=ue,Oe.flags&16384&&(W[ue]=Oe=ae(Oe)),qe(_e,Oe,ge,H,Te,Ie,Ae,Me),++dt;break}!nt&&ue>oe&&Je(_e,ge,Me)}else nt||Je(_e,ge,Me);else{var Yt={};for(De=Ye;De<=oe;++De)Yt[W[De].key]=De;for(De=tt;De<=ee;++De)if(_e=j[De],dttt;)Je(j[tt++],ge,Me);lt[ue-Ye]=De+1,Ge>ue?bt=!0:Ge=ue,Oe=W[ue],Oe.flags&16384&&(W[ue]=Oe=ae(Oe)),qe(_e,Oe,ge,H,Te,Ie,Ae,Me),++dt}else nt||Je(_e,ge,Me);else nt||Je(_e,ge,Me)}if(nt)pt(ge,Ee,j,Me),ot(W,ge,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(ue=Xt.length-1,De=Qe-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=W[Ge],Oe.flags&16384&&(W[Ge]=Oe=ae(Oe)),$e=Ge+1,Ke(Oe,ge,H,Te,$e0&&I(Me.componentWillMove)}else if(dt!==Qe)for(De=Qe-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=W[Ge],Oe.flags&16384&&(W[Ge]=Oe=ae(Oe)),$e=Ge+1,Ke(Oe,ge,H,Te,$eUt&&(Ut=ge,et=new Int32Array(ge),ft=new Int32Array(ge));H>1,j[et[ue]]0&&(ft[H]=et[ee-1]),et[ee]=H)}ee=Q+1;var Te=new Int32Array(ee);for(oe=et[ee-1];ee-- >0;)Te[ee]=oe,oe=ft[oe],et[ee]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,W,H,K){var Q=[],ee=new l,oe=W.$V;D.v=!0,a(oe)?a(j)||(j.flags&16384&&(j=ae(j)),Ke(j,W,K,!1,null,Q,ee),W.$V=j,oe=j):a(j)?(Je(oe,W,ee),W.$V=null):(j.flags&16384&&(j=ae(j)),qe(oe,j,W,K,!1,null,Q,ee),oe=W.$V=j),p(Q),y(ee.componentDidAppear),D.v=!1,o(H)&&H(),o(M.renderComplete)&&M.renderComplete(oe,W)}function zt(j,W,H,K){H===void 0&&(H=null),K===void 0&&(K=c),Ht(j,W,H,K)}function En(j){return function(){function W(H,K,Q,ee){j||(j=H),zt(K,j,Q,ee)}return W}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},Vt=!1;function Kt(j,W,H,K){var Q=j.$PS;if(o(W)&&(W=W(Q?k(j.state,Q):j.state,j.props,j.context)),a(Q))j.$PS=W;else for(var ee in W)Q[ee]=W[ee];if(j.$BR)o(H)&&j.$L.push(H.bind(j));else{if(!D.v&&ht.length===0){Gt(j,K),o(H)&&H.call(j);return}if(ht.indexOf(j)===-1&&ht.push(j),K&&(j.$F=!0),Vt||(Vt=!0,Mn($t)),o(H)){var oe=j.$QU;oe||(oe=j.$QU=[]),oe.push(H)}}}function Pn(j){for(var W=j.$QU,H=0;H=0;--_){var U=this.tryEntries[_],z=U.completion;if(U.tryLoc==="root")return F("end");if(U.tryLoc<=this.prev){var $=a.call(U,"catchLoc"),G=a.call(U,"finallyLoc");if($&&G){if(this.prev=0;--F){var _=this.tryEntries[F];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=O&&O<=U.finallyLoc&&(U=null);var z=U?U.completion:{};return z.type=R,z.arg=O,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(z)}return M}(),complete:function(){function M(R,O){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&O&&(this.next=O),s}return M}(),finish:function(){function M(R){for(var O=this.tryEntries.length-1;O>=0;--O){var F=this.tryEntries[O];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return M}(),catch:function(){function M(R){for(var O=this.tryEntries.length-1;O>=0;--O){var F=this.tryEntries[O];if(F.tryLoc===R){var _=F.completion;if(_.type==="throw"){var U=_.arg;x(F)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,O,F){return this.delegate={iterator:P(R),resultName:O,nextLoc:F},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function S(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function B(){return Promise.resolve(a.responseText)}return B}(),json:function(){function B(){return Promise.resolve(a.responseText).then(JSON.parse)}return B}(),blob:function(){function B(){return Promise.resolve(new Blob([a.response]))}return B}(),clone:S,headers:{keys:function(){function B(){return t}return B}(),entries:function(){function B(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return B}(),get:function(){function B(k){return a.getResponseHeader(k)}return B}(),has:function(){function B(k){return a.getResponseHeader(k)!=null}return B}()}}}return S}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(S,B){o[B]||t.push(o[B]=B)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(d,v){var C=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(C)return(C=C.call(d)).next.bind(C);if(Array.isArray(d)||(C=e(d))||v&&d&&typeof d.length=="number"){C&&(d=C);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(d,v){if(d){if(typeof d=="string")return a(d,v);var C={}.toString.call(d).slice(8,-1);return C==="Object"&&d.constructor&&(C=d.constructor.name),C==="Map"||C==="Set"?Array.from(d):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?a(d,v):void 0}}function a(d,v){(v==null||v>d.length)&&(v=d.length);for(var C=0,h=Array(v);CI)return 1}return 0},k=r.sortBy=function(){function d(){for(var v=arguments.length,C=new Array(v),h=0;hI)return 1}return 0},k=r.sortBy=function(){function d(){for(var v=arguments.length,C=new Array(v),h=0;h=1-n)return F[_-1];var z=U%1,$=U|0;return D.lerp(F[$],F[$+1],z)}return R}(),D}(),a=function(M,R,O){return R===void 0&&(R=0),O===void 0&&(O=Math.pow(10,R)),Math.round(O*M)/O},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(M){return I(f(M))}return D}(),f=r.hexToRgba=function(){function D(M){return M[0]==="#"&&(M=M.substring(1)),M.length<6?{r:parseInt(M[0]+M[0],16),g:parseInt(M[1]+M[1],16),b:parseInt(M[2]+M[2],16),a:M.length===4?a(parseInt(M[3]+M[3],16)/255,2):1}:{r:parseInt(M.substring(0,2),16),g:parseInt(M.substring(2,4),16),b:parseInt(M.substring(4,6),16),a:M.length===8?a(parseInt(M.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(M,R){return R===void 0&&(R="deg"),Number(M)*(t[R]||1)}return D}(),y=r.hslaStringToHsva=function(){function D(M){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?k({h:b(O[1],O[2]),s:Number(O[3]),l:Number(O[4]),a:O[5]===void 0?1:Number(O[5])/(O[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),B=r.hslStringToHsva=y,k=r.hslaToHsva=function(){function D(M){var R=M.h,O=M.s,F=M.l,_=M.a;return O*=(F<50?F:100-F)/100,{h:R,s:O>0?2*O/(F+O)*100:0,v:F+O,a:_}}return D}(),g=r.hsvaToHex=function(){function D(M){return S(s(M))}return D}(),i=r.hsvaToHsla=function(){function D(M){var R=M.h,O=M.s,F=M.v,_=M.a,U=(200-O)*F/100;return{h:a(R),s:a(U>0&&U<200?O*F/100/(U<=100?U:200-U)*100:0),l:a(U/2),a:a(_,2)}}return D}(),c=r.hsvaToHslString=function(){function D(M){var R=i(M),O=R.h,F=R.s,_=R.l;return"hsl("+O+", "+F+"%, "+_+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v;return"hsv("+O+", "+F+"%, "+_+"%)"}return D}(),l=r.hsvaToHsvaString=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v,U=R.a;return"hsva("+O+", "+F+"%, "+_+"%, "+U+")"}return D}(),u=r.hsvaToHslaString=function(){function D(M){var R=i(M),O=R.h,F=R.s,_=R.l,U=R.a;return"hsla("+O+", "+F+"%, "+_+"%, "+U+")"}return D}(),s=r.hsvaToRgba=function(){function D(M){var R=M.h,O=M.s,F=M.v,_=M.a;R=R/360*6,O=O/100,F=F/100;var U=Math.floor(R),z=F*(1-O),$=F*(1-(R-U)*O),G=F*(1-(1-R+U)*O),X=U%6;return{r:[F,$,z,z,G,F][X]*255,g:[G,F,F,$,z,z][X]*255,b:[z,z,G,F,F,$][X]*255,a:a(_,2)}}return D}(),d=r.hsvaToRgbString=function(){function D(M){var R=s(M),O=R.r,F=R.g,_=R.b;return"rgb("+a(O)+", "+a(F)+", "+a(_)+")"}return D}(),v=r.hsvaToRgbaString=function(){function D(M){var R=s(M),O=R.r,F=R.g,_=R.b,U=R.a;return"rgba("+a(O)+", "+a(F)+", "+a(_)+", "+a(U,2)+")"}return D}(),C=r.hsvaStringToHsva=function(){function D(M){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?L({h:b(O[1],O[2]),s:Number(O[3]),v:Number(O[4]),a:O[5]===void 0?1:Number(O[5])/(O[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),h=r.hsvStringToHsva=C,p=r.rgbaStringToHsva=function(){function D(M){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?I({r:Number(O[1])/(O[2]?100/255:1),g:Number(O[3])/(O[4]?100/255:1),b:Number(O[5])/(O[6]?100/255:1),a:O[7]===void 0?1:Number(O[7])/(O[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),N=r.rgbStringToHsva=p,V=function(M){var R=M.toString(16);return R.length<2?"0"+R:R},S=r.rgbaToHex=function(){function D(M){var R=M.r,O=M.g,F=M.b,_=M.a,U=_<1?V(a(_*255)):"";return"#"+V(a(R))+V(a(O))+V(a(F))+U}return D}(),I=r.rgbaToHsva=function(){function D(M){var R=M.r,O=M.g,F=M.b,_=M.a,U=Math.max(R,O,F),z=U-Math.min(R,O,F),$=z?U===R?(O-F)/z:U===O?2+(F-R)/z:4+(R-O)/z:0;return{h:60*($<0?$+6:$),s:U?z/U*100:0,v:U/255*100,a:_}}return D}(),L=r.roundHsva=function(){function D(M){return{h:a(M.h),s:a(M.s),v:a(M.v),a:a(M.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(M){var R=M.r,O=M.g,F=M.b;return{r:R,g:O,b:F}}return D}(),A=r.hslaToHsl=function(){function D(M){var R=M.h,O=M.s,F=M.l;return{h:R,s:O,l:F}}return D}(),x=r.hsvaToHsv=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v;return{h:O,s:F,v:_}}return D}(),E=/^#?([0-9A-F]{3,8})$/i,P=r.validHex=function(){function D(M,R){var O=E.exec(M),F=O?O[1].length:0;return F===3||F===6||!!R&&F===4||!!R&&F===8}return D}()},92868:function(T,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var n=1e-4,e=r.Color=function(){function D(R,O,F,_){R===void 0&&(R=0),O===void 0&&(O=0),F===void 0&&(F=0),_===void 0&&(_=1),this.r=void 0,this.g=void 0,this.b=void 0,this.a=void 0,this.r=R,this.g=O,this.b=F,this.a=_}var M=D.prototype;return M.toString=function(){function R(){return"rgba("+(this.r|0)+", "+(this.g|0)+", "+(this.b|0)+", "+(this.a|0)+")"}return R}(),D.fromHex=function(){function R(O){return new D(parseInt(O.substr(1,2),16),parseInt(O.substr(3,2),16),parseInt(O.substr(5,2),16))}return R}(),D.lerp=function(){function R(O,F,_){return new D((F.r-O.r)*_+O.r,(F.g-O.g)*_+O.g,(F.b-O.b)*_+O.b,(F.a-O.a)*_+O.a)}return R}(),D.lookup=function(){function R(O,F){F===void 0&&(F=[]);var _=F.length;if(_<2)throw new Error("Needs at least two colors!");var U=O*(_-1);if(O=1-n)return F[_-1];var z=U%1,$=U|0;return D.lerp(F[$],F[$+1],z)}return R}(),D}(),a=function(M,R,O){return R===void 0&&(R=0),O===void 0&&(O=Math.pow(10,R)),Math.round(O*M)/O},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(M){return I(f(M))}return D}(),f=r.hexToRgba=function(){function D(M){return M[0]==="#"&&(M=M.substring(1)),M.length<6?{r:parseInt(M[0]+M[0],16),g:parseInt(M[1]+M[1],16),b:parseInt(M[2]+M[2],16),a:M.length===4?a(parseInt(M[3]+M[3],16)/255,2):1}:{r:parseInt(M.substring(0,2),16),g:parseInt(M.substring(2,4),16),b:parseInt(M.substring(4,6),16),a:M.length===8?a(parseInt(M.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(M,R){return R===void 0&&(R="deg"),Number(M)*(t[R]||1)}return D}(),S=r.hslaStringToHsva=function(){function D(M){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?k({h:b(O[1],O[2]),s:Number(O[3]),l:Number(O[4]),a:O[5]===void 0?1:Number(O[5])/(O[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),B=r.hslStringToHsva=S,k=r.hslaToHsva=function(){function D(M){var R=M.h,O=M.s,F=M.l,_=M.a;return O*=(F<50?F:100-F)/100,{h:R,s:O>0?2*O/(F+O)*100:0,v:F+O,a:_}}return D}(),g=r.hsvaToHex=function(){function D(M){return y(s(M))}return D}(),i=r.hsvaToHsla=function(){function D(M){var R=M.h,O=M.s,F=M.v,_=M.a,U=(200-O)*F/100;return{h:a(R),s:a(U>0&&U<200?O*F/100/(U<=100?U:200-U)*100:0),l:a(U/2),a:a(_,2)}}return D}(),c=r.hsvaToHslString=function(){function D(M){var R=i(M),O=R.h,F=R.s,_=R.l;return"hsl("+O+", "+F+"%, "+_+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v;return"hsv("+O+", "+F+"%, "+_+"%)"}return D}(),l=r.hsvaToHsvaString=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v,U=R.a;return"hsva("+O+", "+F+"%, "+_+"%, "+U+")"}return D}(),u=r.hsvaToHslaString=function(){function D(M){var R=i(M),O=R.h,F=R.s,_=R.l,U=R.a;return"hsla("+O+", "+F+"%, "+_+"%, "+U+")"}return D}(),s=r.hsvaToRgba=function(){function D(M){var R=M.h,O=M.s,F=M.v,_=M.a;R=R/360*6,O=O/100,F=F/100;var U=Math.floor(R),z=F*(1-O),$=F*(1-(R-U)*O),G=F*(1-(1-R+U)*O),X=U%6;return{r:[F,$,z,z,G,F][X]*255,g:[G,F,F,$,z,z][X]*255,b:[z,z,G,F,F,$][X]*255,a:a(_,2)}}return D}(),d=r.hsvaToRgbString=function(){function D(M){var R=s(M),O=R.r,F=R.g,_=R.b;return"rgb("+a(O)+", "+a(F)+", "+a(_)+")"}return D}(),v=r.hsvaToRgbaString=function(){function D(M){var R=s(M),O=R.r,F=R.g,_=R.b,U=R.a;return"rgba("+a(O)+", "+a(F)+", "+a(_)+", "+a(U,2)+")"}return D}(),C=r.hsvaStringToHsva=function(){function D(M){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?L({h:b(O[1],O[2]),s:Number(O[3]),v:Number(O[4]),a:O[5]===void 0?1:Number(O[5])/(O[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),h=r.hsvStringToHsva=C,p=r.rgbaStringToHsva=function(){function D(M){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,O=R.exec(M);return O?I({r:Number(O[1])/(O[2]?100/255:1),g:Number(O[3])/(O[4]?100/255:1),b:Number(O[5])/(O[6]?100/255:1),a:O[7]===void 0?1:Number(O[7])/(O[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),N=r.rgbStringToHsva=p,V=function(M){var R=M.toString(16);return R.length<2?"0"+R:R},y=r.rgbaToHex=function(){function D(M){var R=M.r,O=M.g,F=M.b,_=M.a,U=_<1?V(a(_*255)):"";return"#"+V(a(R))+V(a(O))+V(a(F))+U}return D}(),I=r.rgbaToHsva=function(){function D(M){var R=M.r,O=M.g,F=M.b,_=M.a,U=Math.max(R,O,F),z=U-Math.min(R,O,F),$=z?U===R?(O-F)/z:U===O?2+(F-R)/z:4+(R-O)/z:0;return{h:60*($<0?$+6:$),s:U?z/U*100:0,v:U/255*100,a:_}}return D}(),L=r.roundHsva=function(){function D(M){return{h:a(M.h),s:a(M.s),v:a(M.v),a:a(M.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(M){var R=M.r,O=M.g,F=M.b;return{r:R,g:O,b:F}}return D}(),A=r.hslaToHsl=function(){function D(M){var R=M.h,O=M.s,F=M.l;return{h:R,s:O,l:F}}return D}(),x=r.hsvaToHsv=function(){function D(M){var R=L(M),O=R.h,F=R.s,_=R.v;return{h:O,s:F,v:_}}return D}(),E=/^#?([0-9A-F]{3,8})$/i,P=r.validHex=function(){function D(M,R){var O=E.exec(M),F=O?O[1].length:0;return F===3||F===6||!!R&&F===4||!!R&&F===8}return D}()},92868:function(T,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.EventEmitter=function(){function e(){this.listeners={}}var a=e.prototype;return a.on=function(){function t(o,f){this.listeners[o]=this.listeners[o]||[],this.listeners[o].push(f)}return t}(),a.off=function(){function t(o,f){var b=this.listeners[o];if(!b)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=b.filter(function(y){return y!==f})}return t}(),a.emit=function(){function t(o){var f=this.listeners[o];if(f){for(var b=arguments.length,y=new Array(b>1?b-1:0),B=1;B1?b-1:0),B=1;B1?B-1:0),g=1;g1?k-1:0),i=1;i1?B-1:0),g=1;g1?k-1:0),i=1;ii?i:k}return B}(),e=r.clamp01=function(){function B(k){return k<0?0:k>1?1:k}return B}(),a=r.scale=function(){function B(k,g,i){return(k-g)/(i-g)}return B}(),t=r.round=function(){function B(k,g){if(!k||isNaN(k))return k;var i,c,m,l;return g|=0,i=Math.pow(10,g),k*=i,l=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(l>0)),(m?k:Math.round(k))/i}return B}(),o=r.toFixed=function(){function B(k,g){return g===void 0&&(g=0),Number(k).toFixed(Math.max(g,0))}return B}(),f=r.inRange=function(){function B(k,g){return g&&k>=g[0]&&k<=g[1]}return B}(),b=r.keyOfMatchingRange=function(){function B(k,g){for(var i=0,c=Object.keys(g);ii?i:k}return B}(),e=r.clamp01=function(){function B(k){return k<0?0:k>1?1:k}return B}(),a=r.scale=function(){function B(k,g,i){return(k-g)/(i-g)}return B}(),t=r.round=function(){function B(k,g){if(!k||isNaN(k))return k;var i,c,m,l;return g|=0,i=Math.pow(10,g),k*=i,l=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(l>0)),(m?k:Math.round(k))/i}return B}(),o=r.toFixed=function(){function B(k,g){return g===void 0&&(g=0),Number(k).toFixed(Math.max(g,0))}return B}(),f=r.inRange=function(){function B(k,g){return g&&k>=g[0]&&k<=g[1]}return B}(),b=r.keyOfMatchingRange=function(){function B(k,g){for(var i=0,c=Object.keys(g);i1?l-1:0),s=1;s1?V-1:0),I=1;I=0;--pe){var ce=this.tryEntries[pe],Ve=ce.completion;if(ce.tryLoc==="root")return fe("end");if(ce.tryLoc<=this.prev){var Ce=N.call(ce,"catchLoc"),Ne=N.call(ce,"finallyLoc");if(Ce&&Ne){if(this.prev=0;--fe){var pe=this.tryEntries[fe];if(pe.tryLoc<=this.prev&&N.call(pe,"finallyLoc")&&this.prev=0;--te){var fe=this.tryEntries[te];if(fe.finallyLoc===ne)return this.complete(fe.completion,fe.afterLoc),re(fe),O}}return Z}(),catch:function(){function Z(ne){for(var te=this.tryEntries.length-1;te>=0;--te){var fe=this.tryEntries[te];if(fe.tryLoc===ne){var pe=fe.completion;if(pe.type==="throw"){var ce=pe.arg;re(fe)}return ce}}throw Error("illegal catch attempt")}return Z}(),delegateYield:function(){function Z(ne,te,fe){return this.delegate={iterator:le(ne),resultName:te,nextLoc:fe},this.method==="next"&&(this.arg=C),O}return Z}()},h}function e(C,h,p,N,V,S,I){try{var L=C[S](I),w=L.value}catch(A){return void p(A)}L.done?h(w):Promise.resolve(w).then(N,V)}function a(C){return function(){var h=this,p=arguments;return new Promise(function(N,V){var S=C.apply(h,p);function I(w){e(S,N,V,I,L,"next",w)}function L(w){e(S,N,V,I,L,"throw",w)}I(void 0)})}}/** + */var a=r.createStore=function(){function B(k,g){if(g)return g(B)(k);var i,c=[],m=function(){function s(){return i}return s}(),l=function(){function s(d){c.push(d)}return s}(),u=function(){function s(d){i=k(i,d);for(var v=0;v1?l-1:0),s=1;s1?V-1:0),I=1;I=0;--pe){var ce=this.tryEntries[pe],Ve=ce.completion;if(ce.tryLoc==="root")return fe("end");if(ce.tryLoc<=this.prev){var Ce=N.call(ce,"catchLoc"),Ne=N.call(ce,"finallyLoc");if(Ce&&Ne){if(this.prev=0;--fe){var pe=this.tryEntries[fe];if(pe.tryLoc<=this.prev&&N.call(pe,"finallyLoc")&&this.prev=0;--te){var fe=this.tryEntries[te];if(fe.finallyLoc===ne)return this.complete(fe.completion,fe.afterLoc),re(fe),O}}return Z}(),catch:function(){function Z(ne){for(var te=this.tryEntries.length-1;te>=0;--te){var fe=this.tryEntries[te];if(fe.tryLoc===ne){var pe=fe.completion;if(pe.type==="throw"){var ce=pe.arg;re(fe)}return ce}}throw Error("illegal catch attempt")}return Z}(),delegateYield:function(){function Z(ne,te,fe){return this.delegate={iterator:le(ne),resultName:te,nextLoc:fe},this.method==="next"&&(this.arg=C),O}return Z}()},h}function e(C,h,p,N,V,y,I){try{var L=C[y](I),w=L.value}catch(A){return void p(A)}L.done?h(w):Promise.resolve(w).then(N,V)}function a(C){return function(){var h=this,p=arguments;return new Promise(function(N,V){var y=C.apply(h,p);function I(w){e(y,N,V,I,L,"next",w)}function L(w){e(y,N,V,I,L,"throw",w)}I(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,f=r.IMPL_INDEXED_DB=2,b=1,y="para-tgui",B="storage-v1",k="readonly",g="readwrite",i=function(h){return function(){try{return!!h()}catch(p){return!1}}},c=i(function(){return window.hubStorage&&window.hubStorage.getItem}),m=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),l=function(){function C(){this.impl=t,this.store={}}var h=C.prototype;return h.get=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[S]);case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.set=function(){var p=a(n().mark(function(){function V(S,I){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:this.store[S]=I;case 1:case"end":return w.stop()}}return L}(),V,this)}return V}()));function N(V,S){return p.apply(this,arguments)}return N}(),h.remove=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:this.store[S]=void 0;case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.clear=function(){var p=a(n().mark(function(){function V(){return n().wrap(function(){function S(I){for(;;)switch(I.prev=I.next){case 0:this.store={};case 1:case"end":return I.stop()}}return S}(),V,this)}return V}()));function N(){return p.apply(this,arguments)}return N}(),C}(),u=function(){function C(){this.impl=o}var h=C.prototype;return h.get=function(){var p=a(n().mark(function(){function V(S){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,window.hubStorage.getItem("paradise-"+S);case 2:if(I=w.sent,typeof I!="string"){w.next=5;break}return w.abrupt("return",JSON.parse(I));case 5:case"end":return w.stop()}}return L}(),V)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.set=function(){function p(N,V){window.hubStorage.setItem("paradise-"+N,JSON.stringify(V))}return p}(),h.remove=function(){function p(N){window.hubStorage.removeItem("paradise-"+N)}return p}(),h.clear=function(){function p(){window.hubStorage.clear()}return p}(),C}(),s=function(){function C(){this.impl=f,this.dbPromise=new Promise(function(p,N){var V=window.indexedDB||window.msIndexedDB,S=V.open(y,b);S.onupgradeneeded=function(){try{S.result.createObjectStore(B)}catch(I){N(new Error("Failed to upgrade IDB: "+S.error))}},S.onsuccess=function(){return p(S.result)},S.onerror=function(){N(new Error("Failed to open IDB: "+S.error))}})}var h=C.prototype;return h.getStore=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(w){return w.transaction(B,S).objectStore(B)}));case 1:case"end":return L.stop()}}return I}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.get=function(){var p=a(n().mark(function(){function V(S){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(k);case 2:return I=w.sent,w.abrupt("return",new Promise(function(A,x){var E=I.get(S);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.set=function(){var p=a(n().mark(function(){function V(S,I){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.getStore(g);case 2:L=A.sent,L.put(I,S);case 4:case"end":return A.stop()}}return w}(),V,this)}return V}()));function N(V,S){return p.apply(this,arguments)}return N}(),h.remove=function(){var p=a(n().mark(function(){function V(S){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(g);case 2:I=w.sent,I.delete(S);case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.clear=function(){var p=a(n().mark(function(){function V(){var S;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(g);case 2:S=L.sent,S.clear();case 4:case"end":return L.stop()}}return I}(),V,this)}return V}()));function N(){return p.apply(this,arguments)}return N}(),C}(),d=function(){function C(){this.backendPromise=a(n().mark(function(){function p(){var N;return n().wrap(function(){function V(S){for(;;)switch(S.prev=S.next){case 0:if(!(!Byond.TRIDENT&&c())){S.next=2;break}return S.abrupt("return",new u);case 2:if(!m()){S.next=12;break}return S.prev=3,N=new s,S.next=7,N.dbPromise;case 7:return S.abrupt("return",N);case 10:S.prev=10,S.t0=S.catch(3);case 12:return S.abrupt("return",new l);case 13:case"end":return S.stop()}}return V}(),p,null,[[3,10]])}return p}()))()}var h=C.prototype;return h.get=function(){var p=a(n().mark(function(){function V(S){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return I=w.sent,w.abrupt("return",I.get(S));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.set=function(){var p=a(n().mark(function(){function V(S,I){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return L=A.sent,A.abrupt("return",L.set(S,I));case 4:case"end":return A.stop()}}return w}(),V,this)}return V}()));function N(V,S){return p.apply(this,arguments)}return N}(),h.remove=function(){var p=a(n().mark(function(){function V(S){var I;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return I=w.sent,w.abrupt("return",I.remove(S));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function N(V){return p.apply(this,arguments)}return N}(),h.clear=function(){var p=a(n().mark(function(){function V(){var S;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return S=L.sent,L.abrupt("return",S.clear());case 4:case"end":return L.stop()}}return I}(),V,this)}return V}()));function N(){return p.apply(this,arguments)}return N}(),C}(),v=r.storage=new d},25328:function(T,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(g,i){var c=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(c)return(c=c.call(g)).next.bind(c);if(Array.isArray(g)||(c=e(g))||i&&g&&typeof g.length=="number"){c&&(g=c);var m=0;return function(){return m>=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(g,i){if(g){if(typeof g=="string")return a(g,i);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(g,i):void 0}}function a(g,i){(i==null||i>g.length)&&(i=g.length);for(var c=0,m=Array(i);c=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(g,i){if(g){if(typeof g=="string")return a(g,i);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(g,i):void 0}}function a(g,i){(i==null||i>g.length)&&(i=g.length);for(var c=0,m=Array(i);c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(l,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(l,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return g}(),k=r.buildQueryString=function(){function g(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return g}()},69214:function(T,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function g(i){if(Array.isArray(i))return g(i.join(""));for(var c=i.split("\n"),m,l=n(c),u;!(u=l()).done;)for(var s=u.value,d=0;d",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(l,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(l,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return g}(),k=r.buildQueryString=function(){function g(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return g}()},69214:function(T,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var y;return function(){for(var B=arguments.length,k=new Array(B),g=0;g=f)o.apply(null,g),b=c;else{var m;y=setTimeout(function(){return B.apply(void 0,g)},f-(c-((m=b)!=null?m:0)))}}return B}()}return t}()},97450:function(T,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var S;return function(){for(var B=arguments.length,k=new Array(B),g=0;g=f)o.apply(null,g),b=c;else{var m;S=setTimeout(function(){return B.apply(void 0,g)},f-(c-((m=b)!=null?m:0)))}}return B}()}return t}()},97450:function(T,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -62,11 +62,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(u,s){return u+s},t=function(u,s){return u-s},o=function(u,s){return u*s},f=function(u,s){return u/s},b=r.vecAdd=function(){function l(){for(var u=arguments.length,s=new Array(u),d=0;d0&&(N.style=x),N}return h}(),v=r.computeBoxClassName=function(){function h(p){var N=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([g(N)&&"color-"+N,g(V)&&"color-bg-"+V])}return h}(),C=r.Box=function(){function h(p){var N=p.as,V=N===void 0?"div":N,S=p.className,I=p.children,L=b(p,f);if(typeof I=="function")return I(d(p));var w=typeof S=="string"?S+" "+v(L):v(L),A=d(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,I,t.ChildFlags.UnknownChildren,A)}return h}();C.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),y=n(62147),B=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],g=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** + */function b(h,p){if(h==null)return{};var N={};for(var V in h)if({}.hasOwnProperty.call(h,V)){if(p.includes(V))continue;N[V]=h[V]}return N}var S=r.unit=function(){function h(p){if(typeof p=="string")return p.endsWith("px")?parseFloat(p)/12+"rem":p;if(typeof p=="number")return p+"rem"}return h}(),B=r.halfUnit=function(){function h(p){if(typeof p=="string")return S(p);if(typeof p=="number")return S(p*.5)}return h}(),k=function(p){return!g(p)},g=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},i=function(p){return function(N,V){(typeof V=="number"||typeof V=="string")&&(N[p]=V)}},c=function(p,N){return function(V,y){(typeof y=="number"||typeof y=="string")&&(V[p]=N(y))}},m=function(p,N){return function(V,y){y&&(V[p]=N)}},l=function(p,N,V){return function(y,I){if(typeof I=="number"||typeof I=="string")for(var L=0;L0&&(N.style=x),N}return h}(),v=r.computeBoxClassName=function(){function h(p){var N=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([g(N)&&"color-"+N,g(V)&&"color-bg-"+V])}return h}(),C=r.Box=function(){function h(p){var N=p.as,V=N===void 0?"div":N,y=p.className,I=p.children,L=b(p,f);if(typeof I=="function")return I(d(p));var w=typeof y=="string"?y+" "+v(L):v(L),A=d(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,I,t.ChildFlags.UnknownChildren,A)}return h}();C.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),S=n(62147),B=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],g=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,m(h,p)}function m(h,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,V){return N.__proto__=V,N},m(h,p)}function l(h,p){if(h==null)return{};var N={};for(var V in h)if({}.hasOwnProperty.call(h,V)){if(p.includes(V))continue;N[V]=h[V]}return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function h(p){var N=p.className,V=p.fluid,S=p.translucent,I=p.icon,L=p.iconRotation,w=p.iconSpin,A=p.color,x=p.textColor,E=p.disabled,P=p.selected,D=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,O=p.compact,F=p.circular,_=p.content,U=p.iconColor,z=p.iconRight,$=p.iconStyle,G=p.children,X=p.onclick,J=p.onClick,se=p.multiLine,ie=l(p,B),me=!!(_||G);X&&u.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"),ie.onClick=function(re){!E&&J&&J(re)};var q=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(S?"--translucent":""),P&&"Button--selected"+(S?"--translucent":""),me&&"Button--hasContent",R&&"Button--ellipsis",F&&"Button--circular",O&&"Button--compact",z&&"Button--iconRight",se&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(S?"--translucent":""):"Button--color--default"+(S?"--translucent":""),N]),tabIndex:!E&&"0",color:x,onKeyDown:function(){function re(ae){var le=window.event?ae.which:ae.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ae.preventDefault(),!E&&J&&J(ae);return}if(le===t.KEY_ESCAPE){ae.preventDefault();return}}return re}()},ie,{children:[I&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:$}),_,G,I&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:$})]})));return D&&(q=(0,e.createComponentVNode)(2,y.Tooltip,{content:D,position:M,children:q})),q}return h}();s.defaultHooks=a.pureComponentHooks;var d=r.ButtonCheckbox=function(){function h(p){var N=p.checked,V=l(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},V)))}return h}();s.Checkbox=d;var v=r.ButtonConfirm=function(h){function p(){var V;return V=h.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(p,h);var N=p.prototype;return N.setClickedOnce=function(){function V(S){var I=this;this.setState({clickedOnce:S}),S?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),N.render=function(){function V(){var S=this,I=this.props,L=I.confirmContent,w=L===void 0?"Confirm?":L,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,D=I.color,M=I.content,R=I.onClick,O=l(I,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:D,onClick:function(){function F(_){return S.state.clickedOnce?R==null?void 0:R(_):S.setClickedOnce(!0)}return F}()},O)))}return V}(),p}(e.Component);s.Confirm=v;var C=r.ButtonInput=function(h){function p(){var V;return V=h.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(p,h);var N=p.prototype;return N.setInInput=function(){function V(S){var I=this.props.disabled;if(!I&&(this.setState({inInput:S}),this.inputRef)){var L=this.inputRef.current;if(S){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),N.commitResult=function(){function V(S){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(S,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(S,this.props.defaultValue)}}}return V}(),N.render=function(){function V(){var S=this,I=this.props,L=I.fluid,w=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,D=I.tooltipPosition,M=I.color,R=M===void 0?"default":M,O=I.disabled,F=I.multiLine,_=l(I,i),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",O&&"Button--disabled","Button--color--"+R,F+"Button--multiLine"])},_,{onClick:function(){function z(){return S.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z($){S.state.inInput&&(S.setInInput(!1),S.commitResult($))}return z}(),onKeyDown:function(){function z($){if($.keyCode===t.KEY_ENTER){S.setInInput(!1),S.commitResult($);return}$.keyCode===t.KEY_ESCAPE&&S.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:D,children:U})),U}return V}(),p}(e.Component);s.Input=C},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],y=["params"],B=["parent","params"];function k(v,C){if(v==null)return{};var h={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(C.includes(p))continue;h[p]=v[p]}return h}function g(v,C){v.prototype=Object.create(C.prototype),v.prototype.constructor=v,i(v,C)}function i(v,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,p){return h.__proto__=p,h},i(v,C)}/** + */function c(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,m(h,p)}function m(h,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,V){return N.__proto__=V,N},m(h,p)}function l(h,p){if(h==null)return{};var N={};for(var V in h)if({}.hasOwnProperty.call(h,V)){if(p.includes(V))continue;N[V]=h[V]}return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function h(p){var N=p.className,V=p.fluid,y=p.translucent,I=p.icon,L=p.iconRotation,w=p.iconSpin,A=p.color,x=p.textColor,E=p.disabled,P=p.selected,D=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,O=p.compact,F=p.circular,_=p.content,U=p.iconColor,z=p.iconRight,$=p.iconStyle,G=p.children,X=p.onclick,J=p.onClick,se=p.multiLine,ie=l(p,B),me=!!(_||G);X&&u.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"),ie.onClick=function(re){!E&&J&&J(re)};var q=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(y?"--translucent":""),P&&"Button--selected"+(y?"--translucent":""),me&&"Button--hasContent",R&&"Button--ellipsis",F&&"Button--circular",O&&"Button--compact",z&&"Button--iconRight",se&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(y?"--translucent":""):"Button--color--default"+(y?"--translucent":""),N]),tabIndex:!E&&"0",color:x,onKeyDown:function(){function re(ae){var le=window.event?ae.which:ae.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ae.preventDefault(),!E&&J&&J(ae);return}if(le===t.KEY_ESCAPE){ae.preventDefault();return}}return re}()},ie,{children:[I&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:$}),_,G,I&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:$})]})));return D&&(q=(0,e.createComponentVNode)(2,S.Tooltip,{content:D,position:M,children:q})),q}return h}();s.defaultHooks=a.pureComponentHooks;var d=r.ButtonCheckbox=function(){function h(p){var N=p.checked,V=l(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},V)))}return h}();s.Checkbox=d;var v=r.ButtonConfirm=function(h){function p(){var V;return V=h.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(p,h);var N=p.prototype;return N.setClickedOnce=function(){function V(y){var I=this;this.setState({clickedOnce:y}),y?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),N.render=function(){function V(){var y=this,I=this.props,L=I.confirmContent,w=L===void 0?"Confirm?":L,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,D=I.color,M=I.content,R=I.onClick,O=l(I,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:D,onClick:function(){function F(_){return y.state.clickedOnce?R==null?void 0:R(_):y.setClickedOnce(!0)}return F}()},O)))}return V}(),p}(e.Component);s.Confirm=v;var C=r.ButtonInput=function(h){function p(){var V;return V=h.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(p,h);var N=p.prototype;return N.setInInput=function(){function V(y){var I=this.props.disabled;if(!I&&(this.setState({inInput:y}),this.inputRef)){var L=this.inputRef.current;if(y){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),N.commitResult=function(){function V(y){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(y,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(y,this.props.defaultValue)}}}return V}(),N.render=function(){function V(){var y=this,I=this.props,L=I.fluid,w=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,D=I.tooltipPosition,M=I.color,R=M===void 0?"default":M,O=I.disabled,F=I.multiLine,_=l(I,i),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",O&&"Button--disabled","Button--color--"+R,F+"Button--multiLine"])},_,{onClick:function(){function z(){return y.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z($){y.state.inInput&&(y.setInInput(!1),y.commitResult($))}return z}(),onKeyDown:function(){function z($){if($.keyCode===t.KEY_ENTER){y.setInInput(!1),y.commitResult($);return}$.keyCode===t.KEY_ESCAPE&&y.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,S.Tooltip,{content:P,position:D,children:U})),U}return V}(),p}(e.Component);s.Input=C},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],S=["params"],B=["parent","params"];function k(v,C){if(v==null)return{};var h={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(C.includes(p))continue;h[p]=v[p]}return h}function g(v,C){v.prototype=Object.create(C.prototype),v.prototype.constructor=v,i(v,C)}function i(v,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,p){return h.__proto__=p,h},i(v,C)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],l=function(C){var h=m.length;m.push(null);var p=C||"byondui_"+h;return c.log("allocated '"+p+"'"),{render:function(){function N(V){c.log("unmounting '"+p+"'"),m[h]=null,Byond.winset(p,{parent:""}),c.log("rendering '"+p+"'"),m[h]=p,Byond.winset(p,V)}return N}(),unmount:function(){function N(){c.log("unmounting '"+p+"'"),m[h]=null,Byond.winset(p,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var v=0;v0){var M=D[0],R=D[D.length-1];D.push([P[0]+x,R[1]]),D.push([P[0]+x,-x]),D.push([-x,-x]),D.push([-x,M[1]])}var O=g(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:w,"stroke-width":x,points:O}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return F}()})))}return d}(),u}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:i}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,g){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;i[c]=k[c]}return i}function b(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,y(k,g)}function y(k,g){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(k,g)}/** +*/var k=function(u,s,d,v){if(u.length===0)return[];var C=(0,a.zipWith)(Math.min).apply(void 0,u),h=(0,a.zipWith)(Math.max).apply(void 0,u);d!==void 0&&(C[0]=d[0],h[0]=d[1]),v!==void 0&&(C[1]=v[0],h[1]=v[1]);var p=(0,a.map)(function(N){return(0,a.zipWith)(function(V,y,I,L){return(V-y)/(I-y)*L})(N,C,h,s)})(u);return p},g=function(u){for(var s="",d=0;d0){var M=D[0],R=D[D.length-1];D.push([P[0]+x,R[1]]),D.push([P[0]+x,-x]),D.push([-x,-x]),D.push([-x,M[1]])}var O=g(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:w,"stroke-width":x,points:O}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return F}()})))}return d}(),u}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:i}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,g){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;i[c]=k[c]}return i}function b(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,S(k,g)}function S(k,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},S(k,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -109,96 +109,96 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,B){if(y==null)return{};var k={};for(var g in y)if({}.hasOwnProperty.call(y,g)){if(B.includes(g))continue;k[g]=y[g]}return k}var b=r.ColorBox=function(){function y(B){var k=B.content,g=B.children,i=B.className,c=B.color,m=B.backgroundColor,l=f(B,o);return l.color=k?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return y}();b.defaultHooks=a.pureComponentHooks},73379:function(T,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}function f(B,k){B.prototype=Object.create(k.prototype),B.prototype.constructor=B,b(B,k)}function b(B,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,i){return g.__proto__=i,g},b(B,k)}var y=r.Countdown=function(B){function k(i){var c;return c=B.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}f(k,B);var g=k.prototype;return g.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),g.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),g.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),g.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),g.render=function(){function i(){var c=this.props,m=c.format,l=o(c,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:m?m(this.state.value,u):u})))}return i}(),k}(e.Component);y.defaultProps={rate:1e3}},61940:function(T,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function f(S,B){if(S==null)return{};var k={};for(var g in S)if({}.hasOwnProperty.call(S,g)){if(B.includes(g))continue;k[g]=S[g]}return k}var b=r.ColorBox=function(){function S(B){var k=B.content,g=B.children,i=B.className,c=B.color,m=B.backgroundColor,l=f(B,o);return l.color=k?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return S}();b.defaultHooks=a.pureComponentHooks},73379:function(T,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}function f(B,k){B.prototype=Object.create(k.prototype),B.prototype.constructor=B,b(B,k)}function b(B,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,i){return g.__proto__=i,g},b(B,k)}var S=r.Countdown=function(B){function k(i){var c;return c=B.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}f(k,B);var g=k.prototype;return g.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),g.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),g.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),g.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),g.render=function(){function i(){var c=this.props,m=c.format,l=o(c,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:m?m(this.state.value,u):u})))}return i}(),k}(e.Component);S.defaultProps={rate:1e3}},61940:function(T,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,B){if(y==null)return{};var k={};for(var g in y)if({}.hasOwnProperty.call(y,g)){if(B.includes(g))continue;k[g]=y[g]}return k}var b=r.Dimmer=function(){function y(B){var k=B.className,g=B.children,i=f(B,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",g,0)})))}return y}()},13605:function(T,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function f(S,B){if(S==null)return{};var k={};for(var g in S)if({}.hasOwnProperty.call(S,g)){if(B.includes(g))continue;k[g]=S[g]}return k}var b=r.Dimmer=function(){function S(B){var k=B.className,g=B.children,i=f(B,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",g,0)})))}return S}()},13605:function(T,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var b=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(T,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),f=["className","direction","fallback","frame","icon_state","movement"];function b(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return s};var u,s={},d=Object.prototype,v=d.hasOwnProperty,C=Object.defineProperty||function(q,re,ae){q[re]=ae.value},h=typeof Symbol=="function"?Symbol:{},p=h.iterator||"@@iterator",N=h.asyncIterator||"@@asyncIterator",V=h.toStringTag||"@@toStringTag";function S(q,re,ae){return Object.defineProperty(q,re,{value:ae,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{S({},"")}catch(q){S=function(ae,le,Z){return ae[le]=Z}}function I(q,re,ae,le){var Z=re&&re.prototype instanceof D?re:D,ne=Object.create(Z.prototype),te=new ie(le||[]);return C(ne,"_invoke",{value:G(q,ae,te)}),ne}function L(q,re,ae){try{return{type:"normal",arg:q.call(re,ae)}}catch(le){return{type:"throw",arg:le}}}s.wrap=I;var w="suspendedStart",A="suspendedYield",x="executing",E="completed",P={};function D(){}function M(){}function R(){}var O={};S(O,p,function(){return this});var F=Object.getPrototypeOf,_=F&&F(F(me([])));_&&_!==d&&v.call(_,p)&&(O=_);var U=R.prototype=D.prototype=Object.create(O);function z(q){["next","throw","return"].forEach(function(re){S(q,re,function(ae){return this._invoke(re,ae)})})}function $(q,re){function ae(Z,ne,te,fe){var pe=L(q[Z],q,ne);if(pe.type!=="throw"){var ce=pe.arg,Ve=ce.value;return Ve&&typeof Ve=="object"&&v.call(Ve,"__await")?re.resolve(Ve.__await).then(function(Ce){ae("next",Ce,te,fe)},function(Ce){ae("throw",Ce,te,fe)}):re.resolve(Ve).then(function(Ce){ce.value=Ce,te(ce)},function(Ce){return ae("throw",Ce,te,fe)})}fe(pe.arg)}var le;C(this,"_invoke",{value:function(){function Z(ne,te){function fe(){return new re(function(pe,ce){ae(ne,te,pe,ce)})}return le=le?le.then(fe,fe):fe()}return Z}()})}function G(q,re,ae){var le=w;return function(Z,ne){if(le===x)throw Error("Generator is already running");if(le===E){if(Z==="throw")throw ne;return{value:u,done:!0}}for(ae.method=Z,ae.arg=ne;;){var te=ae.delegate;if(te){var fe=X(te,ae);if(fe){if(fe===P)continue;return fe}}if(ae.method==="next")ae.sent=ae._sent=ae.arg;else if(ae.method==="throw"){if(le===w)throw le=E,ae.arg;ae.dispatchException(ae.arg)}else ae.method==="return"&&ae.abrupt("return",ae.arg);le=x;var pe=L(q,re,ae);if(pe.type==="normal"){if(le=ae.done?E:A,pe.arg===P)continue;return{value:pe.arg,done:ae.done}}pe.type==="throw"&&(le=E,ae.method="throw",ae.arg=pe.arg)}}}function X(q,re){var ae=re.method,le=q.iterator[ae];if(le===u)return re.delegate=null,ae==="throw"&&q.iterator.return&&(re.method="return",re.arg=u,X(q,re),re.method==="throw")||ae!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+ae+"' method")),P;var Z=L(le,q.iterator,re.arg);if(Z.type==="throw")return re.method="throw",re.arg=Z.arg,re.delegate=null,P;var ne=Z.arg;return ne?ne.done?(re[q.resultName]=ne.value,re.next=q.nextLoc,re.method!=="return"&&(re.method="next",re.arg=u),re.delegate=null,P):ne:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,P)}function J(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function se(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function ie(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(J,this),this.reset(!0)}function me(q){if(q||q===""){var re=q[p];if(re)return re.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var ae=-1,le=function(){function Z(){for(;++ae=0;--Z){var ne=this.tryEntries[Z],te=ne.completion;if(ne.tryLoc==="root")return le("end");if(ne.tryLoc<=this.prev){var fe=v.call(ne,"catchLoc"),pe=v.call(ne,"finallyLoc");if(fe&&pe){if(this.prev=0;--le){var Z=this.tryEntries[le];if(Z.tryLoc<=this.prev&&v.call(Z,"finallyLoc")&&this.prev=0;--ae){var le=this.tryEntries[ae];if(le.finallyLoc===re)return this.complete(le.completion,le.afterLoc),se(le),P}}return q}(),catch:function(){function q(re){for(var ae=this.tryEntries.length-1;ae>=0;--ae){var le=this.tryEntries[ae];if(le.tryLoc===re){var Z=le.completion;if(Z.type==="throw"){var ne=Z.arg;se(le)}return ne}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(re,ae,le){return this.delegate={iterator:me(re),resultName:ae,nextLoc:le},this.method==="next"&&(this.arg=u),P}return q}()},s}function B(u,s,d,v,C,h,p){try{var N=u[h](p),V=N.value}catch(S){return void d(S)}N.done?s(V):Promise.resolve(V).then(v,C)}function k(u){return function(){var s=this,d=arguments;return new Promise(function(v,C){var h=u.apply(s,d);function p(V){B(h,v,C,p,N,"next",V)}function N(V){B(h,v,C,p,N,"throw",V)}p(void 0)})}}function g(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,i(u,s)}function i(u,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},i(u,s)}var c=function(u){return u[u.NORTH=1]="NORTH",u[u.SOUTH=2]="SOUTH",u[u.EAST=4]="EAST",u[u.WEST=8]="WEST",u[u.NORTHEAST=5]="NORTHEAST",u[u.NORTHWEST=9]="NORTHWEST",u[u.SOUTHEAST=6]="SOUTHEAST",u[u.SOUTHWEST=10]="SOUTHWEST",u}(c||{}),m,l=r.DmIcon=function(u){function s(v){var C;return C=u.call(this,v)||this,C.state={iconRef:""},C}g(s,u);var d=s.prototype;return d.fetchRefMap=function(){var v=k(y().mark(function(){function h(){var p,N;return y().wrap(function(){function V(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return p=S.sent,S.next=6,p.json();case 6:N=S.sent,m=N,this.setState({iconRef:N[this.props.icon]||""}),S.next=14;break;case 11:return S.prev=11,S.t0=S.catch(0),S.abrupt("return");case 14:case"end":return S.stop()}}return V}(),h,this,[[0,11]])}return h}()));function C(){return v.apply(this,arguments)}return C}(),d.componentDidMount=function(){function v(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return v}(),d.componentDidUpdate=function(){function v(C){C.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return v}(),d.render=function(){function v(){var C=this.props,h=C.className,p=C.direction,N=p===void 0?c.SOUTH:p,V=C.fallback,S=C.frame,I=S===void 0?1:S,L=C.icon_state,w=C.movement,A=w===void 0?!1:w,x=b(C,f),E=this.state.iconRef,P=E+"?state="+L+"&dir="+N+"&movement="+!!A+"&frame="+I;return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:P},x))):V||null}return v}(),s}(e.Component)},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(g,i){g.prototype=Object.create(i.prototype),g.prototype.constructor=g,b(g,i)}function b(g,i){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(g,i)}var y=400,B=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},k=r.DraggableControl=function(g){function i(m){var l;return l=g.call(this,m)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var u=l.props.suppressFlicker;u>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},u))},l.handleDragStart=function(u){var s=l.props,d=s.value,v=s.dragMatrix,C=s.disabled,h=l.state.editing;h||C||(document.body.style["pointer-events"]="none",l.ref=u.currentTarget,l.setState({originalValue:d,dragging:!1,value:d,origin:B(u,v)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var p=l.state,N=p.dragging,V=p.value,S=l.props.onDrag;N&&S&&S(u,V)},l.props.updateRate||y),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s,d=l.props,v=d.minValue,C=d.maxValue,h=d.step,p=d.dragMatrix,N=d.disabled;if(!N){var V=l.ref.offsetWidth/((C-v)/h),S=(s=l.props.stepPixelSize)!=null?s:V;typeof S=="function"&&(S=S(V)),l.setState(function(I){var L=Object.assign({},I),w=I.origin,A=B(u,p)-w;if(I.dragging){var x=Math.trunc(A/S);L.value=(0,a.clamp)(Math.floor(L.originalValue/h)*h+x*h,v,C)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(u){var s=l.props,d=s.onChange,v=s.onDrag,C=l.state,h=C.dragging,p=C.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),d&&d(u,p),v&&v(u,p);else if(l.inputRef){var N=l.inputRef.current;N.value=p;try{N.focus(),N.select()}catch(V){}}},l}f(i,g);var c=i.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,d=u.editing,v=u.value,C=u.suppressingFlicker,h=this.props,p=h.animated,N=h.value,V=h.unit,S=h.minValue,I=h.maxValue,L=h.format,w=h.onChange,A=h.onDrag,x=h.children,E=h.height,P=h.lineHeight,D=h.fontSize,M=h.disabled,R=N;(s||C)&&(R=v);var O=function(){function U(z){return z+(V?" "+V:"")}return U}(),F=p&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:O})||O(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!d||M?"none":void 0,height:E,"line-height":P,"font-size":D},onBlur:function(){function U(z){if(d){var $=(0,a.clamp)(parseFloat(z.target.value),S,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),w&&w(z,$),A&&A(z,$)}}return U}(),onKeyDown:function(){function U(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),S,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),w&&w(z,$),A&&A(z,$);return}if(z.keyCode===27){l.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:d,value:N,displayValue:R,displayElement:F,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(96184),b=n(1331),y=n(96690),B=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],g;function i(C,h){if(C==null)return{};var p={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(h.includes(N))continue;p[N]=C[N]}return p}function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,m(C,h)}function m(C,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},m(C,h)}var l={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},u={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},s="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",v=r.Dropdown=function(C){function h(N){var V;return V=C.call(this,N)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(h,C);var p=h.prototype;return p.getDOMNode=function(){function N(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return N}(),p.componentDidMount=function(){function N(){var V=this.getDOMNode()}return N}(),p.openMenu=function(){function N(){var V=h.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),h.renderedMenu=V);var S=this.getDOMNode();h.currentOpenMenu=S,V.scrollTop=0,V.style.width=this.props.menuWidth||S.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var I;(I=h.renderedMenu)==null||I.focus()},400),this.renderMenuContent()}return N}(),p.closeMenu=function(){function N(){h.currentOpenMenu===this.getDOMNode()&&(h.currentOpenMenu=void 0,h.renderedMenu.style.opacity="0",h.renderedMenu.style.pointerEvents="none")}return N}(),p.componentWillUnmount=function(){function N(){this.closeMenu(),this.setOpen(!1)}return N}(),p.renderMenuContent=function(){function N(){var V=this,S=h.renderedMenu;if(S){S.offsetHeight>200?S.className=d:S.className=s;var I=this.props.options,L=I===void 0?[]:I,w=L.map(function(x){var E,P;return typeof x=="string"?(P=x,E=x):x!==null&&(P=x.displayText,E=x.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===E&&"selected"]),P,0,{onClick:function(){function D(){V.setSelected(E)}return D}()},E)}),A=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,A,0),S,function(){var x=h.singletonPopper;x===void 0?(x=(0,a.createPopper)(h.virtualElement,S,Object.assign({},l,{placement:"bottom-start"})),h.singletonPopper=x):(x.setOptions(Object.assign({},l,{placement:"bottom-start"})),x.update())},this.context)}}return N}(),p.setOpen=function(){function N(V){var S=this;this.setState(function(I){return Object.assign({},I,{open:V})}),V?setTimeout(function(){S.openMenu(),window.addEventListener("click",S.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),p.setSelected=function(){function N(V){this.setState(function(S){return Object.assign({},S,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return N}(),p.getOptionValue=function(){function N(V){return typeof V=="string"?V:V.value}return N}(),p.getSelectedIndex=function(){function N(){var V=this,S=this.state.selected||this.props.selected,I=this.props.options,L=I===void 0?[]:I;return L.findIndex(function(w){return V.getOptionValue(w)===S})}return N}(),p.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,I=this.props.options.length-1,L=V>=0;L||(V=S);var w=V===S?I:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.toNext=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,I=this.props.options.length-1,L=V>=0;L||(V=I);var w=V===I?S:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.render=function(){function N(){var V=this,S=this.props,I=S.icon,L=S.iconRotation,w=S.iconSpin,A=S.clipSelectedText,x=A===void 0?!0:A,E=S.color,P=E===void 0?"default":E,D=S.dropdownStyle,M=S.over,R=S.nochevron,O=S.width,F=S.onClick,_=S.onSelected,U=S.selected,z=S.disabled,$=S.displayText,G=S.buttons,X=i(S,B),J=X.className,se=i(X,k),ie=M?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,y.Stack,{inline:!0,fill:!0,width:O,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+P,z&&"Button--disabled",J]),onClick:function(){function me(q){z&&!V.state.open||(V.setOpen(!V.state.open),F&&F(q))}return me}()},se,{children:[I&&(0,e.createComponentVNode)(2,b.Icon,{name:I,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",$||this.state.selected,0,{style:{overflow:x?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function me(){z||V.toPrevious()}return me}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function me(){z||V.toNext()}return me}()})})],4)]})}return N}(),h}(e.Component);g=v,v.renderedMenu=void 0,v.singletonPopper=void 0,v.currentOpenMenu=void 0,v.virtualElement={getBoundingClientRect:function(){function C(){var h,p;return(h=(p=g.currentOpenMenu)==null?void 0:p.getBoundingClientRect())!=null?h:u}return C}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(f){var b=f.vertical,S=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",S&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(T,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),f=["className","direction","fallback","frame","icon_state","movement"];function b(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}function S(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return s};var u,s={},d=Object.prototype,v=d.hasOwnProperty,C=Object.defineProperty||function(q,re,ae){q[re]=ae.value},h=typeof Symbol=="function"?Symbol:{},p=h.iterator||"@@iterator",N=h.asyncIterator||"@@asyncIterator",V=h.toStringTag||"@@toStringTag";function y(q,re,ae){return Object.defineProperty(q,re,{value:ae,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{y({},"")}catch(q){y=function(ae,le,Z){return ae[le]=Z}}function I(q,re,ae,le){var Z=re&&re.prototype instanceof D?re:D,ne=Object.create(Z.prototype),te=new ie(le||[]);return C(ne,"_invoke",{value:G(q,ae,te)}),ne}function L(q,re,ae){try{return{type:"normal",arg:q.call(re,ae)}}catch(le){return{type:"throw",arg:le}}}s.wrap=I;var w="suspendedStart",A="suspendedYield",x="executing",E="completed",P={};function D(){}function M(){}function R(){}var O={};y(O,p,function(){return this});var F=Object.getPrototypeOf,_=F&&F(F(me([])));_&&_!==d&&v.call(_,p)&&(O=_);var U=R.prototype=D.prototype=Object.create(O);function z(q){["next","throw","return"].forEach(function(re){y(q,re,function(ae){return this._invoke(re,ae)})})}function $(q,re){function ae(Z,ne,te,fe){var pe=L(q[Z],q,ne);if(pe.type!=="throw"){var ce=pe.arg,Ve=ce.value;return Ve&&typeof Ve=="object"&&v.call(Ve,"__await")?re.resolve(Ve.__await).then(function(Ce){ae("next",Ce,te,fe)},function(Ce){ae("throw",Ce,te,fe)}):re.resolve(Ve).then(function(Ce){ce.value=Ce,te(ce)},function(Ce){return ae("throw",Ce,te,fe)})}fe(pe.arg)}var le;C(this,"_invoke",{value:function(){function Z(ne,te){function fe(){return new re(function(pe,ce){ae(ne,te,pe,ce)})}return le=le?le.then(fe,fe):fe()}return Z}()})}function G(q,re,ae){var le=w;return function(Z,ne){if(le===x)throw Error("Generator is already running");if(le===E){if(Z==="throw")throw ne;return{value:u,done:!0}}for(ae.method=Z,ae.arg=ne;;){var te=ae.delegate;if(te){var fe=X(te,ae);if(fe){if(fe===P)continue;return fe}}if(ae.method==="next")ae.sent=ae._sent=ae.arg;else if(ae.method==="throw"){if(le===w)throw le=E,ae.arg;ae.dispatchException(ae.arg)}else ae.method==="return"&&ae.abrupt("return",ae.arg);le=x;var pe=L(q,re,ae);if(pe.type==="normal"){if(le=ae.done?E:A,pe.arg===P)continue;return{value:pe.arg,done:ae.done}}pe.type==="throw"&&(le=E,ae.method="throw",ae.arg=pe.arg)}}}function X(q,re){var ae=re.method,le=q.iterator[ae];if(le===u)return re.delegate=null,ae==="throw"&&q.iterator.return&&(re.method="return",re.arg=u,X(q,re),re.method==="throw")||ae!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+ae+"' method")),P;var Z=L(le,q.iterator,re.arg);if(Z.type==="throw")return re.method="throw",re.arg=Z.arg,re.delegate=null,P;var ne=Z.arg;return ne?ne.done?(re[q.resultName]=ne.value,re.next=q.nextLoc,re.method!=="return"&&(re.method="next",re.arg=u),re.delegate=null,P):ne:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,P)}function J(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function se(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function ie(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(J,this),this.reset(!0)}function me(q){if(q||q===""){var re=q[p];if(re)return re.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var ae=-1,le=function(){function Z(){for(;++ae=0;--Z){var ne=this.tryEntries[Z],te=ne.completion;if(ne.tryLoc==="root")return le("end");if(ne.tryLoc<=this.prev){var fe=v.call(ne,"catchLoc"),pe=v.call(ne,"finallyLoc");if(fe&&pe){if(this.prev=0;--le){var Z=this.tryEntries[le];if(Z.tryLoc<=this.prev&&v.call(Z,"finallyLoc")&&this.prev=0;--ae){var le=this.tryEntries[ae];if(le.finallyLoc===re)return this.complete(le.completion,le.afterLoc),se(le),P}}return q}(),catch:function(){function q(re){for(var ae=this.tryEntries.length-1;ae>=0;--ae){var le=this.tryEntries[ae];if(le.tryLoc===re){var Z=le.completion;if(Z.type==="throw"){var ne=Z.arg;se(le)}return ne}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(re,ae,le){return this.delegate={iterator:me(re),resultName:ae,nextLoc:le},this.method==="next"&&(this.arg=u),P}return q}()},s}function B(u,s,d,v,C,h,p){try{var N=u[h](p),V=N.value}catch(y){return void d(y)}N.done?s(V):Promise.resolve(V).then(v,C)}function k(u){return function(){var s=this,d=arguments;return new Promise(function(v,C){var h=u.apply(s,d);function p(V){B(h,v,C,p,N,"next",V)}function N(V){B(h,v,C,p,N,"throw",V)}p(void 0)})}}function g(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,i(u,s)}function i(u,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},i(u,s)}var c=function(u){return u[u.NORTH=1]="NORTH",u[u.SOUTH=2]="SOUTH",u[u.EAST=4]="EAST",u[u.WEST=8]="WEST",u[u.NORTHEAST=5]="NORTHEAST",u[u.NORTHWEST=9]="NORTHWEST",u[u.SOUTHEAST=6]="SOUTHEAST",u[u.SOUTHWEST=10]="SOUTHWEST",u}(c||{}),m,l=r.DmIcon=function(u){function s(v){var C;return C=u.call(this,v)||this,C.state={iconRef:""},C}g(s,u);var d=s.prototype;return d.fetchRefMap=function(){var v=k(S().mark(function(){function h(){var p,N;return S().wrap(function(){function V(y){for(;;)switch(y.prev=y.next){case 0:return y.prev=0,y.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return p=y.sent,y.next=6,p.json();case 6:N=y.sent,m=N,this.setState({iconRef:N[this.props.icon]||""}),y.next=14;break;case 11:return y.prev=11,y.t0=y.catch(0),y.abrupt("return");case 14:case"end":return y.stop()}}return V}(),h,this,[[0,11]])}return h}()));function C(){return v.apply(this,arguments)}return C}(),d.componentDidMount=function(){function v(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return v}(),d.componentDidUpdate=function(){function v(C){C.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return v}(),d.render=function(){function v(){var C=this.props,h=C.className,p=C.direction,N=p===void 0?c.SOUTH:p,V=C.fallback,y=C.frame,I=y===void 0?1:y,L=C.icon_state,w=C.movement,A=w===void 0?!1:w,x=b(C,f),E=this.state.iconRef,P=E+"?state="+L+"&dir="+N+"&movement="+!!A+"&frame="+I;return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:P},x))):V||null}return v}(),s}(e.Component)},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(g,i){g.prototype=Object.create(i.prototype),g.prototype.constructor=g,b(g,i)}function b(g,i){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(g,i)}var S=400,B=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},k=r.DraggableControl=function(g){function i(m){var l;return l=g.call(this,m)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var u=l.props.suppressFlicker;u>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},u))},l.handleDragStart=function(u){var s=l.props,d=s.value,v=s.dragMatrix,C=s.disabled,h=l.state.editing;h||C||(document.body.style["pointer-events"]="none",l.ref=u.currentTarget,l.setState({originalValue:d,dragging:!1,value:d,origin:B(u,v)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var p=l.state,N=p.dragging,V=p.value,y=l.props.onDrag;N&&y&&y(u,V)},l.props.updateRate||S),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s,d=l.props,v=d.minValue,C=d.maxValue,h=d.step,p=d.dragMatrix,N=d.disabled;if(!N){var V=l.ref.offsetWidth/((C-v)/h),y=(s=l.props.stepPixelSize)!=null?s:V;typeof y=="function"&&(y=y(V)),l.setState(function(I){var L=Object.assign({},I),w=I.origin,A=B(u,p)-w;if(I.dragging){var x=Math.trunc(A/y);L.value=(0,a.clamp)(Math.floor(L.originalValue/h)*h+x*h,v,C)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(u){var s=l.props,d=s.onChange,v=s.onDrag,C=l.state,h=C.dragging,p=C.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),d&&d(u,p),v&&v(u,p);else if(l.inputRef){var N=l.inputRef.current;N.value=p;try{N.focus(),N.select()}catch(V){}}},l}f(i,g);var c=i.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,d=u.editing,v=u.value,C=u.suppressingFlicker,h=this.props,p=h.animated,N=h.value,V=h.unit,y=h.minValue,I=h.maxValue,L=h.format,w=h.onChange,A=h.onDrag,x=h.children,E=h.height,P=h.lineHeight,D=h.fontSize,M=h.disabled,R=N;(s||C)&&(R=v);var O=function(){function U(z){return z+(V?" "+V:"")}return U}(),F=p&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:O})||O(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!d||M?"none":void 0,height:E,"line-height":P,"font-size":D},onBlur:function(){function U(z){if(d){var $=(0,a.clamp)(parseFloat(z.target.value),y,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),w&&w(z,$),A&&A(z,$)}}return U}(),onKeyDown:function(){function U(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),y,I);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),w&&w(z,$),A&&A(z,$);return}if(z.keyCode===27){l.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:d,value:N,displayValue:R,displayElement:F,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(96184),b=n(1331),S=n(96690),B=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],g;function i(C,h){if(C==null)return{};var p={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(h.includes(N))continue;p[N]=C[N]}return p}function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,m(C,h)}function m(C,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},m(C,h)}var l={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},u={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},s="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",v=r.Dropdown=function(C){function h(N){var V;return V=C.call(this,N)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(h,C);var p=h.prototype;return p.getDOMNode=function(){function N(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return N}(),p.componentDidMount=function(){function N(){var V=this.getDOMNode()}return N}(),p.openMenu=function(){function N(){var V=h.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),h.renderedMenu=V);var y=this.getDOMNode();h.currentOpenMenu=y,V.scrollTop=0,V.style.width=this.props.menuWidth||y.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var I;(I=h.renderedMenu)==null||I.focus()},400),this.renderMenuContent()}return N}(),p.closeMenu=function(){function N(){h.currentOpenMenu===this.getDOMNode()&&(h.currentOpenMenu=void 0,h.renderedMenu.style.opacity="0",h.renderedMenu.style.pointerEvents="none")}return N}(),p.componentWillUnmount=function(){function N(){this.closeMenu(),this.setOpen(!1)}return N}(),p.renderMenuContent=function(){function N(){var V=this,y=h.renderedMenu;if(y){y.offsetHeight>200?y.className=d:y.className=s;var I=this.props.options,L=I===void 0?[]:I,w=L.map(function(x){var E,P;return typeof x=="string"?(P=x,E=x):x!==null&&(P=x.displayText,E=x.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===E&&"selected"]),P,0,{onClick:function(){function D(){V.setSelected(E)}return D}()},E)}),A=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,A,0),y,function(){var x=h.singletonPopper;x===void 0?(x=(0,a.createPopper)(h.virtualElement,y,Object.assign({},l,{placement:"bottom-start"})),h.singletonPopper=x):(x.setOptions(Object.assign({},l,{placement:"bottom-start"})),x.update())},this.context)}}return N}(),p.setOpen=function(){function N(V){var y=this;this.setState(function(I){return Object.assign({},I,{open:V})}),V?setTimeout(function(){y.openMenu(),window.addEventListener("click",y.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),p.setSelected=function(){function N(V){this.setState(function(y){return Object.assign({},y,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return N}(),p.getOptionValue=function(){function N(V){return typeof V=="string"?V:V.value}return N}(),p.getSelectedIndex=function(){function N(){var V=this,y=this.state.selected||this.props.selected,I=this.props.options,L=I===void 0?[]:I;return L.findIndex(function(w){return V.getOptionValue(w)===y})}return N}(),p.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),y=0,I=this.props.options.length-1,L=V>=0;L||(V=y);var w=V===y?I:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.toNext=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),y=0,I=this.props.options.length-1,L=V>=0;L||(V=I);var w=V===I?y:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.render=function(){function N(){var V=this,y=this.props,I=y.icon,L=y.iconRotation,w=y.iconSpin,A=y.clipSelectedText,x=A===void 0?!0:A,E=y.color,P=E===void 0?"default":E,D=y.dropdownStyle,M=y.over,R=y.nochevron,O=y.width,F=y.onClick,_=y.onSelected,U=y.selected,z=y.disabled,$=y.displayText,G=y.buttons,X=i(y,B),J=X.className,se=i(X,k),ie=M?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,S.Stack,{inline:!0,fill:!0,width:O,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+P,z&&"Button--disabled",J]),onClick:function(){function me(q){z&&!V.state.open||(V.setOpen(!V.state.open),F&&F(q))}return me}()},se,{children:[I&&(0,e.createComponentVNode)(2,b.Icon,{name:I,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",$||this.state.selected,0,{style:{overflow:x?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,S.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function me(){z||V.toPrevious()}return me}()})}),(0,e.createComponentVNode)(2,S.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function me(){z||V.toNext()}return me}()})})],4)]})}return N}(),h}(e.Component);g=v,v.renderedMenu=void 0,v.singletonPopper=void 0,v.currentOpenMenu=void 0,v.virtualElement={getBoundingClientRect:function(){function C(){var h,p;return(h=(p=g.currentOpenMenu)==null?void 0:p.getBoundingClientRect())!=null?h:u}return C}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],S=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function B(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),g=r.computeFlexProps=function(){function u(s){var d=s.className,v=s.direction,C=s.wrap,h=s.align,p=s.justify,N=s.inline,V=s.style,S=B(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":v,"flex-wrap":C===!0?"wrap":C,"align-items":h,"justify-content":p})},S))}return u}(),i=r.Flex=function(){function u(s){var d=s.className,v=B(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,k(v)]),null,1,Object.assign({},g(v))))}return u}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var d=s.className,v=s.style,C=s.grow,h=s.order,p=s.shrink,N=s.basis,V=N===void 0?s.width:N,S=s.align,I=B(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:h,"align-self":S})},I))}return u}(),l=function(s){var d=s.className,v=B(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,c(s)]),null,1,Object.assign({},m(v))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(T,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** + */function B(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),g=r.computeFlexProps=function(){function u(s){var d=s.className,v=s.direction,C=s.wrap,h=s.align,p=s.justify,N=s.inline,V=s.style,y=B(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":v,"flex-wrap":C===!0?"wrap":C,"align-items":h,"justify-content":p})},y))}return u}(),i=r.Flex=function(){function u(s){var d=s.className,v=B(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,k(v)]),null,1,Object.assign({},g(v))))}return u}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var d=s.className,v=s.style,C=s.grow,h=s.order,p=s.shrink,N=s.basis,V=N===void 0?s.width:N,y=s.align,I=B(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:h,"align-self":y})},I))}return u}(),l=function(s){var d=s.className,v=B(s,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,c(s)]),null,1,Object.assign({},m(v))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(T,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(k,g){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;i[c]=k[c]}return i}var y=r.Grid=function(){function k(g){var i=g.children,c=b(g,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return k}();y.defaultHooks=t.pureComponentHooks;var B=r.GridColumn=function(){function k(g){var i=g.size,c=i===void 0?1:i,m=g.style,l=b(g,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=B},1331:function(T,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** + */function b(k,g){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;i[c]=k[c]}return i}var S=r.Grid=function(){function k(g){var i=g.children,c=b(g,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return k}();S.defaultHooks=t.pureComponentHooks;var B=r.GridColumn=function(){function k(g){var i=g.size,c=i===void 0?1:i,m=g.style,l=b(g,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return k}();S.defaultHooks=t.pureComponentHooks,S.Column=B},1331:function(T,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var y=/-o$/,B=r.Icon=function(){function g(i){var c=i.name,m=i.size,l=i.spin,u=i.className,s=i.style,d=s===void 0?{}:s,v=i.rotation,C=i.inverse,h=b(i,o);m&&(d["font-size"]=m*100+"%"),typeof v=="number"&&(d.transform="rotate("+v+"deg)");var p=y.test(c),N=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,p?"far":"fas","fa-"+N,l&&"fa-spin"]),style:d},h)))}return g}();B.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function g(i){var c=i.className,m=i.style,l=m===void 0?{}:m,u=i.children,s=b(i,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},s,{children:u})))}return g}();B.Stack=k},91225:function(T,r,n){"use strict";r.__esModule=!0,r.Image=void 0;var e=n(89005),a=n(55937),t=["fixBlur","fixErrors","objectFit","src"];function o(k,g){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;i[c]=k[c]}return i}function f(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,b(k,g)}function b(k,g){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},b(k,g)}var y=5,B=r.Image=function(k){function g(){for(var c,m=arguments.length,l=new Array(m),u=0;u0;u&&(l=c.containerRef)!=null&&l.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var l=m.which||m.keyCode;l<37||l>40||(m.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(k,B);var g=k.prototype;return g.toggleDocumentEvents=function(){function i(c){var m,l=(m=this.containerRef)==null?void 0:m.current,u=f(l),s=c?u.addEventListener:u.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return i}(),g.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),g.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),g.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),k}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var g=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),i=r.Input=function(c){function m(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var d=u.state.editing,v=u.props.onInput;d||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var d=u.state.editing;d||u.setEditing(!0)},u.handleBlur=function(s){var d=u.state.editing,v=u.props.onChange;d&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var d=u.props,v=d.onInput,C=d.onChange,h=d.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),C&&C(s,s.target.value),v&&v(s,s.target.value),h&&h(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=g(u.props.value),s.target.blur();return}},u}B(m,c);var l=m.prototype;return l.componentDidMount=function(){function u(){var s=this,d=this.props.value,v=this.inputRef.current;v&&(v.value=g(d),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),l.componentDidUpdate=function(){function u(s,d){var v=this.state.editing,C=s.value,h=this.props.value,p=this.inputRef.current;p&&!v&&C!==h&&(p.value=g(h))}return u}(),l.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),l.render=function(){function u(){var s=this.props,d=s.selfClear,v=s.onInput,C=s.onChange,h=s.onEnter,p=s.value,N=s.maxLength,V=s.placeholder,y=s.autofocus,I=s.disabled,L=s.multiline,w=s.cols,A=w===void 0?32:w,x=s.rows,E=x===void 0?4:x,P=S(s,f),D=P.className,M=P.fluid,R=P.monospace,O=S(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",D])},O,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},4454:function(T,r,n){"use strict";r.__esModule=!0,r.Interactive=void 0;var e=n(89005),a=n(44879);function t(B,k){B.prototype=Object.create(k.prototype),B.prototype.constructor=B,o(B,k)}function o(B,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,i){return g.__proto__=i,g},o(B,k)}var f=function(k){return k&&k.ownerDocument.defaultView||self},b=function(k,g){var i=k.getBoundingClientRect(),c=g;return{left:(0,a.clamp)((c.pageX-(i.left+f(k).pageXOffset))/i.width,0,1),top:(0,a.clamp)((c.pageY-(i.top+f(k).pageYOffset))/i.height,0,1)}},S=r.Interactive=function(B){function k(i){var c;return c=B.call(this)||this,c.containerRef=void 0,c.props=void 0,c.handleMoveStart=function(m){var l,u=(l=c.containerRef)==null?void 0:l.current;u&&(m.preventDefault(),u.focus(),c.props.onMove(b(u,m)),c.toggleDocumentEvents(!0))},c.handleMove=function(m){var l;m.preventDefault();var u=m.buttons>0;u&&(l=c.containerRef)!=null&&l.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var l=m.which||m.keyCode;l<37||l>40||(m.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(k,B);var g=k.prototype;return g.toggleDocumentEvents=function(){function i(c){var m,l=(m=this.containerRef)==null?void 0:m.current,u=f(l),s=c?u.addEventListener:u.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return i}(),g.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),g.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),g.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),k}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),S=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function B(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var k=r.Knob=function(){function g(i){var c=i.animated,m=i.format,l=i.maxValue,u=i.minValue,s=i.onChange,d=i.onDrag,v=i.step,C=i.stepPixelSize,h=i.suppressFlicker,p=i.unit,N=i.value,V=i.className,S=i.style,I=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,x=i.size,E=x===void 0?1:x,P=i.bipolar,D=i.children,M=i.popUpPosition,R=B(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:d,step:v,stepPixelSize:C,suppressFlicker:h,unit:p,value:N},{children:function(){function O(F){var _=F.dragging,U=F.editing,z=F.value,$=F.displayValue,G=F.displayElement,X=F.inputElement,J=F.handleDragStart,se=(0,a.scale)(I!=null?I:$,u,l),ie=(0,a.scale)($,u,l),me=L||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",q=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+me,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-se*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},S)},R)),{onMouseDown:J})))}return O}()})))}return g}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function B(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var k=r.Knob=function(){function g(i){var c=i.animated,m=i.format,l=i.maxValue,u=i.minValue,s=i.onChange,d=i.onDrag,v=i.step,C=i.stepPixelSize,h=i.suppressFlicker,p=i.unit,N=i.value,V=i.className,y=i.style,I=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,x=i.size,E=x===void 0?1:x,P=i.bipolar,D=i.children,M=i.popUpPosition,R=B(i,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:d,step:v,stepPixelSize:C,suppressFlicker:h,unit:p,value:N},{children:function(){function O(F){var _=F.dragging,U=F.editing,z=F.value,$=F.displayValue,G=F.displayElement,X=F.inputElement,J=F.handleDragStart,se=(0,a.scale)(I!=null?I:$,u,l),ie=(0,a.scale)($,u,l),me=L||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",q=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+me,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-se*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},y)},R)),{onMouseDown:J})))}return O}()})))}return g}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}var b=r.LabeledControls=function(){function B(k){var g=k.children,i=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:g})))}return B}(),y=function(k){var g=k.label,i=k.children,c=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:g})]})))})};b.Item=y},29319:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** + */function f(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}var b=r.LabeledControls=function(){function B(k){var g=k.children,i=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:g})))}return B}(),S=function(k){var g=k.label,i=k.children,c=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:g})]})))})};b.Item=S},29319:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=r.LabeledList=function(){function k(g){var i=g.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return k}();b.defaultHooks=a.pureComponentHooks;var y=function(g){var i=g.className,c=g.label,m=g.labelColor,l=m===void 0?"label":m,u=g.color,s=g.textAlign,d=g.buttons,v=g.tooltip,C=g.content,h=g.children,p=g.preserveWhitespace,N=g.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:N,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?void 0:2,preserveWhitespace:p,children:[C,h]}),d&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0);return v&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:V})),V};y.defaultHooks=a.pureComponentHooks;var B=function(g){var i=g.size?(0,t.unit)(Math.max(0,g.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};B.defaultHooks=a.pureComponentHooks,b.Item=y,b.Divider=B},36077:function(T,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** + */var b=r.LabeledList=function(){function k(g){var i=g.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return k}();b.defaultHooks=a.pureComponentHooks;var S=function(g){var i=g.className,c=g.label,m=g.labelColor,l=m===void 0?"label":m,u=g.color,s=g.textAlign,d=g.buttons,v=g.tooltip,C=g.content,h=g.children,p=g.preserveWhitespace,N=g.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:N,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?void 0:2,preserveWhitespace:p,children:[C,h]}),d&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0);return v&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:V})),V};S.defaultHooks=a.pureComponentHooks;var B=function(g){var i=g.size?(0,t.unit)(Math.max(0,g.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};B.defaultHooks=a.pureComponentHooks,b.Item=S,b.Divider=B},36077:function(T,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}var y=r.Modal=function(){function B(k){var g=k.className,i=k.children,c=k.onEnter,m=b(k,f),l;return c&&(l=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",g,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return B}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],B=["icon","color"];function k(C,h){if(C==null)return{};var p={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(h.includes(N))continue;p[N]=C[N]}return p}function g(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,i(C,h)}function i(C,h){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},i(C,h)}var c=510,m=2,l=function(h){return h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),h.cancelBubble=!0,h.returnValue=!1,!1},u=r.NanoMap=function(C){function h(N){var V,S,I,L;L=C.call(this,N)||this;var w=window.innerWidth/2-256,A=window.innerHeight/2-256;return L.state={offsetX:(V=N.offsetX)!=null?V:0,offsetY:(S=N.offsetY)!=null?S:0,dragging:!1,originX:null,originY:null,zoom:(I=N.zoom)!=null?I:1},L.handleDragStart=function(x){L.ref=x.target,L.setState({dragging:!1,originX:x.screenX,originY:x.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),l(x)},L.handleDragMove=function(x){L.setState(function(E){var P=Object.assign({},E),D=x.screenX-P.originX,M=x.screenY-P.originY;return E.dragging?(P.offsetX+=D/P.zoom,P.offsetY+=M/P.zoom,P.originX=x.screenX,P.originY=x.screenY):P.dragging=!0,P}),l(x)},L.handleDragEnd=function(x){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),N.onOffsetChange==null||N.onOffsetChange(x,L.state),l(x)},L.handleZoom=function(x,E){L.setState(function(P){var D=Math.min(Math.max(E,1),8);return P.zoom=D,N.onZoom&&N.onZoom(P.zoom),P})},L.handleReset=function(x){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(x,1),N.onOffsetChange==null||N.onOffsetChange(x,E)})},L}g(h,C);var p=h.prototype;return p.getChildContext=function(){function N(){return{map:{zoom:this.state.zoom}}}return N}(),p.render=function(){function N(){var V=(0,t.useBackend)(this.context),S=V.config,I=this.state,L=I.dragging,w=I.offsetX,A=I.offsetY,x=I.zoom,E=x===void 0?1:x,P=this.props.children,D=S.map+"_nanomap_z1.png",M=c*E+"px",R={width:M,height:M,"margin-top":A*E+"px","margin-left":w*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},O={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(D),style:O}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return N}(),h}(e.Component),s=function(h,p){var N=p.map.zoom,V=h.x,S=h.y,I=h.icon,L=h.tooltip,w=h.color,A=h.children,x=k(h,y),E=m*N,P=(V-1)*E,D=(S-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:D+"px",left:P+"px",width:E+"px",height:E+"px"},x,{children:A})))}),2)};u.Marker=s;var d=function(h,p){var N=p.map.zoom,V=h.icon,S=h.color,I=k(h,B),L=m*N+4/Math.ceil(N/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},I,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:S,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=d;var v=function(h,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function N(V){return V+"x"}return N}(),value:h.zoom,onDrag:function(){function N(V,S){return h.onZoom(V,S)}return N}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function N(V){return h.onReset==null?void 0:h.onReset(V)}return N}()})]})})})})};u.Zoomer=v},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function b(B,k){if(B==null)return{};var g={};for(var i in B)if({}.hasOwnProperty.call(B,i)){if(k.includes(i))continue;g[i]=B[i]}return g}var S=r.Modal=function(){function B(k){var g=k.className,i=k.children,c=k.onEnter,m=b(k,f),l;return c&&(l=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",g,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return B}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),S=["x","y","icon","tooltip","color","children"],B=["icon","color"];function k(C,h){if(C==null)return{};var p={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(h.includes(N))continue;p[N]=C[N]}return p}function g(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,i(C,h)}function i(C,h){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},i(C,h)}var c=510,m=2,l=function(h){return h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),h.cancelBubble=!0,h.returnValue=!1,!1},u=r.NanoMap=function(C){function h(N){var V,y,I,L;L=C.call(this,N)||this;var w=window.innerWidth/2-256,A=window.innerHeight/2-256;return L.state={offsetX:(V=N.offsetX)!=null?V:0,offsetY:(y=N.offsetY)!=null?y:0,dragging:!1,originX:null,originY:null,zoom:(I=N.zoom)!=null?I:1},L.handleDragStart=function(x){L.ref=x.target,L.setState({dragging:!1,originX:x.screenX,originY:x.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),l(x)},L.handleDragMove=function(x){L.setState(function(E){var P=Object.assign({},E),D=x.screenX-P.originX,M=x.screenY-P.originY;return E.dragging?(P.offsetX+=D/P.zoom,P.offsetY+=M/P.zoom,P.originX=x.screenX,P.originY=x.screenY):P.dragging=!0,P}),l(x)},L.handleDragEnd=function(x){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),N.onOffsetChange==null||N.onOffsetChange(x,L.state),l(x)},L.handleZoom=function(x,E){L.setState(function(P){var D=Math.min(Math.max(E,1),8);return P.zoom=D,N.onZoom&&N.onZoom(P.zoom),P})},L.handleReset=function(x){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(x,1),N.onOffsetChange==null||N.onOffsetChange(x,E)})},L}g(h,C);var p=h.prototype;return p.getChildContext=function(){function N(){return{map:{zoom:this.state.zoom}}}return N}(),p.render=function(){function N(){var V=(0,t.useBackend)(this.context),y=V.config,I=this.state,L=I.dragging,w=I.offsetX,A=I.offsetY,x=I.zoom,E=x===void 0?1:x,P=this.props.children,D=y.map+"_nanomap_z1.png",M=c*E+"px",R={width:M,height:M,"margin-top":A*E+"px","margin-left":w*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},O={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(D),style:O}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return N}(),h}(e.Component),s=function(h,p){var N=p.map.zoom,V=h.x,y=h.y,I=h.icon,L=h.tooltip,w=h.color,A=h.children,x=k(h,S),E=m*N,P=(V-1)*E,D=(y-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:D+"px",left:P+"px",width:E+"px",height:E+"px"},x,{children:A})))}),2)};u.Marker=s;var d=function(h,p){var N=p.map.zoom,V=h.icon,y=h.color,I=k(h,B),L=m*N+4/Math.ceil(N/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},I,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:y,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=d;var v=function(h,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function N(V){return V+"x"}return N}(),value:h.zoom,onDrag:function(){function N(V,y){return h.onZoom(V,y)}return N}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function N(V){return h.onReset==null?void 0:h.onReset(V)}return N}()})]})})})})};u.Zoomer=v},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,B){if(y==null)return{};var k={};for(var g in y)if({}.hasOwnProperty.call(y,g)){if(B.includes(g))continue;k[g]=y[g]}return k}var b=r.NoticeBox=function(){function y(B){var k=B.className,g=B.color,i=B.info,c=B.warning,m=B.success,l=B.danger,u=f(B,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",g&&"NoticeBox--color--"+g,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",k])},u)))}return y}();b.defaultHooks=a.pureComponentHooks},59263:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(g,i){g.prototype=Object.create(i.prototype),g.prototype.constructor=g,y(g,i)}function y(g,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},y(g,i)}/** + */function f(S,B){if(S==null)return{};var k={};for(var g in S)if({}.hasOwnProperty.call(S,g)){if(B.includes(g))continue;k[g]=S[g]}return k}var b=r.NoticeBox=function(){function S(B){var k=B.className,g=B.color,i=B.info,c=B.warning,m=B.success,l=B.danger,u=f(B,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",g&&"NoticeBox--color--"+g,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",k])},u)))}return S}();b.defaultHooks=a.pureComponentHooks},59263:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(g,i){g.prototype=Object.create(i.prototype),g.prototype.constructor=g,S(g,i)}function S(g,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},S(g,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var B=400,k=r.NumberInput=function(g){function i(m){var l;l=g.call(this,m)||this;var u=m.value;return l.inputRef=(0,e.createRef)(),l.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var s=l.props.suppressFlicker;s>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var d=l.props.value,v=l.state.editing;v||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:d,internalValue:d}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var C=l.state,h=C.dragging,p=C.value,N=l.props.onDrag;h&&N&&N(s,p)},l.props.updateRate||B),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var d=l.props,v=d.minValue,C=d.maxValue,h=d.step,p=d.stepPixelSize;l.setState(function(N){var V=Object.assign({},N),S=V.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%h:0;V.internalValue=(0,a.clamp)(V.internalValue+S*h/p,v-h,C+h),V.value=(0,a.clamp)(V.internalValue-V.internalValue%h+I,v,C),V.origin=s.screenY}else Math.abs(S)>4&&(V.dragging=!0);return V})},l.handleDragEnd=function(s){var d=l.props,v=d.onChange,C=d.onDrag,h=l.state,p=h.dragging,N=h.value,V=h.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),p)l.suppressFlicker(),v&&v(s,N),C&&C(s,N);else if(l.inputRef){var S=l.inputRef.current;S.value=V;try{S.focus(),S.select()}catch(I){}}},l}b(i,g);var c=i.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,d=u.editing,v=u.value,C=u.suppressingFlicker,h=this.props,p=h.className,N=h.fluid,V=h.animated,S=h.value,I=h.unit,L=h.minValue,w=h.maxValue,A=h.height,x=h.width,E=h.lineHeight,P=h.fontSize,D=h.format,M=h.onChange,R=h.onDrag,O=S;(s||C)&&(O=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:D}):D?D(O):O,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((O-L)/(w-L)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:d?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(d){var z=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(U,z),R&&R(U,z)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var z=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(U,z),R&&R(U,z);return}if(U.keyCode===27){l.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(T,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(f){var b=f.className,y=f.color,B=f.left,k=f.top,g=k===void 0?.5:k,i=(0,a.classes)(["react-colorful__pointer",b]),c={top:g*100+"%",left:B*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,k){return B.__proto__=k,B},o(b,y)}var f=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var B=y.prototype;return B.componentDidMount=function(){function k(){var g=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,u=Object.entries(c);l0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var d=l.props.value,v=l.state.editing;v||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:d,internalValue:d}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var C=l.state,h=C.dragging,p=C.value,N=l.props.onDrag;h&&N&&N(s,p)},l.props.updateRate||B),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var d=l.props,v=d.minValue,C=d.maxValue,h=d.step,p=d.stepPixelSize;l.setState(function(N){var V=Object.assign({},N),y=V.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%h:0;V.internalValue=(0,a.clamp)(V.internalValue+y*h/p,v-h,C+h),V.value=(0,a.clamp)(V.internalValue-V.internalValue%h+I,v,C),V.origin=s.screenY}else Math.abs(y)>4&&(V.dragging=!0);return V})},l.handleDragEnd=function(s){var d=l.props,v=d.onChange,C=d.onDrag,h=l.state,p=h.dragging,N=h.value,V=h.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),p)l.suppressFlicker(),v&&v(s,N),C&&C(s,N);else if(l.inputRef){var y=l.inputRef.current;y.value=V;try{y.focus(),y.select()}catch(I){}}},l}b(i,g);var c=i.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,d=u.editing,v=u.value,C=u.suppressingFlicker,h=this.props,p=h.className,N=h.fluid,V=h.animated,y=h.value,I=h.unit,L=h.minValue,w=h.maxValue,A=h.height,x=h.width,E=h.lineHeight,P=h.fontSize,D=h.format,M=h.onChange,R=h.onDrag,O=y;(s||C)&&(O=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:D}):D?D(O):O,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((O-L)/(w-L)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:d?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(d){var z=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(U,z),R&&R(U,z)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var z=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(U,z),R&&R(U,z);return}if(U.keyCode===27){l.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(T,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(f){var b=f.className,S=f.color,B=f.left,k=f.top,g=k===void 0?.5:k,i=(0,a.classes)(["react-colorful__pointer",b]),c={top:g*100+"%",left:B*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":S}}),2,{style:c})}return o}()},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,S){b.prototype=Object.create(S.prototype),b.prototype.constructor=b,o(b,S)}function o(b,S){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,k){return B.__proto__=k,B},o(b,S)}var f=r.Popper=function(b){function S(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,S.id+=1,k}t(S,b);var B=S.prototype;return B.componentDidMount=function(){function k(){var g=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,u=Object.entries(c);lm)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var u=Math.round(l/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var d=Math.round(l);return d+" second"+(d===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var i=r.TextArea=function(c){function m(u,s){var d;d=c.call(this,u,s)||this,d.textareaRef=u.innerRef||(0,e.createRef)(),d.fillerRef=(0,e.createRef)(),d.state={editing:!1};var v=u.dontUseTabForIndent,C=v===void 0?!1:v;return d.handleOnInput=function(h){var p=d.state.editing,N=d.props.onInput;p||d.setEditing(!0),N&&N(h,h.target.value)},d.handleOnChange=function(h){var p=d.state.editing,N=d.props.onChange;N&&N(h,h.target.value)},d.handleKeyPress=function(h){var p=d.state.editing,N=d.props.onKeyPress;p||d.setEditing(!0),N&&N(h,h.target.value)},d.handleKeyDown=function(h){var p=d.state.editing,N=d.props,V=N.onChange,y=N.onInput,I=N.onEnter,L=N.onKeyDown;if(h.keyCode===f.KEY_ENTER){d.setEditing(!1),V&&V(h,h.target.value),y&&y(h,h.target.value),I&&I(h,h.target.value),d.props.selfClear&&(h.target.value="",h.target.blur());return}if(h.keyCode===f.KEY_ESCAPE){d.props.onEscape&&d.props.onEscape(h),d.setEditing(!1),d.props.selfClear?h.target.value="":(h.target.value=(0,o.toInputValue)(d.props.value),h.target.blur());return}if(p||d.setEditing(!0),L&&L(h,h.target.value),!C){var w=h.keyCode||h.which;if(w===f.KEY_TAB){h.preventDefault();var A=h.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;h.target.value=x.substring(0,E)+" "+x.substring(P),h.target.selectionEnd=E+1}}},d.handleFocus=function(h){var p=d.state.editing;p||d.setEditing(!0)},d.handleBlur=function(h){var p=d.state.editing,N=d.props.onChange;p&&(d.setEditing(!1),N&&N(h,h.target.value))},d}k(m,c);var l=m.prototype;return l.componentDidMount=function(){function u(){var s=this,d=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(d)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),l.componentDidUpdate=function(){function u(s,d){var v=s.value,C=this.props.value,h=this.textareaRef.current;h&&typeof C=="string"&&v!==C&&(h.value=(0,o.toInputValue)(C))}return u}(),l.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),l.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),l.render=function(){function u(){var s=this.props,d=s.onChange,v=s.onKeyDown,C=s.onKeyPress,h=s.onInput,p=s.onFocus,N=s.onBlur,V=s.onEnter,y=s.value,I=s.maxLength,L=s.placeholder,w=B(s,b),A=w.className,x=w.fluid,E=B(w,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},5169:function(T,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(b){return b.length<2?"0"+b:b}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},62147:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,f(k,g)}function f(k,g){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},f(k,g)}var b={modifiers:[{name:"eventListeners",enabled:!1}]},S={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},B=r.Tooltip=function(k){function g(){return k.apply(this,arguments)||this}o(g,k);var i=g.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var u=g.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),g.renderedTooltip=u),g.currentHoveredElement=l,u.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){g.currentHoveredElement===this.getDOMNode()&&(g.currentHoveredElement=void 0,g.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var m=this,l=g.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var u=g.singletonPopper;u===void 0?(u=(0,a.createPopper)(g.virtualElement,l,Object.assign({},b,{placement:m.props.position||"auto"})),g.singletonPopper=u):(u.setOptions(Object.assign({},b,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){g.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),g}(e.Component);t=B,B.renderedTooltip=void 0,B.singletonPopper=void 0,B.currentHoveredElement=void 0,B.virtualElement={getBoundingClientRect:function(){function k(){var g,i;return(g=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?g:S}return k}()}},36036:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var f=n(55937);r.Box=f.Box;var b=n(96184);r.Button=b.Button;var S=n(18982);r.ByondUi=S.ByondUi;var B=n(66820);r.Chart=B.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var g=n(88894);r.ColorBox=g.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var m=n(13605);r.Divider=m.Divider;var l=n(20342);r.DraggableControl=l.DraggableControl;var u=n(87099);r.Dropdown=u.Dropdown;var s=n(39473);r.Flex=s.Flex;var d=n(79646);r.Grid=d.Grid;var v=n(4454);r.Interactive=v.Interactive;var C=n(91225);r.Image=C.Image;var h=n(60218);r.DmIcon=h.DmIcon;var p=n(1331);r.Icon=p.Icon;var N=n(79825);r.ImageButton=N.ImageButton;var V=n(79652);r.Input=V.Input;var y=n(76334);r.Knob=y.Knob;var I=n(78621);r.LabeledControls=I.LabeledControls;var L=n(29319);r.LabeledList=L.LabeledList;var w=n(36077);r.Modal=w.Modal;var A=n(73280);r.NanoMap=A.NanoMap;var x=n(74733);r.NoticeBox=x.NoticeBox;var E=n(59263);r.NumberInput=E.NumberInput;var P=n(33337);r.Pointer=P.Pointer;var D=n(50186);r.Popper=D.Popper;var M=n(92704);r.ProgressBar=M.ProgressBar;var R=n(9075);r.RestrictedInput=R.RestrictedInput;var O=n(11441);r.RoundGauge=O.RoundGauge;var F=n(97079);r.Section=F.Section;var _=n(79911);r.Slider=_.Slider;var U=n(96690);r.Stack=U.Stack;var z=n(36352);r.Table=z.Table;var $=n(85138);r.Tabs=$.Tabs;var G=n(44868);r.TextArea=G.TextArea;var X=n(5169);r.TimeDisplay=X.TimeDisplay;var J=n(62147);r.Tooltip=J.Tooltip},76910:function(T,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",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"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{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"}],S=[{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"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],B=r.getGasLabel=function(){function i(c,m){var l=String(c).toLowerCase(),u=S.find(function(s){return s.id===l||s.name.toLowerCase()===l});return u&&u.label||m||c}return i}(),k=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),l=S.find(function(u){return u.id===m||u.name.toLowerCase()===m});return l&&l.color}return i}(),g=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var u=Math.round(l/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var d=Math.round(l);return d+" second"+(d===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(4085),b=function(){return f.keys().map(function(k){return f(k)})},y=r.KitchenSink=function(){function B(k,g){var i=k.panel,c=(0,a.useLocalState)(g,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(g,"pageIndex",0),u=l[0],s=l[1],d=b(),v=d[u],C=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:d.map(function(h,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function N(){return s(p)}return N}(),children:h.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:v.meta.render()})})]})})}return B}()},77384:function(T,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var f=n(4085),b=function(){return f.keys().map(function(k){return f(k)})},S=r.KitchenSink=function(){function B(k,g){var i=k.panel,c=(0,a.useLocalState)(g,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(g,"pageIndex",0),u=l[0],s=l[1],d=b(),v=d[u],C=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:d.map(function(h,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function N(){return s(p)}return N}(),children:h.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:v.meta.render()})})]})})}return B}()},77384:function(T,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -210,7 +210,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function B(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(g){g.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),g.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),g.ctrl&&g.alt&&g.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(g){return function(i){return g(i)}}}return B}(),y=r.relayMiddleware=function(){function B(k){var g=n(7435),i=location.search==="?external";return i?g.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&k.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,u=m.payload,s=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(l)&&!s&&!i&&g.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return B}()},19147:function(T,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function B(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(g){g.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),g.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),g.ctrl&&g.alt&&g.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(g){return function(i){return g(i)}}}return B}(),S=r.relayMiddleware=function(){function B(k){var g=n(7435),i=location.search==="?external";return i?g.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&k.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,u=m.payload,s=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(l)&&!s&&!i&&g.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return B}()},19147:function(T,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -222,13 +222,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=(0,t.createLogger)("drag"),B=Byond.windowId,k=!1,g=!1,i=[0,0],c,m,l,u,s,d=r.setWindowKey=function(){function O(F){B=F}return O}(),v=r.getWindowPosition=function(){function O(){return[window.screenLeft,window.screenTop]}return O}(),C=r.getWindowSize=function(){function O(){return[window.innerWidth,window.innerHeight]}return O}(),h=r.setWindowPosition=function(){function O(F){var _=(0,a.vecAdd)(F,i);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return O}(),p=r.setWindowSize=function(){function O(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return O}(),N=r.getScreenPosition=function(){function O(){return[0-i[0],0-i[1]]}return O}(),V=r.getScreenSize=function(){function O(){return[window.screen.availWidth,window.screen.availHeight]}return O}(),S=function(F,_,U){U===void 0&&(U=50);for(var z=[_],$,G=0;Gse&&($[X]=se-_[X],G=!0)}return[G,$]},x=r.dragStartHandler=function(){function O(F){y.log("drag start"),k=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return O}(),E=function O(F){y.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",O),k=!1,I()},P=function(F){k&&(F.preventDefault(),h((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function O(F,_){return function(U){l=[F,_],y.log("resize start",l),g=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return O}(),M=function O(F){y.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",O),g=!1,I()},R=function(F){g&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(l,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** +*/var S=(0,t.createLogger)("drag"),B=Byond.windowId,k=!1,g=!1,i=[0,0],c,m,l,u,s,d=r.setWindowKey=function(){function O(F){B=F}return O}(),v=r.getWindowPosition=function(){function O(){return[window.screenLeft,window.screenTop]}return O}(),C=r.getWindowSize=function(){function O(){return[window.innerWidth,window.innerHeight]}return O}(),h=r.setWindowPosition=function(){function O(F){var _=(0,a.vecAdd)(F,i);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return O}(),p=r.setWindowSize=function(){function O(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return O}(),N=r.getScreenPosition=function(){function O(){return[0-i[0],0-i[1]]}return O}(),V=r.getScreenSize=function(){function O(){return[window.screen.availWidth,window.screen.availHeight]}return O}(),y=function(F,_,U){U===void 0&&(U=50);for(var z=[_],$,G=0;Gse&&($[X]=se-_[X],G=!0)}return[G,$]},x=r.dragStartHandler=function(){function O(F){S.log("drag start"),k=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return O}(),E=function O(F){S.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",O),k=!1,I()},P=function(F){k&&(F.preventDefault(),h((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function O(F,_){return function(U){l=[F,_],S.log("resize start",l),g=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return O}(),M=function O(F){S.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",O),g=!1,I()},R=function(F){g&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(l,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return p}(),b,y=!0,B=function p(N,V){if(o){y=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,g=r.canStealFocus=function(){function p(N){var V=String(N.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),i=function(N){c(),k=N,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,l=null,u=[],s=r.addScrollableNode=function(){function p(N){u.push(N)}return p}(),d=r.removeScrollableNode=function(){function p(N){var V=u.indexOf(N);V>=0&&u.splice(V,1)}return p}(),v=function(N){if(!(k||!y))for(var V=document.body;N&&N!==V;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(p){var N=p.target;N!==l&&(l=N,v(N))}),window.addEventListener("focusin",function(p){if(l=null,m=p.target,B(!0),g(p.target)){i(p.target);return}}),window.addEventListener("focusout",function(p){l=null,B(!1,!0)}),window.addEventListener("blur",function(p){l=null,B(!1,!0)}),window.addEventListener("beforeunload",function(p){B(!1)});var C={},h=r.KeyEvent=function(){function p(V,S,I){this.event=V,this.type=S,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!I}var N=p.prototype;return N.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),N.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),N.isDown=function(){function V(){return this.type==="keydown"}return V}(),N.isUp=function(){function V(){return this.type==="keyup"}return V}(),N.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!g(p.target)){var N=p.keyCode,V=new h(p,"keydown",C[N]);t.emit("keydown",V),t.emit("key",V),C[N]=!0}}),document.addEventListener("keyup",function(p){if(!g(p.target)){var N=p.keyCode,V=new h(p,"keyup");t.emit("keyup",V),t.emit("key",V),C[N]=!1}})},87695:function(T,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return p}(),b,S=!0,B=function p(N,V){if(o){S=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(N)});return}S!==N&&(S=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,g=r.canStealFocus=function(){function p(N){var V=String(N.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),i=function(N){c(),k=N,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,l=null,u=[],s=r.addScrollableNode=function(){function p(N){u.push(N)}return p}(),d=r.removeScrollableNode=function(){function p(N){var V=u.indexOf(N);V>=0&&u.splice(V,1)}return p}(),v=function(N){if(!(k||!S))for(var V=document.body;N&&N!==V;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(p){var N=p.target;N!==l&&(l=N,v(N))}),window.addEventListener("focusin",function(p){if(l=null,m=p.target,B(!0),g(p.target)){i(p.target);return}}),window.addEventListener("focusout",function(p){l=null,B(!1,!0)}),window.addEventListener("blur",function(p){l=null,B(!1,!0)}),window.addEventListener("beforeunload",function(p){B(!1)});var C={},h=r.KeyEvent=function(){function p(V,y,I){this.event=V,this.type=y,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!I}var N=p.prototype;return N.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),N.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),N.isDown=function(){function V(){return this.type==="keydown"}return V}(),N.isUp=function(){function V(){return this.type==="keyup"}return V}(),N.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!g(p.target)){var N=p.keyCode,V=new h(p,"keydown",C[N]);t.emit("keydown",V),t.emit("key",V),C[N]=!0}}),document.addEventListener("keyup",function(p){if(!g(p.target)){var N=p.keyCode,V=new h(p,"keyup");t.emit("keyup",V),t.emit("key",V),C[N]=!1}})},87695:function(T,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -238,117 +238,117 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function B(k,g,i){if(g===void 0&&(g=-t),i===void 0&&(i=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(g*3,c)),l=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),d=a[s],v=k/Math.pow(1e3,u),C=l>g?2+u*3-m:0,h=(0,e.toFixed)(v,C)+" "+d+i;return h.trim()}return B}(),f=r.formatPower=function(){function B(k,g){return g===void 0&&(g=0),o(k,g,"W")}return B}(),b=r.formatMoney=function(){function B(k,g){if(g===void 0&&(g=0),!Number.isFinite(k))return k;var i=(0,e.round)(k,g);g>0&&(i=(0,e.toFixed)(k,g)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var l="",u=0;u0&&u=0?"+":g<0?"\u2013":"",c=Math.abs(g);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return B}()},56518:function(T,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,v=new WeakMap;return(o=function(h){return h?v:d})(s)}function f(s,d){if(!d&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(d);if(v&&v.has(s))return v.get(s);var C={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var N=h?Object.getOwnPropertyDescriptor(s,p):null;N&&(N.get||N.set)?Object.defineProperty(C,p,N):C[p]=s[p]}return C.default=s,v&&v.set(s,C),C}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function B(k,g,i){if(g===void 0&&(g=-t),i===void 0&&(i=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(g*3,c)),l=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),d=a[s],v=k/Math.pow(1e3,u),C=l>g?2+u*3-m:0,h=(0,e.toFixed)(v,C)+" "+d+i;return h.trim()}return B}(),f=r.formatPower=function(){function B(k,g){return g===void 0&&(g=0),o(k,g,"W")}return B}(),b=r.formatMoney=function(){function B(k,g){if(g===void 0&&(g=0),!Number.isFinite(k))return k;var i=(0,e.round)(k,g);g>0&&(i=(0,e.toFixed)(k,g)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var l="",u=0;u0&&u=0?"+":g<0?"\u2013":"",c=Math.abs(g);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return B}()},56518:function(T,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,v=new WeakMap;return(o=function(h){return h?v:d})(s)}function f(s,d){if(!d&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(d);if(v&&v.has(s))return v.get(s);var C={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var N=h?Object.getOwnPropertyDescriptor(s,p):null;N&&(N.get||N.set)?Object.defineProperty(C,p,N):C[p]=s[p]}return C.default=s,v&&v.set(s,C),C}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=(0,t.createLogger)("hotkeys"),y={},B=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},g=function(d){if(d===16)return"Shift";if(d===17)return"Ctrl";if(d===18)return"Alt";if(d===33)return"Northeast";if(d===34)return"Southeast";if(d===35)return"Southwest";if(d===36)return"Northwest";if(d===37)return"West";if(d===38)return"North";if(d===39)return"East";if(d===40)return"South";if(d===45)return"Insert";if(d===46)return"Delete";if(d>=48&&d<=57||d>=65&&d<=90)return String.fromCharCode(d);if(d>=96&&d<=105)return"Numpad"+(d-96);if(d>=112&&d<=123)return"F"+(d-111);if(d===188)return",";if(d===189)return"-";if(d===190)return"."},i=function(d){var v=String(d);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(d.event.defaultPrevented||d.isModifierKey()||B.includes(d.code))){v==="F5"&&(d.event.preventDefault(),d.event.returnValue=!1);var C=g(d.code);if(C){var h=y[C];if(h)return b.debug("macro",h),Byond.command(h);if(d.isDown()&&!k[C]){k[C]=!0;var p='Key_Down "'+C+'"';return b.debug(p),Byond.command(p)}if(d.isUp()&&k[C]){k[C]=!1;var N='Key_Up "'+C+'"';return b.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(d){B.push(d)}return s}(),m=r.releaseHotKey=function(){function s(d){var v=B.indexOf(d);v>=0&&B.splice(v,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var d=0,v=Object.keys(k);d0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return f}()},1090:function(T,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AICard=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return g("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return g("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return g("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function u(){return g("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function u(){return g("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function u(){return g("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return g}(),y={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"}},B={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"}},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.locked&&!u.siliconUser,d=u.normallyLocked,v=y[u.externalPower]||y[0],C=y[u.chargingStatus]||y[0],h=u.powerChannels||[],p=B[u.malfStatus]||B[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return l("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return l("charge")}return V}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.map(function(V){var S=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function I(){return l("channel",S.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function I(){return l("channel",S.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function I(){return l("channel",S.off)}return I}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return l(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return l("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return l("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return l("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return l("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.view_screen,h=v.authenticated_account,p=v.ticks_left_locked_down,N=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(C){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,B);break;case 3:V=(0,e.createComponentVNode)(2,i);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.machine_id,h=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function p(){return d("insert_card")}return p}()})})})]})},y=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function h(){return d("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===2,onClick:function(){function h(){return d("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},B=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),h=C[0],p=C[1],N=(0,a.useLocalState)(u,"fundsAmount",0),V=N[0],S=N[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],w=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return S(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return w(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return d("transfer",{target_acc_number:h,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),h=C[0],p=C[1],N=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function S(){return d("logout")}return S}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function S(I,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function S(){return d("withdrawal",{funds_amount:h})}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function S(){return d("view_screen",{view_screen:1})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function S(){return d("view_screen",{view_screen:2})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function S(){return d("view_screen",{view_screen:3})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function S(){return d("balance_statement")}return S}()})})]})],4)},g=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"accountID",null),h=C[0],p=C[1],N=(0,a.useLocalState)(u,"accountPin",null),V=N[0],S=N[1],I=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return p(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return S(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return d("attempt_auth",{account_num:h,account_pin:V})}return w}()})})]})})},i=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return d("view_screen",{view_screen:0})}return C}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),y=n(321),B=n(5485),k=r.AccountsUplinkTerminal=function(){function v(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=V.loginState,I=V.currentPage,L;if(S.logged_in)I===1?L=(0,e.createComponentVNode)(2,i):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,B.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),g=function(C,h){var p=(0,t.useBackend)(h),N=p.data,V=(0,t.useLocalState)(h,"tabIndex",0),S=V[0],I=V[1],L=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===0,onClick:function(){function w(){return I(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===1,onClick:function(){function w(){return I(1)}return w}(),children:"Department Accounts"})]})})})},i=function(C,h){var p=(0,t.useLocalState)(h,"tabIndex",0),N=p[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=V.accounts,I=(0,t.useLocalState)(h,"searchText",""),L=I[0],w=I[1],A=(0,t.useLocalState)(h,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(h,"sortOrder",!0),D=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),S.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,O){var F=D?1:-1;return R[x].localeCompare(O[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function O(){return N("view_account_detail",{account_num:R.account_number})}return O}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),S.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:I.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(C,h){var p=(0,t.useLocalState)(h,"sortId","name"),N=p[0],V=p[1],S=(0,t.useLocalState)(h,"sortOrder",!0),I=S[0],L=S[1],w=C.id,A=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==w&&"transparent",width:"100%",onClick:function(){function x(){N===w?L(!I):(V(w),L(!0))}return x}(),children:[A,N===w&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=V.is_printing,I=(0,t.useLocalState)(h,"searchText",""),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return N("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})})]})},s=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=V.account_number,I=V.owner_name,L=V.money,w=V.suspended,A=V.transactions,x=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+S+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return N("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",S]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return N("set_account_pin",{account_number:S})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return N("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},d=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,S=(0,t.useLocalState)(h,"accName",""),I=S[0],L=S[1],w=(0,t.useLocalState)(h,"accDeposit",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,D){return L(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,D){return x(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},23001:function(T,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),y=n(321),B=n(5485),k=function(v){switch(v){case 0:return"Antagonists";case 1:return"Objectives";case 2:return"Security";case 3:return"All High Value Items";default:return"Something went wrong with this menu, make an issue report please!"}},g=function(v){switch(v){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,u);default:return"Something went wrong with this menu, make an issue report please!"}},i=r.AdminAntagMenu=function(){function d(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.loginState,S=N.currentPage,I=(0,t.useLocalState)(C,"tabIndex",0),L=I[0],w=I[1],A=(0,t.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{children:"This menu is a Work in Progress. Some antagonists like Nuclear Operatives and Biohazards will not show up."})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0)}return P}(),icon:"user",children:"Antagonists"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1)}return P}(),icon:"people-robbery",children:"Objectives"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2)}return P}(),icon:"handcuffs",children:"Security"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===3,onClick:function(){function P(){w(3)}return P}(),icon:"lock",children:"High Value Items"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:k(L),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",width:"300px",onInput:function(){function P(D,M){return E(M)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return p("refresh")}return P}(),children:"Refresh"})]}),children:g(L)})})]})})})}return d}(),c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.antagonists,S=(0,t.useLocalState)(C,"searchText",""),I=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId","antag_name"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{id:"name",children:"Mob Name"}),(0,e.createComponentVNode)(2,s,{id:"",children:"Buttons"}),(0,e.createComponentVNode)(2,s,{id:"antag_name",children:"Antagonist Type"}),(0,e.createComponentVNode)(2,s,{id:"status",children:"Status"})]}),V.filter((0,a.createSearch)(I,function(M){return M.name+"|"+M.status+"|"+M.antag_name})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null?O:R[A]===void 0||R[A]===null?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:M.body_destroyed?M.name:(0,e.createComponentVNode)(2,o.Button,{color:M.is_hijacker||!M.name?"red":"",tooltip:M.is_hijacker?"Hijacker":"",onClick:function(){function O(){return p("show_player_panel",{mind_uid:M.antag_mind_uid})}return O}(),children:M.name?M.name:"??? (NO NAME)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("pm",{ckey:M.ckey})}return O}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("follow",{datum_uid:M.antag_mind_uid})}return O}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("obs",{mind_uid:M.antag_mind_uid})}return O}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("tp",{mind_uid:M.antag_mind_uid})}return O}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.antag_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.status?"red":"grey",children:M.status?M.status:"Alive"})})]},R)})]}):"No Antagonists!"},m=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.objectives,S=(0,t.useLocalState)(C,"searchText",""),I=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId2","target_name"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"obj_name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"target_name",children:"Target"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"owner_name",children:"Owner"})]}),V.filter((0,a.createSearch)(I,function(M){return M.obj_name+"|"+M.target_name+"|"+(M.status?"success":"incompleted")+"|"+M.owner_name})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null||A==="target_name"&&M.no_target?O:R[A]===void 0||R[A]===null||A==="target_name"&&R.no_target?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:M.obj_desc,onClick:function(){function O(){return p("vv",{uid:M.obj_uid})}return O}(),children:M.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.no_target?"":M.track.length?M.track.map(function(O,F){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return p("follow",{datum_uid:O})}return _}(),children:[M.target_name," ",M.track.length>1?"("+(parseInt(F,10)+1)+")":""]},F)}):"No "+M.target_name+" Found"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.status?"green":"grey",children:M.status?"Success":"Incomplete"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("obj_owner",{owner_uid:M.owner_uid})}return O}(),children:M.owner_name})})]},R)})]}):"No Objectives!"},l=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.security,S=(0,t.useLocalState)(C,"searchText",""),I=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId3","health"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1],M=function(F){return F.status===2?"red":F.status===1?"orange":F.broken_bone||F.internal_bleeding?"yellow":"grey"},R=function(F){return F.status===2?"Dead":F.status===1?"Unconscious":F.broken_bone&&F.internal_bleeding?"Broken Bone, IB":F.broken_bone?"Broken Bone":F.internal_bleeding?"IB":"Alive"};return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"role",children:"Role"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"antag",children:"Antag"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"health",children:"Health"})]}),V.filter((0,a.createSearch)(I,function(O){return O.name+"|"+O.role+"|"+R(O)+"|"+O.antag})).sort(function(O,F){var _=P?1:-1;return O[A]===void 0||O[A]===null?_:F[A]===void 0||F[A]===null?-1*_:typeof O[A]=="number"?(O[A]-F[A])*_:O[A].localeCompare(F[A])*_}).map(function(O,F){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return p("show_player_panel",{mind_uid:O.mind_uid})}return _}(),children:O.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:O.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:M(O),children:R(O)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:O.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function _(){p("tp",{mind_uid:O.mind_uid})}return _}(),children:O.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:O.health/O.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:O.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("pm",{ckey:O.ckey})}return _}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("follow",{datum_uid:O.mind_uid})}return _}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("obs",{mind_uid:O.mind_uid})}return _}(),children:"OBS"})]})]},F)})]}):"No Security!"},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.high_value_items,S=(0,t.useLocalState)(C,"searchText",""),I=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId4","person"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"person",children:"Carrier"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"loc",children:"Location"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"admin_z",children:"On Admin Z-level"})]}),V.filter((0,a.createSearch)(I,function(M){return M.name+"|"+M.loc})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null?O:R[A]===void 0||R[A]===null?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:M.obj_desc,translucent:M.admin_z,onClick:function(){function O(){return p("vv",{uid:M.uid})}return O}(),children:M.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.admin_z?"grey":"",children:M.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.admin_z?"grey":"",children:M.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:M.admin_z?"On Admin Z-level":""})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("follow",{datum_uid:M.uid})}return O}(),children:"FLW"})})]},R)})]}):"No High Value Items!"},s=function(v,C){var h=v.id,p=v.sort_group,N=p===void 0?"sortId":p,V=v.default_sort,S=V===void 0?"antag_name":V,I=v.children,L=(0,t.useLocalState)(C,N,S),w=L[0],A=L[1],x=(0,t.useLocalState)(C,"sortOrder",!0),E=x[0],P=x[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:w!==h&&"transparent",width:"100%",onClick:function(){function D(){w===h?P(!E):(A(h),P(!0))}return D}(),children:[I,w===h&&(0,e.createComponentVNode)(2,o.Icon,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},39683:function(T,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],y="Empty",B=function(m){var l=m.label,u=m.value,s=m.onCommit,d=m.onClick,v=m.onRClick,C=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:u||y,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:C,tooltipPosition:"bottom-end",onClick:d,onContextMenu:v})})]})})},k=r.AgentCard=function(){function c(m,l){var u=(0,a.useLocalState)(l,"tabIndex",0),s=u[0],d=u[1],v=function(){function C(h){switch(h){case 0:return(0,e.createComponentVNode)(2,g);case 1:return(0,e.createComponentVNode)(2,i);default:return(0,e.createComponentVNode)(2,g)}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:435,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function C(){return d(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function C(){return d(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),v(s)]})})})}return c}(),g=r.AgentCardInfo=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.registered_name,C=d.sex,h=d.age,p=d.assignment,N=d.job_icon,V=d.associated_account_number,S=d.blood_type,I=d.dna_hash,L=d.fingerprint_hash,w=d.photo,A=d.ai_tracking,x=d.photo_cooldown,E=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill someone else data.")],4),P=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill with random data.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,B,{label:"Name",value:v,tooltip:E,onCommit:function(){function D(M,R){return s("change_name",{name:R})}return D}(),onClick:function(){function D(){return s("change_name",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_name",{option:"Secondary"})}return D}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:f.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:D.icon,content:D.name,selected:C===D.name,onClick:function(){function M(){return s("change_sex",{sex:D.name})}return M}()})},D.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:h||0,maxValue:300,onChange:function(){function D(M,R){return s("change_age",{age:R})}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function D(){return s("change_occupation")}return D}(),textAlign:"middle",children:p||"[UNSET]"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{tooltip:"Change HUD icon",tooltipPosition:"bottom-end",onClick:function(){function D(){return s("change_occupation",{option:"Primary"})}return D}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{fill:!0,icon:"icons/mob/hud/job_assets.dmi",icon_state:N,verticalAlign:"bottom",my:"2px",width:"16px"})," "]})})]})}),(0,e.createComponentVNode)(2,B,{label:"Fingerprint",value:L,onCommit:function(){function D(M,R){return s("change_fingerprints",{new_fingerprints:R})}return D}(),onClick:function(){function D(){return s("change_fingerprints",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_fingerprints",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[b.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:D,selected:S===D,onClick:function(){function M(){return s("change_blood_type",{new_type:D})}return M}()})},D)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-signature",onClick:function(){function D(){return s("change_blood_type",{option:"Primary"})}return D}()})})]})}),(0,e.createComponentVNode)(2,B,{label:"DNA",value:I,onCommit:function(){function D(M,R){return s("change_dna_hash",{new_dna:R})}return D}(),onClick:function(){function D(){return s("change_dna_hash",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_dna_hash",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,B,{label:"Account",value:V||0,onCommit:function(){function D(M,R){return s("change_money_account",{new_account:R})}return D}(),onClick:function(){function D(){return s("change_money_account",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_money_account",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!x,tooltip:x?"":"You can't generate a new photo yet.",onClick:function(){function D(){return s("change_photo")}return D}(),children:w?"Update":y})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){function D(){return s("delete_info")}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){function D(){return s("clear_access")}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",onClick:function(){function D(){return s("change_ai_tracking")}return D}(),children:A?"Untrackable":"Trackable"})})]})})})],4)}return c}(),i=r.AgentCardAppearances=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=(0,a.useSharedState)(l,"selectedAppearance",null),C=v[0],h=v[1],p=d.appearances,N=d.id_icon;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:p.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:N,dmIconState:V,imageSize:64,compact:!0,selected:V===C,tooltip:V,style:{opacity:V===C&&"1"||"0.5"},onClick:function(){function S(){h(V),s("change_appearance",{new_appearance:V})}return S}()},V)})})})}return c}()},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,B),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},B=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.air,N=h.mode,V=h.atmos_alarm,S=h.locked,I=h.alarmActivated,L=h.rcon,w=h.target_temp,A;return p.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:y(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:y(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:y(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:y(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:y(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:y(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.overall),children:[A,!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return C(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,d){var v=(0,a.useLocalState)(d,"tabIndex",0),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return h(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return h(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function p(){return h(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function p(){return h(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},g=function(s,d){var v=(0,a.useLocalState)(d,"tabIndex",0),C=v[0],h=v[1];switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.vents;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function V(){return C("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function V(){return C("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.scrubbers;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return C("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function V(){return C("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function V(){return C("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function V(){return C("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function V(){return C("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function V(){return C("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.modes,N=h.presets,V=h.emagged,S=h.mode,I=h.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:Object.keys(p).map(function(L){var w=p[L];if(!w.emagonly||V)return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===S,onClick:function(){function A(){return C("mode",{mode:w.id})}return A}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function w(){return C("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function S(){return C("command",{cmd:"set_threshold",env:V.env,var:V.val})}return S}()})},V.val)})]},N.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.exterior_status,m=i.interior_status,l=i.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function d(){return g("force_ext")}return d}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function d(){return g("cycle_ext_door")}return d}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function d(){return g("force_int")}return d}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function d(){return g("cycle_int_door")}return d}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,y=2,B=4,k=8,g=r.AirlockElectronics=function(){function m(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&B,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:B})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:C&y,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:y})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:C&k,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:k})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:C&b,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:b})}return h}()})})]})]})})},c=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.selected_accesses,h=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,content:"One",onClick:function(){function N(){return d("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!h,content:"All",onClick:function(){function N(){return d("set_one_access",{access:"all"})}return N}()})],4),accesses:p,selectedList:C,accessMod:function(){function N(V){return d("set",{access:V})}return N}(),grantAll:function(){function N(){return d("grant_all")}return N}(),denyAll:function(){function N(){return d("clear_all")}return N}(),grantDep:function(){function N(V){return d("grant_region",{region:V})}return N}(),denyDep:function(){function N(V){return d("deny_region",{region:V})}return N}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),y=-1,B=1,k=r.AlertModal=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.autofocus,C=d.buttons,h=C===void 0?[]:C,p=d.large_buttons,N=d.message,V=N===void 0?"":N,S=d.timeout,I=d.title,L=(0,t.useLocalState)(l,"selected",0),w=L[0],A=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(h.length>2?100:0),P=function(){function D(M){w===0&&M===y?A(h.length-1):w===h.length-1&&M===B?A(0):A(w+M)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:I,height:x,width:E,children:[!!S&&(0,e.createComponentVNode)(2,a.Loader,{value:S}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:h[w]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(B))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,g,{selected:w})]})]})})})]})}return c}(),g=function(m,l){var u=(0,t.useBackend)(l),s=u.data,d=s.buttons,v=d===void 0?[]:d,C=s.large_buttons,h=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:h?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,V){return C&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:p===V})},V)})})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.large_buttons,C=m.button,h=m.selected,p=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:C,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:C})}return N}(),selected:h,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.change_race,l=c.species,u=c.specimen,s=c.change_gender,d=c.gender,v=c.change_eye_color,C=c.change_skin_tone,h=c.change_skin_color,p=c.change_runechat_color,N=c.change_head_accessory_color,V=c.change_hair_color,S=c.change_secondary_hair_color,I=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,D=c.head_accessory_style,M=c.change_hair,R=c.hair_styles,O=c.hair_style,F=c.change_hair_gradient,_=c.change_facial_hair,U=c.facial_hair_styles,z=c.facial_hair_style,$=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,J=c.change_body_markings,se=c.body_marking_styles,ie=c.body_marking_style,me=c.change_tail_markings,q=c.tail_marking_styles,re=c.tail_marking_style,ae=c.change_body_accessory,le=c.body_accessory_styles,Z=c.body_accessory_style,ne=c.change_alt_head,te=c.alt_head_styles,fe=c.alt_head_style,pe=!1;return(v||C||h||N||p||V||S||I||L||w||A||x)&&(pe=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.specimen,selected:ce.specimen===u,onClick:function(){function Ve(){return i("race",{race:ce.specimen})}return Ve}()},ce.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:d==="male",onClick:function(){function ce(){return i("gender",{gender:"male"})}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:d==="female",onClick:function(){function ce(){return i("gender",{gender:"female"})}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:d==="plural",onClick:function(){function ce(){return i("gender",{gender:"plural"})}return ce}()})]}),!!pe&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.headaccessorystyle,selected:ce.headaccessorystyle===D,onClick:function(){function Ve(){return i("head_accessory",{head_accessory:ce.headaccessorystyle})}return Ve}()},ce.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.hairstyle,selected:ce.hairstyle===O,onClick:function(){function Ve(){return i("hair",{hair:ce.hairstyle})}return Ve}()},ce.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ce(){return i("hair_gradient")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ce(){return i("hair_gradient_offset")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ce(){return i("hair_gradient_colour")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ce(){return i("hair_gradient_alpha")}return ce}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.facialhairstyle,selected:ce.facialhairstyle===z,onClick:function(){function Ve(){return i("facial_hair",{facial_hair:ce.facialhairstyle})}return Ve}()},ce.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.headmarkingstyle,selected:ce.headmarkingstyle===X,onClick:function(){function Ve(){return i("head_marking",{head_marking:ce.headmarkingstyle})}return Ve}()},ce.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:se.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.bodymarkingstyle,selected:ce.bodymarkingstyle===ie,onClick:function(){function Ve(){return i("body_marking",{body_marking:ce.bodymarkingstyle})}return Ve}()},ce.bodymarkingstyle)})}),!!me&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.tailmarkingstyle,selected:ce.tailmarkingstyle===re,onClick:function(){function Ve(){return i("tail_marking",{tail_marking:ce.tailmarkingstyle})}return Ve}()},ce.tailmarkingstyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.bodyaccessorystyle,selected:ce.bodyaccessorystyle===Z,onClick:function(){function Ve(){return i("body_accessory",{body_accessory:ce.bodyaccessorystyle})}return Ve}()},ce.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.altheadstyle,selected:ce.altheadstyle===fe,onClick:function(){function Ve(){return i("alt_head",{alt_head:ce.altheadstyle})}return Ve}()},ce.altheadstyle)})})]})})})}return y}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=[{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_runechat_color",text:"Change runechat color",action:"runechat_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"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function u(){return i(l.action)}return u}()},l.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.priority||[],m=i.minor||[],l=i.mode||{};return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)}),Object.keys(l).length===0&&(0,e.createVNode)(1,"li","color-good","All Areas Filtering",16),Object.keys(l).map(function(u){return(0,e.createVNode)(1,"li","color-good",[u,(0,e.createTextVNode)(" mode is "),l[u]],0,null,alert)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},B=r.AtmosControl=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=(0,a.useLocalState)(m,"tabIndex",0),v=d[0],C=d[1],h=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),h(v)]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:v.ref})}return C}()})})]},v.name)})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:d.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:y(v.danger),onClick:function(){function C(){return u("open_alarm",{aref:v.ref})}return C}()},v.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.on,m=i.pressure,l=i.max_pressure,u=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return g("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function d(){return g("min_pressure")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function d(v,C){return g("custom_pressure",{pressure:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function d(){return g("max_pressure")}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{selected:d.gas_type===u,content:d.label,onClick:function(){function v(){return g("set_filter",{filter:d.gas_type})}return v}()},d.label)})})]})})})})}return b}()},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.on,l=c.pressure,u=c.max_pressure,s=c.node1_concentration,d=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:l,onDrag:function(){function v(C,h){return i("custom_pressure",{pressure:h})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===u,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:d})]})})})})}return y}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=B.node_name,l=B.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(l-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function u(s,d){return i("set_node",{node_name:m,concentration:d/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(l+10)/100})}return u}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.on,m=i.rate,l=i.max_rate,u=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return g("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function d(){return g("min_rate")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function d(v,C){return g("custom_rate",{rate:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function d(){return g("max_rate")}return d}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[u].pressure," kpa"]}):"",Object.keys(l[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:l[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"inlet",val:d})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"outlet",val:d})}return u}()})})]})}):""]})})}return B}()},92444:function(T,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.AugmentMenu=function(){function k(g,i){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y,{context:i})})})})}return k}(),y=function(g){var i=g.context,c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.usable_swarms,s=l.ability_tabs,d=l.known_abilities,v=(0,a.useLocalState)(i,"selectedTab",s[0]),C=v[0],h=v[1],p=(0,a.useLocalState)(i,"searchText",""),N=p[0],V=p[1],S=function(){var E=s.find(function(D){return D.category_name===C.category_name});if(!E)return[];var P=Math.min(E.category_stage,4);return E.abilities.filter(function(D){return D.stage<=P&&(!N||D.name.toLowerCase().includes(N.toLowerCase()))}).sort(function(D,M){return["intruder","destroyer"].includes(C.category_name.toLowerCase())?D.stage-M.stage:0})},I=S(),L=s.find(function(x){return x.category_name===C.category_name}),w=["intruder","destroyer"].includes(C.category_name.toLowerCase()),A=function(E){var P=d.find(function(R){return R.ability_path===E.ability_path}),D=P?P.cost:E.cost,M=P&&P.current_level>0?P.current_level+" / "+P.max_level:"0 / "+E.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>u||P&&P.current_level===P.max_level,tooltip:"Purchase this ability?",onClick:function(){function R(){m("purchase",{ability_path:E.ability_path}),h(C)}return R}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:E.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:E.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,M,0,{style:{color:"green"}}),w&&E.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),E.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},E.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,u,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function x(E,P){return V(P)}return x}(),value:N}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(x){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name===x.category_name,onClick:function(){function E(){h(x),V("")}return E}(),children:(0,f.capitalize)(x.category_name)},x.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name==="upgrades",onClick:function(){function x(){return h({category_name:"upgrades"})}return x}(),children:"Upgrades"},"upgrades")]}),C.category_name==="upgrades"?(0,e.createComponentVNode)(2,B,{act:m,abilityTabs:s,knownAbilities:d,usableSwarms:u}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:I.map(A)})]})},B=function(g){var i=g.act,c=g.abilityTabs,m=g.knownAbilities,l=g.usableSwarms,u=m.filter(function(d){return d.current_levell,tooltip:"Upgrade this ability?",onClick:function(){function h(){return i("purchase",{ability_path:v.ability_path})}return h}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:v.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:v.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,v.current_level+" / "+v.max_level,0,{style:{color:"green"}}),C&&C.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),C.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},v.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:u.map(s)})}},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),B=function(i,c,m,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>m)},k=r.Autolathe=function(){function g(i,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.total_amount,d=u.max_amount,v=u.metal_amount,C=u.glass_amount,h=u.busyname,p=u.busyamt,N=u.showhacked,V=u.buildQueue,S=u.buildQueueLen,I=u.recipes,L=u.categories,w=(0,o.useSharedState)(c,"category",0),A=w[0],x=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),R=M[0],O=M[1],F=(0,y.createSearch)(R,function($){return $.name}),_="";S>0&&(_=V.map(function($,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:V.indexOf($)+1})}return X}()},$)},G)}));var U=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||R)&&(u.showhacked||!$.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(G){return x(G)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(G,X){return O(X)}return $}(),mb:1}),U.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===1,disabled:!B($,u.metal_amount,u.glass_amount,1),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:1})}return G}(),children:$.name}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===10,disabled:!B($,u.metal_amount,u.glass_amount,10),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:10})}return G}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===25,disabled:!B($,u.metal_amount,u.glass_amount,25),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:25})}return G}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===$.max_multiplier,disabled:!B($,u.metal_amount,u.glass_amount,$.max_multiplier),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return G}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(G){return(0,y.toTitleCase)(G)+": "+$.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:h?"green":"",children:h||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return g}()},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.implant,m=i.contains_case,l=i.gps,u=i.tag,s=(0,a.useLocalState)(B,"newTag",u),d=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return g("eject_case")}return C}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return g("tag",{newtag:d})}return C}(),onInput:function(){function C(h,p){return v(p)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===d,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return g("tag",{newtag:d})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.config,d=u.container,v=u.processing,C=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:C}),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,g):(0,e.createComponentVNode)(2,y)]})})})}return i}(),y=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.biomass,v=s.container,C=s.container_curr_reagents,h=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:d}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:h,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+h+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!d,tooltip:d?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!d,tooltip:d?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.biomass,v=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),h=C[0],p=C[1],N=Object.entries(v).map(function(V,S){var I=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*h,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:d.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),y=r.BluespaceTap=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.product||[],s=l.desiredMiningPower,d=l.miningPower,v=l.points,C=l.totalPoints,h=l.powerUse,p=l.availablePower,N=l.emagged,V=l.autoShutown,S=l.stabilizers,I=l.stabilizerPower,L=l.stabilizerPriority,w=s>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!N?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!N?"green":"red",disabled:!!N,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function A(){return m("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:S&&!N?"toggle-on":"toggle-off",content:"Stabilizers",color:S&&!N?"green":"red",disabled:!!N,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!N?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!N?"green":"red",disabled:!!N,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizer_priority")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,f.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||N,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||N,onClick:function(){function A(){return m("set",{set_power:s-1e7})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||N,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s-1e6})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:N,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function A(x,E){return m("set",{set_power:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e6})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e7})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(d)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(I)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(p)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:C})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=v,onClick:function(){function x(){return m("vend",{target:A.key})}return x}(),content:A.price})},A.key)})})})})]})})]})})})}return k}(),B=r.Alerts=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.product||[],s=l.miningPower,d=l.stabilizerPower,v=l.emagged,C=l.safeLevels,h=l.autoShutown,p=l.stabilizers,N=l.overhead;return(0,e.createFragment)([!h&&!v&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),v?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":p?s>d+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."],["paraplegic","bad","Lumbar nerves damaged."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],g={average:[.25,.5],bad:[.5,1/0]},i=function(S,I){for(var L=[],w=0;w0?S.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},l=r.BodyScanner=function(){function V(S,I){var L=(0,o.useBackend)(I),w=L.data,A=w.occupied,x=w.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(S){var I=S.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,d,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,h,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},s=function(S,I){var L=(0,o.useBackend)(I),w=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},d=function(S){var I=S.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus||I.paraplegic?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:B.map(function(L,w){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(S){var I=S.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:i(k,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:I[L[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:g,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(S){return S.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:g,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),y=r.BookBinder=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.selectedbook,u=m.book_categories,s=[];return u.map(function(d){return s[d.description]=d.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function d(){return c("print_book")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_title")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_author")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(d){return d.description}),onSelected:function(){function d(v){return c("toggle_binder_category",{category_id:s[v]})}return d}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_summary")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(d){return l.categories.includes(d.category_id)}).map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:d.category_id})}return v}()},d.category_id)})]})})]})})})]})}return B}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(i){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(i)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),d=s[0],v=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},h=function(){function p(N){return C[N]?(0,e.createComponentVNode)(2,y,{model:C[N]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:d===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===N,onClick:function(){function V(){return v(N)}return V}(),children:C[N]},N)})})}),h(d)]})})})}return g}(),y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return s[i.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[i.model]}):(0,e.createComponentVNode)(2,B,{model:[i.model]})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[i.model]," detected"]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[i.model].map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.on?f(d.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return l("interface",{botref:d.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return l("call",{botref:d.UID})}return v}()})})]},d.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,v=c.canhack,C=c.emagged,h=c.remote_disabled,p=c.painame,N=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:l,onClick:function(){function S(){return i("blood")}return S}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function S(){return i("area")}return S}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function S(){return i("ejectpai")}return S}()})})]})})}return y}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.noaccess,l=c.painame,u=c.hullplating,s=c.replace,d=c.eat,v=c.make,C=c.fixfloor,h=c.nag_empty,p=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return i("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return i("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return i("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Finds tiles",disabled:m,onClick:function(){function V(){return i("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return i("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return i("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return i("anchored")}return V}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function V(){return i("ejectpai")}return V}()})})]})})}return y}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return y}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,v=c.canhack,C=c.emagged,h=c.remote_disabled,p=c.painame,N=c.shut_up,V=c.declare_crit,S=c.stationary_mode,I=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(P,D){return i("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:l,onChange:function(){function E(P,D){return i("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:S,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return y}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.noaccess,l=c.painame,u=c.check_id,s=c.check_weapons,d=c.check_warrant,v=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function h(){return i("authid")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function h(){return i("authweapon")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Wanted Criminals",disabled:m,onClick:function(){function h(){return i("authwarrant")}return h}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function h(){return i("arrtype")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function h(){return i("arrdeclare")}return h}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function h(){return i("ejectpai")}return h}()})})]})})}return y}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,g){var i=k.cell,c=(0,o.useBackend)(g),m=c.act,l=i.cell_id,u=i.occupant,s=i.crimes,d=i.brigged_by,v=i.time_left_seconds,C=i.time_set_seconds,h=i.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var N=function(){m("release",{ref:h})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},b=function(k){var g=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),g.map(function(i){return(0,e.createComponentVNode)(2,f,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function B(k,g){var i=(0,o.useBackend)(g),c=i.act,m=i.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:l})})})})})}return B}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var k=function(l,u){var s,d;if(!u)return[];var v=l.findIndex(function(C){return C.name===u.name});return[(s=l[v-1])==null?void 0:s.name,(d=l[v+1])==null?void 0:d.name]},g=function(l,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(d){return d.name});return(0,t.flow)([(0,a.filter)(function(d){return d==null?void 0:d.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(d){return d.name})])(l)},i=r.CameraConsole=function(){function m(l,u){var s=(0,b.useBackend)(u),d=s.act,v=s.data,C=s.config,h=v.mapRef,p=v.activeCamera,N=g(v.cameras),V=k(N,p),S=V[0],I=V[1];return(0,e.createComponentVNode)(2,B.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!S,onClick:function(){function L(){return d("switch_camera",{name:S})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return d("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,u){var s=(0,b.useBackend)(u),d=s.act,v=s.data,C=(0,b.useLocalState)(u,"searchText",""),h=C[0],p=C[1],N=v.activeCamera,V=g(v.cameras,h);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function S(I,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(S){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&S.name===N.name&&"Button--selected"]),S.name.trimLongStr(23),0,{title:S.name,onClick:function(){function I(){return d("switch_camera",{name:S.name})}return I}()},S.name)})})})]})}return m}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),y=r.Canister=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.portConnected,u=m.tankPressure,s=m.releasePressure,d=m.defaultReleasePressure,v=m.minReleasePressure,C=m.maxReleasePressure,h=m.valveOpen,p=m.name,N=m.canLabel,V=m.colorContainer,S=m.color_index,I=m.hasHoldingTank,L=m.holdingTank,w="";S.prim&&(w=V.prim.options[S.prim].name);var A="";S.sec&&(A=V.sec.options[S.sec].name);var x="";S.ter&&(x=V.ter.options[S.ter].name);var E="";S.quart&&(E=V.quart.options[S.quart].name);var P=[],D=[],M=[],R=[],O=0;for(O=0;Op.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:d.cooldown_time||!p.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:d.cooldown_time||!p.can_open,onClick:function(){function N(){return s("make_job_available",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:d.cooldown_time||!p.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:p.title})}return N}()})})]},p.title)})]})})]}):h=(0,e.createComponentVNode)(2,B);break;case 2:!d.authenticated||!d.scan_name?h=(0,e.createComponentVNode)(2,B):d.modify_name?h=(0,e.createComponentVNode)(2,f.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(){function p(N){return s("set",{access:N})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(N){return s("grant_region",{region:N})}return p}(),denyDep:function(){function p(N){return s("deny_region",{region:N})}return p}()}):h=(0,e.createComponentVNode)(2,k);break;case 3:d.authenticated?d.records.length?h=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||d.records.length===0||d.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||d.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):h=(0,e.createComponentVNode)(2,g):h=(0,e.createComponentVNode)(2,B);break;case 4:!d.authenticated||!d.scan_name?h=(0,e.createComponentVNode)(2,B):h=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:p.name})}return N}()})})]},p.title)})]})});break;default:h=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:h})]})})})}return c}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),B=r.CargoConsole=function(){function u(s,d){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),k=function(s,d){var v=(0,o.useLocalState)(d,"contentsModal",null),C=v[0],h=v[1],p=(0,o.useLocalState)(d,"contentsModalTitle",null),N=p[0],V=p[1];if(C!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(S){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",S]},S)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function S(){h(null),V(null)}return S}()})})]})},g=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.is_public,N=h.timeleft,V=h.moving,S=h.at_station,I,L;return!V&&!S?(I="Docked off-station",L="Call Shuttle"):!V&&S?(I="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return C("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return C("showMessages")}return w}()})]})]})})})},i=function(s,d){var v,C=(0,o.useBackend)(d),h=C.act,p=C.data,N=p.accounts,V=(0,o.useLocalState)(d,"selectedAccount"),S=V[0],I=V[1],L=[];return N.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(w){return w.name}),selected:(v=N.filter(function(w){return w.account_UID===S})[0])==null?void 0:v.name,onSelected:function(){function w(A){return I(L[A])}return w}()}),N.filter(function(w){return w.account_UID===S}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.requests,N=h.categories,V=h.supply_packs,S=(0,o.useSharedState)(d,"category","Emergency"),I=S[0],L=S[1],w=(0,o.useSharedState)(d,"search_text",""),A=w[0],x=w[1],E=(0,o.useLocalState)(d,"contentsModal",null),P=E[0],D=E[1],M=(0,o.useLocalState)(d,"contentsModalTitle",null),R=M[0],O=M[1],F=(0,y.createSearch)(A,function(X){return X.name}),_=(0,o.useLocalState)(d,"selectedAccount"),U=_[0],z=_[1],$=(0,a.flow)([(0,t.filter)(function(X){return X.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(V),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(X){return X.name}),selected:I,onSelected:function(){function X(J){return L(J)}return X}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,se){return x(se)}return X}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:$.map(function(X){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return C("order",{crate:X.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||X.singleton,onClick:function(){function J(){return C("order",{crate:X.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(X.contents),O(X.name)}return J}()})]})]},X.name)})})})]})})},m=function(s,d){var v=s.request,C,h;switch(v.department){case"Engineering":h="CE",C="orange";break;case"Medical":h="CMO",C="teal";break;case"Science":h="RD",C="purple";break;case"Supply":h="CT",C="brown";break;case"Service":h="HOP",C="olive";break;case"Security":h="HOS",C="red";break;case"Command":h="CAP",C="blue";break;case"Assistant":h="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:h,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+h+" can approve it":"This Order requires approval from the "+h+" still"})})]})},l=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.requests,N=h.orders,V=h.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",S.ordernum,": ",S.supply_type," (",S.cost," credits) for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)," with"," ",S.department?"The "+S.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]}),(0,e.createComponentVNode)(2,m,{request:S})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!S.can_approve,onClick:function(){function I(){return C("approve",{ordernum:S.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!S.can_deny,onClick:function(){function I(){return C("deny",{ordernum:S.ordernum})}return I}()})]})]},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})})]})}},36232:function(T,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),f=n(72253),b=n(36036),y=n(98595),B=r.Chameleon=function(){function i(c,m){return(0,e.createComponentVNode)(2,y.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,g)})})}return i}(),k=function(c,m){m===void 0&&(m="");var l=(0,a.createSearch)(m,function(u){return u.name});return(0,t.flow)([(0,o.filter)(function(u){return u==null?void 0:u.name}),m&&(0,o.filter)(l)])(c)},g=r.ChameleonAppearances=function(){function i(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,d=(0,f.useLocalState)(m,"searchText",""),v=d[0],C=d[1],h=k(s.chameleon_skins,v),p=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function N(V,S){return C(S)}return N}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:h.map(function(N){var V=N.name+"_"+N.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:N.icon,dmIconState:N.icon_state,imageSize:64,m:.5,compact:!0,selected:V===p,tooltip:N.name,style:{opacity:V===p&&"1"||"0.5"},onClick:function(){function S(){u("change_appearance",{new_appearance:V})}return S}()},V)})})})]})}return i}()},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=(0,a.useLocalState)(B,"onlyRecent",0),m=c[0],l=c[1],u=i.cl_data,s=i.last_cl,d={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function C(h){return h in d?d[h]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return l(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function h(){return g("open_pr",{pr_number:C.num})}return h}()}),children:C.entries.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(h.etype)," ",h.etext]},h)})},C)})})})})}return b}()},91360:function(T,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(98595),y=r.CheckboxListInputModal=function(){function k(g,i){var c=(0,f.useBackend)(i),m=c.act,l=c.data,u=l.items,s=u===void 0?[]:u,d=l.message,v=d===void 0?"":d,C=l.init_value,h=l.timeout,p=l.title,N=(0,f.useLocalState)(i,"edittedItems",s),V=N[0],S=N[1],I=330+Math.ceil(v.length/3),L=function(){function w(A){A===void 0&&(A=null);var x=[].concat(V);x=x.map(function(E){return E.key===A.key?Object.assign({},E,{checked:!A.checked}):E}),S(x)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:p,width:325,height:I,children:[h&&(0,e.createComponentVNode)(2,a.Loader,{value:h}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),B=function(g,i){var c=g.filteredItems,m=g.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,u){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:u,onClick:function(){function s(){return m(l)}return s}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(s){return s.toUpperCase()})},u)})})}},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],B=r.ChemDispenser=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i)]})})})}return c}(),k=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.amount,C=d.energy,h=d.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[C," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},N)})})})]})})})},g=function(m,l){for(var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.chemicals,C=v===void 0?[]:v,h=[],p=0;p<(C.length+1)%3;p++)h.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(N,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function S(){return s("dispense",{reagent:N.id})}return S}()},V)}),h.map(function(N,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},i=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.isBeakerLoaded,C=d.beakerCurrentVolume,h=d.beakerMaxVolume,p=d.beakerContents,N=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:d.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",h," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function V(S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:S.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function w(){return s("remove",{reagent:S.id,amount:I})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:S.id,amount:S.volume})}return I}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),y=r.ChemHeater=function(){function g(i,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),B=function(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.targetTemp,d=u.targetTempReached,v=u.autoEject,C=u.isActive,h=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return l("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!p,onClick:function(){function N(){return l("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(V,S){return l("adjust_temperature",{target:S})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:d?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h,format:function(){function N(V){return(0,a.toFixed)(V)+" K"}return N}()})||"\u2014"})]})})})},k=function(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,d=u.beakerCurrentVolume,v=u.beakerMaxVolume,C=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[d," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function h(){return l("eject_beaker")}return h}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),y=n(35840),B=["icon"];function k(I,L){if(I==null)return{};var w={};for(var A in I)if({}.hasOwnProperty.call(I,A)){if(L.includes(A))continue;w[A]=I[A]}return w}function g(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,i(I,L)}function i(I,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},i(I,L)}var c=[1,5,10],m=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return D}()})]})})})})},l=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(l||{}),u=r.ChemMaster=function(){function I(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,S)]})})]})}return I}(),s=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.beaker,D=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function O(){return x("eject")}return O}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function O(){return x("eject")}return O}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function O(F,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function M(R,O){return(0,e.createComponentVNode)(2,t.Box,{mb:O0&&(R=M.map(function(O){var F=O.id,_=O.sprite;return(0,e.createComponentVNode)(2,N,{icon:_,translucent:!0,onClick:function(){function U(){return x("set_sprite_style",{production_mode:P,style:F})}return U}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},S=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.loaded_pill_bottle_style,D=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},O=D.map(function(F){var _=F.color,U=F.name,z=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function $(){return x("set_container_style",{style:_})}return $}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),O]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,y=32,B=128,k=r.CloningConsole=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.tab,N=h.has_scanner,V=h.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function S(){return C("menu",{tab:1})}return S}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function S(){return C("menu",{tab:2})}return S}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,g)})]})})}return u}(),g=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.tab,p;return h===1?p=(0,e.createComponentVNode)(2,i):h===2&&(p=(0,e.createComponentVNode)(2,c)),p},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.pods,N=h.pod_amount,V=h.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&p.map(function(S,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(S.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===S.uid,onClick:function(){function L(){return C("select_pod",{uid:S.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!S.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!S.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.biomass,ranges:{good:[2*S.biomass_storage_capacity/3,S.biomass_storage_capacity],average:[S.biomass_storage_capacity/3,2*S.biomass_storage_capacity/3],bad:[0,S.biomass_storage_capacity/3]},minValue:0,maxValue:S.biomass_storage_capacity,children:[S.biomass,"/",S.biomass_storage_capacity+" ("+100*S.biomass/S.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:S.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:S.osseous_reagent})]})})]})},S)})]})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.selected_pod_data,N=h.has_scanned,V=h.scanner_has_patient,S=h.feedback,I=h.scan_successful,L=h.cloning_cost,w=h.has_scanner,A=h.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return C("scan")}return x}(),disabled:!V||A,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return C("eject")}return x}(),disabled:!V||A,children:"Eject Patient"})]}),children:[!N&&!A&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!N||!!A)&&(0,e.createComponentVNode)(2,t.Box,{color:S.color,children:S.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.patient_limb_data,N=h.limb_list,V=h.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(S,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[S][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[S][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0]+V[S][1],maxValue:p[S][5],ranges:{good:[0,p[S][5]/3],average:[p[S][5]/3,2*p[S][5]/3],bad:[2*p[S][5]/3,p[S][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[S][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[S][1]]})}),p[S][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][3],onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][0]||p[S][1]),checked:!(V[S][0]||V[S][1]),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&b),checked:!(V[S][2]&b),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&y),checked:!(V[S][2]&y),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&B),checked:!(V[S][2]&B),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},S)})})},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.patient_organ_data,N=h.organ_list,V=h.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(S,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[S][3],":"," "]}),p[S][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][2]&&!V[S][1],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"replace"})}return L}(),children:"Replace Organ"}),!p[S][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[S][0],checked:!V[S][0],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[S][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][3]," is missing!"]}),!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0],maxValue:p[S][4],ranges:{good:[0,p[S][4]/3],average:[p[S][4]/3,2*p[S][4]/3],bad:[2*p[S][4]/3,p[S][4]]},children:"Post-Cloning Damage: "+V[S][0]})]})]})},S)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.biomass,m=i.biomass_storage_capacity,l=i.sanguine_reagent,u=i.osseous_reagent,s=i.organs,d=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function v(C,h){return g("remove_reagent",{reagent:"sanguine_reagent",amount:h})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return g("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(C,h){return g("remove_reagent",{reagent:"osseous_reagent",amount:h})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return g("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!d&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function C(){return g("eject_organ",{organ_ref:v.ref})}return C}()})})]},v)})]}),!!d&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function y(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.materials,l=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,d=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:d,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"Need a money bag",disabled:!l,onClick:function(){function v(){return i("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return i("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function C(){return i("selectMaterial",{material:v.id})}return C}()},v.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function v(){return i("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return y}()},93858:function(T,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),f=n(98595),b=n(44879),y=n(14448),B=n(4454),k=n(35840),g=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** + */var b=(0,t.createLogger)("hotkeys"),S={},B=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},g=function(d){if(d===16)return"Shift";if(d===17)return"Ctrl";if(d===18)return"Alt";if(d===33)return"Northeast";if(d===34)return"Southeast";if(d===35)return"Southwest";if(d===36)return"Northwest";if(d===37)return"West";if(d===38)return"North";if(d===39)return"East";if(d===40)return"South";if(d===45)return"Insert";if(d===46)return"Delete";if(d>=48&&d<=57||d>=65&&d<=90)return String.fromCharCode(d);if(d>=96&&d<=105)return"Numpad"+(d-96);if(d>=112&&d<=123)return"F"+(d-111);if(d===188)return",";if(d===189)return"-";if(d===190)return"."},i=function(d){var v=String(d);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(d.event.defaultPrevented||d.isModifierKey()||B.includes(d.code))){v==="F5"&&(d.event.preventDefault(),d.event.returnValue=!1);var C=g(d.code);if(C){var h=S[C];if(h)return b.debug("macro",h),Byond.command(h);if(d.isDown()&&!k[C]){k[C]=!0;var p='Key_Down "'+C+'"';return b.debug(p),Byond.command(p)}if(d.isUp()&&k[C]){k[C]=!1;var N='Key_Up "'+C+'"';return b.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(d){B.push(d)}return s}(),m=r.releaseHotKey=function(){function s(d){var v=B.indexOf(d);v>=0&&B.splice(v,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var d=0,v=Object.keys(k);d0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return f}()},1090:function(T,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AICard=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return g("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return g("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return g("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function u(){return g("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function u(){return g("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function u(){return g("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return g}(),S={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"}},B={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"}},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.locked&&!u.siliconUser,d=u.normallyLocked,v=S[u.externalPower]||S[0],C=S[u.chargingStatus]||S[0],h=u.powerChannels||[],p=B[u.malfStatus]||B[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return l("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return l("charge")}return V}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.map(function(V){var y=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function I(){return l("channel",y.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function I(){return l("channel",y.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function I(){return l("channel",y.off)}return I}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return l(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return l("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return l("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return l("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return l("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.view_screen,h=v.authenticated_account,p=v.ticks_left_locked_down,N=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(C){case 1:V=(0,e.createComponentVNode)(2,S);break;case 2:V=(0,e.createComponentVNode)(2,B);break;case 3:V=(0,e.createComponentVNode)(2,i);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.machine_id,h=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function p(){return d("insert_card")}return p}()})})})]})},S=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function h(){return d("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===2,onClick:function(){function h(){return d("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},B=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),h=C[0],p=C[1],N=(0,a.useLocalState)(u,"fundsAmount",0),V=N[0],y=N[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],w=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return y(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return w(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return d("transfer",{target_acc_number:h,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),h=C[0],p=C[1],N=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function y(){return d("logout")}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function y(I,L){return p(L)}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function y(){return d("withdrawal",{funds_amount:h})}return y}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function y(){return d("view_screen",{view_screen:1})}return y}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function y(){return d("view_screen",{view_screen:2})}return y}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function y(){return d("view_screen",{view_screen:3})}return y}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function y(){return d("balance_statement")}return y}()})})]})],4)},g=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=(0,a.useLocalState)(u,"accountID",null),h=C[0],p=C[1],N=(0,a.useLocalState)(u,"accountPin",null),V=N[0],y=N[1],I=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return p(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return y(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return d("attempt_auth",{account_num:h,account_pin:V})}return w}()})})]})})},i=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return d("view_screen",{view_screen:0})}return C}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),S=n(321),B=n(5485),k=r.AccountsUplinkTerminal=function(){function v(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=V.loginState,I=V.currentPage,L;if(y.logged_in)I===1?L=(0,e.createComponentVNode)(2,i):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,B.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),g=function(C,h){var p=(0,t.useBackend)(h),N=p.data,V=(0,t.useLocalState)(h,"tabIndex",0),y=V[0],I=V[1],L=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:y===0,onClick:function(){function w(){return I(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:y===1,onClick:function(){function w(){return I(1)}return w}(),children:"Department Accounts"})]})})})},i=function(C,h){var p=(0,t.useLocalState)(h,"tabIndex",0),N=p[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=V.accounts,I=(0,t.useLocalState)(h,"searchText",""),L=I[0],w=I[1],A=(0,t.useLocalState)(h,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(h,"sortOrder",!0),D=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),y.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,O){var F=D?1:-1;return R[x].localeCompare(O[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function O(){return N("view_account_detail",{account_num:R.account_number})}return O}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),y.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:I.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(C,h){var p=(0,t.useLocalState)(h,"sortId","name"),N=p[0],V=p[1],y=(0,t.useLocalState)(h,"sortOrder",!0),I=y[0],L=y[1],w=C.id,A=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==w&&"transparent",width:"100%",onClick:function(){function x(){N===w?L(!I):(V(w),L(!0))}return x}(),children:[A,N===w&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=V.is_printing,I=(0,t.useLocalState)(h,"searchText",""),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return N("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})})]})},s=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=V.account_number,I=V.owner_name,L=V.money,w=V.suspended,A=V.transactions,x=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+y+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return N("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",y]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return N("set_account_pin",{account_number:y})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return N("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},d=function(C,h){var p=(0,t.useBackend)(h),N=p.act,V=p.data,y=(0,t.useLocalState)(h,"accName",""),I=y[0],L=y[1],w=(0,t.useLocalState)(h,"accDeposit",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,D){return L(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,D){return x(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},23001:function(T,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),S=n(321),B=n(5485),k=function(v){switch(v){case 0:return"Antagonists";case 1:return"Objectives";case 2:return"Security";case 3:return"All High Value Items";default:return"Something went wrong with this menu, make an issue report please!"}},g=function(v){switch(v){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,u);default:return"Something went wrong with this menu, make an issue report please!"}},i=r.AdminAntagMenu=function(){function d(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.loginState,y=N.currentPage,I=(0,t.useLocalState)(C,"tabIndex",0),L=I[0],w=I[1],A=(0,t.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{children:"This menu is a Work in Progress. Some antagonists like Nuclear Operatives and Biohazards will not show up."})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0)}return P}(),icon:"user",children:"Antagonists"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1)}return P}(),icon:"people-robbery",children:"Objectives"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2)}return P}(),icon:"handcuffs",children:"Security"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===3,onClick:function(){function P(){w(3)}return P}(),icon:"lock",children:"High Value Items"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:k(L),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",width:"300px",onInput:function(){function P(D,M){return E(M)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return p("refresh")}return P}(),children:"Refresh"})]}),children:g(L)})})]})})})}return d}(),c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.antagonists,y=(0,t.useLocalState)(C,"searchText",""),I=y[0],L=y[1],w=(0,t.useLocalState)(C,"sortId","antag_name"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{id:"name",children:"Mob Name"}),(0,e.createComponentVNode)(2,s,{id:"",children:"Buttons"}),(0,e.createComponentVNode)(2,s,{id:"antag_name",children:"Antagonist Type"}),(0,e.createComponentVNode)(2,s,{id:"status",children:"Status"})]}),V.filter((0,a.createSearch)(I,function(M){return M.name+"|"+M.status+"|"+M.antag_name})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null?O:R[A]===void 0||R[A]===null?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:M.body_destroyed?M.name:(0,e.createComponentVNode)(2,o.Button,{color:M.is_hijacker||!M.name?"red":"",tooltip:M.is_hijacker?"Hijacker":"",onClick:function(){function O(){return p("show_player_panel",{mind_uid:M.antag_mind_uid})}return O}(),children:M.name?M.name:"??? (NO NAME)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("pm",{ckey:M.ckey})}return O}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("follow",{datum_uid:M.antag_mind_uid})}return O}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("obs",{mind_uid:M.antag_mind_uid})}return O}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("tp",{mind_uid:M.antag_mind_uid})}return O}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.antag_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.status?"red":"grey",children:M.status?M.status:"Alive"})})]},R)})]}):"No Antagonists!"},m=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.objectives,y=(0,t.useLocalState)(C,"searchText",""),I=y[0],L=y[1],w=(0,t.useLocalState)(C,"sortId2","target_name"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"obj_name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"target_name",children:"Target"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"owner_name",children:"Owner"})]}),V.filter((0,a.createSearch)(I,function(M){return M.obj_name+"|"+M.target_name+"|"+(M.status?"success":"incompleted")+"|"+M.owner_name})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null||A==="target_name"&&M.no_target?O:R[A]===void 0||R[A]===null||A==="target_name"&&R.no_target?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:M.obj_desc,onClick:function(){function O(){return p("vv",{uid:M.obj_uid})}return O}(),children:M.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.no_target?"":M.track.length?M.track.map(function(O,F){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return p("follow",{datum_uid:O})}return _}(),children:[M.target_name," ",M.track.length>1?"("+(parseInt(F,10)+1)+")":""]},F)}):"No "+M.target_name+" Found"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.status?"green":"grey",children:M.status?"Success":"Incomplete"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("obj_owner",{owner_uid:M.owner_uid})}return O}(),children:M.owner_name})})]},R)})]}):"No Objectives!"},l=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.security,y=(0,t.useLocalState)(C,"searchText",""),I=y[0],L=y[1],w=(0,t.useLocalState)(C,"sortId3","health"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1],M=function(F){return F.status===2?"red":F.status===1?"orange":F.broken_bone||F.internal_bleeding?"yellow":"grey"},R=function(F){return F.status===2?"Dead":F.status===1?"Unconscious":F.broken_bone&&F.internal_bleeding?"Broken Bone, IB":F.broken_bone?"Broken Bone":F.internal_bleeding?"IB":"Alive"};return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"role",children:"Role"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"antag",children:"Antag"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"health",children:"Health"})]}),V.filter((0,a.createSearch)(I,function(O){return O.name+"|"+O.role+"|"+R(O)+"|"+O.antag})).sort(function(O,F){var _=P?1:-1;return O[A]===void 0||O[A]===null?_:F[A]===void 0||F[A]===null?-1*_:typeof O[A]=="number"?(O[A]-F[A])*_:O[A].localeCompare(F[A])*_}).map(function(O,F){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return p("show_player_panel",{mind_uid:O.mind_uid})}return _}(),children:O.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:O.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:M(O),children:R(O)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:O.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function _(){p("tp",{mind_uid:O.mind_uid})}return _}(),children:O.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:O.health/O.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:O.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("pm",{ckey:O.ckey})}return _}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("follow",{datum_uid:O.mind_uid})}return _}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){p("obs",{mind_uid:O.mind_uid})}return _}(),children:"OBS"})]})]},F)})]}):"No Security!"},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.high_value_items,y=(0,t.useLocalState)(C,"searchText",""),I=y[0],L=y[1],w=(0,t.useLocalState)(C,"sortId4","person"),A=w[0],x=w[1],E=(0,t.useLocalState)(C,"sortOrder",!0),P=E[0],D=E[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"person",children:"Carrier"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"loc",children:"Location"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"admin_z",children:"On Admin Z-level"})]}),V.filter((0,a.createSearch)(I,function(M){return M.name+"|"+M.loc})).sort(function(M,R){var O=P?1:-1;return M[A]===void 0||M[A]===null?O:R[A]===void 0||R[A]===null?-1*O:typeof M[A]=="number"?(M[A]-R[A])*O:M[A].localeCompare(R[A])*O}).map(function(M,R){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:M.obj_desc,translucent:M.admin_z,onClick:function(){function O(){return p("vv",{uid:M.uid})}return O}(),children:M.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.admin_z?"grey":"",children:M.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:M.admin_z?"grey":"",children:M.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:M.admin_z?"On Admin Z-level":""})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){p("follow",{datum_uid:M.uid})}return O}(),children:"FLW"})})]},R)})]}):"No High Value Items!"},s=function(v,C){var h=v.id,p=v.sort_group,N=p===void 0?"sortId":p,V=v.default_sort,y=V===void 0?"antag_name":V,I=v.children,L=(0,t.useLocalState)(C,N,y),w=L[0],A=L[1],x=(0,t.useLocalState)(C,"sortOrder",!0),E=x[0],P=x[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:w!==h&&"transparent",width:"100%",onClick:function(){function D(){w===h?P(!E):(A(h),P(!0))}return D}(),children:[I,w===h&&(0,e.createComponentVNode)(2,o.Icon,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},39683:function(T,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],S="Empty",B=function(m){var l=m.label,u=m.value,s=m.onCommit,d=m.onClick,v=m.onRClick,C=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:u||S,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:C,tooltipPosition:"bottom-end",onClick:d,onContextMenu:v})})]})})},k=r.AgentCard=function(){function c(m,l){var u=(0,a.useLocalState)(l,"tabIndex",0),s=u[0],d=u[1],v=function(){function C(h){switch(h){case 0:return(0,e.createComponentVNode)(2,g);case 1:return(0,e.createComponentVNode)(2,i);default:return(0,e.createComponentVNode)(2,g)}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:435,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function C(){return d(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function C(){return d(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),v(s)]})})})}return c}(),g=r.AgentCardInfo=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.registered_name,C=d.sex,h=d.age,p=d.assignment,N=d.job_icon,V=d.associated_account_number,y=d.blood_type,I=d.dna_hash,L=d.fingerprint_hash,w=d.photo,A=d.ai_tracking,x=d.photo_cooldown,E=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill someone else data.")],4),P=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill with random data.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,B,{label:"Name",value:v,tooltip:E,onCommit:function(){function D(M,R){return s("change_name",{name:R})}return D}(),onClick:function(){function D(){return s("change_name",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_name",{option:"Secondary"})}return D}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:f.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:D.icon,content:D.name,selected:C===D.name,onClick:function(){function M(){return s("change_sex",{sex:D.name})}return M}()})},D.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:h||0,maxValue:300,onChange:function(){function D(M,R){return s("change_age",{age:R})}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function D(){return s("change_occupation")}return D}(),textAlign:"middle",children:p||"[UNSET]"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{tooltip:"Change HUD icon",tooltipPosition:"bottom-end",onClick:function(){function D(){return s("change_occupation",{option:"Primary"})}return D}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{fill:!0,icon:"icons/mob/hud/job_assets.dmi",icon_state:N,verticalAlign:"bottom",my:"2px",width:"16px"})," "]})})]})}),(0,e.createComponentVNode)(2,B,{label:"Fingerprint",value:L,onCommit:function(){function D(M,R){return s("change_fingerprints",{new_fingerprints:R})}return D}(),onClick:function(){function D(){return s("change_fingerprints",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_fingerprints",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[b.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:D,selected:y===D,onClick:function(){function M(){return s("change_blood_type",{new_type:D})}return M}()})},D)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-signature",onClick:function(){function D(){return s("change_blood_type",{option:"Primary"})}return D}()})})]})}),(0,e.createComponentVNode)(2,B,{label:"DNA",value:I,onCommit:function(){function D(M,R){return s("change_dna_hash",{new_dna:R})}return D}(),onClick:function(){function D(){return s("change_dna_hash",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_dna_hash",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,B,{label:"Account",value:V||0,onCommit:function(){function D(M,R){return s("change_money_account",{new_account:R})}return D}(),onClick:function(){function D(){return s("change_money_account",{option:"Primary"})}return D}(),onRClick:function(){function D(M){M.preventDefault(),s("change_money_account",{option:"Secondary"})}return D}(),tooltip:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!x,tooltip:x?"":"You can't generate a new photo yet.",onClick:function(){function D(){return s("change_photo")}return D}(),children:w?"Update":S})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){function D(){return s("delete_info")}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){function D(){return s("clear_access")}return D}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",onClick:function(){function D(){return s("change_ai_tracking")}return D}(),children:A?"Untrackable":"Trackable"})})]})})})],4)}return c}(),i=r.AgentCardAppearances=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=(0,a.useSharedState)(l,"selectedAppearance",null),C=v[0],h=v[1],p=d.appearances,N=d.id_icon;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:p.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:N,dmIconState:V,imageSize:64,compact:!0,selected:V===C,tooltip:V,style:{opacity:V===C&&"1"||"0.5"},onClick:function(){function y(){h(V),s("change_appearance",{new_appearance:V})}return y}()},V)})})})}return c}()},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return S}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,B),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)],4)]})})}return u}(),S=function(s){return s===0?"green":s===1?"orange":"red"},B=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.air,N=h.mode,V=h.atmos_alarm,y=h.locked,I=h.alarmActivated,L=h.rcon,w=h.target_temp,A;return p.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:S(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!y&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:S(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:S(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:S(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:S(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:S(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:S(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:S(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:S(p.danger.overall),children:[A,!y&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return C(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,d){var v=(0,a.useLocalState)(d,"tabIndex",0),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return h(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return h(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function p(){return h(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function p(){return h(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},g=function(s,d){var v=(0,a.useLocalState)(d,"tabIndex",0),C=v[0],h=v[1];switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.vents;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function V(){return C("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function V(){return C("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.scrubbers;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return C("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function V(){return C("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function V(){return C("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function V(){return C("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function V(){return C("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function V(){return C("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.modes,N=h.presets,V=h.emagged,y=h.mode,I=h.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:Object.keys(p).map(function(L){var w=p[L];if(!w.emagonly||V)return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===y,onClick:function(){function A(){return C("mode",{mode:w.id})}return A}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function w(){return C("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function y(){return C("command",{cmd:"set_threshold",env:V.env,var:V.val})}return y}()})},V.val)})]},N.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.exterior_status,m=i.interior_status,l=i.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function d(){return g("force_ext")}return d}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function d(){return g("cycle_ext_door")}return d}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function d(){return g("force_int")}return d}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function d(){return g("cycle_int_door")}return d}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,S=2,B=4,k=8,g=r.AirlockElectronics=function(){function m(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&B,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:B})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:C&S,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:S})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:C&k,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:k})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:C&b,onClick:function(){function h(){return d("unrestricted_access",{unres_dir:b})}return h}()})})]})]})})},c=function(l,u){var s=(0,a.useBackend)(u),d=s.act,v=s.data,C=v.selected_accesses,h=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,content:"One",onClick:function(){function N(){return d("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!h,content:"All",onClick:function(){function N(){return d("set_one_access",{access:"all"})}return N}()})],4),accesses:p,selectedList:C,accessMod:function(){function N(V){return d("set",{access:V})}return N}(),grantAll:function(){function N(){return d("grant_all")}return N}(),denyAll:function(){function N(){return d("clear_all")}return N}(),grantDep:function(){function N(V){return d("grant_region",{region:V})}return N}(),denyDep:function(){function N(V){return d("deny_region",{region:V})}return N}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),S=-1,B=1,k=r.AlertModal=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.autofocus,C=d.buttons,h=C===void 0?[]:C,p=d.large_buttons,N=d.message,V=N===void 0?"":N,y=d.timeout,I=d.title,L=(0,t.useLocalState)(l,"selected",0),w=L[0],A=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(h.length>2?100:0),P=function(){function D(M){w===0&&M===S?A(h.length-1):w===h.length-1&&M===B?A(0):A(w+M)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:I,height:x,width:E,children:[!!y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:h[w]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(S)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(B))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,g,{selected:w})]})]})})})]})}return c}(),g=function(m,l){var u=(0,t.useBackend)(l),s=u.data,d=s.buttons,v=d===void 0?[]:d,C=s.large_buttons,h=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:h?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,V){return C&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:p===V})},V)})})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.large_buttons,C=m.button,h=m.selected,p=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:C,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:C})}return N}(),selected:h,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.change_race,l=c.species,u=c.specimen,s=c.change_gender,d=c.gender,v=c.change_eye_color,C=c.change_skin_tone,h=c.change_skin_color,p=c.change_runechat_color,N=c.change_head_accessory_color,V=c.change_hair_color,y=c.change_secondary_hair_color,I=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,D=c.head_accessory_style,M=c.change_hair,R=c.hair_styles,O=c.hair_style,F=c.change_hair_gradient,_=c.change_facial_hair,U=c.facial_hair_styles,z=c.facial_hair_style,$=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,J=c.change_body_markings,se=c.body_marking_styles,ie=c.body_marking_style,me=c.change_tail_markings,q=c.tail_marking_styles,re=c.tail_marking_style,ae=c.change_body_accessory,le=c.body_accessory_styles,Z=c.body_accessory_style,ne=c.change_alt_head,te=c.alt_head_styles,fe=c.alt_head_style,pe=!1;return(v||C||h||N||p||V||y||I||L||w||A||x)&&(pe=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.specimen,selected:ce.specimen===u,onClick:function(){function Ve(){return i("race",{race:ce.specimen})}return Ve}()},ce.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:d==="male",onClick:function(){function ce(){return i("gender",{gender:"male"})}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:d==="female",onClick:function(){function ce(){return i("gender",{gender:"female"})}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:d==="plural",onClick:function(){function ce(){return i("gender",{gender:"plural"})}return ce}()})]}),!!pe&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.headaccessorystyle,selected:ce.headaccessorystyle===D,onClick:function(){function Ve(){return i("head_accessory",{head_accessory:ce.headaccessorystyle})}return Ve}()},ce.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.hairstyle,selected:ce.hairstyle===O,onClick:function(){function Ve(){return i("hair",{hair:ce.hairstyle})}return Ve}()},ce.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ce(){return i("hair_gradient")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ce(){return i("hair_gradient_offset")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ce(){return i("hair_gradient_colour")}return ce}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ce(){return i("hair_gradient_alpha")}return ce}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.facialhairstyle,selected:ce.facialhairstyle===z,onClick:function(){function Ve(){return i("facial_hair",{facial_hair:ce.facialhairstyle})}return Ve}()},ce.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.headmarkingstyle,selected:ce.headmarkingstyle===X,onClick:function(){function Ve(){return i("head_marking",{head_marking:ce.headmarkingstyle})}return Ve}()},ce.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:se.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.bodymarkingstyle,selected:ce.bodymarkingstyle===ie,onClick:function(){function Ve(){return i("body_marking",{body_marking:ce.bodymarkingstyle})}return Ve}()},ce.bodymarkingstyle)})}),!!me&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.tailmarkingstyle,selected:ce.tailmarkingstyle===re,onClick:function(){function Ve(){return i("tail_marking",{tail_marking:ce.tailmarkingstyle})}return Ve}()},ce.tailmarkingstyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.bodyaccessorystyle,selected:ce.bodyaccessorystyle===Z,onClick:function(){function Ve(){return i("body_accessory",{body_accessory:ce.bodyaccessorystyle})}return Ve}()},ce.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(ce){return(0,e.createComponentVNode)(2,t.Button,{content:ce.altheadstyle,selected:ce.altheadstyle===fe,onClick:function(){function Ve(){return i("alt_head",{alt_head:ce.altheadstyle})}return Ve}()},ce.altheadstyle)})})]})})})}return S}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=[{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_runechat_color",text:"Change runechat color",action:"runechat_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"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function u(){return i(l.action)}return u}()},l.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.priority||[],m=i.minor||[],l=i.mode||{};return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)}),Object.keys(l).length===0&&(0,e.createVNode)(1,"li","color-good","All Areas Filtering",16),Object.keys(l).map(function(u){return(0,e.createVNode)(1,"li","color-good",[u,(0,e.createTextVNode)(" mode is "),l[u]],0,null,alert)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},S=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},B=r.AtmosControl=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=(0,a.useLocalState)(m,"tabIndex",0),v=d[0],C=d[1],h=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),h(v)]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:v.ref})}return C}()})})]},v.name)})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:d.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:S(v.danger),onClick:function(){function C(){return u("open_alarm",{aref:v.ref})}return C}()},v.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.on,m=i.pressure,l=i.max_pressure,u=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return g("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function d(){return g("min_pressure")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function d(v,C){return g("custom_pressure",{pressure:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function d(){return g("max_pressure")}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{selected:d.gas_type===u,content:d.label,onClick:function(){function v(){return g("set_filter",{filter:d.gas_type})}return v}()},d.label)})})]})})})})}return b}()},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.on,l=c.pressure,u=c.max_pressure,s=c.node1_concentration,d=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:l,onDrag:function(){function v(C,h){return i("custom_pressure",{pressure:h})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===u,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:d})]})})})})}return S}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=B.node_name,l=B.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(l-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function u(s,d){return i("set_node",{node_name:m,concentration:d/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(l+10)/100})}return u}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.on,m=i.rate,l=i.max_rate,u=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return g("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function d(){return g("min_rate")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function d(v,C){return g("custom_rate",{rate:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function d(){return g("max_rate")}return d}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),S=r.AtmosTankControl=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[u].pressure," kpa"]}):"",Object.keys(l[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:l[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"inlet",val:d})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"outlet",val:d})}return u}()})})]})}):""]})})}return B}()},92444:function(T,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.AugmentMenu=function(){function k(g,i){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,S,{context:i})})})})}return k}(),S=function(g){var i=g.context,c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.usable_swarms,s=l.ability_tabs,d=l.known_abilities,v=(0,a.useLocalState)(i,"selectedTab",s[0]),C=v[0],h=v[1],p=(0,a.useLocalState)(i,"searchText",""),N=p[0],V=p[1],y=function(){var E=s.find(function(D){return D.category_name===C.category_name});if(!E)return[];var P=Math.min(E.category_stage,4);return E.abilities.filter(function(D){return D.stage<=P&&(!N||D.name.toLowerCase().includes(N.toLowerCase()))}).sort(function(D,M){return["intruder","destroyer"].includes(C.category_name.toLowerCase())?D.stage-M.stage:0})},I=y(),L=s.find(function(x){return x.category_name===C.category_name}),w=["intruder","destroyer"].includes(C.category_name.toLowerCase()),A=function(E){var P=d.find(function(R){return R.ability_path===E.ability_path}),D=P?P.cost:E.cost,M=P&&P.current_level>0?P.current_level+" / "+P.max_level:"0 / "+E.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>u||P&&P.current_level===P.max_level,tooltip:"Purchase this ability?",onClick:function(){function R(){m("purchase",{ability_path:E.ability_path}),h(C)}return R}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:E.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:E.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,M,0,{style:{color:"green"}}),w&&E.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),E.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},E.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,u,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function x(E,P){return V(P)}return x}(),value:N}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(x){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name===x.category_name,onClick:function(){function E(){h(x),V("")}return E}(),children:(0,f.capitalize)(x.category_name)},x.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name==="upgrades",onClick:function(){function x(){return h({category_name:"upgrades"})}return x}(),children:"Upgrades"},"upgrades")]}),C.category_name==="upgrades"?(0,e.createComponentVNode)(2,B,{act:m,abilityTabs:s,knownAbilities:d,usableSwarms:u}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:I.map(A)})]})},B=function(g){var i=g.act,c=g.abilityTabs,m=g.knownAbilities,l=g.usableSwarms,u=m.filter(function(d){return d.current_levell,tooltip:"Upgrade this ability?",onClick:function(){function h(){return i("purchase",{ability_path:v.ability_path})}return h}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:v.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:v.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,v.current_level+" / "+v.max_level,0,{style:{color:"green"}}),C&&C.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),C.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},v.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:u.map(s)})}},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),S=n(25328),B=function(i,c,m,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>m)},k=r.Autolathe=function(){function g(i,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.total_amount,d=u.max_amount,v=u.metal_amount,C=u.glass_amount,h=u.busyname,p=u.busyamt,N=u.showhacked,V=u.buildQueue,y=u.buildQueueLen,I=u.recipes,L=u.categories,w=(0,o.useSharedState)(c,"category",0),A=w[0],x=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),R=M[0],O=M[1],F=(0,S.createSearch)(R,function($){return $.name}),_="";y>0&&(_=V.map(function($,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:V.indexOf($)+1})}return X}()},$)},G)}));var U=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||R)&&(u.showhacked||!$.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(G){return x(G)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(G,X){return O(X)}return $}(),mb:1}),U.map(function($){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+$.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===1,disabled:!B($,u.metal_amount,u.glass_amount,1),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:1})}return G}(),children:$.name}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===10,disabled:!B($,u.metal_amount,u.glass_amount,10),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:10})}return G}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===25,disabled:!B($,u.metal_amount,u.glass_amount,25),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:25})}return G}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===$.name&&u.busyamt===$.max_multiplier,disabled:!B($,u.metal_amount,u.glass_amount,$.max_multiplier),onClick:function(){function G(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return G}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(G){return(0,S.toTitleCase)(G)+": "+$.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:h?"green":"",children:h||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return g}()},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.implant,m=i.contains_case,l=i.gps,u=i.tag,s=(0,a.useLocalState)(B,"newTag",u),d=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return g("eject_case")}return C}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return g("tag",{newtag:d})}return C}(),onInput:function(){function C(h,p){return v(p)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===d,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return g("tag",{newtag:d})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.config,d=u.container,v=u.processing,C=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:C}),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,g):(0,e.createComponentVNode)(2,S)]})})})}return i}(),S=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.biomass,v=s.container,C=s.container_curr_reagents,h=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:d}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:h,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+h+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!d,tooltip:d?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!d,tooltip:d?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.biomass,v=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),h=C[0],p=C[1],N=Object.entries(v).map(function(V,y){var I=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*h,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:d.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),S=r.BluespaceTap=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.product||[],s=l.desiredMiningPower,d=l.miningPower,v=l.points,C=l.totalPoints,h=l.powerUse,p=l.availablePower,N=l.emagged,V=l.autoShutown,y=l.stabilizers,I=l.stabilizerPower,L=l.stabilizerPriority,w=s>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!N?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!N?"green":"red",disabled:!!N,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function A(){return m("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:y&&!N?"toggle-on":"toggle-off",content:"Stabilizers",color:y&&!N?"green":"red",disabled:!!N,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!N?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!N?"green":"red",disabled:!!N,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizer_priority")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,f.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||N,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||N,onClick:function(){function A(){return m("set",{set_power:s-1e7})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||N,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s-1e6})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:N,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function A(x,E){return m("set",{set_power:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e6})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e7})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(d)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(I)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(p)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:C})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=v,onClick:function(){function x(){return m("vend",{target:A.key})}return x}(),content:A.price})},A.key)})})})})]})})]})})})}return k}(),B=r.Alerts=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.product||[],s=l.miningPower,d=l.stabilizerPower,v=l.emagged,C=l.safeLevels,h=l.autoShutown,p=l.stabilizers,N=l.overhead;return(0,e.createFragment)([!h&&!v&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),v?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":p?s>d+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."],["paraplegic","bad","Lumbar nerves damaged."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],g={average:[.25,.5],bad:[.5,1/0]},i=function(y,I){for(var L=[],w=0;w0?y.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(y){if(y>100){if(y<300)return"mild infection";if(y<400)return"mild infection+";if(y<500)return"mild infection++";if(y<700)return"acute infection";if(y<800)return"acute infection+";if(y<900)return"acute infection++";if(y>=900)return"septic"}return""},l=r.BodyScanner=function(){function V(y,I){var L=(0,o.useBackend)(I),w=L.data,A=w.occupied,x=w.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(y){var I=y.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,d,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,h,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},s=function(y,I){var L=(0,o.useBackend)(I),w=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:S[x.stat][0],children:S[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},d=function(y){var I=y.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus||I.paraplegic?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:B.map(function(L,w){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(y){var I=y.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:i(k,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:I[L[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:g,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(y){return y.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),y.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:g,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),S=r.BookBinder=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.selectedbook,u=m.book_categories,s=[];return u.map(function(d){return s[d.description]=d.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function d(){return c("print_book")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_title")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_author")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(d){return d.description}),onSelected:function(){function d(v){return c("toggle_binder_category",{category_id:s[v]})}return d}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function d(){return(0,f.modalOpen)(g,"edit_selected_summary")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(d){return l.categories.includes(d.category_id)}).map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:d.category_id})}return v}()},d.category_id)})]})})]})})})]})}return B}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(i){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(i)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),d=s[0],v=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},h=function(){function p(N){return C[N]?(0,e.createComponentVNode)(2,S,{model:C[N]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:d===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===N,onClick:function(){function V(){return v(N)}return V}(),children:C[N]},N)})})}),h(d)]})})})}return g}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return s[i.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[i.model]}):(0,e.createComponentVNode)(2,B,{model:[i.model]})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[i.model]," detected"]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[i.model].map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.on?f(d.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return l("interface",{botref:d.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return l("call",{botref:d.UID})}return v}()})})]},d.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,v=c.canhack,C=c.emagged,h=c.remote_disabled,p=c.painame,N=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:l,onClick:function(){function y(){return i("blood")}return y}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function y(){return i("area")}return y}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function y(){return i("ejectpai")}return y}()})})]})})}return S}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.noaccess,l=c.painame,u=c.hullplating,s=c.replace,d=c.eat,v=c.make,C=c.fixfloor,h=c.nag_empty,p=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return i("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return i("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return i("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Finds tiles",disabled:m,onClick:function(){function V(){return i("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return i("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return i("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return i("anchored")}return V}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function V(){return i("ejectpai")}return V}()})})]})})}return S}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return S}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,v=c.canhack,C=c.emagged,h=c.remote_disabled,p=c.painame,N=c.shut_up,V=c.declare_crit,y=c.stationary_mode,I=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(P,D){return i("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:l,onChange:function(){function E(P,D){return i("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:y,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return S}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.noaccess,l=c.painame,u=c.check_id,s=c.check_weapons,d=c.check_warrant,v=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function h(){return i("authid")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function h(){return i("authweapon")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Wanted Criminals",disabled:m,onClick:function(){function h(){return i("authwarrant")}return h}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function h(){return i("arrtype")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function h(){return i("arrdeclare")}return h}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function h(){return i("ejectpai")}return h}()})})]})})}return S}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,g){var i=k.cell,c=(0,o.useBackend)(g),m=c.act,l=i.cell_id,u=i.occupant,s=i.crimes,d=i.brigged_by,v=i.time_left_seconds,C=i.time_set_seconds,h=i.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var N=function(){m("release",{ref:h})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},b=function(k){var g=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),g.map(function(i){return(0,e.createComponentVNode)(2,f,{cell:i},i.ref)})]})},S=r.BrigCells=function(){function B(k,g){var i=(0,o.useBackend)(g),c=i.act,m=i.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:l})})})})})}return B}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var k=function(l,u){var s,d;if(!u)return[];var v=l.findIndex(function(C){return C.name===u.name});return[(s=l[v-1])==null?void 0:s.name,(d=l[v+1])==null?void 0:d.name]},g=function(l,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(d){return d.name});return(0,t.flow)([(0,a.filter)(function(d){return d==null?void 0:d.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(d){return d.name})])(l)},i=r.CameraConsole=function(){function m(l,u){var s=(0,b.useBackend)(u),d=s.act,v=s.data,C=s.config,h=v.mapRef,p=v.activeCamera,N=g(v.cameras),V=k(N,p),y=V[0],I=V[1];return(0,e.createComponentVNode)(2,B.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,S.Button,{icon:"chevron-left",disabled:!y,onClick:function(){function L(){return d("switch_camera",{name:y})}return L}()}),(0,e.createComponentVNode)(2,S.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return d("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,S.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,u){var s=(0,b.useBackend)(u),d=s.act,v=s.data,C=(0,b.useLocalState)(u,"searchText",""),h=C[0],p=C[1],N=v.activeCamera,V=g(v.cameras,h);return(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function y(I,L){return p(L)}return y}()})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,scrollable:!0,children:V.map(function(y){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&y.name===N.name&&"Button--selected"]),y.name.trimLongStr(23),0,{title:y.name,onClick:function(){function I(){return d("switch_camera",{name:y.name})}return I}()},y.name)})})})]})}return m}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),S=r.Canister=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.portConnected,u=m.tankPressure,s=m.releasePressure,d=m.defaultReleasePressure,v=m.minReleasePressure,C=m.maxReleasePressure,h=m.valveOpen,p=m.name,N=m.canLabel,V=m.colorContainer,y=m.color_index,I=m.hasHoldingTank,L=m.holdingTank,w="";y.prim&&(w=V.prim.options[y.prim].name);var A="";y.sec&&(A=V.sec.options[y.sec].name);var x="";y.ter&&(x=V.ter.options[y.ter].name);var E="";y.quart&&(E=V.quart.options[y.quart].name);var P=[],D=[],M=[],R=[],O=0;for(O=0;Op.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:d.cooldown_time||!p.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:d.cooldown_time||!p.can_open,onClick:function(){function N(){return s("make_job_available",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:d.cooldown_time||!p.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:p.title})}return N}()})})]},p.title)})]})})]}):h=(0,e.createComponentVNode)(2,B);break;case 2:!d.authenticated||!d.scan_name?h=(0,e.createComponentVNode)(2,B):d.modify_name?h=(0,e.createComponentVNode)(2,f.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(){function p(N){return s("set",{access:N})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(N){return s("grant_region",{region:N})}return p}(),denyDep:function(){function p(N){return s("deny_region",{region:N})}return p}()}):h=(0,e.createComponentVNode)(2,k);break;case 3:d.authenticated?d.records.length?h=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||d.records.length===0||d.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||d.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):h=(0,e.createComponentVNode)(2,g):h=(0,e.createComponentVNode)(2,B);break;case 4:!d.authenticated||!d.scan_name?h=(0,e.createComponentVNode)(2,B):h=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:p.name})}return N}()})})]},p.title)})]})});break;default:h=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:h})]})})})}return c}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),S=n(25328),B=r.CargoConsole=function(){function u(s,d){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),k=function(s,d){var v=(0,o.useLocalState)(d,"contentsModal",null),C=v[0],h=v[1],p=(0,o.useLocalState)(d,"contentsModalTitle",null),N=p[0],V=p[1];if(C!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(y){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",y]},y)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function y(){h(null),V(null)}return y}()})})]})},g=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.is_public,N=h.timeleft,V=h.moving,y=h.at_station,I,L;return!V&&!y?(I="Docked off-station",L="Call Shuttle"):!V&&y?(I="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return C("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return C("showMessages")}return w}()})]})]})})})},i=function(s,d){var v,C=(0,o.useBackend)(d),h=C.act,p=C.data,N=p.accounts,V=(0,o.useLocalState)(d,"selectedAccount"),y=V[0],I=V[1],L=[];return N.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(w){return w.name}),selected:(v=N.filter(function(w){return w.account_UID===y})[0])==null?void 0:v.name,onSelected:function(){function w(A){return I(L[A])}return w}()}),N.filter(function(w){return w.account_UID===y}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.requests,N=h.categories,V=h.supply_packs,y=(0,o.useSharedState)(d,"category","Emergency"),I=y[0],L=y[1],w=(0,o.useSharedState)(d,"search_text",""),A=w[0],x=w[1],E=(0,o.useLocalState)(d,"contentsModal",null),P=E[0],D=E[1],M=(0,o.useLocalState)(d,"contentsModalTitle",null),R=M[0],O=M[1],F=(0,S.createSearch)(A,function(X){return X.name}),_=(0,o.useLocalState)(d,"selectedAccount"),U=_[0],z=_[1],$=(0,a.flow)([(0,t.filter)(function(X){return X.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(V),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(X){return X.name}),selected:I,onSelected:function(){function X(J){return L(J)}return X}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,se){return x(se)}return X}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:$.map(function(X){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return C("order",{crate:X.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||X.singleton,onClick:function(){function J(){return C("order",{crate:X.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(X.contents),O(X.name)}return J}()})]})]},X.name)})})})]})})},m=function(s,d){var v=s.request,C,h;switch(v.department){case"Engineering":h="CE",C="orange";break;case"Medical":h="CMO",C="teal";break;case"Science":h="RD",C="purple";break;case"Supply":h="CT",C="brown";break;case"Service":h="HOP",C="olive";break;case"Security":h="HOS",C="red";break;case"Command":h="CAP",C="blue";break;case"Assistant":h="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:h,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+h+" can approve it":"This Order requires approval from the "+h+" still"})})]})},l=function(s,d){var v=(0,o.useBackend)(d),C=v.act,h=v.data,p=h.requests,N=h.orders,V=h.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(y){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",y.ordernum,": ",y.supply_type," (",y.cost," credits) for ",(0,e.createVNode)(1,"b",null,y.orderedby,0)," with"," ",y.department?"The "+y.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",y.comment]}),(0,e.createComponentVNode)(2,m,{request:y})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!y.can_approve,onClick:function(){function I(){return C("approve",{ordernum:y.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!y.can_deny,onClick:function(){function I(){return C("deny",{ordernum:y.ordernum})}return I}()})]})]},y.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",y.ordernum,": ",y.supply_type," for ",(0,e.createVNode)(1,"b",null,y.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",y.comment]})]})},y.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",y.ordernum,": ",y.supply_type," for ",(0,e.createVNode)(1,"b",null,y.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",y.comment]})]})},y.ordernum)})})]})}},36232:function(T,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),f=n(72253),b=n(36036),S=n(98595),B=r.Chameleon=function(){function i(c,m){return(0,e.createComponentVNode)(2,S.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,g)})})}return i}(),k=function(c,m){m===void 0&&(m="");var l=(0,a.createSearch)(m,function(u){return u.name});return(0,t.flow)([(0,o.filter)(function(u){return u==null?void 0:u.name}),m&&(0,o.filter)(l)])(c)},g=r.ChameleonAppearances=function(){function i(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,d=(0,f.useLocalState)(m,"searchText",""),v=d[0],C=d[1],h=k(s.chameleon_skins,v),p=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function N(V,y){return C(y)}return N}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:h.map(function(N){var V=N.name+"_"+N.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:N.icon,dmIconState:N.icon_state,imageSize:64,m:.5,compact:!0,selected:V===p,tooltip:N.name,style:{opacity:V===p&&"1"||"0.5"},onClick:function(){function y(){u("change_appearance",{new_appearance:V})}return y}()},V)})})})]})}return i}()},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=(0,a.useLocalState)(B,"onlyRecent",0),m=c[0],l=c[1],u=i.cl_data,s=i.last_cl,d={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function C(h){return h in d?d[h]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return l(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function h(){return g("open_pr",{pr_number:C.num})}return h}()}),children:C.entries.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(h.etype)," ",h.etext]},h)})},C)})})})})}return b}()},91360:function(T,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(98595),S=r.CheckboxListInputModal=function(){function k(g,i){var c=(0,f.useBackend)(i),m=c.act,l=c.data,u=l.items,s=u===void 0?[]:u,d=l.message,v=d===void 0?"":d,C=l.init_value,h=l.timeout,p=l.title,N=(0,f.useLocalState)(i,"edittedItems",s),V=N[0],y=N[1],I=330+Math.ceil(v.length/3),L=function(){function w(A){A===void 0&&(A=null);var x=[].concat(V);x=x.map(function(E){return E.key===A.key?Object.assign({},E,{checked:!A.checked}):E}),y(x)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:p,width:325,height:I,children:[h&&(0,e.createComponentVNode)(2,a.Loader,{value:h}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),B=function(g,i){var c=g.filteredItems,m=g.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,u){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:u,onClick:function(){function s(){return m(l)}return s}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(s){return s.toUpperCase()})},u)})})}},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],S=[1,5,10],B=r.ChemDispenser=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i)]})})})}return c}(),k=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.amount,C=d.energy,h=d.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[C," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},N)})})})]})})})},g=function(m,l){for(var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.chemicals,C=v===void 0?[]:v,h=[],p=0;p<(C.length+1)%3;p++)h.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(N,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function y(){return s("dispense",{reagent:N.id})}return y}()},V)}),h.map(function(N,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},i=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.isBeakerLoaded,C=d.beakerCurrentVolume,h=d.beakerMaxVolume,p=d.beakerContents,N=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:d.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",h," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function V(y){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:y.id,amount:-1})}return I}()}),S.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function w(){return s("remove",{reagent:y.id,amount:I})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:y.id,amount:y.volume})}return I}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),S=r.ChemHeater=function(){function g(i,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),B=function(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.targetTemp,d=u.targetTempReached,v=u.autoEject,C=u.isActive,h=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return l("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!p,onClick:function(){function N(){return l("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(V,y){return l("adjust_temperature",{target:y})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:d?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h,format:function(){function N(V){return(0,a.toFixed)(V)+" K"}return N}()})||"\u2014"})]})})})},k=function(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,d=u.beakerCurrentVolume,v=u.beakerMaxVolume,C=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[d," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function h(){return l("eject_beaker")}return h}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),S=n(35840),B=["icon"];function k(I,L){if(I==null)return{};var w={};for(var A in I)if({}.hasOwnProperty.call(I,A)){if(L.includes(A))continue;w[A]=I[A]}return w}function g(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,i(I,L)}function i(I,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},i(I,L)}var c=[1,5,10],m=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return D}()})]})})})})},l=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(l||{}),u=r.ChemMaster=function(){function I(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,y)]})})]})}return I}(),s=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.beaker,D=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function O(){return x("eject")}return O}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function O(){return x("eject")}return O}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function O(F,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function M(R,O){return(0,e.createComponentVNode)(2,t.Box,{mb:O0&&(R=M.map(function(O){var F=O.id,_=O.sprite;return(0,e.createComponentVNode)(2,N,{icon:_,translucent:!0,onClick:function(){function U(){return x("set_sprite_style",{production_mode:P,style:F})}return U}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},y=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.loaded_pill_bottle_style,D=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},O=D.map(function(F){var _=F.color,U=F.name,z=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function $(){return x("set_container_style",{style:_})}return $}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),O]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,S=32,B=128,k=r.CloningConsole=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.tab,N=h.has_scanner,V=h.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function y(){return C("menu",{tab:1})}return y}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function y(){return C("menu",{tab:2})}return y}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,g)})]})})}return u}(),g=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.tab,p;return h===1?p=(0,e.createComponentVNode)(2,i):h===2&&(p=(0,e.createComponentVNode)(2,c)),p},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.pods,N=h.pod_amount,V=h.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&p.map(function(y,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(y.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===y.uid,onClick:function(){function L(){return C("select_pod",{uid:y.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!y.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!y.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:y.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y.biomass,ranges:{good:[2*y.biomass_storage_capacity/3,y.biomass_storage_capacity],average:[y.biomass_storage_capacity/3,2*y.biomass_storage_capacity/3],bad:[0,y.biomass_storage_capacity/3]},minValue:0,maxValue:y.biomass_storage_capacity,children:[y.biomass,"/",y.biomass_storage_capacity+" ("+100*y.biomass/y.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:y.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:y.osseous_reagent})]})})]})},y)})]})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.selected_pod_data,N=h.has_scanned,V=h.scanner_has_patient,y=h.feedback,I=h.scan_successful,L=h.cloning_cost,w=h.has_scanner,A=h.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return C("scan")}return x}(),disabled:!V||A,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return C("eject")}return x}(),disabled:!V||A,children:"Eject Patient"})]}),children:[!N&&!A&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!N||!!A)&&(0,e.createComponentVNode)(2,t.Box,{color:y.color,children:y.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.patient_limb_data,N=h.limb_list,V=h.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(y,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[y][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[y][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[y][0]+V[y][1],maxValue:p[y][5],ranges:{good:[0,p[y][5]/3],average:[p[y][5]/3,2*p[y][5]/3],bad:[2*p[y][5]/3,p[y][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[y][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[y][1]]})}),p[y][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[y][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[y][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[y][3],onClick:function(){function L(){return C("toggle_limb_repair",{limb:y,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[y][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[y][0]||p[y][1]),checked:!(V[y][0]||V[y][1]),onClick:function(){function L(){return C("toggle_limb_repair",{limb:y,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[y][2]&b),checked:!(V[y][2]&b),onClick:function(){function L(){return C("toggle_limb_repair",{limb:y,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[y][2]&S),checked:!(V[y][2]&S),onClick:function(){function L(){return C("toggle_limb_repair",{limb:y,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[y][2]&B),checked:!(V[y][2]&B),onClick:function(){function L(){return C("toggle_limb_repair",{limb:y,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},y)})})},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.patient_organ_data,N=h.organ_list,V=h.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(y,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[y][3],":"," "]}),p[y][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[y][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[y][2]&&!V[y][1],onClick:function(){function L(){return C("toggle_organ_repair",{organ:y,type:"replace"})}return L}(),children:"Replace Organ"}),!p[y][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[y][0],checked:!V[y][0],onClick:function(){function L(){return C("toggle_organ_repair",{organ:y,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[y][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[y][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[y][3]," is missing!"]}),!p[y][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[y][0],maxValue:p[y][4],ranges:{good:[0,p[y][4]/3],average:[p[y][4]/3,2*p[y][4]/3],bad:[2*p[y][4]/3,p[y][4]]},children:"Post-Cloning Damage: "+V[y][0]})]})]})},y)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.biomass,m=i.biomass_storage_capacity,l=i.sanguine_reagent,u=i.osseous_reagent,s=i.organs,d=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function v(C,h){return g("remove_reagent",{reagent:"sanguine_reagent",amount:h})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return g("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(C,h){return g("remove_reagent",{reagent:"osseous_reagent",amount:h})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return g("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!d&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function C(){return g("eject_organ",{organ_ref:v.ref})}return C}()})})]},v)})]}),!!d&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function S(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.materials,l=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,d=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:d,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"Need a money bag",disabled:!l,onClick:function(){function v(){return i("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return i("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function C(){return i("selectMaterial",{material:v.id})}return C}()},v.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function v(){return i("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return S}()},93858:function(T,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),f=n(98595),b=n(44879),S=n(14448),B=n(4454),k=n(35840),g=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function m(w,A){w.prototype=Object.create(A.prototype),w.prototype.constructor=w,l(w,A)}function l(w,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,E){return x.__proto__=E,x},l(w,A)}function u(w,A){if(w==null)return{};var x={};for(var E in w)if({}.hasOwnProperty.call(w,E)){if(A.includes(E))continue;x[E]=w[E]}return x}var s=r.ColorPickerModal=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.timeout,M=P.message,R=P.title,O=P.autofocus,F=P.default_color,_=F===void 0?"#000000":F,U=(0,t.useLocalState)(x,"color_picker_choice",(0,y.hexToHsva)(_)),z=U[0],$=U[1];return(0,e.createComponentVNode)(2,f.Window,{height:400,title:R,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[M&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:M})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!O&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,d,{color:z,setColor:$,defaultColor:_})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)(z)})})]})})]})}return w}(),d=r.ColorSelector=function(){function w(A,x){var E=A.color,P=A.setColor,D=A.defaultColor,M=function(){function F(_){P(function(U){return Object.assign({},U,_)})}return F}(),R=(0,y.hsvaToRgba)(E),O=(0,y.hsvaToHex)(E);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,N,{hsva:E,onChange:M}),(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:O,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:O})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,h,{fluid:!0,color:(0,y.hsvaToHex)(E).substring(1),onChange:function(){function F(_){g.logger.info(_),P((0,y.hexToHsva)(_))}return F}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.h,callback:function(){function F(_,U){return M({h:U})}return F}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.s,callback:function(){function F(_,U){return M({s:U})}return F}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.v,callback:function(){function F(_,U){return M({v:U})}return F}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.r,callback:function(){function F(_,U){R.r=U,M((0,y.rgbaToHsva)(R))}return F}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.g,callback:function(){function F(_,U){R.g=U,M((0,y.rgbaToHsva)(R))}return F}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.b,callback:function(){function F(_,U){R.b=U,M((0,y.rgbaToHsva)(R))}return F}(),max:255})})]})})]})})]})}return w}(),v=function(A){var x=A.value,E=A.callback,P=A.min,D=P===void 0?0:P,M=A.max,R=M===void 0?100:M,O=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(x),step:1,minValue:D,maxValue:R,onChange:E,unit:O})},C=function(A){return"#"+A},h=r.HexColorInput=function(){function w(A){var x=A.prefixed,E=A.alpha,P=A.color,D=A.fluid,M=A.onChange,R=u(A,c),O=function(){function _(U){return U.replace(/([^0-9A-F]+)/gi,"").substring(0,E?8:6)}return _}(),F=function(){function _(U){return(0,y.validHex)(U,E)}return _}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},R,{fluid:D,color:P,onChange:M,escape:O,format:x?C:void 0,validate:F})))}return w}(),p=r.ColorInput=function(w){function A(E){var P;return P=w.call(this)||this,P.props=void 0,P.state=void 0,P.handleInput=function(D){var M=P.props.escape(D.currentTarget.value);P.setState({localValue:M})},P.handleBlur=function(D){D.currentTarget&&(P.props.validate(D.currentTarget.value)?P.props.onChange(P.props.escape?P.props.escape(D.currentTarget.value):D.currentTarget.value):P.setState({localValue:P.props.escape(P.props.color)}))},P.props=E,P.state={localValue:P.props.escape(P.props.color)},P}m(A,w);var x=A.prototype;return x.componentDidUpdate=function(){function E(P,D){P.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return E}(),x.render=function(){function E(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return E}(),A}(e.Component),N=function(A){var x=A.hsva,E=A.onChange,P=function(O){E({s:O.left*100,v:100-O.top*100})},D=function(O){E({s:(0,b.clamp)(x.s+O.left*100,0,100),v:(0,b.clamp)(x.v-O.top*100,0,100)})},M={"background-color":(0,y.hsvaToHslString)({h:x.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,B.Interactive,{onMove:P,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(x.s)+"%, Brightness "+Math.round(x.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-x.v/100,left:x.s/100,color:(0,y.hsvaToHslString)(x)})}),2,{style:M})},V=function(A){var x=A.className,E=A.hue,P=A.onChange,D=function(F){P({h:360*F.left})},M=function(F){P({h:(0,b.clamp)(E+F.left*360,0,360)})},R=(0,k.classes)(["react-colorful__hue",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{onMove:D,onKey:M,"aria-label":"Hue","aria-valuenow":Math.round(E),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:E/360,color:(0,y.hsvaToHslString)({h:E,s:100,v:100,a:1})})}),2)},S=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(F){P({s:100*F.left})},M=function(F){P({s:(0,b.clamp)(E.s+F.left*100,0,100)})},R=(0,k.classes)(["react-colorful__saturation",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:0,v:E.v,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:100,v:E.v,a:1})+")"},onMove:D,onKey:M,"aria-label":"Saturation","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:E.s/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},I=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(F){P({v:100*F.left})},M=function(F){P({v:(0,b.clamp)(E.v+F.left*100,0,100)})},R=(0,k.classes)(["react-colorful__value",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:100,a:1})+")"},onMove:D,onKey:M,"aria-label":"Value","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:E.v/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},L=function(A){var x=A.className,E=A.color,P=A.onChange,D=A.target,M=(0,y.hsvaToRgba)(E),R=function($){M[D]=$,P((0,y.rgbaToHsva)(M))},O=function($){R(255*$.left)},F=function($){R((0,b.clamp)(M[D]+$.left*255,0,255))},_=(0,k.classes)(["react-colorful__"+D,x]),U=D==="r"?"rgb("+Math.round(M.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(M.g)+",0)":"rgb(0,0,"+Math.round(M.b)+")";return(0,e.createVNode)(1,"div",_,(0,e.createComponentVNode)(2,B.Interactive,{onMove:O,onKey:F,"aria-valuenow":M[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:M[D]/255,color:U})}),2)}},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(d,v){return g("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},l)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),f(p)]})})})}return u}(),y=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.authenticated,N=h.noauthbutton,V=h.esc_section,S=h.esc_callable,I=h.esc_recallable,L=h.esc_status,w=h.authhead,A=h.is_ai,x=h.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:N,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function D(){return C("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!S&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return C("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||A,onClick:function(){function D(){return C("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},B=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,g)},k=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin,N=h.gamma_armory_location,V=h.admin_levels,S=h.authenticated,I=h.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return C("send_to_cc_announcement_page")}return L}()}),S===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return C("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return C("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return C("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return C("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return C("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return C("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return C("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,g)})]})},g=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.msg_cooldown,N=h.emagged,V=h.cc_cooldown,S=h.security_level_color,I=h.str_security_level,L=h.levels,w=h.authcapt,A=h.authhead,x=h.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:S,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||p>0,onClick:function(){function M(){return C("announce")}return M}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return C("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return C("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return C("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function M(){return C("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return C("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return C("messagelist")}return M}()})})]})})})],4)},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.stat_display,N=h.authhead,V=h.current_message_title,S=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:L.name})}return w}()},L.name)}),I=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return C("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!N,onClick:function(){function L(){return C("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!N,onClick:function(){function L(){return C("setmsg2")}return L}()})})]})})})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.authhead,N=h.current_message_title,V=h.current_message,S=h.messages,I=h.security_level,L;if(N)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return C("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=S.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||N===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=s.levels,N=s.required_access,V=s.use_confirm,S=h.security_level;return V?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===S,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===S,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)})},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin,N=h.possible_cc_sounds;if(!p)return C("main");var V=(0,a.useLocalState)(d,"subtitle",""),S=V[0],I=V[1],L=(0,a.useLocalState)(d,"text",""),w=L[0],A=L[1],x=(0,a.useLocalState)(d,"classified",0),E=x[0],P=x[1],D=(0,a.useLocalState)(d,"beepsound","Beep"),M=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function O(){return C("main")}return O}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:S,onChange:function(){function O(F,_){return I(_)}return O}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function O(F,_){return A(_)}return O}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function O(){return C("make_cc_announcement",{subtitle:S,text:w,classified:E,beepsound:M})}return O}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:M,onSelected:function(){function O(F){return R(F)}return O}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function O(){return C("test_sound",{sound:M})}return O}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function O(){return P(!E)}return O}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.biomass,m=i.compost,l=i.biomass_capacity,u=i.compost_capacity,s=i.potassium,d=i.potassium_capacity,v=i.potash,C=i.potash_capacity,h=(0,a.useSharedState)(B,"vendAmount",1),p=h[0],N=h[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[s," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[v," / ",C," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(S,I){return N(I)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return g("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function y(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,B(C,h)}function B(C,h){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},B(C,h)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},g=["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(Math.random()*2e4),"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"],i=r.Contractor=function(){function C(h,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,I;S.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):S.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:S.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:g,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return C}(),c=function(h,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,I=S.tc_available,L=S.tc_paid_out,w=S.completed_contracts,A=S.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},h,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(h,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,I=S.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},h,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(h,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,I=S.contracts,L=S.contract_active,w=S.can_extract,A=!!L&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(R,O){return" ("+O.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},h,{children:I.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function O(){return D("target_photo_"+M.uid+".png")}return O}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function O(){return V("abort")}return O}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(O,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:O.name+" ("+O.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:F+1})}return _}()},F)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(h){if(!(!h.objective||h.status>1)){var p=h.objective.locs.user_area_id,N=h.objective.locs.user_coords,V=h.objective.locs.target_area_id,S=h.objective.locs.target_coords,I=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(S[1]-N[1],S[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(h,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,I=S.rep,L=S.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},h,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},d=function(C){function h(N){var V;return V=C.call(this,N)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(h,C);var p=h.prototype;return p.tick=function(){function N(){var V=this.props,S=this.state;if(S.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=S.currentDisplay;I.push(V.allMessages[S.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return N}(),p.componentDidMount=function(){function N(){var V=this,S=this.props.linesPerSecond,I=S===void 0?2.5:S;this.timer=setInterval(function(){return V.tick()},1e3/I)}return N}(),p.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),p.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return N}(),h}(e.Component),v=function(h,p){var N=(0,t.useLocalState)(p,"viewingPhoto",""),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return S("")}return I}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.slowFactor,m=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return g("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return g("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return g("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,d){return g("slowFactor",{value:d})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return g("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return g("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),y=n(76910),B=n(98595),k=n(96184),g=["color"];function i(v,C){if(v==null)return{};var h={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(C.includes(p))continue;h[p]=v[p]}return h}var c=function(C,h){return C.dead?"Deceased":parseInt(C.health,10)<=h?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},m=function(C,h){return C.dead?"red":parseInt(C.health,10)<=h?"orange":parseInt(C.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function v(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,S=(0,o.useLocalState)(h,"tabIndex",V.tabIndex),I=S[0],L=S[1],w=function(){function x(E){L(E),N("set_tab_index",{tab_index:E})}return x}(),A=function(){function x(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,B.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:I===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:I===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),A(I)]})})})}return v}(),u=function(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,S=V.possible_levels,I=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,A=(0,a.sortBy)(function(M){return!w.includes(M.name)},function(M){return M.name})(V.crewmembers||[]),x=(0,o.useLocalState)(h,"search",""),E=x[0],P=x[1],D=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,O){return P(O)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:L?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:S,selected:I,onSelected:function(){function M(R){return N("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return N("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),A.filter(D).map(function(M,R){var O=w.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:O,tooltip:"Mark on map",onClick:function(){function F(){return N(O?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return F}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:c(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function F(){return N("track",{track:M.ref})}return F}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},R)})]})]})},s=function(C,h){var p=C.color,N=i(C,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},N,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},d=function(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,S=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function I(L){return N("set_zoom",{zoom:L})}return I}(),onOffsetChange:function(){function I(L,w){return N("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return I}(),children:V.crewmembers.filter(function(I){return I.sensor_type===3||V.ignoreSensors}).map(function(I){var L=m(I,V.critThreshold),w=S.includes(I.name),A=function(){return V.isObserver?N("track",{track:I.ref}):null},x=function(){return N(w?"remove_highlighted_name":"add_highlighted_name",{name:I.name})},E=I.name+" ("+I.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:I.x,y:I.y,tooltip:E,color:L,onClick:A,onDblClick:x},I.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:I.x,y:I.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:x},I.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,B)})})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isOperating,d=u.hasOccupant,v=u.occupant,C=v===void 0?[]:v,h=u.cellTemperature,p=u.cellTemperatureStatus,N=u.isBeakerLoaded,V=u.cooldownProgress,S=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return l("ejectOccupant")}return L}(),disabled:!d,children:"Eject"}),children:d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return l("ejectBeaker")}return L}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return l(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return l(S?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:S?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,d=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!d&&"average",children:[d||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function C(h){return Math.round(h)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!u&&(0,e.createComponentVNode)(2,B)]})})}return k}(),y=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.frozen_items,s=function(v){var C=v.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(d.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:d.uid})}return v}()})},d)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function d(){return m("all_items")}return d}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],B=[5,10,20,30,50],k=r.DNAModifier=function(){function p(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.irradiating,A=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,C,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return p}(),g=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.selectedMenuKey,A=L.hasOccupant,x=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},D)})}),E]})},c=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,h,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(D){return D.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(D,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,h,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},u=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.buffers,A=w.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,d)})]})},s=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=N.id,A=N.name,x=N.buffer,E=L.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return I("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},d=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.isBeakerLoaded,A=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[B.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(N,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},h=function(N,V){for(var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,P=N.action,D=w.split(""),M=0,R=[],O=function(){for(var U=F/E+1,z=[],$=function(){var J=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===U&&x===J,content:D[F+G],mb:"0",onClick:function(){function se(){return I(P,{block:U,subblock:J})}return se}()}))},G=0;Gd.spawnpoints?"red":"green",children:[d.total," total, versus ",d.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:h})}return N}()})})]})})})},g=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function h(){return s("view_player_panel",{uid:C.sender_uid})}return h}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=(0,a.useLocalState)(l,"text",""),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function p(N,V){return h(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:C})}return p}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function B(k,g){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return B}(),y=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function y(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.power,l=c.code,u=c.frequency,s=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(){function v(C){return(0,a.toFixed)(C,1)}return v}(),width:"80px",onChange:function(){function v(C,h){return i("freq",{freq:h})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function v(C,h){return i("code",{code:h})}return v}()})})]})})})})}return y}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.data,m=c.emoji_list,l=(0,t.useLocalState)(g,"searchText",""),u=l[0],s=l[1],d=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(C,h){return s(h)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:d.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function C(){y(v.name)}return C}()},v.name)})})})})}return B}(),y=function(k){var g=document.createElement("input"),i=":"+k+":";g.value=i,document.body.appendChild(g),g.select(),document.execCommand("copy"),document.body.removeChild(g)}},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),y=n(88510),B=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)]})})})}return i}(),k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},g=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.evo_points,v=s.ability_tabs,C=s.purchased_abilities,h=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),N=p[0],V=p[1],S=(0,t.useLocalState)(m,"searchText",""),I=S[0],L=S[1],w=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=w[0],x=w[1],E=function(R,O){if(O===void 0&&(O=""),!R||R.length===0)return[];var F=(0,a.createSearch)(O,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(F),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return x(N.abilities);x(E(v.map(function(O){return O.abilities}).flat(),R))},D=function(R){V(R),x(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,O){P(O)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:h?"square-o":"check-square-o",selected:!h,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:h?"check-square-o":"square-o",selected:h,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===M,onClick:function(){function R(){D(M)}return R}(),children:M.category},M)})}),A.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),C.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>d||C.includes(M.power_path),content:"Evolve",onClick:function(){function O(){return u("purchase",{power_path:M.power_path})}return O}()})})]}),!!h&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),y=n(98595),B=["id","amount","lineDisplay","onClick"];function k(p,N){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(N.includes(S))continue;V[S]=p[S]}return V}var g=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function p(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.building,A=L.linked;return A?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,C)}return p}(),m=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.materials,A=L.capacity,x=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(x/A*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,d,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return I("withdraw",{id:E})}return P}()},E)})})},l=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.curCategory,A=L.categories,x=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),D=P[0],M=P[1],R=(0,t.createSearch)(D,function(z){return z.name}),O=x.filter(R),F=(0,o.useLocalState)(V,"levelsModal",!1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:A,onSelected:function(){function z($){return I("category",{cat:$})}return z}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return I("queueall")}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return U(!0)}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return I("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z($,G){return M(G)}return z}()}),O.map(function(z){return(0,e.createComponentVNode)(2,v,{design:z},z.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.building,A=L.buildStart,x=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:A,current:E,end:x,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:x-E,format:function(){function P(D,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.queue,A=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,D){return P+D.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return I("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return I("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,D){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[D+1,". ",P.name,D>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return I("queueswap",{from:D+1,to:D})}return M}()}),D0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,d,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},d=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=N.id,A=N.amount,x=N.lineDisplay,E=N.onClick,P=k(N,B),D=L.materials[w]||0,M=A||D;if(!(M<=0&&!(w==="metal"||w==="glass"))){var R=A&&A>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},P,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/g*10)/10," ","sheets)"]})]})],4)})))}},v=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=N.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function A(){return I("build",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function A(){return I("queue",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(A){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,d,{id:A[0],amount:A[1],lineDisplay:!0})},A[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},C=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function x(){return I("linktonetworkcontroller",{target_controller:A.addr})}return x}()})})]},A.addr)})]})})})})},h=function(N,V){var S=(0,o.useBackend)(V),I=S.act,L=S.data,w=L.tech_levels,A=(0,o.useLocalState)(V,"levelsModal",!1),x=A[0],E=A[1];return x?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var D=P.name,M=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:D,children:M},D)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.open,u=m.feedback,s=m.occupant,d=m.occupant_name,v=m.occupant_status,C=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function S(){return f.get(v)}return S}(),V=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(S){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(S).icon,content:b.get(S).label,onClick:function(){function I(){return c("experiment",{experiment_type:S})}return I}()},S)})})]})}return p}(),h=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function p(){return c("door")}return p}()}),children:h})]})})}return B}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,y=function(g){var i="good",c=80,m=95,l=110,u=120;return gl?i="average":g>u&&(i="bad"),i},B=r.ExternalAirlockController=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.chamber_pressure,s=l.exterior_status,d=l.interior_status,v=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:d==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:d==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return g("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return g("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return g("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return g("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return g("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return g("send")}return c}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=k.config,m=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return g("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=k.icon_state,u=k.direction,s=k.isSelected,d=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:l,direction:u,onClick:d,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.availableStyles,u=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function d(){return c("cycle_style",{offset:-1})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:u,width:"150px",nochevron:!0,onSelected:function(){function d(v){return c("select_style",{style:v})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function d(){return c("cycle_style",{offset:1})}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{icon_state:d,isSelected:u===d,onSelect:function(){function v(){return c("select_style",{style:d})}return v}()})},d)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[d+b.WEST,d,d+b.EAST].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:v===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{icon_state:u,direction:v,isSelected:v===s,onSelect:function(){function C(){return c("select_direction",{direction:v})}return C}()})},v)})},d)})})})})]})})})}return B}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,u){if(!(!l||!u)){if(l[2]!==u[2])return null;var s=Math.atan2(u[1]-l[1],u[0]-l[0]),d=Math.sqrt(Math.pow(u[1]-l[1],2)+Math.pow(u[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:d}}},B=r.GPS=function(){function m(l,u){var s=(0,t.useBackend)(u),d=s.data,v=d.emped,C=d.active,h=d.area,p=d.position,N=d.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:h,position:p})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(l,u){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},g=function(l,u){var s=(0,t.useBackend)(u),d=s.act,v=s.data,C=v.active,h=v.tag,p=v.same_z,N=(0,t.useLocalState)(u,"newTag",h),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return d("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:h,onEnter:function(){function I(){return d("tag",{newtag:V})}return I}(),onInput:function(){function I(L,w){return S(w)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:h===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return d("tag",{newtag:V})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return d("same_z")}return I}()})})]})})},i=function(l,u){var s=l.title,d=l.area,v=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[d&&(0,e.createFragment)([d,(0,e.createVNode)(1,"br")],0),b(v)]})})},c=function(l,u){var s=(0,t.useBackend)(u),d=s.data,v=d.position,C=d.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(h){return Object.assign({},h,y(v,h.position))}).map(function(h,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(h.position)})]},p)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,l,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),h===0?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,y)]})}),2)]})}return u}(),y=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},B=function(s,d){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.has_seed,N=h.seed,V=h.has_disk,S=h.disk,I,L;return p?I=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?L=S.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return C("select_empty_disk")}return w}()})})})]})})},g=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.disk,N=h.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function S(){return C("extract",{id:V.id})}return S}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})})})]},"Core Genes")},i=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.reagent_genes,p=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:h,do_we_show:p})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.trait_genes,p=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:h,do_we_show:p})},m=function(s,d){var v=s.title,C=s.gene_set,h=s.do_we_show,p=(0,a.useBackend)(d),N=p.act,V=p.data,S=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:h?C.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(S!=null&&S.can_extract),icon:"save",onClick:function(){function L(){return N("extract",{id:I.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return N("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},l=function(s,d){var v=s.title,C=s.gene_set,h=s.do_we_show,p=(0,a.useBackend)(d),N=p.act,V=p.data,S=V.has_seed,I=V.empty_disks,L=V.stat_disks,w=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!S,icon:"arrow-circle-down",onClick:function(){function E(){return N("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!S,content:"Replace",onClick:function(){function E(){return N("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(y,B){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.data,c=i.security,m=i.medical,l=i.diagnostic,u=i.pressure,s=i.radioactivity,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:217,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,b,{label:"Pressure",type:"pressure",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:s,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=B.label,m=B.type,l=m===void 0?null:m,u=B.is_active,s=B.act_on,d=s===void 0?"hud_on":s,v=B.act_off,C=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function h(){return i(u?C:d,{hud_type:l})}return h}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function u(){return g("dispense",{gland_id:l.id})}return u}()},l.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.charging_state,m=i.charge_count,l=i.breaker,u=i.ext_power,s=function(){function v(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),d=function(){function v(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[d(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function v(){return g("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return i("access",{access:l})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(l){return i("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return i("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.amount,d=u.energy,v=u.maxEnergy,C=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[d," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(h,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===h,content:h,onClick:function(){function N(){return l("amount",{amount:h})}return N}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"dispense"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"remove"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"isolate"})}return h}()})]})})]})})})},k=function(i,c){for(var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.chemicals,d=s===void 0?[]:s,v=u.current_reagent,C=[],h=0;h<(d.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[d.map(function(p,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return l("dispense",{reagent:p.id})}return V}()},N)}),C.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.on,u=m.user_health,s=m.minHealth,d=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:d,value:v,format:function(){function C(h){return(0,a.toFixed)(h,1)}return C}(),width:"80px",onDrag:function(){function C(h,p){return c("alarm_health",{alarm_health:p})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return B}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=(0,a.useLocalState)(k,"currentDeck",""),l=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),d=s[0],v=s[1],C=c.decks,h=c.ai_override,p=c.emagged,N=function(){function V(S){i("select_deck",{deck:S}),u(S),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[d&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===l,onClick:function(){function S(){return N(V)}return S}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return i("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return i("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(B,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function i(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,g)]})})]})}return i}(),y=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.help;if(d)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},B=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.lines,v=s.playing,C=s.repeat,h=s.maxRepeats,p=s.tempo,N=s.minTempo,V=s.maxTempo,S=s.tickLag,I=s.volume,L=s.minVolume,w=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:d.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:h,value:C,stepPixelSize:59,onChange:function(){function x(E,P){return u("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+S})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-S})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return u("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.allowedInstrumentNames,v=s.instrumentLoaded,C=s.instrument,h=s.canNoteShift,p=s.noteShift,N=s.noteShiftMin,V=s.noteShiftMax,S=s.sustainMode,I=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return S===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(M){return(0,a.round)(M*100)/100+" seconds"}return D}(),onChange:function(){function D(M,R){return u("setlinearfalloff",{new:R/10})}return D}()})):S===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(M,R){return u("setexpfalloff",{new:R})}return D}()})),d.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:d,selected:C,width:"50%",onSelected:function(){function D(M){return u("switchinstrument",{name:M})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&h)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:V,value:p,stepPixelSize:2,format:function(){function D(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return D}(),onChange:function(){function D(M,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,mb:"0.4rem",onSelected:function(){function D(M){return u("setsustainmode",{new:M})}return D}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(M,R){return u("setdropoffvolume",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},g=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.playing,v=s.lines,C=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||d,icon:"plus",content:"Add Line",onClick:function(){function h(){return u("newline",{line:v.length+1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function h(){return u("edit")}return h}()})],4),children:!!C&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(h,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:p+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:p+1})}return N}()})],4),children:h},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),y=n(51057),B=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},g=3,i=function(l){var u="";if(l.altKey&&(u+="Alt"),l.ctrlKey&&(u+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(u+="Shift"),l.location===g&&(u+="Numpad"),B(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var s=l.keyCode-48;u+="Shift"+s}else{var d=l.key.toUpperCase();u+=k[d]||d}return u},c=r.KeyComboModal=function(){function m(l,u){var s=(0,t.useBackend)(u),d=s.act,v=s.data,C=v.init_value,h=v.large_buttons,p=v.message,N=p===void 0?"":p,V=v.title,S=v.timeout,I=(0,t.useLocalState)(u,"input",C),L=I[0],w=I[1],A=(0,t.useLocalState)(u,"binding",!0),x=A[0],E=A[1],P=function(){function R(O){if(!x){O.key===a.KEY.Enter&&d("submit",{entry:L}),(0,a.isEscape)(O.key)&&d("cancel");return}if(O.preventDefault(),B(O)){D(i(O)),E(!1);return}else if(O.key===a.KEY.Escape){D(C),E(!1);return}}return R}(),D=function(){function R(O){O!==L&&w(O)}return R}(),M=130+(N.length>30?Math.ceil(N.length/3):0)+(N.length&&h?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[S&&(0,e.createComponentVNode)(2,y.Loader,{value:S}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(O){P(O)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){D(C),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return g("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return g("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return g("reset")}return l}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.data,m=i.config,l=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," ",d.units]}),2)]},d.name)})})})})]})})})}return B}(),y=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.isAdmin,s=l.isSlaved,d=l.isMalf,v=l.isAIMalf,C=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:d?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(d||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function h(){return m("set_view",{set_view:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function h(){return m("set_view",{set_view:1})}return h}()})]}),C===0&&(0,e.createComponentVNode)(2,b),C===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.has_zeroth_laws,s=l.zeroth_laws,d=l.has_ion_laws,v=l.ion_laws,C=l.ion_law_nr,h=l.has_inherent_laws,p=l.inherent_laws,N=l.has_supplied_laws,V=l.supplied_laws,S=l.channels,I=l.channel,L=l.isMalf,w=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,P=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,B,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!d&&(0,e.createComponentVNode)(2,B,{title:C,laws:v,ctx:i}),!!h&&(0,e.createComponentVNode)(2,B,{title:"Inherent",laws:p,ctx:i}),!!N&&(0,e.createComponentVNode)(2,B,{title:"Supplied",laws:V,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:S.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function d(){return m("transfer_laws",{transfer_laws:s.ref})}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)})]})},s.name)})})},B=function(g,i){var c=(0,a.useBackend)(g.ctx),m=c.act,l=c.data,u=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:g.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),g.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function d(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return d}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function d(){return m("edit_law",{edit_law:s.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function d(){return m("delete_law",{delete_law:s.ref})}return d}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function C(h,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),y=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=h.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:I.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return w}()})]})},B=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=h.args,L=S.selected_report,w=S.report_categories,A=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.selected_rating,L=Array(10).fill().map(function(w,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},g=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=h.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:I.id,user_ckey:L})}return w}()})]})},i=function(h,p){var N=(0,a.useBackend)(p),V=N.data,S=(0,a.useLocalState)(p,"tabIndex",0),I=S[0],L=S[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(h,p){var N=(0,a.useLocalState)(p,"tabIndex",0),V=N[0];switch(V){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,d);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.searchcontent,L=S.book_categories,w=S.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},l=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.external_booklist,L=S.archive_pagenumber,w=S.num_pages,A=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.programmatic_booklist,L=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(w,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return x}()})]})]},A)})]})})},s=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.selectedbook,L=S.book_categories,w=S.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},d=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},w)})]})})},v=function(h,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,I=S.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",B),(0,f.modalRegisterBodyOverride)("rate_info",g)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.pagestate;switch(d){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,g);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return d}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ckey_search")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function d(){return u("view_reported_books")}return d}()})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:v.id})}return C}()})]})]},v.id)})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",d,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function h(){return u("delete_book",{bookid:C.id})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function h(){return u("view_book",{bookid:C.id})}return h}()})]})]},C.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),y=n(98595),B=r.ListInputModal=function(){function i(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,d=s.items,v=d===void 0?[]:d,C=s.message,h=C===void 0?"":C,p=s.init_value,N=s.timeout,V=s.title,S=(0,f.useLocalState)(m,"selected",v.indexOf(p)),I=S[0],L=S[1],w=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=w[0],x=w[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],D=E[1],M=function(){function G(X){var J=z.length-1;if(X===b.KEY_DOWN)if(I===null||I===J){var se;L(0),(se=document.getElementById("0"))==null||se.scrollIntoView()}else{var ie;L(I+1),(ie=document.getElementById((I+1).toString()))==null||ie.scrollIntoView()}else if(X===b.KEY_UP)if(I===null||I===0){var me;L(J),(me=document.getElementById(J.toString()))==null||me.scrollIntoView()}else{var q;L(I-1),(q=document.getElementById((I-1).toString()))==null||q.scrollIntoView()}}return G}(),R=function(){function G(X){X!==I&&L(X)}return G}(),O=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(X){var J=String.fromCharCode(X),se=v.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(se){var ie,me=v.indexOf(se);L(me),(ie=document.getElementById(me.toString()))==null||ie.scrollIntoView()}}return G}(),_=function(){function G(X){var J;X!==P&&(D(X),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),U=function(){function G(){x(!A),D("")}return G}(),z=v.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),$=330+Math.ceil(h.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function G(X){var J=window.event?X.which:X.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(X.preventDefault(),M(J)),J===b.KEY_ENTER&&(X.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(X.preventDefault(),F(J)),J===b.KEY_ESCAPE&&(X.preventDefault(),u("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return U()}return G}()}),className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:z,onClick:R,onFocusSearch:O,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,g,{filteredItems:z,onSearch:_,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return i}(),k=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,d=c.onClick,v=c.onFocusSearch,C=c.searchBarVisible,h=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function V(){return d(N)}return V}(),onDblClick:function(){function V(S){S.preventDefault(),u("submit",{entry:s[h]})}return V}(),onKeyDown:function(){function V(S){var I=window.event?S.which:S.keyCode;C&&I>=b.KEY_A&&I<=b.KEY_Z&&(S.preventDefault(),v())}return V}(),selected:N===h,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},N)})})},g=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,d=c.onSearch,v=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function h(p){p.preventDefault(),u("submit",{entry:s[C]})}return h}(),onInput:function(){function h(p,N){return d(N)}return h}(),placeholder:"Search...",value:v})}},26826:function(T,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b={Default:function(){function c(m,l){return m.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,l){return m.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,l){return m.gear.cost-l.gear.cost}return c}()},y=r.Loadout=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=(0,t.useLocalState)(l,"search",!1),C=v[0],h=v[1],p=(0,t.useLocalState)(l,"searchText",""),N=p[0],V=p[1],S=(0,t.useLocalState)(l,"category",Object.keys(d.gears)[0]),I=S[0],L=S[1],w=(0,t.useLocalState)(l,"tweakedGear",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,f.Window,{width:1105,height:650,children:[A&&(0,e.createComponentVNode)(2,i,{tweakedGear:A,setTweakedGear:x}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,B,{category:I,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,g,{setTweakedGear:x})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:I,search:C,setSearch:h,searchText:N,setSearchText:V})})]})})]})})]})}return c}(),B=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.category,C=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(d.gears).map(function(h){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===v,style:{"white-space":"nowrap"},onClick:function(){function p(){return C(h)}return p}(),children:h},h)})})},k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.user_tier,C=d.gear_slots,h=d.max_gear_slots,p=m.category,N=m.search,V=m.setSearch,S=m.searchText,I=m.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),w=L[0],A=L[1],x=(0,t.useLocalState)(l,"sortReverse",!1),E=x[0],P=x[1],D=(0,a.createSearch)(S,function(R){return R.name}),M;return S.length>2?M=Object.entries(d.gears).reduce(function(R,O){var F=O[0],_=O[1];return R.concat(Object.entries(_).map(function(U){var z=U[0],$=U[1];return{key:z,gear:$}}))},[]).filter(function(R){var O=R.gear;return D(O)}):M=Object.entries(d.gears[p]).map(function(R){var O=R[0],F=R[1];return{key:O,gear:F}}),M.sort(b[w]),E&&(M=M.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function R(O){return A(O)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:E?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return P(!E)}return R}()})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:S,onInput:function(){function R(O){return I(O.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:N,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){V(!N),I("")}return R}()})})]}),children:M.map(function(R){var O=R.key,F=R.gear,_=12,U=Object.keys(d.selected_gears).includes(O),z=F.cost===1?F.cost+" Point":F.cost+" Points",$=(0,e.createComponentVNode)(2,o.Box,{children:[F.name.length>_&&(0,e.createComponentVNode)(2,o.Box,{children:F.name}),F.gear_tier>v&&(0,e.createComponentVNode)(2,o.Box,{mt:F.name.length>_&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([F.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:F.allowed_roles.map(function(J){return(0,e.createComponentVNode)(2,o.Box,{children:J},J)})}),tooltipPosition:"left"}),Object.entries(F.tweaks).map(function(J){var se=J[0],ie=J[1];return ie.map(function(me){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:me.icon,tooltip:me.tooltip,tooltipPosition:"top"},se)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:F.desc,tooltipPosition:"top"})],0),X=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:F.gear_tier>0&&"Tier "+F.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:F.icon,dmIconState:F.icon_state,tooltip:(F.name.length>_||F.gear_tier>0)&&$,tooltipPosition:"bottom",selected:U,disabled:F.gear_tier>v||C+F.cost>h&&!U,buttons:G,buttonsAlt:X,onClick:function(){function J(){return s("toggle_gear",{gear:O})}return J}(),children:F.name},O)})})},g=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.setTweakedGear,C=Object.entries(d.gears).reduce(function(h,p){var N=p[0],V=p[1],S=Object.entries(V).filter(function(I){var L=I[0];return Object.keys(d.selected_gears).includes(L)}).map(function(I){var L=I[0],w=I[1];return Object.assign({key:L},w)});return h.concat(S)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function h(){return s("clear_loadout")}return h}()}),children:C.map(function(h){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:h.icon,dmIconState:h.icon_state,buttons:(0,e.createFragment)([Object.entries(h.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function p(){return v(h)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function p(){return s("toggle_gear",{gear:h.key})}return p}()})],0),children:h.name},h.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d.gear_slots,maxValue:d.max_gear_slots,ranges:{bad:[d.max_gear_slots,1/0],average:[d.max_gear_slots*.66,d.max_gear_slots],good:[0,d.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",d.gear_slots,"/",d.max_gear_slots]})})})})]})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.tweakedGear,C=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:v.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function h(){return C("")}return h}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(v.tweaks).map(function(h){var p=h[0],N=h[1];return N.map(function(V){var S=d.selected_gears[v.key][p];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:S?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function I(){return s("set_tweak",{gear:v.key,tweak:p})}return I}()}),children:[S||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+S}})]},p)})})})})})})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(M,R){return P("configure",{key:w,value:R,ref:x})}return D}()})},b=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return P("configure",{key:w,value:!A,ref:x})}return D}()})},y=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return P("configure",{key:w,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},B=function(I,L){var w=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(L),D=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(R){return D("configure",{key:w,value:R,ref:E})}return M}()})},k=function(I,L){var w=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,D=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,B,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},g=function(I,L){var w=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&A?"bad":"good",children:w&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},i=function(I,L){var w=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,D=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},c=function(I,L){var w=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,D=I.statusbrute,M=I.statusburn,R=I.statustoxin,O=I.statusoxy,F=I.statustemp,_=I.statusnutrition,U=I.statusfingerprints,z=I.statusdna,$=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!$&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),$.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:g,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,L){var w=I.configuration_data,A=I.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},d=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.malfunctioning,D=x.locked,M=x.open,R=x.selected_module,O=x.complexity,F=x.complexity_max,_=x.wearer_name,U=x.wearer_job,z=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function $(){return A("activate")}return $}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function $(){return A("lock")}return $}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[O," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},C=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.control,D=x.helmet,M=x.chestplate,R=x.gauntlets,O=x.boots,F=x.core,_=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:O||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},h=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.modules,D=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.complexity_max,P=x.modules,D=(0,a.useLocalState)(L,"module_configuration",null),M=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(O){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:O.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===O.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:O.configuration_data,module_ref:O.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[O.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[O.cooldown>0&&O.cooldown/10||"0","/",O.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:O.ref})}return F}(),icon:"bullseye",selected:O.module_active,tooltip:d(O.module_type),tooltipPosition:"left",disabled:!O.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(O.ref)}return F}(),icon:"cog",selected:M===O.ref,tooltip:"Configure",tooltipPosition:"left",disabled:O.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:O.ref})}return F}(),icon:"thumbtack",selected:O.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!O.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:O.description})]})})},O.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function S(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return S}(),V=r.MODsuit=function(){function S(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return S}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),B=r.MagnetController=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.autolink,s=l.code,d=l.frequency,v=l.linkedMagnets,C=l.magnetConfiguration,h=l.path,p=l.pathPosition,N=l.probing,V=l.powerState,S=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(d/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:S.value,minValue:S.min,maxValue:S.max,onChange:function(){function I(L,w){return m("set_speed",{speed:w})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=I[0],w=I[1],A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,b.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:h.map(function(I,L){var w=y.get(I)||{icon:"question"},A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),v.map(function(I,L){var w=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function P(D,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function P(D,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.recharge_port,m=c&&c.mech,l=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return g("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function d(){return c("send_message",{mt:s.uid})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function d(){return c("get_log",{mt:s.uid})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function d(){return c("shock",{mt:s.uid})}return d}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return B}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),y=n(321),B=n(5485),k=n(22091),g={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:g[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.loginState,M=P.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,d):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,N):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return w}(),u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.records,R=(0,t.useLocalState)(x,"searchText",""),O=R[0],F=R[1],_=(0,t.useLocalState)(x,"sortId","name"),U=_[0],z=_[1],$=(0,t.useLocalState)(x,"sortOrder",!0),G=$[0],X=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(se,ie){return F(ie)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,S,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,S,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,S,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,S,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(O,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,se){var ie=G?1:-1;return J[U].localeCompare(se[U])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[J.p_stat],onClick:function(){function se(){return P("view_record",{view_record:J.ref})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return P("del_all_med_records")}return D}()})})]})})},d=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical,R=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function O(){return P("print_record")}return O}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function O(){return P("new_med_record")}return O}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function O(){return P("del_med_record")}return O}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,h)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function O(){return c(x,M)}return O}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},C=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},O)})})})})},h=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return P("del_comment",{del_comment:O+1})}return F}()})]},O)})})})},p=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.virus,R=(0,t.useLocalState)(x,"searchText",""),O=R[0],F=R[1],_=(0,t.useLocalState)(x,"sortId2","name"),U=_[0],z=_[1],$=(0,t.useLocalState)(x,"sortOrder2",!0),G=$[0],X=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(se,ie){return F(ie)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(O,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,se){var ie=G?1:-1;return J[U].localeCompare(se[U])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function se(){return P("vir",{vir:J.D})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:g[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},S=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),R=M[0],O=M[1],F=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function U(){P===F?O(!R):(D(F),O(!0))}return U}(),children:[_,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),R=M[0],O=M[1],F=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function U(){P===F?O(!R):(D(F),O(!0))}return U}(),children:[_,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.screen,R=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function O(){P("screen",{screen:2})}return O}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function O(){P("screen",{screen:5})}return O}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function O(){P("screen",{screen:6})}return O}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function O(){return P("screen",{screen:7})}return O}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=g.product,s=g.productImage,d=g.productCategory,v=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:d})}return C}()})})]})},b=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),u=l[0],s=m.products,d=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:d[C.path],productCategory:v[u]},C.name)})})},y=r.MerchVendor=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function d(){return m("change")}return d}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),B=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),u=l[0],s=l[1],d=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items","gridLayout"];function y(l,u){if(l==null)return{};var s={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(u.includes(d))continue;s[d]=l[d]}return s}var B={Alphabetical:function(){function l(u,s){return u-s}return l}(),Availability:function(){function l(u,s){return-(u.affordable-s.affordable)}return l}(),Price:function(){function l(u,s){return u.price-s.price}return l}()},k=r.MiningVendor=function(){function l(u,s){var d=(0,t.useLocalState)(s,"gridLayout",!1),v=d[0],C=d[1];return(0,e.createComponentVNode)(2,f.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c,{gridLayout:v,setGridLayout:C}),(0,e.createComponentVNode)(2,i,{gridLayout:v})]})})})}return l}(),g=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.has_id,p=C.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:h,children:h?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.has_id,p=C.id,N=C.items,V=u.gridLayout,S=(0,t.useLocalState)(s,"search",""),I=S[0],L=S[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"descending",!1),P=E[0],D=E[1],M=(0,a.createSearch)(I,function(F){return F[0]}),R=!1,O=Object.entries(N).map(function(F,_){var U=Object.entries(F[1]).filter(M).map(function(z){return z[1].affordable=h&&p.points>=z[1].price,z[1]}).sort(B[A]);if(U.length!==0)return P&&(U=U.reverse()),R=!0,(0,e.createComponentVNode)(2,m,{title:F[0],items:U,gridLayout:V},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?O:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var d=u.gridLayout,v=u.setGridLayout,C=(0,t.useLocalState)(s,"search",""),h=C[0],p=C[1],N=(0,t.useLocalState)(s,"sort",""),V=N[0],S=N[1],I=(0,t.useLocalState)(s,"descending",!1),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function A(x,E){return p(E)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:d?"list":"table-cells-large",height:1.75,tooltip:d?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function A(){return v(!d)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(B),width:"100%",onSelected:function(){function A(x){return S(x)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function A(){return w(!L)}return A}()})})]})})},m=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=u.title,p=u.items,N=u.gridLayout,V=y(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:h},V,{children:p.map(function(S){return N?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:S.icon,dmIconState:S.icon_state,disabled:!C.has_id||C.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ae>=10?"9+":ae})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:O===1,onClick:function(){function le(){return x("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:O===2&&F[U-1]===le,onClick:function(){function Z(){return x("channel",{uid:le.uid})}return Z}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:me?"minus-square":"minus-square-o",title:"Censor Mode: "+(me?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return q(!me)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function le(){return x("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function le(){return x("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,B.TemporaryNotice),re]})]})})]})}return I}(),s=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=L.icon,P=E===void 0?"":E,D=L.iconSpin,M=L.selected,R=M===void 0?!1:M,O=L.security,F=O===void 0?!1:O,_=L.onClick,U=L.title,z=L.children,$=i(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:_},$,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),z]})))},d=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.screen,D=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,O=E.channels,F=E.stories,_=E.wanted,U=(0,t.useLocalState)(w,"fullStories",[]),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"censorMode",!1),X=G[0],J=G[1],se=P===2&&M>-1?O[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,C,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:se?se.icon:"newspaper",mr:"0.5rem"}),se?se.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,me){return(0,e.createComponentVNode)(2,C,{story:ie},me)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!se&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!se.admin&&!D,selected:se.censored,icon:se.censored?"comment-slash":"comment",content:se.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return x("censor_channel",{uid:se.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,y.modalOpen)(w,"manage_channel",{uid:se.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:se.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:se.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:se.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:se.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ie,me){return ie+me.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.jobs,D=E.wanted,M=Object.entries(P).reduce(function(R,O){var F=O[0],_=O[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,C,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},l[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(O){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!O.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",O.title]},O.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.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."})]})]})},C=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=L.story,D=L.wanted,M=D===void 0?!1:D,R=E.is_admin,O=(0,t.useLocalState)(w,"fullStories",[]),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"censorMode",!1),z=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,h,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,X){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},X)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(F,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},h=function(L,w){var A=L.name,x=i(L,g),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return D(A)}return M}()},x)))},p=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var D=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,O=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||R||"Unknown"),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ie=se[0],me=se[1],q=(0,t.useLocalState)(w,"isPublic",D?!!(P!=null&&P.public):!1),re=q[0],ae=q[1],le=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),Z=le[0],ne=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function te(fe,pe){return _(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function te(fe,pe){return $(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function te(fe,pe){return J(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,pe){return me(pe)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"toggle-on":"toggle-off",content:re?"Yes":"No",onClick:function(){function te(){return ae(!re)}return te}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Z,icon:Z?"lock":"lock-open",content:Z?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return ne(!Z)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(w,L.id,"",{author:F,name:z.substr(0,49),description:X.substr(0,128),icon:ie,public:re?1:0,admin_locked:Z?1:0})}return te}()})]})},V=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.channels,M=E.channel_idx,R=M===void 0?-1:M,O=!!L.args.is_admin,F=L.args.scanned_user,_=D.slice().sort(function(te,fe){if(R<0)return 0;var pe=D[R-1];if(pe.uid===te.uid)return-1;if(pe.uid===fe.uid)return 1}).filter(function(te){return O||!te.frozen&&(te.author===F||!!te.public)}),U=(0,t.useLocalState)(w,"author",F||"Unknown"),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"title",""),ie=se[0],me=se[1],q=(0,t.useLocalState)(w,"body",""),re=q[0],ae=q[1],le=(0,t.useLocalState)(w,"adminLocked",!1),Z=le[0],ne=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!O,width:"100%",value:z,onInput:function(){function te(fe,pe){return $(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:_.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return J(fe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function te(fe,pe){return me(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:re,onInput:function(){function te(fe,pe){return ae(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return x(P?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,h,{name:"inserted_photo_"+P.uid+".png",float:"right"}),re.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Z,icon:Z?"lock":"lock-open",content:Z?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return ne(!Z)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||X.trim().length===0||ie.trim().length===0||re.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(w,"create_story","",{author:z,channel:X,title:ie.substr(0,127),body:re.substr(0,1023),admin_locked:Z?1:0})}return te}()})]})},S=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,O=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||R||"Unknown"),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=se[0],me=se[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function q(re,ae){return _(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function q(re,ae){return $(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function q(re,ae){return J(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()}),!!P&&(0,e.createComponentVNode)(2,h,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return me(!ie)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){x("clear_wanted_notice"),(0,y.modalClose)(w)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(w,L.id,"",{author:F,name:z.substr(0,127),description:X.substr(0,511),admin_locked:ie?1:0})}return q}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",N),(0,y.modalRegisterBodyOverride)("manage_channel",N),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",S)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function y(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return i("interact",{paper:l.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),i("showFull",{paper:l.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:l.name,children:(0,a.decodeHtmlEntities)(l.contents)})},l.ref)})})})})}return y}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return g("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return g("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return g("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return g("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return g("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return g("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return g("deploy")}return c}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),y=n(98595),B=r.NumberInputModal=function(){function g(i,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.init_value,d=u.large_buttons,v=u.message,C=v===void 0?"":v,h=u.timeout,p=u.title,N=(0,f.useLocalState)(c,"input",s),V=N[0],S=N[1],I=function(){function A(x){x!==V&&S(x)}return A}(),L=function(){function A(x){x!==V&&S(x)}return A}(),w=140+Math.max(Math.ceil(C.length/3),C.length>0&&d?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:p,width:270,height:w,children:[h&&(0,e.createComponentVNode)(2,a.Loader,{value:h}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:V}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return g}(),k=function(i,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.min_value,d=u.max_value,v=u.init_value,C=u.round_value,h=i.input,p=i.onClick,N=i.onChange,V=Math.round(h!==s?Math.max(h/2,s):d/2),S=h===s&&s>0||h===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===s,icon:"angle-double-left",onClick:function(){function I(){return p(s)}return I}(),tooltip:h===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:s,maxValue:d,onChange:function(){function I(L,w){return N(w)}return I}(),onEnter:function(){function I(L,w){return l("submit",{entry:w})}return I}(),value:h})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===d,icon:"angle-double-right",onClick:function(){function I(){return p(d)}return I}(),tooltip:h===d?"Max":"Max ("+d+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:S,icon:"divide",onClick:function(){function I(){return p(V)}return I}(),tooltip:S?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===v,icon:"redo",onClick:function(){function I(){return p(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],B={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.OperatingComputer=function(){function l(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.hasOccupant,p=C.choice,N;return p?N=(0,e.createComponentVNode)(2,m):N=h?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return l}(),i=function(u,s){var d=(0,t.useBackend)(s),v=d.data,C=v.occupant,h=C.activeSurgeries;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(p,N){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:p[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[p[1]]/100,ranges:B,children:(0,a.round)(C[p[1]])},N)},N)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:k[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Active surgeries",level:"2",children:C.inSurgery&&h?h.map(function(p,N){return(0,e.createComponentVNode)(2,f.Section,{style:{textTransform:"capitalize"},title:p.name+" ("+p.location+")",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:p.step},N)},N)},N)}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.verbose,p=C.health,N=C.healthAlarm,V=C.oxy,S=C.oxyAlarm,I=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:S,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return v(I?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function y(d,v){var C=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(C)return(C=C.call(d)).next.bind(C);if(Array.isArray(d)||(C=B(d))||v&&d&&typeof d.length=="number"){C&&(d=C);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(d,v){if(d){if(typeof d=="string")return k(d,v);var C={}.toString.call(d).slice(8,-1);return C==="Object"&&d.constructor&&(C=d.constructor.name),C==="Map"||C==="Set"?Array.from(d):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(d,v):void 0}}function k(d,v){(v==null||v>d.length)&&(v=d.length);for(var C=0,h=Array(v);CC},m=function(v,C){var h=v.name,p=C.name;if(!h||!p)return 0;var N=h.match(g),V=p.match(g);if(N&&V&&h.replace(g,"")===p.replace(g,"")){var S=parseInt(N[1],10),I=parseInt(V[1],10);return S-I}return c(h,p)},l=function(v,C){var h=v.searchText,p=v.source,N=v.title,V=v.color,S=v.sorted,I=p.filter(i(h));return S&&I.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+p.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["job_icons16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function S(){return p("orbit",{ref:V.ref})}return S}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function d(v,C){for(var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.alive,S=N.antagonists,I=N.highlights,L=N.response_teams,w=N.tourist,A=N.auto_observe,x=N.dead,E=N.ssd,P=N.ghosts,D=N.misc,M=N.npcs,R=(0,t.useLocalState)(C,"searchText",""),O=R[0],F=R[1],_={},U=y(S),z;!(z=U()).done;){var $=z.value;_[$.antag]===void 0&&(_[$.antag]=[]),_[$.antag].push($)}var G=Object.entries(_);G.sort(function(J,se){return c(J[0],se[0])});var X=function(){function J(se){for(var ie=0,me=[G.map(function(ae){var le=ae[0],Z=ae[1];return Z}),w,I,V,P,E,x,M,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(J){var se=J[0],ie=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:se+" - ("+ie.length+")",level:2,children:ie.filter(i(O)).sort(m).map(function(me){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:me},me.name)})},se)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:L,searchText:O,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Tourists",source:w,searchText:O,color:"violet"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:V,searchText:O,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:P,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"SSD",source:E,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:x,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:D,searchText:O,sorted:!1})]})})}return d}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function y(d){if(d==null)throw new TypeError("Cannot destructure "+d)}var B=(0,b.createLogger)("OreRedemption"),k=function(v){return v.toLocaleString("en-US")+" pts"},g=r.OreRedemption=function(){function d(v,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return d}(),i=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.id,S=N.points,I=N.disk,L=Object.assign({},(y(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:S>0?"good":"grey",bold:S>0&&"good",children:k(S)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.sheets,S=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.alloys,S=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(v,C){var h;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(h=v.columns)==null?void 0:h.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(S,I){return p(N.value?"sheet":"alloy",{id:N.id,amount:I})}return V}()})})]})})},s=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(S,I){return p(N.value?"sheet":"alloy",{id:N.id,amount:I})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),y=function(g){var i;try{i=b("./"+g+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",g);throw m}var c=i[g];return c||(0,f.routingError)("missingExport",g)},B=r.PAI=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.app_template,s=l.app_icon,d=l.app_title,v=y(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),d,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),y=function(c){var m;try{m=b("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var l=m[c];return l||(0,f.routingError)("missingExport",c)},B=r.PDA=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=y(d.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:d.icon,mr:1}),d.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,g)})]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.idInserted,v=s.idLink,C=s.stationTime,h=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:d?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:h?["Eject "+h]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!d.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:d.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.active,l=c.anchored,u=c.broken,s=c.emagged,d=c.fuel_type,v=c.fuel_usage,C=c.fuel_stored,h=c.fuel_cap,p=c.is_ai,N=c.tmp_current,V=c.tmp_max,S=c.tmp_overheat,I=c.output_max,L=c.power_gen,w=c.output_set,A=c.has_fuel,x=C/h,E=N/V,P=w*L,D=Math.round(C/v*2),M=Math.round(D/60),R=D>120?M+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function O(){return i("toggle_power")}return O}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function O(F,_){return i("change_power",{change_power:_})}return O}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[S>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),S>20&&S<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),S>1&&S<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),S===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function O(){return i("eject_fuel")}return O}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function l(u,s){var d=(0,a.useBackend)(s),v=d.data,C=v.beakerLoaded,h=v.beakerContainsBlood,p=v.beakerContainsVirus,N=v.resistances,V=N===void 0?[]:N,S;return C?h?h&&!p&&(S=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):S=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):S=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[S&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:S})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return l}(),b=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!h,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},y=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.beakerContainsVirus,p=u.strain,N=p.commonName,V=p.description,S=p.diseaseAgent,I=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,A=p.transmissionRoute,x=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!h)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return x&&(N!=null&&N!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:S}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},B=function(u,s){var d,v=(0,a.useBackend)(s),C=v.act,h=v.data,p=!!h.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return C("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(d=u.sectionTitle)!=null?d:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,y,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var d,v=(0,a.useBackend)(s),C=v.act,h=v.data,p=h.selectedStrainIndex,N=h.strains,V=N[p-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(N.length===1){var S;return(0,e.createFragment)([(0,e.createComponentVNode)(2,B,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((S=N[0].symptoms)==null?void 0:S.length)>0&&(0,e.createComponentVNode)(2,i,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,w){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function x(){return C("switch_strain",{strain_index:w+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,B,{strain:V,strainIndex:p}),((d=V.symptoms)==null?void 0:d.length)>0&&(0,e.createComponentVNode)(2,i,{className:"remove-section-bottom-padding",strain:V})]})})})},g=function(u){return u.reduce(function(s,d){return s+d},0)},i=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(d,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.synthesisCooldown,p=C.beakerContainsVirus,N=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(V,S){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[S%c.length],disabled:!!h,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:S+1})}return I}(),mr:"0.5em"}),V]},S)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(79646),b=n(36352),y=n(98595),B=n(35840),k=n(38307),g=function(u){switch(u){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},i=r.ParticleAccelerator=function(){function l(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,y.Window,{width:395,height:h?160:A==="north"||A==="south"?540:465,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{dmIcon:"sync",content:"Connect",onClick:function(){function x(){return v("scan")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"good":"bad",children:h?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:!h,onClick:function(){function x(){return v("power")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!h||N===0,onClick:function(){function x(){return v("remove_strength")}return x}(),mr:"4px"}),N,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!h||N===V,onClick:function(){function x(){return v("add_strength")}return x}(),ml:"4px"})]})]})}),h?"":(0,e.createComponentVNode)(2,t.Section,{title:A?"EM Acceleration Chamber Orientation: "+(0,o.capitalize)(A):"Place EM Acceleration Chamber Next To Console",children:A===0?"":A==="north"||A==="south"?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,c)})]})})}return l}(),c=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(A==="east"?I:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(A==="east"?w:I).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})},m=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(A==="north"?I:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(A==="north"?w:I).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,tooltip:x.status,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})}},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},y=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,B)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function d(){return m("choose_pda",{selectedPda:s})}return d}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function d(){return m("eject_pda")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function d(){return m("paint_pda")}return d}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.busy,u=m.category,s=m.display_craftable_only,d=m.display_compact,v=m.prev_cat,C=m.next_cat,h=m.subcategory,p=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:d?"check-square-o":"square-o",selected:d,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),h&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:d.ref})}return v}()}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)}),!l&&s.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)})]})})},y=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:d.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)}),!l&&s.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},y=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:l.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:l.uid})}return u}()})]})},l.name)})})}},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var y={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}},B=function(i,c){var m=i.tempKey,l=b(i,f),u=y[m];if(!u)return null;var s=(0,a.useBackend)(c),d=s.data,v=s.act,C=d.currentTemp,h=u.label,p=u.icon,N=m===C,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:V},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),h]})))},k=r.PoolController=function(){function g(i,c){for(var m=(0,a.useBackend)(c),l=m.data,u=l.emagged,s=l.currentTemp,d=y[s]||y.normal,v=d.label,C=d.color,h=[],p=0,N=Object.entries(y);p50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(h>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,B.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(h)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var C,h,p=v.status;switch(p){case"AOn":C=!0,h=!0;break;case"AOff":C=!0,h=!1;break;case"On":C=!1,h=!0;break;case"Off":C=!1,h=!1;break}var N=(h?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,B.ColorBox,{color:h?"good":"bad",content:C?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),y=n(5485),B=n(98595),k=r.PrisonerImplantManager=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.loginState,d=u.prisonerInfo,v=u.chemicalInfo,C=u.trackingInfo,h;if(!s.logged_in)return(0,e.createComponentVNode)(2,B.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,B.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.name?"eject":"id-card",selected:d.name,content:d.name?d.name:"-----",tooltip:d.name?"Eject ID":"Insert ID",onClick:function(){function N(){return l("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[d.points!==null?d.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:d.points===null,content:"Reset",onClick:function(){function N(){return l("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[d.goal!==null?d.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:d.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:d.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return V}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:N.name,dmIcon:N.icon,dmIconState:N.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function S(){return g("purchase",{purchase:N.itemID})}return S}(),children:[N.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:N.desc},N.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),y=r.RCD=function(){function l(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),B=function(u,s){var d=(0,a.useBackend)(s),v=d.data,C=v.matter,h=v.max_matter,p=h*.7,N=h*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[N,p],bad:[-1/0,N]},value:C,maxValue:h,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+h+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,g,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,g,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,g,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,g,{mode_type:"Deconstruction"})]})})})},g=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=u.mode_type,p=C.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:h,selected:p===h?1:0,onClick:function(){function N(){return v("mode",{mode:h})}return N}()})})},i=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.door_name,p=C.electrochromic,N=C.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,h,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},c=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.tab,p=C.locked,N=C.one_access,V=C.selected_accesses,S=C.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:h===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:h===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):h===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:S,selectedList:V,accessMod:function(){function I(L){return v("set",{access:L})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(L){return v("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return v("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.door_types_ui_list,p=C.door_type,N=u.check_number,V=[],S=0;Sf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return N("toggleSilent")}return A}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:S>f?"envelope-open-text":"envelope",onClick:function(){function A(){return N("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return N("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return N("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return N("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return N("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:10})}return A}()})]})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return N("setScreen",{setScreen:8})}return A}()})})]})})},i=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S=V.department,I=[],L;switch(C.purpose){case"ASSISTANCE":I=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":I=V.supply_dept,L="Request supplies from another department";break;case"INFO":I=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.filter(function(w){return w!==S}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return N("writeInput",{write:w,priority:y})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return N("writeInput",{write:w,priority:B})}return A}()})]},w)})})})})},c=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S;switch(C.type){case"SUCCESS":S="Message sent successfully";break;case"FAIL":S="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:S,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function I(){return N("setScreen",{setScreen:0})}return I}()})})},m=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S,I;switch(C.type){case"MESSAGES":S=V.message_log,I="Message Log";break;case"SHIPPING":S=V.shipping_log,I="Shipping label print log";break}return S.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),children:S.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,A){return(0,e.createVNode)(1,"div",null,w,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},l=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S=V.recipient,I=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return N("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return N("department",{department:S})}return A}()})})})],4)},u=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S=V.message,I=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return N("writeAnnouncement")}return L}()})],4),children:S})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(I&&S),onClick:function(){function L(){return N("sendAnnouncement")}return L}()})]})})],4)},s=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S=V.shipDest,I=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:I})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(S&&I),onClick:function(){function w(){return N("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:S===w?"Selected":"Select",selected:S===w,onClick:function(){function A(){return N("shipSelect",{shipSelect:w})}return A}()})},w)})})})})],4)},d=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,S=V.secondaryGoalAuth,I=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?S?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(S&&I),onClick:function(){function L(){return N("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.network_name,l=c.has_disk,u=c.disk_name,s=c.linked,d=c.techs,v=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function C(){return i("unlink")}return C}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+v+")",icon:"save",selected:1,onClick:function(){function C(){return i("eject_disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function C(){return i("saveall2disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function C(){return i("saveall2network")}return C}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(d).map(function(C){return!(d[C].network_level>0||d[C].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!l||!s,onClick:function(){function h(){return i("savetech2network",{tech:C})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!l||!s,onClick:function(){function h(){return i("savetech2disk",{tech:C})}return h}()})]})]},C)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return i("linktonetworkcontroller",{target_controller:l.addr})}return u}()})})]},l.addr)})]})})}return y}()},68303:function(T,r,n){"use strict";r.__esModule=!0,r.AnalyzerMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.AnalyzerMenu=function(){function y(B,k){var g=(0,t.useBackend)(k),i=g.data,c=g.act,m=i.tech_levels,l=i.loaded_item,u=i.linked_analyzer,s=i.can_discover;return u?l?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function d(){c("deconstruct")}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function d(){c("eject_item")}return d}()}),!s||(0,e.createComponentVNode)(2,o.Button,{content:"Discover",icon:"atom",onClick:function(){function d(){c("discover")}return d}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,b,{techLevel:d},d.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"NO SCIENTIFIC ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(B,k){var g=B.techLevel,i=g.name,c=g.desc,m=g.level,l=g.object_level,u=g.ui_icon,s=l!=null,d=s&&l>=m?Math.max(l,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",i]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:l}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([d!==m&&"upgraded-level"]),children:d})]})}},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_data;return d?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:d.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},y=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_data;if(!d)return null;var v=d.name,C=d.lathe_types,h=d.materials,p=C.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,N.name,0,{style:{"text-transform":"capitalize"}})," x ",N.amount]},N.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return s("updt_design")}return N}()})})]})},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!d,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},c)))},k=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_type,v=u.to_copy,C=c.title;return(0,e.createComponentVNode)(2,B,{title:C,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(h,p){return h.name.localeCompare(p.name)}).map(function(h){var p=h.name,N=h.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){d===f?s("copy_tech",{id:N}):s("copy_design",{id:N})}return V}()})},N)})})})})},g=r.DataDiskMenu=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.data,s=u.disk_type,d=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return d?(0,e.createComponentVNode)(2,B,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return d?(0,e.createComponentVNode)(2,B,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return i}()},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.data,i=k.act,c=g.category,m=g.matching_designs,l=g.menu,u=l===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(d){var v=d.id,C=d.name,h=d.can_build,p=d.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:h<1,onClick:function(){function N(){return i(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return i(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return i(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},v)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data,g=B.act,i=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";g(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var l=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function d(){var v=c?"disposeP":"disposeI";g(v,{id:s})}return d}()})},s)})})]})}return f}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.data,c=g.act,m=i.menu,l=i.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function d(){c("setCategory",{category:s})}return d}()})},s)})})]})}return y}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data,g=B.act,i=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,l=c.amount,u=c.name,s=function(){function h(p){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";g(N,{id:m,amount:p})}return h}(),d=Math.floor(l/2e3),v=l<1,C=d===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",d," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function h(){return s(1)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function h(){return s("custom")}return h}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function h(){return s(5)}return h}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function h(){return s(50)}return h}()})],0):null})]},m)})})})}return f}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data,g=k.total_materials,i=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),y=n(42878),B=n(70497),k=["menu"];function g(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}var i=t.Tabs.Tab,c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.menu===o.MENU.LATHE?["nav_protolathe",h.submenu_protolathe]:["nav_imprinter",h.submenu_imprinter],N=p[0],V=p[1],S=s.menu,I=g(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i,Object.assign({selected:V===S,onClick:function(){function L(){return C(N,{menu:S})}return L}()},I)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,B.LatheChemicalStorage)}},l=r.LatheMenu=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.menu,p=C.linked_lathe,N=C.linked_imprinter;return h===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):h===o.MENU.IMPRINTER&&!N?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(C.menu===o.MENU.LATHE?C.submenu_protolathe:C.submenu_imprinter)]})}return u}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function g(i,c){return k("search",{to_search:c})}return g}()})})}return f}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return g("linktonetworkcontroller",{target_controller:m.addr})}return l}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(B,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return y}(),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.sync,l=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){i("unlink")}return u}()}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"gears",color:"red",content:"[ADMIN] Maximize research levels",onClick:function(){function u(){return i("maxresearch")}return u}()}):null]})})},b=function(B,k){var g=(0,a.useBackend)(k),i=g.data,c=g.act,m=i.linked_analyzer,l=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scientific Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"analyze"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!l,content:l?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),y=n(9681),B=n(81421),k=n(6256),g=n(68303),i=["menu"];function c(p,N){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(N.includes(S))continue;V[S]=p[S]}return V}var m=o.Tabs.Tab,l=r.MENU={MAIN:0,DISK:2,ANALYZE:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(N){switch(N){case l.MAIN:return(0,e.createComponentVNode)(2,h);case l.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case l.ANALYZE:return(0,e.createComponentVNode)(2,g.AnalyzerMenu);case l.LATHE:case l.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case l.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},d=function(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data,w=L.menu,A=N.menu,x=c(N,i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===A,onClick:function(){function E(){return I("nav",{menu:A})}return E}()},x)))},v=r.RndConsole=function(){function p(N,V){var S=(0,a.useBackend)(V),I=S.act,L=S.data;if(!L.linked)return(0,e.createComponentVNode)(2,B.LinkMenu);var w=L.menu,A=L.linked_analyzer,x=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,d,{icon:"flask",menu:l.MAIN,children:"Research"}),!!A&&(0,e.createComponentVNode)(2,d,{icon:"microscope",menu:l.ANALYZE,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,d,{icon:"print",menu:l.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,d,{icon:"memory",menu:l.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,d,{icon:"floppy-disk",menu:l.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,d,{icon:"cog",menu:l.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,C)]})})})}return p}(),C=function(N,V){var S=(0,a.useBackend)(V),I=S.data,L=I.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},h=function(N,V){var S=(0,a.useBackend)(V),I=S.data,L=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var A=w.id,x=w.name,E=w.desc,P=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},A)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.ion,s=(0,t.useLocalState)(i,"mainTabIndex",0),d=s[0],v=s[1],C=function(){function h(p){switch(p){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,B);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:d===0,onClick:function(){function h(){return v(0)}return h}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:d===1,onClick:function(){function h(){return v(1)}return h}(),children:"Design Management"},"DesignPage")]}),C(d)]})})}return k}(),y=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=(0,t.useLocalState)(i,"filterType","ALL"),s=u[0],d=u[1],v=l.network_password,C=l.network_name,h=l.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var N=s==="ALL"?h:h.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"Unset",selected:C,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"Unset",selected:v,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return d("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return d("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return d("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return d("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return d("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),N.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function S(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return S}()})})]},V.id)})]})]})],4)},B=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.designs,s=(0,t.useLocalState)(i,"searchText",""),d=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function C(h,p){return v(p)}return C}()}),u.filter((0,a.createSearch)(d,function(C){return C.name})).map(function(C){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:C.name,checked:!C.blacklisted,onClick:function(){function h(){return m(C.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:C.uid})}return h}()},C.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.active,s=l.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function d(){return m("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function d(){return m("link",{addr:s.addr})}return d}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,g){var i=k/g;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},u)})})})}return B}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.can_hack,l=c.safety,u=c.show_lock_all,s=c.cyborgs,d=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function v(){return i("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return i("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:d,can_hack:m})]})})}return y}(),b=function(B,k){var g=B.cyborgs,i=B.can_hack,c=(0,a.useBackend)(k),m=c.act,l=c.data,u="Detonate";return l.detonate_cooldown>0&&(u+=" ("+l.detonate_cooldown+"s)"),g.length?g.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return m("hackbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function d(){return m("stopbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function d(){return m("killbot",{uid:s.uid})}return d}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.dial,s=l.open,d=l.locked,v=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,B)]})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.dial,s=l.open,d=l.locked,v=function(h,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!d,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+h,iconRight:p,onClick:function(){function N(){return m(p?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:d+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},B=function(g,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControlSatellitesList=r.SatelliteControlMapView=r.SatelliteControlFooter=r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=(0,a.useLocalState)(i,"tabIndex",l.tabIndex),s=u[0],d=u[1],v=function(){function h(p){d(p),m("set_tab_index",{tab_index:p})}return h}(),C=function(){function h(p){switch(p){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"table",selected:s===0,onClick:function(){function h(){return v(0)}return h}(),children:"Satellites"},"Satellites"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"map-marked-alt",selected:s===1,onClick:function(){function h(){return v(1)}return h}(),children:"Map View"},"MapView")]})}),C(s),(0,e.createComponentVNode)(2,B)]})})})}return k}(),b=r.SatelliteControlSatellitesList=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.satellites;return(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+s.id,children:[s.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:s.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function d(){return m("toggle",{id:s.id})}return d}()})]},s.id)})})})}return k}(),y=r.SatelliteControlMapView=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.satellites,s=l.has_goal,d=l.defended,v=l.collisions,C=l.fake_meteors,h=l.zoom,p=l.offsetX,N=l.offsetY,V=0;return(0,e.createComponentVNode)(2,t.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{zoom:h,offsetX:p,offsetY:N,onZoom:function(){function S(I){return m("set_zoom",{zoom:I})}return S}(),onOffsetChange:function(){function S(I,L){return m("set_offset",{offset_x:L.offsetX,offset_y:L.offsetY})}return S}(),children:[u.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"satellite",tooltip:S.active?"Shield Satellite":"Inactive Shield Satellite",color:S.active?"white":"grey",onClick:function(){function I(){return m("toggle",{id:S.id})}return I}()},V++)}),s&&d.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"circle",tooltip:"Successful Defense",color:"blue"},V++)}),s&&v.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"x",tooltip:"Meteor Hit",color:"red"},V++)}),s&&C.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"meteor",tooltip:"Incoming Meteor",color:"white"},V++)})]})})}return k}(),B=r.SatelliteControlFooter=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.notice,s=l.notice_color,d=l.has_goal,v=l.coverage,C=l.coverage_goal,h=l.testing;return(0,e.createFragment)([d&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v>=C?"good":"average",value:v,maxValue:100,children:[v,"%"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Check coverage",disabled:h,onClick:function(){function p(){return m("begin_test")}return p}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:s,children:u})],0)}return k}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),y=n(92986),B=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,g)})})})})}return c}(),k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=window.event?m.which:m.keyCode;if(d===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(d===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(d===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(d>=y.KEY_0&&d<=y.KEY_9){m.preventDefault(),s("keypad",{digit:d-y.KEY_0});return}if(d>=y.KEY_NUMPAD_0&&d<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:d-y.KEY_NUMPAD_0});return}},g=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.locked,C=d.no_passcode,h=d.emagged,p=d.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=C?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function S(I){return k(I,l)}return S}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:h?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(S){return(0,e.createComponentVNode)(2,b.TableRow,{children:S.map(function(I){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},S[0])})})]})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function C(){return s("keypad",{digit:v})}return C}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=n(321),B=n(5485),k=n(22091),g={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(p,N){(0,b.modalOpen)(p,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.loginState,w=I.currentPage,A;if(L.logged_in)w===1?A=(0,e.createComponentVNode)(2,l):w===2&&(A=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return h}(),m=function(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.currentPage,w=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return S("page",{page:1})}return A}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},l=function(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.records,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1],E=(0,t.useLocalState)(N,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(N,"sortOrder",!0),R=M[0],O=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,_){var U=R?1:-1;return F[P].localeCompare(_[P])*U}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+g[F.status],onClick:function(){function _(){return S("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(p,N){var V=(0,t.useLocalState)(N,"sortId","name"),S=V[0],I=V[1],L=(0,t.useLocalState)(N,"sortOrder",!0),w=L[0],A=L[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:S!==x&&"transparent",fluid:!0,onClick:function(){function P(){S===x?A(!w):(I(x),A(!0))}return P}(),children:[E,S===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.isPrinting,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return S("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,D){return x(D)}return E}()})})]})},d=function(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.isPrinting,w=I.general,A=I.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return S("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return S("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return S("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return S("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return i(N,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(p,N){var V=(0,t.useBackend)(N),S=V.data,I=S.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return i(N,L)}return A}()})]},w)})})}),!!I.has_photos&&I.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},C=function(p,N){var V=(0,t.useBackend)(N),S=V.act,I=V.data,L=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(N,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return S("comment_delete",{id:A+1})}return x}()})]},A)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function y(u,s){var d=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(d)return(d=d.call(u)).next.bind(d);if(Array.isArray(u)||(d=B(u))||s&&u&&typeof u.length=="number"){d&&(u=d);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(u,s){if(u){if(typeof u=="string")return k(u,s);var d={}.toString.call(u).slice(8,-1);return d==="Object"&&u.constructor&&(d=u.constructor.name),d==="Map"||d==="Set"?Array.from(u):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var d=0,v=Array(s);d=A},C=function(w,A){return w<=A},h=s.split(" "),p=[],N=function(){var w=I.value,A=w.split(":");if(A.length===0)return 0;if(A.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(D){return!1}return P}()};var x,E=d;if(A[1][A[1].length-1]==="-"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function P(D){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,x)});break;case"y":case"yield":p.push(function(P){return E(P.yield,x)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,x)});break;default:return{v:function(){function P(D){return!1}return P}()}}},V,S=y(h),I;!(I=S()).done;)if(V=N(),V!==0&&V)return V.v;return function(L){for(var w=0,A=p;w=1?Number(E):1)}return A}()})]})]})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return g("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return g("request")}return c}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(g,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],l=c[1],u=function(){function s(d){switch(d){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,B);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return m("jump_to",{type:"mobile",id:s.id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function d(){return m("fast_travel",{id:s.id})}return d}()})]})]})},s.name)})})},y=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.templates_tabs,s=l.existing_shuttle,d=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:v})}return C}(),children:v},v)})}),!!s&&d[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:v.shuttle_id})}return C}()})})]})},v.name)})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return m("jump_to",{type:"mobile",id:u.id})}return d}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function d(){return m("preview",{shuttle_id:s.shuttle_id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function d(){return m("load",{shuttle_id:s.shuttle_id})}return d}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},86013:function(T,r,n){"use strict";r.__esModule=!0,r.SingularityMonitor=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(44879),f=n(72253),b=n(36036),y=n(76910),B=n(98595),k=n(36352),g=r.SingularityMonitor=function(){function l(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return l}(),i=function(u){return Math.log2(16+Math.max(0,u))-4},c=function(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data,h=C.singularities,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,B.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Detected Singularities",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"sync",content:"Refresh",onClick:function(){function N(){return v("refresh")}return N}()}),children:(0,e.createComponentVNode)(2,b.Table,{children:p.map(function(N){return(0,e.createComponentVNode)(2,b.Table.Row,{children:[(0,e.createComponentVNode)(2,b.Table.Cell,{children:N.singularity_id+". "+N.area_name}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,color:"label",children:"Stage:"}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N.stage,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(N.stage)})}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,b.Button,{content:"Details",onClick:function(){function V(){return v("view",{view:N.singularity_id})}return V}()})})]},N.singularity_id)})})})})})},m=function(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data,h=C.active,p=C.singulo_stage,N=C.singulo_potential_stage,V=C.singulo_energy,S=C.singulo_high,I=C.singulo_low,L=C.generators,w=L===void 0?[]:L;return(0,e.createComponentVNode)(2,B.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(p)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Potential Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:6,ranges:{good:[1,p+.5],average:[p+.5,p+1.5],bad:[p+1.5,p+2]},children:(0,o.toFixed)(N)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:V,minValue:I,maxValue:S,ranges:{good:[.67*S+.33*I,S],average:[.33*S+.67*I,.67*S+.33*I],bad:[I,.33*S+.67*I]},children:(0,o.toFixed)(V)+"MJ"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Field Generators",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return v("back")}return A}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(A){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Remaining Charge",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:A.charge,minValue:0,maxValue:125,ranges:{good:[80,125],average:[30,80],bad:[0,30]},children:(0,o.toFixed)(A.charge)})},A.gen_index)})})})})]})})})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],B={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.Sleeper=function(){function d(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.hasOccupant,S=V?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:S}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return d}(),i=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant,S=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,content:S?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(S?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,C){var h=(0,t.useBackend)(C),p=h.data,N=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,S){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[V[1]]/100,ranges:B,children:(0,a.round)(N[V[1]],0)},S)},S)})})})},l=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.hasOccupant,S=N.isBeakerLoaded,I=N.beakerMaxSpace,L=N.beakerFreeSpace,w=N.dialysis,A=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!S||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!S,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:S?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant,S=N.chemicals,I=N.maxchem,L=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:S.map(function(w,A){var x="",E;return w.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",I,"u"]}),L.map(function(P,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>I||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:w.id,amount:P})}return M}()},D)})]})})},A)})})},s=function(v,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return g("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.secure,m=i.can_dry,l=i.drying,u=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return g("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,d){return s.display_name.localeCompare(d.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function d(){return g("vend",{index:s.vend,amount:1})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function d(v,C){return g("vend",{index:s.vend,amount:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function d(){return g("vend",{index:s.vend,amount:s.quantity})}return d}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,y=r.Smes=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.capacityPercent,u=m.capacity,s=m.charge,d=m.inputAttempt,v=m.inputting,C=m.inputLevel,h=m.inputLevelMax,p=m.inputAvailable,N=m.outputPowernet,V=m.outputAttempt,S=m.outputting,I=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,A=l>=100&&"good"||v&&"average"||"bad",x=S&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"sync-alt":"times",selected:d,onClick:function(){function E(){return c("tryinput")}return E}(),children:d?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/b,fillValue:p/b,minValue:0,maxValue:h/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("input",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===h,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===h,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return c("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?S?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("output",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return B}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=0,m=1,l=2,u=i.generated,s=i.generated_ratio,d=i.tracking_state,v=i.tracking_rate,C=i.connected_panels,h=i.connected_tracker,p=i.cdir,N=i.direction,V=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function S(){return g("refresh")}return S}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),d===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),d===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[d!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function S(I,L){return g("cdir",{cdir:L})}return S}()}),d===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:d===c,onClick:function(){function S(){return g("track",{track:c})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:d===m,onClick:function(){function S(){return g("track",{track:m})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:d===l,disabled:!h,onClick:function(){function S(){return g("track",{track:l})}return S}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function S(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return S}(),onDrag:function(){function S(I,L){return g("tdir",{tdir:L})}return S}()}),d===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),d===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return g("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return g("spawn",{ID:m.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),b=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("hemomancer")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.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)]})})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("umbrae")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.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 will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("gargantua")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("dantalion")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),y=n(36036),B=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(d,v){var C=(0,a.useBackend)(v),h=C.data,p=h.amount,N=h.recipes,V=(0,a.useLocalState)(v,"searchText",""),S=V[0],I=V[1],L=g(N,(0,f.createSearch)(S)),w=(0,a.useLocalState)(v,"",!1),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:S,placeholder:"Find recipe",onInput:function(){function E(P,D){return I(D)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return x(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,l,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},g=function s(d,v){var C=(0,o.flow)([(0,t.map)(function(h){var p=h[0],N=h[1];return i(N)?v(p)?h:[p,s(N,v)]:v(p)?h:[p,void 0]}),(0,t.filter)(function(h){var p=h[0],N=h[1];return N!==void 0}),(0,t.sortBy)(function(h){var p=h[0],N=h[1];return p}),(0,t.sortBy)(function(h){var p=h[0],N=h[1];return!i(N)}),(0,t.reduce)(function(h,p){var N=p[0],V=p[1];return h[N]=V,h},{})])(Object.entries(d));return Object.keys(C).length?C:void 0},i=function(d){return d.uid===void 0},c=function(d,v){return d.required_amount>v?0:Math.floor(v/d.required_amount)},m=function(d,v){for(var C=(0,a.useBackend)(v),h=C.act,p=d.recipe,N=d.max_possible_multiplier,V=Math.min(N,Math.floor(p.max_result_amount/p.result_amount)),S=[5,10,25],I=[],L=function(){var E=A[w];V>=E&&I.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return h("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},w=0,A=S;w1?I+"x ":"",M=L>1?"s":"",R=""+D+V,O=L+" sheet"+M,F=c(S,N);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:P,dmIcon:x,dmIconState:E,imageSize:32,disabled:!F,tooltip:O,buttons:w>1&&F>1&&(0,e.createComponentVNode)(2,m,{recipe:S,max_possible_multiplier:F}),onClick:function(){function _(){return h("make",{recipe_uid:A,multiplier:1})}return _}(),children:R})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.data,c=i.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),y=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(y||{}),B=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data,d=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=v[0],h=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),N=Object.keys(p);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:h,options:N,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(C){var S=p[C],I=[S];if(d){var L,w=d.map(function(A){return A.path});if(w.indexOf(S)!==-1)return;I=(L=I).concat.apply(L,w)}u("setup_future_traits",{station_traits:I})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(d)?d.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:d.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function S(){u("setup_future_traits",{station_traits:(0,a.filterMap)(d,function(I){if(I.path!==V.path)return I.path})})}return S}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(d){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:d.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!d.can_revert,tooltip:!d.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:d.ref})}return v}()})})]})},d.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},g=r.StationTraitsPanel=function(){function i(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),u=l[0],s=l[1],d;switch(u){case y.SetupFutureStationTraits:d=(0,e.createComponentVNode)(2,B);break;case y.ViewStationTraits:d=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function v(){return s(y.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function v(){return s(y.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),d]})]})})})}return i}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),y=5,B=9,k=function(C){return C===0?5:9},g="64px",i=function(C){return C[0]+"/"+C[1]},c=function(C){var h=C.align,p=C.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:h==="left"?"6px":"48px","text-align":h,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={eyes:{displayName:"eyewear",gridSpot:i([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:i([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:i([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:i([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),d=r.StripMenu=function(){function v(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,S=new Map;if(V.show_mode===0)for(var I=0,L=Object.keys(V.items);I=.01})},(0,a.sortBy)(function(x){return-x.amount})])(C.gases||[]),A=Math.max.apply(Math,[1].concat(w.map(function(x){return x.portion})));return(0,e.createComponentVNode)(2,B.Window,{width:550,height:250,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Gas Coefficient",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:L,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:L.toFixed(2)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(V),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mole Per Tile",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:I,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,o.toFixed)(I)+" mol"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(S),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(S)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function x(){return v("back")}return x}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(x){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(x.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(x.name),value:x.portion,minValue:0,maxValue:A,children:(0,o.toFixed)(x.amount)+" mol ("+x.portion+"%)"})},x.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return g(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(B){return B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K, ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K, ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K, ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K, ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.records,l=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,d=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||d,align:"center",onClick:function(){function v(){return i("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function v(){return i("delete_logs")}return v}()})]})]})}),l.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.records,l=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return g("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return g("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(l,u){return g("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return g("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return g("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return g("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function l(){return g("plasma")}return l}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.ion,d=(0,a.useLocalState)(c,"tabIndex",0),v=d[0],C=d[1],h=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return C(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return C(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return C(2)}return p}(),children:"User Filtering"},"FilterPage")]}),h(v)]})})}return g}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.active,d=u.sectors_available,v=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,h=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,V=u.nttc_setting_language,S=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:d})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:S||"Unset",selected:S,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.link_password,d=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return l("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return l("unlink",{addr:v.addr})}return C}()})})]},v.addr)})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function d(){return l("add_filter")}return d}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return l("remove_filter",{user:d})}return v}()})})]},d)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function d(){return c("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function d(){return c("network_id")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function d(){return c("toggle_hidden_link")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function d(){return c("unlink")}return d}()})})]})})},y=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,l=1,u=2,s=i.calibrated,d=i.calibrating,v=i.powerstation,C=i.regime,h=i.teleporterhub,p=i.target,N=i.locked,V=i.adv_beacon_allowed,S=i.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!h)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[h,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&h&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"Enabled":"Disabled",onClick:function(){function I(){return g("advanced_beacon_locking",{on:S?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:d,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:d,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===l?"good":null,onClick:function(){function I(){return g("setregime",{regime:l})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function I(){return g("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===u?"good":null,disabled:!N,onClick:function(){function I(){return g("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:d&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||d),onClick:function(){function I(){return g("calibrate")}return I}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&h&&C===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return g("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return g("eject")}return I}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.last_msg,m=i.linked_pad,l=i.held_gps,u=i.lastdata,s=i.power_levels,d=i.current_max_power,v=i.current_power,C=i.current_bearing,h=i.current_elevation,p=i.current_sector,N=i.working,V=i.max_z,S=(0,a.useLocalState)(B,"dummyrot",C),I=S[0],L=S[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:C,onDrag:function(){function w(A,x){return L(x)}return w}(),onChange:function(){function w(A,x){return g("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:h,onChange:function(){function w(A,x){return g("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,A){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:v===w,disabled:A>=d-1||N,onClick:function(){function x(){return g("setpwr",{pwr:A+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:N,onChange:function(){function w(A,x){return g("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function w(){return g("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function w(){return g("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function w(){return g("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function w(){return g("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:l===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Eject GPS",onClick:function(){function w(){return g("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Store Coordinates",onClick:function(){function w(){return g("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function g(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.target_temperature,d=u.temperature,v=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:v,value:s,format:function(){function h(p){return(0,a.toFixed)(p,2)}return h}(),width:"50px",onDrag:function(){function h(p,N){return l("target_temperature",{target_temperature:N})}return h}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(d),bold:d>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(d,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),children:B(d)})})]})})})})}return g}(),y=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},B=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},k=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),y=n(98595),B=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),g=r.TextInputModal=function(){function c(m,l){var u=(0,o.useBackend)(l),s=u.act,d=u.data,v=d.max_length,C=d.message,h=C===void 0?"":C,p=d.multiline,N=d.placeholder,V=d.timeout,S=d.title,I=(0,o.useLocalState)(l,"input",N||""),L=I[0],w=I[1],A=function(){function P(D){if(D!==L){var M=p?B(D):k(D);w(M)}}return P}(),x=p||L.length>=40,E=130+(h.length>40?Math.ceil(h.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:S,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(D){var M=window.event?D.which:D.keyCode;M===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:h})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onChange:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return c}(),i=function(m,l){var u=(0,o.useBackend)(l),s=u.act,d=u.data,v=d.max_length,C=d.multiline,h=m.input,p=m.onChange,N=C||h.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:C||h.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(S,I){N&&S.shiftKey||(S.preventDefault(),s("submit",{entry:I}))}return V}(),onChange:function(){function V(S,I){return p(I)}return V}(),placeholder:"Type something...",value:h})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function y(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,u){return i("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return y}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.tank_one,m=i.tank_two,l=i.attached_device,u=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return g("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return g("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return g("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return g("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return g("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.compressor,s=l.compressor_broken,d=l.turbine,v=l.turbine_broken,C=l.online,h=!!(u&&!s&&d&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!h,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:h?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.compressor,u=m.compressor_broken,s=m.turbine,d=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||u?"bad":"good",children:u?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||d?"bad":"good",children:d?s?"Offline":"Missing":"Online"})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.rpm,u=m.temperature,s=m.power,d=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(d)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),y=n(98595),B=n(3939),k=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},g=r.Uplink=function(){function v(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=V.cart,I=(0,f.useLocalState)(h,"tabIndex",0),L=I[0],w=I[1],A=(0,f.useLocalState)(h,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,B.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",S&&S.length?"("+S.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return v}(),i=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=V.crystals,I=V.cats,L=(0,f.useLocalState)(h,"uplinkItems",I[0].items),w=L[0],A=L[1],x=(0,f.useLocalState)(h,"searchText",""),E=x[0],P=x[1],D=function(U,z){z===void 0&&(z="");var $=(0,o.createSearch)(z,function(G){var X=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)($),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(U)},M=function(U){if(P(U),U==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),U))},R=(0,f.useLocalState)(h,"showDesc",1),O=R[0],F=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+S+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:O,onClick:function(){function _(){return F(!O)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return N("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return N("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,z){M(z)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:I.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function U(){A(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:_,showDecription:O},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},c=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=V.cart,I=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(h,"showDesc",0),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!S}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!S||L>I})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:S?S.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=V.cats,I=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:I.map(function(L){return S[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:L})},w)})})})})},l=function(C,h){var p=C.i,N=C.showDecription,V=N===void 0?1:N,S=C.buttons,I=S===void 0?(0,e.createComponentVNode)(2,u,{i:p}):S;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:I,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=C.i,I=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:S.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return N("add_to_cart",{item:S.obj_path})}return L}(),disabled:S.cost>I}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+S.cost+"TC)"+(S.refundable?" [Refundable]":""),color:S.hijack_only===1&&"red",tooltip:S.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return N("buyItem",{item:S.obj_path})}return L}(),disabled:S.cost>I})],4)},s=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=C.i,I=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+S.cost*S.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return N("remove_from_cart",{item:S.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:S.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:S.obj_path,quantity:--S.amount})}return L}(),disabled:S.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:S.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:S.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,A){return N("set_cart_item_quantity",{item:S.obj_path,quantity:A})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit&&S.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:S.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return N("set_cart_item_quantity",{item:S.obj_path,quantity:++S.amount})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit})]})},d=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,S=V.exploitable,I=(0,f.useLocalState)(h,"selectedRecord",S[0]),L=I[0],w=I[1],A=(0,f.useLocalState)(h,"searchText",""),x=A[0],E=A[1],P=function(R,O){O===void 0&&(O="");var F=(0,o.createSearch)(O,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),O&&(0,a.filter)(F),(0,a.sortBy)(function(_){return _.name})])(R)},D=P(S,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,O){return E(O)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return w(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=B.product,l=B.productStock,u=B.productIcon,s=B.productIconState,d=c.locked,v=c.bypass_lock,C=c.user,h=c.usermoney,p=c.inserted_cash,N=c.vend_ready,V=c.inserted_item_name,S="ERROR!",I="";d&&v?(S="FREE ("+m.price+")",I="arrow-circle-down"):d?(S=m.price,I="shopping-cart"):(S="FREE",I="arrow-circle-down");var L=!N||l===0||d&&!v&&m.price>h&&m.price>p;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:u,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=m.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:I,content:S,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.user,l=c.usermoney,u=c.inserted_cash,s=c.product_records,d=s===void 0?[]:s,v=c.hidden_records,C=v===void 0?[]:v,h=c.stock,p=c.vend_ready,N=c.inserted_item_name,V=c.panel_open,S=c.speaker,I=c.locked,L=c.bypass_lock,w;return w=[].concat(d),c.extended_inventory&&(w=[].concat(w,C)),w=w.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((!I||L?230:171)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(!I||!!L)&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Configuration",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Rename Vendor",onClick:function(){function A(){return i("rename",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Change Vendor Appearance",onClick:function(){function A(){return i("change_appearance",{})}return A}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!N&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,N,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!V&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"check":"volume-mute",selected:S,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productIcon:A.icon,productIconState:A.icon_state},A.name)})})})})]})})})}return y}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return g("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,d){return g("volume",{channel:m.num,volume:d})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return g("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.remaining,m=i.question,l=i.choices,u=i.user_vote,s=i.counts,d=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(d?" ("+(s[v]||0)+")":""),onClick:function(){function C(){return g("vote",{target:v})}return C}(),selected:v===u})},v)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.wires||[],m=i.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return g("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return g("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return g("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(g,i){var c=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(c)return(c=c.call(g)).next.bind(c);if(Array.isArray(g)||(c=b(g))||i&&g&&typeof g.length=="number"){c&&(g=c);var m=0;return function(){return m>=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(g,i){if(g){if(typeof g=="string")return y(g,i);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(g,i):void 0}}function y(g,i){(i==null||i>g.length)&&(i=g.length);for(var c=0,m=Array(i);c0&&!V.includes(O.ref)&&!p.includes(O.ref),checked:p.includes(O.ref),onClick:function(){function F(){return S(O.ref)}return F}()},O.desc)})]})]})})}return g}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(B,k,g,i,c){return Bi?"average":B>c?"bad":"good"},b=r.AtmosScan=function(){function y(B,k){var g=B.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(g).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:f(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},f=r.BeakerContents=function(){function b(y){var B=y.beakerLoaded,k=y.beakerContents,g=k===void 0?[]:k,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!B&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||g.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),g.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=g.locked,c=g.noaccess,m=g.maintpanel,l=g.on,u=g.autopatrol,s=g.canhack,d=g.emagged,v=g.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function C(){return k("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return k("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:d?"bad":"good",children:d?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:d?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return k("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return k("disableremote")}return C}()})})]})})],4)}return f}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function g(i,c,m){var l=(0,a.useBackend)(i),u=l.act,s=l.data,d=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(d)})}return g}(),b=r.modalRegisterBodyOverride=function(){function g(i,c){o[i]=c}return g}(),y=r.modalAnswer=function(){function g(i,c,m,l){var u=(0,a.useBackend)(i),s=u.act,d=u.data;if(d.modal){var v=Object.assign(d.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return g}(),B=r.modalClose=function(){function g(i,c){var m=(0,a.useBackend)(i),l=m.act;l("modal_close",{id:c})}return g}(),k=r.ComplexModal=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var u=l.modal,s=u.id,d=u.text,v=u.type,C,h=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return B(c)}return L}()}),p,N,V="auto";if(o[s])p=o[s](l.modal,c);else if(v==="input"){var S=l.modal.value;C=function(){function L(w){return y(c,s,S)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,A){S=A}return L}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return B(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,S)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(c,s,w)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(c,s,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[d&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d}),o[s]&&h,p,N]})}}return g}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],B=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},g=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:B(l.rank),bold:k(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d;if(m.data)d=m.data;else{var v=(0,a.useBackend)(l),C=v.data;d=C}var h=d,p=h.manifest,N=p.heads,V=p.sec,S=p.eng,I=p.med,L=p.sci,w=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:g(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:g(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:g(S)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:g(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:g(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:g(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:g(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:g(x)})]})}return c}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,y){var B=(0,t.useBackend)(y),k=B.act,g=B.data,i=g.large_buttons,c=g.swapped_buttons,m=b.input,l=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function v(){return k("submit",{entry:m})}return v}(),textAlign:"center",tooltip:i&&l,disabled:u,width:!i&&6}),d=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function v(){return k("cancel")}return v}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:d}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=b.siliconUser,c=i===void 0?g.siliconUser:i,m=b.locked,l=m===void 0?g.locked:m,u=b.normallyLocked,s=u===void 0?g.normallyLocked:u,d=b.onLockStatusChange,v=d===void 0?function(){return k("lock")}:d,C=b.accessText,h=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!l)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",h," to ",l?"unlock":"lock"," this interface."]})}return f}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return f}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=g.loginState;if(g)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return f}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=g.loginState,c=g.isAI,m=g.isRobot,l=g.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var y=b.operating,B=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",B," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(y,B){var k=(0,t.useBackend)(B),g=k.act,i=y.data,c=i.code,m=i.frequency,l=i.minFrequency,u=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:u/10,value:m/10,format:function(){function s(d){return(0,a.toFixed)(d,1)}return s}(),width:"80px",onDrag:function(){function s(d,v){return g("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(d,v){return g("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return g("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),y=r.SimpleRecords=function(){function g(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,B,{data:i.data})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),d=s[0],v=s[1],C=function(N,V){V===void 0&&(V="");var S=(0,t.createSearch)(V,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),V&&(0,f.filter)(S),(0,f.sortBy)(function(I){return I.Name})])(u)},h=C(u,d);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(N,V){return v(V)}return p}()}),h.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function N(){return l("Records",{target:p.uid})}return N}()})},p)})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=i.data.records,s=u.general,d=u.medical,v=u.security,C;switch(i.recordType){case"MED":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:d?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:d.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:d.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:d.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:d.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:d.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:d.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,y){var B,k=(0,a.useBackend)(y),g=k.act,i=k.data,c=i.temp;if(c){var m=(B={},B[c.style]=!0,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return g("cleartemp")}return l}()})})]})})))}}return f}()},95213:function(T,r,n){"use strict";r.__esModule=!0,r.goonstation_PTL=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595);/** + */function m(w,A){w.prototype=Object.create(A.prototype),w.prototype.constructor=w,l(w,A)}function l(w,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,E){return x.__proto__=E,x},l(w,A)}function u(w,A){if(w==null)return{};var x={};for(var E in w)if({}.hasOwnProperty.call(w,E)){if(A.includes(E))continue;x[E]=w[E]}return x}var s=r.ColorPickerModal=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.timeout,M=P.message,R=P.title,O=P.autofocus,F=P.default_color,_=F===void 0?"#000000":F,U=(0,t.useLocalState)(x,"color_picker_choice",(0,S.hexToHsva)(_)),z=U[0],$=U[1];return(0,e.createComponentVNode)(2,f.Window,{height:400,title:R,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[M&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:M})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!O&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,d,{color:z,setColor:$,defaultColor:_})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,S.hsvaToHex)(z)})})]})})]})}return w}(),d=r.ColorSelector=function(){function w(A,x){var E=A.color,P=A.setColor,D=A.defaultColor,M=function(){function F(_){P(function(U){return Object.assign({},U,_)})}return F}(),R=(0,S.hsvaToRgba)(E),O=(0,S.hsvaToHex)(E);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,N,{hsva:E,onChange:M}),(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:O,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:O})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,h,{fluid:!0,color:(0,S.hsvaToHex)(E).substring(1),onChange:function(){function F(_){g.logger.info(_),P((0,S.hexToHsva)(_))}return F}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.h,callback:function(){function F(_,U){return M({h:U})}return F}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.s,callback:function(){function F(_,U){return M({s:U})}return F}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.v,callback:function(){function F(_,U){return M({v:U})}return F}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.r,callback:function(){function F(_,U){R.r=U,M((0,S.rgbaToHsva)(R))}return F}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.g,callback:function(){function F(_,U){R.g=U,M((0,S.rgbaToHsva)(R))}return F}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.b,callback:function(){function F(_,U){R.b=U,M((0,S.rgbaToHsva)(R))}return F}(),max:255})})]})})]})})]})}return w}(),v=function(A){var x=A.value,E=A.callback,P=A.min,D=P===void 0?0:P,M=A.max,R=M===void 0?100:M,O=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(x),step:1,minValue:D,maxValue:R,onChange:E,unit:O})},C=function(A){return"#"+A},h=r.HexColorInput=function(){function w(A){var x=A.prefixed,E=A.alpha,P=A.color,D=A.fluid,M=A.onChange,R=u(A,c),O=function(){function _(U){return U.replace(/([^0-9A-F]+)/gi,"").substring(0,E?8:6)}return _}(),F=function(){function _(U){return(0,S.validHex)(U,E)}return _}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},R,{fluid:D,color:P,onChange:M,escape:O,format:x?C:void 0,validate:F})))}return w}(),p=r.ColorInput=function(w){function A(E){var P;return P=w.call(this)||this,P.props=void 0,P.state=void 0,P.handleInput=function(D){var M=P.props.escape(D.currentTarget.value);P.setState({localValue:M})},P.handleBlur=function(D){D.currentTarget&&(P.props.validate(D.currentTarget.value)?P.props.onChange(P.props.escape?P.props.escape(D.currentTarget.value):D.currentTarget.value):P.setState({localValue:P.props.escape(P.props.color)}))},P.props=E,P.state={localValue:P.props.escape(P.props.color)},P}m(A,w);var x=A.prototype;return x.componentDidUpdate=function(){function E(P,D){P.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return E}(),x.render=function(){function E(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return E}(),A}(e.Component),N=function(A){var x=A.hsva,E=A.onChange,P=function(O){E({s:O.left*100,v:100-O.top*100})},D=function(O){E({s:(0,b.clamp)(x.s+O.left*100,0,100),v:(0,b.clamp)(x.v-O.top*100,0,100)})},M={"background-color":(0,S.hsvaToHslString)({h:x.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,B.Interactive,{onMove:P,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(x.s)+"%, Brightness "+Math.round(x.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-x.v/100,left:x.s/100,color:(0,S.hsvaToHslString)(x)})}),2,{style:M})},V=function(A){var x=A.className,E=A.hue,P=A.onChange,D=function(F){P({h:360*F.left})},M=function(F){P({h:(0,b.clamp)(E+F.left*360,0,360)})},R=(0,k.classes)(["react-colorful__hue",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{onMove:D,onKey:M,"aria-label":"Hue","aria-valuenow":Math.round(E),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:E/360,color:(0,S.hsvaToHslString)({h:E,s:100,v:100,a:1})})}),2)},y=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(F){P({s:100*F.left})},M=function(F){P({s:(0,b.clamp)(E.s+F.left*100,0,100)})},R=(0,k.classes)(["react-colorful__saturation",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{style:{background:"linear-gradient(to right, "+(0,S.hsvaToHslString)({h:E.h,s:0,v:E.v,a:1})+", "+(0,S.hsvaToHslString)({h:E.h,s:100,v:E.v,a:1})+")"},onMove:D,onKey:M,"aria-label":"Saturation","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:E.s/100,color:(0,S.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},I=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(F){P({v:100*F.left})},M=function(F){P({v:(0,b.clamp)(E.v+F.left*100,0,100)})},R=(0,k.classes)(["react-colorful__value",x]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,B.Interactive,{style:{background:"linear-gradient(to right, "+(0,S.hsvaToHslString)({h:E.h,s:E.s,v:0,a:1})+", "+(0,S.hsvaToHslString)({h:E.h,s:E.s,v:100,a:1})+")"},onMove:D,onKey:M,"aria-label":"Value","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:E.v/100,color:(0,S.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},L=function(A){var x=A.className,E=A.color,P=A.onChange,D=A.target,M=(0,S.hsvaToRgba)(E),R=function($){M[D]=$,P((0,S.rgbaToHsva)(M))},O=function($){R(255*$.left)},F=function($){R((0,b.clamp)(M[D]+$.left*255,0,255))},_=(0,k.classes)(["react-colorful__"+D,x]),U=D==="r"?"rgb("+Math.round(M.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(M.g)+",0)":"rgb(0,0,"+Math.round(M.b)+")";return(0,e.createVNode)(1,"div",_,(0,e.createComponentVNode)(2,B.Interactive,{onMove:O,onKey:F,"aria-valuenow":M[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:M[D]/255,color:U})}),2)}},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(d,v){return g("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},l)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),f(p)]})})})}return u}(),S=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.authenticated,N=h.noauthbutton,V=h.esc_section,y=h.esc_callable,I=h.esc_recallable,L=h.esc_status,w=h.authhead,A=h.is_ai,x=h.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:N,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function D(){return C("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return C("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||A,onClick:function(){function D(){return C("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},B=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,g)},k=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin,N=h.gamma_armory_location,V=h.admin_levels,y=h.authenticated,I=h.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return C("send_to_cc_announcement_page")}return L}()}),y===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return C("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return C("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return C("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return C("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return C("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return C("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return C("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,g)})]})},g=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.msg_cooldown,N=h.emagged,V=h.cc_cooldown,y=h.security_level_color,I=h.str_security_level,L=h.levels,w=h.authcapt,A=h.authhead,x=h.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:y,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||p>0,onClick:function(){function M(){return C("announce")}return M}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return C("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return C("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return C("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function M(){return C("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return C("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return C("messagelist")}return M}()})})]})})})],4)},i=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.stat_display,N=h.authhead,V=h.current_message_title,y=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:L.name})}return w}()},L.name)}),I=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return C("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!N,onClick:function(){function L(){return C("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!N,onClick:function(){function L(){return C("setmsg2")}return L}()})})]})})})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.authhead,N=h.current_message_title,V=h.current_message,y=h.messages,I=h.security_level,L;if(N)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return C("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=y.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||N===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=s.levels,N=s.required_access,V=s.use_confirm,y=h.security_level;return V?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===y,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===y,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)})},l=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.is_admin,N=h.possible_cc_sounds;if(!p)return C("main");var V=(0,a.useLocalState)(d,"subtitle",""),y=V[0],I=V[1],L=(0,a.useLocalState)(d,"text",""),w=L[0],A=L[1],x=(0,a.useLocalState)(d,"classified",0),E=x[0],P=x[1],D=(0,a.useLocalState)(d,"beepsound","Beep"),M=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function O(){return C("main")}return O}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:y,onChange:function(){function O(F,_){return I(_)}return O}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function O(F,_){return A(_)}return O}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function O(){return C("make_cc_announcement",{subtitle:y,text:w,classified:E,beepsound:M})}return O}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:M,onSelected:function(){function O(F){return R(F)}return O}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function O(){return C("test_sound",{sound:M})}return O}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function O(){return P(!E)}return O}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.biomass,m=i.compost,l=i.biomass_capacity,u=i.compost_capacity,s=i.potassium,d=i.potassium_capacity,v=i.potash,C=i.potash_capacity,h=(0,a.useSharedState)(B,"vendAmount",1),p=h[0],N=h[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[s," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[v," / ",C," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(y,I){return N(I)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return g("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function S(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,B(C,h)}function B(C,h){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},B(C,h)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},g=["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(Math.random()*2e4),"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"],i=r.Contractor=function(){function C(h,p){var N=(0,t.useBackend)(p),V=N.act,y=N.data,I;y.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):y.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:y.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:g,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return C}(),c=function(h,p){var N=(0,t.useBackend)(p),V=N.act,y=N.data,I=y.tc_available,L=y.tc_paid_out,w=y.completed_contracts,A=y.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},h,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(h,p){var N=(0,t.useBackend)(p),V=N.act,y=N.data,I=y.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},h,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(h,p){var N=(0,t.useBackend)(p),V=N.act,y=N.data,I=y.contracts,L=y.contract_active,w=y.can_extract,A=!!L&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(R,O){return" ("+O.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},h,{children:I.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function O(){return D("target_photo_"+M.uid+".png")}return O}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function O(){return V("abort")}return O}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(O,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:O.name+" ("+O.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:F+1})}return _}()},F)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(h){if(!(!h.objective||h.status>1)){var p=h.objective.locs.user_area_id,N=h.objective.locs.user_coords,V=h.objective.locs.target_area_id,y=h.objective.locs.target_coords,I=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(y[1]-N[1],y[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(h,p){var N=(0,t.useBackend)(p),V=N.act,y=N.data,I=y.rep,L=y.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},h,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},d=function(C){function h(N){var V;return V=C.call(this,N)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}S(h,C);var p=h.prototype;return p.tick=function(){function N(){var V=this.props,y=this.state;if(y.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=y.currentDisplay;I.push(V.allMessages[y.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return N}(),p.componentDidMount=function(){function N(){var V=this,y=this.props.linesPerSecond,I=y===void 0?2.5:y;this.timer=setInterval(function(){return V.tick()},1e3/I)}return N}(),p.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),p.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return N}(),h}(e.Component),v=function(h,p){var N=(0,t.useLocalState)(p,"viewingPhoto",""),V=N[0],y=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return y("")}return I}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.slowFactor,m=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return g("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return g("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return g("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,d){return g("slowFactor",{value:d})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return g("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return g("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),S=n(76910),B=n(98595),k=n(96184),g=["color"];function i(v,C){if(v==null)return{};var h={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(C.includes(p))continue;h[p]=v[p]}return h}var c=function(C,h){return C.dead?"Deceased":parseInt(C.health,10)<=h?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},m=function(C,h){return C.dead?"red":parseInt(C.health,10)<=h?"orange":parseInt(C.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function v(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,y=(0,o.useLocalState)(h,"tabIndex",V.tabIndex),I=y[0],L=y[1],w=function(){function x(E){L(E),N("set_tab_index",{tab_index:E})}return x}(),A=function(){function x(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,B.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:I===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:I===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),A(I)]})})})}return v}(),u=function(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,y=V.possible_levels,I=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,A=(0,a.sortBy)(function(M){return!w.includes(M.name)},function(M){return M.name})(V.crewmembers||[]),x=(0,o.useLocalState)(h,"search",""),E=x[0],P=x[1],D=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,O){return P(O)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:L?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:y,selected:I,onSelected:function(){function M(R){return N("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return N("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),A.filter(D).map(function(M,R){var O=w.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:O,tooltip:"Mark on map",onClick:function(){function F(){return N(O?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return F}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:c(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:S.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:S.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:S.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:S.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function F(){return N("track",{track:M.ref})}return F}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},R)})]})]})},s=function(C,h){var p=C.color,N=i(C,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},N,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},d=function(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,y=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function I(L){return N("set_zoom",{zoom:L})}return I}(),onOffsetChange:function(){function I(L,w){return N("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return I}(),children:V.crewmembers.filter(function(I){return I.sensor_type===3||V.ignoreSensors}).map(function(I){var L=m(I,V.critThreshold),w=y.includes(I.name),A=function(){return V.isObserver?N("track",{track:I.ref}):null},x=function(){return N(w?"remove_highlighted_name":"add_highlighted_name",{name:I.name})},E=I.name+" ("+I.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:I.x,y:I.y,tooltip:E,color:L,onClick:A,onDblClick:x},I.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:I.x,y:I.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:x},I.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],S=r.Cryo=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,B)})})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isOperating,d=u.hasOccupant,v=u.occupant,C=v===void 0?[]:v,h=u.cellTemperature,p=u.cellTemperatureStatus,N=u.isBeakerLoaded,V=u.cooldownProgress,y=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return l("ejectOccupant")}return L}(),disabled:!d,children:"Eject"}),children:d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return l("ejectBeaker")}return L}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return l(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function L(){return l(y?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:y?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,d=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!d&&"average",children:[d||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function C(h){return Math.round(h)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,S),!!u&&(0,e.createComponentVNode)(2,B)]})})}return k}(),S=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.frozen_items,s=function(v){var C=v.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(d.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:d.uid})}return v}()})},d)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function d(){return m("all_items")}return d}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],B=[5,10,20,30,50],k=r.DNAModifier=function(){function p(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.irradiating,A=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,C,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return p}(),g=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.selectedMenuKey,A=L.hasOccupant,x=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:S.map(function(P,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},D)})}),E]})},c=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,h,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(D){return D.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(D,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,h,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},u=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.buffers,A=w.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,d)})]})},s=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=N.id,A=N.name,x=N.buffer,E=L.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return I("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},d=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.isBeakerLoaded,A=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[B.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(N,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},h=function(N,V){for(var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,P=N.action,D=w.split(""),M=0,R=[],O=function(){for(var U=F/E+1,z=[],$=function(){var J=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===U&&x===J,content:D[F+G],mb:"0",onClick:function(){function se(){return I(P,{block:U,subblock:J})}return se}()}))},G=0;Gd.spawnpoints?"red":"green",children:[d.total," total, versus ",d.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:h})}return N}()})})]})})})},g=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=d.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function h(){return s("view_player_panel",{uid:C.sender_uid})}return h}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,l){var u=(0,a.useBackend)(l),s=u.act,d=u.data,v=(0,a.useLocalState)(l,"text",""),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function p(N,V){return h(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:C})}return p}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function B(k,g){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})]})}return B}(),S=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function S(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.power,l=c.code,u=c.frequency,s=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(){function v(C){return(0,a.toFixed)(C,1)}return v}(),width:"80px",onChange:function(){function v(C,h){return i("freq",{freq:h})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function v(C,h){return i("code",{code:h})}return v}()})})]})})})})}return S}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.data,m=c.emoji_list,l=(0,t.useLocalState)(g,"searchText",""),u=l[0],s=l[1],d=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(C,h){return s(h)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:d.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function C(){S(v.name)}return C}()},v.name)})})})})}return B}(),S=function(k){var g=document.createElement("input"),i=":"+k+":";g.value=i,document.body.appendChild(g),g.select(),document.execCommand("copy"),document.body.removeChild(g)}},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),S=n(88510),B=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)]})})})}return i}(),k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},g=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.evo_points,v=s.ability_tabs,C=s.purchased_abilities,h=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),N=p[0],V=p[1],y=(0,t.useLocalState)(m,"searchText",""),I=y[0],L=y[1],w=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=w[0],x=w[1],E=function(R,O){if(O===void 0&&(O=""),!R||R.length===0)return[];var F=(0,a.createSearch)(O,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,S.filter)(function(_){return _==null?void 0:_.name}),(0,S.filter)(F),(0,S.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return x(N.abilities);x(E(v.map(function(O){return O.abilities}).flat(),R))},D=function(R){V(R),x(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,O){P(O)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:h?"square-o":"check-square-o",selected:!h,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:h?"check-square-o":"square-o",selected:h,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===M,onClick:function(){function R(){D(M)}return R}(),children:M.category},M)})}),A.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),C.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>d||C.includes(M.power_path),content:"Evolve",onClick:function(){function O(){return u("purchase",{power_path:M.power_path})}return O}()})})]}),!!h&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),S=n(98595),B=["id","amount","lineDisplay","onClick"];function k(p,N){if(p==null)return{};var V={};for(var y in p)if({}.hasOwnProperty.call(p,y)){if(N.includes(y))continue;V[y]=p[y]}return V}var g=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function p(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.building,A=L.linked;return A?(0,e.createComponentVNode)(2,S.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,S.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,C)}return p}(),m=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.materials,A=L.capacity,x=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(x/A*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,d,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return I("withdraw",{id:E})}return P}()},E)})})},l=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.curCategory,A=L.categories,x=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),D=P[0],M=P[1],R=(0,t.createSearch)(D,function(z){return z.name}),O=x.filter(R),F=(0,o.useLocalState)(V,"levelsModal",!1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:A,onSelected:function(){function z($){return I("category",{cat:$})}return z}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return I("queueall")}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return U(!0)}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return I("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z($,G){return M(G)}return z}()}),O.map(function(z){return(0,e.createComponentVNode)(2,v,{design:z},z.id)}),O.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.building,A=L.buildStart,x=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:A,current:E,end:x,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:x-E,format:function(){function P(D,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.queue,A=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,D){return P+D.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return I("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return I("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,D){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[D+1,". ",P.name,D>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return I("queueswap",{from:D+1,to:D})}return M}()}),D0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,d,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},d=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=N.id,A=N.amount,x=N.lineDisplay,E=N.onClick,P=k(N,B),D=L.materials[w]||0,M=A||D;if(!(M<=0&&!(w==="metal"||w==="glass"))){var R=A&&A>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},P,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/g*10)/10," ","sheets)"]})]})],4)})))}},v=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=N.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function A(){return I("build",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function A(){return I("queue",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(A){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,d,{id:A[0],amount:A[1],lineDisplay:!0})},A[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},C=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.controllers;return(0,e.createComponentVNode)(2,S.Window,{children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:A.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function x(){return I("linktonetworkcontroller",{target_controller:A.addr})}return x}()})})]},A.addr)})]})})})})},h=function(N,V){var y=(0,o.useBackend)(V),I=y.act,L=y.data,w=L.tech_levels,A=(0,o.useLocalState)(V,"levelsModal",!1),x=A[0],E=A[1];return x?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var D=P.name,M=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:D,children:M},D)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),S=r.ExperimentConsole=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.open,u=m.feedback,s=m.occupant,d=m.occupant_name,v=m.occupant_status,C=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function y(){return f.get(v)}return y}(),V=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(y){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(y).icon,content:b.get(y).label,onClick:function(){function I(){return c("experiment",{experiment_type:y})}return I}()},y)})})]})}return p}(),h=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function p(){return c("door")}return p}()}),children:h})]})})}return B}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,S=function(g){var i="good",c=80,m=95,l=110,u=120;return gl?i="average":g>u&&(i="bad"),i},B=r.ExternalAirlockController=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.chamber_pressure,s=l.exterior_status,d=l.interior_status,v=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:S(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:d==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:d==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return g("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return g("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return g("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return g("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return g("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return g("send")}return c}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=k.config,m=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return g("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=k.icon_state,u=k.direction,s=k.isSelected,d=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:l,direction:u,onClick:d,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},S=r.FloorPainter=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.availableStyles,u=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function d(){return c("cycle_style",{offset:-1})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:u,width:"150px",nochevron:!0,onSelected:function(){function d(v){return c("select_style",{style:v})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function d(){return c("cycle_style",{offset:1})}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{icon_state:d,isSelected:u===d,onSelect:function(){function v(){return c("select_style",{style:d})}return v}()})},d)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[d+b.WEST,d,d+b.EAST].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:v===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{icon_state:u,direction:v,isSelected:v===s,onSelect:function(){function C(){return c("select_direction",{direction:v})}return C}()})},v)})},d)})})})})]})})})}return B}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(l){return l?"("+l.join(", ")+")":"ERROR"},S=function(l,u){if(!(!l||!u)){if(l[2]!==u[2])return null;var s=Math.atan2(u[1]-l[1],u[0]-l[0]),d=Math.sqrt(Math.pow(u[1]-l[1],2)+Math.pow(u[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:d}}},B=r.GPS=function(){function m(l,u){var s=(0,t.useBackend)(u),d=s.data,v=d.emped,C=d.active,h=d.area,p=d.position,N=d.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:h,position:p})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(l,u){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},g=function(l,u){var s=(0,t.useBackend)(u),d=s.act,v=s.data,C=v.active,h=v.tag,p=v.same_z,N=(0,t.useLocalState)(u,"newTag",h),V=N[0],y=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return d("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:h,onEnter:function(){function I(){return d("tag",{newtag:V})}return I}(),onInput:function(){function I(L,w){return y(w)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:h===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return d("tag",{newtag:V})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return d("same_z")}return I}()})})]})})},i=function(l,u){var s=l.title,d=l.area,v=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[d&&(0,e.createFragment)([d,(0,e.createVNode)(1,"br")],0),b(v)]})})},c=function(l,u){var s=(0,t.useBackend)(u),d=s.data,v=d.position,C=d.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(h){return Object.assign({},h,S(v,h.position))}).map(function(h,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(h.position)})]},p)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,l,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),h===0?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,S)]})}),2)]})}return u}(),S=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},B=function(s,d){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.has_seed,N=h.seed,V=h.has_disk,y=h.disk,I,L;return p?I=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?L=y.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return C("select_empty_disk")}return w}()})})})]})})},g=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.disk,N=h.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function y(){return C("extract",{id:V.id})}return y}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})})})]},"Core Genes")},i=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.reagent_genes,p=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:h,do_we_show:p})},c=function(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.trait_genes,p=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:h,do_we_show:p})},m=function(s,d){var v=s.title,C=s.gene_set,h=s.do_we_show,p=(0,a.useBackend)(d),N=p.act,V=p.data,y=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:h?C.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(y!=null&&y.can_extract),icon:"save",onClick:function(){function L(){return N("extract",{id:I.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return N("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},l=function(s,d){var v=s.title,C=s.gene_set,h=s.do_we_show,p=(0,a.useBackend)(d),N=p.act,V=p.data,y=V.has_seed,I=V.empty_disks,L=V.stat_disks,w=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!y,icon:"arrow-circle-down",onClick:function(){function E(){return N("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!y,content:"Replace",onClick:function(){function E(){return N("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(S,B){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.data,c=i.security,m=i.medical,l=i.diagnostic,u=i.pressure,s=i.radioactivity,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:217,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,b,{label:"Pressure",type:"pressure",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:s,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return S}(),b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=B.label,m=B.type,l=m===void 0?null:m,u=B.is_active,s=B.act_on,d=s===void 0?"hud_on":s,v=B.act_off,C=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function h(){return i(u?C:d,{hud_type:l})}return h}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function u(){return g("dispense",{gland_id:l.id})}return u}()},l.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.charging_state,m=i.charge_count,l=i.breaker,u=i.ext_power,s=function(){function v(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),d=function(){function v(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[d(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function v(){return g("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return i("access",{access:l})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(l){return i("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return i("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return S}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,S=r.HandheldChemDispenser=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.amount,d=u.energy,v=u.maxEnergy,C=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[d," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(h,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===h,content:h,onClick:function(){function N(){return l("amount",{amount:h})}return N}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"dispense"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"remove"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function h(){return l("mode",{mode:"isolate"})}return h}()})]})})]})})})},k=function(i,c){for(var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.chemicals,d=s===void 0?[]:s,v=u.current_reagent,C=[],h=0;h<(d.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[d.map(function(p,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return l("dispense",{reagent:p.id})}return V}()},N)}),C.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.on,u=m.user_health,s=m.minHealth,d=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:d,value:v,format:function(){function C(h){return(0,a.toFixed)(h,1)}return C}(),width:"80px",onDrag:function(){function C(h,p){return c("alarm_health",{alarm_health:p})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:S(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return B}(),S=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=(0,a.useLocalState)(k,"currentDeck",""),l=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),d=s[0],v=s[1],C=c.decks,h=c.ai_override,p=c.emagged,N=function(){function V(y){i("select_deck",{deck:y}),u(y),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[d&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===l,onClick:function(){function y(){return N(V)}return y}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return i("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return i("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return S}(),b=function(B,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function i(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,g)]})})]})}return i}(),S=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.help;if(d)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},B=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.lines,v=s.playing,C=s.repeat,h=s.maxRepeats,p=s.tempo,N=s.minTempo,V=s.maxTempo,y=s.tickLag,I=s.volume,L=s.minVolume,w=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:d.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:h,value:C,stepPixelSize:59,onChange:function(){function x(E,P){return u("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+y})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-y})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return u("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.allowedInstrumentNames,v=s.instrumentLoaded,C=s.instrument,h=s.canNoteShift,p=s.noteShift,N=s.noteShiftMin,V=s.noteShiftMax,y=s.sustainMode,I=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return y===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(M){return(0,a.round)(M*100)/100+" seconds"}return D}(),onChange:function(){function D(M,R){return u("setlinearfalloff",{new:R/10})}return D}()})):y===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(M,R){return u("setexpfalloff",{new:R})}return D}()})),d.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:d,selected:C,width:"50%",onSelected:function(){function D(M){return u("switchinstrument",{name:M})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&h)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:V,value:p,stepPixelSize:2,format:function(){function D(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return D}(),onChange:function(){function D(M,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,mb:"0.4rem",onSelected:function(){function D(M){return u("setsustainmode",{new:M})}return D}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(M,R){return u("setdropoffvolume",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},g=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,d=s.playing,v=s.lines,C=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||d,icon:"plus",content:"Add Line",onClick:function(){function h(){return u("newline",{line:v.length+1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function h(){return u("edit")}return h}()})],4),children:!!C&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(h,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:p+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:p+1})}return N}()})],4),children:h},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),S=n(51057),B=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},g=3,i=function(l){var u="";if(l.altKey&&(u+="Alt"),l.ctrlKey&&(u+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(u+="Shift"),l.location===g&&(u+="Numpad"),B(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var s=l.keyCode-48;u+="Shift"+s}else{var d=l.key.toUpperCase();u+=k[d]||d}return u},c=r.KeyComboModal=function(){function m(l,u){var s=(0,t.useBackend)(u),d=s.act,v=s.data,C=v.init_value,h=v.large_buttons,p=v.message,N=p===void 0?"":p,V=v.title,y=v.timeout,I=(0,t.useLocalState)(u,"input",C),L=I[0],w=I[1],A=(0,t.useLocalState)(u,"binding",!0),x=A[0],E=A[1],P=function(){function R(O){if(!x){O.key===a.KEY.Enter&&d("submit",{entry:L}),(0,a.isEscape)(O.key)&&d("cancel");return}if(O.preventDefault(),B(O)){D(i(O)),E(!1);return}else if(O.key===a.KEY.Escape){D(C),E(!1);return}}return R}(),D=function(){function R(O){O!==L&&w(O)}return R}(),M=130+(N.length>30?Math.ceil(N.length/3):0)+(N.length&&h?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[y&&(0,e.createComponentVNode)(2,S.Loader,{value:y}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(O){P(O)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){D(C),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return g("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return g("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return g("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return g("reset")}return l}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.data,m=i.config,l=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," ",d.units]}),2)]},d.name)})})})})]})})})}return B}(),S=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.isAdmin,s=l.isSlaved,d=l.isMalf,v=l.isAIMalf,C=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:d?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(d||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function h(){return m("set_view",{set_view:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function h(){return m("set_view",{set_view:1})}return h}()})]}),C===0&&(0,e.createComponentVNode)(2,b),C===1&&(0,e.createComponentVNode)(2,S)]})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.has_zeroth_laws,s=l.zeroth_laws,d=l.has_ion_laws,v=l.ion_laws,C=l.ion_law_nr,h=l.has_inherent_laws,p=l.inherent_laws,N=l.has_supplied_laws,V=l.supplied_laws,y=l.channels,I=l.channel,L=l.isMalf,w=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,P=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,B,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!d&&(0,e.createComponentVNode)(2,B,{title:C,laws:v,ctx:i}),!!h&&(0,e.createComponentVNode)(2,B,{title:"Inherent",laws:p,ctx:i}),!!N&&(0,e.createComponentVNode)(2,B,{title:"Supplied",laws:V,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:y.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},S=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function d(){return m("transfer_laws",{transfer_laws:s.ref})}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)})]})},s.name)})})},B=function(g,i){var c=(0,a.useBackend)(g.ctx),m=c.act,l=c.data,u=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:g.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),g.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function d(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return d}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function d(){return m("edit_law",{edit_law:s.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function d(){return m("delete_law",{delete_law:s.ref})}return d}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function C(h,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),S=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=h.args,L=y.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:I.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return w}()})]})},B=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=h.args,L=y.selected_report,w=y.report_categories,A=y.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.selected_rating,L=Array(10).fill().map(function(w,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},g=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=h.args,L=y.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:I.id,user_ckey:L})}return w}()})]})},i=function(h,p){var N=(0,a.useBackend)(p),V=N.data,y=(0,a.useLocalState)(p,"tabIndex",0),I=y[0],L=y[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(h,p){var N=(0,a.useLocalState)(p,"tabIndex",0),V=N[0];switch(V){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,d);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.searchcontent,L=y.book_categories,w=y.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},l=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.external_booklist,L=y.archive_pagenumber,w=y.num_pages,A=y.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.programmatic_booklist,L=y.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(w,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return x}()})]})]},A)})]})})},s=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.selectedbook,L=y.book_categories,w=y.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},d=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},w)})]})})},v=function(h,p){var N=(0,a.useBackend)(p),V=N.act,y=N.data,I=y.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",S),(0,f.modalRegisterBodyOverride)("report_book",B),(0,f.modalRegisterBodyOverride)("rate_info",g)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})]})}return i}(),S=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.pagestate;switch(d){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,g);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return d}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function d(){return(0,f.modalOpen)(m,"specify_ckey_search")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function d(){return u("view_reported_books")}return d}()})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:v.id})}return C}()})]})]},v.id)})]})})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",d,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function h(){return u("delete_book",{bookid:C.id})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function h(){return u("view_book",{bookid:C.id})}return h}()})]})]},C.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),S=n(98595),B=r.ListInputModal=function(){function i(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,d=s.items,v=d===void 0?[]:d,C=s.message,h=C===void 0?"":C,p=s.init_value,N=s.timeout,V=s.title,y=(0,f.useLocalState)(m,"selected",v.indexOf(p)),I=y[0],L=y[1],w=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=w[0],x=w[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],D=E[1],M=function(){function G(X){var J=z.length-1;if(X===b.KEY_DOWN)if(I===null||I===J){var se;L(0),(se=document.getElementById("0"))==null||se.scrollIntoView()}else{var ie;L(I+1),(ie=document.getElementById((I+1).toString()))==null||ie.scrollIntoView()}else if(X===b.KEY_UP)if(I===null||I===0){var me;L(J),(me=document.getElementById(J.toString()))==null||me.scrollIntoView()}else{var q;L(I-1),(q=document.getElementById((I-1).toString()))==null||q.scrollIntoView()}}return G}(),R=function(){function G(X){X!==I&&L(X)}return G}(),O=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(X){var J=String.fromCharCode(X),se=v.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(se){var ie,me=v.indexOf(se);L(me),(ie=document.getElementById(me.toString()))==null||ie.scrollIntoView()}}return G}(),_=function(){function G(X){var J;X!==P&&(D(X),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),U=function(){function G(){x(!A),D("")}return G}(),z=v.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),$=330+Math.ceil(h.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,S.Window,{title:V,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function G(X){var J=window.event?X.which:X.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(X.preventDefault(),M(J)),J===b.KEY_ENTER&&(X.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(X.preventDefault(),F(J)),J===b.KEY_ESCAPE&&(X.preventDefault(),u("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return U()}return G}()}),className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:z,onClick:R,onFocusSearch:O,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,g,{filteredItems:z,onSearch:_,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return i}(),k=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,d=c.onClick,v=c.onFocusSearch,C=c.searchBarVisible,h=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function V(){return d(N)}return V}(),onDblClick:function(){function V(y){y.preventDefault(),u("submit",{entry:s[h]})}return V}(),onKeyDown:function(){function V(y){var I=window.event?y.which:y.keyCode;C&&I>=b.KEY_A&&I<=b.KEY_Z&&(y.preventDefault(),v())}return V}(),selected:N===h,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},N)})})},g=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,d=c.onSearch,v=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function h(p){p.preventDefault(),u("submit",{entry:s[C]})}return h}(),onInput:function(){function h(p,N){return d(N)}return h}(),placeholder:"Search...",value:v})}},26826:function(T,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b={Default:function(){function c(m,l){return m.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,l){return m.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,l){return m.gear.cost-l.gear.cost}return c}()},S=r.Loadout=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=(0,t.useLocalState)(l,"search",!1),C=v[0],h=v[1],p=(0,t.useLocalState)(l,"searchText",""),N=p[0],V=p[1],y=(0,t.useLocalState)(l,"category",Object.keys(d.gears)[0]),I=y[0],L=y[1],w=(0,t.useLocalState)(l,"tweakedGear",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,f.Window,{width:1105,height:650,children:[A&&(0,e.createComponentVNode)(2,i,{tweakedGear:A,setTweakedGear:x}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,B,{category:I,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,g,{setTweakedGear:x})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:I,search:C,setSearch:h,searchText:N,setSearchText:V})})]})})]})})]})}return c}(),B=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.category,C=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(d.gears).map(function(h){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===v,style:{"white-space":"nowrap"},onClick:function(){function p(){return C(h)}return p}(),children:h},h)})})},k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.user_tier,C=d.gear_slots,h=d.max_gear_slots,p=m.category,N=m.search,V=m.setSearch,y=m.searchText,I=m.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),w=L[0],A=L[1],x=(0,t.useLocalState)(l,"sortReverse",!1),E=x[0],P=x[1],D=(0,a.createSearch)(y,function(R){return R.name}),M;return y.length>2?M=Object.entries(d.gears).reduce(function(R,O){var F=O[0],_=O[1];return R.concat(Object.entries(_).map(function(U){var z=U[0],$=U[1];return{key:z,gear:$}}))},[]).filter(function(R){var O=R.gear;return D(O)}):M=Object.entries(d.gears[p]).map(function(R){var O=R[0],F=R[1];return{key:O,gear:F}}),M.sort(b[w]),E&&(M=M.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function R(O){return A(O)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:E?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return P(!E)}return R}()})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:y,onInput:function(){function R(O){return I(O.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:N,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){V(!N),I("")}return R}()})})]}),children:M.map(function(R){var O=R.key,F=R.gear,_=12,U=Object.keys(d.selected_gears).includes(O),z=F.cost===1?F.cost+" Point":F.cost+" Points",$=(0,e.createComponentVNode)(2,o.Box,{children:[F.name.length>_&&(0,e.createComponentVNode)(2,o.Box,{children:F.name}),F.gear_tier>v&&(0,e.createComponentVNode)(2,o.Box,{mt:F.name.length>_&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([F.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:F.allowed_roles.map(function(J){return(0,e.createComponentVNode)(2,o.Box,{children:J},J)})}),tooltipPosition:"left"}),Object.entries(F.tweaks).map(function(J){var se=J[0],ie=J[1];return ie.map(function(me){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:me.icon,tooltip:me.tooltip,tooltipPosition:"top"},se)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:F.desc,tooltipPosition:"top"})],0),X=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:F.gear_tier>0&&"Tier "+F.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:F.icon,dmIconState:F.icon_state,tooltip:(F.name.length>_||F.gear_tier>0)&&$,tooltipPosition:"bottom",selected:U,disabled:F.gear_tier>v||C+F.cost>h&&!U,buttons:G,buttonsAlt:X,onClick:function(){function J(){return s("toggle_gear",{gear:O})}return J}(),children:F.name},O)})})},g=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.setTweakedGear,C=Object.entries(d.gears).reduce(function(h,p){var N=p[0],V=p[1],y=Object.entries(V).filter(function(I){var L=I[0];return Object.keys(d.selected_gears).includes(L)}).map(function(I){var L=I[0],w=I[1];return Object.assign({key:L},w)});return h.concat(y)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function h(){return s("clear_loadout")}return h}()}),children:C.map(function(h){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:h.icon,dmIconState:h.icon_state,buttons:(0,e.createFragment)([Object.entries(h.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function p(){return v(h)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function p(){return s("toggle_gear",{gear:h.key})}return p}()})],0),children:h.name},h.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d.gear_slots,maxValue:d.max_gear_slots,ranges:{bad:[d.max_gear_slots,1/0],average:[d.max_gear_slots*.66,d.max_gear_slots],good:[0,d.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",d.gear_slots,"/",d.max_gear_slots]})})})})]})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.tweakedGear,C=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:v.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function h(){return C("")}return h}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(v.tweaks).map(function(h){var p=h[0],N=h[1];return N.map(function(V){var y=d.selected_gears[v.key][p];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:y?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function I(){return s("set_tweak",{gear:v.key,tweak:p})}return I}()}),children:[y||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+y}})]},p)})})})})})})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(M,R){return P("configure",{key:w,value:R,ref:x})}return D}()})},b=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return P("configure",{key:w,value:!A,ref:x})}return D}()})},S=function(I,L){var w=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return P("configure",{key:w,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},B=function(I,L){var w=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(L),D=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(R){return D("configure",{key:w,value:R,ref:E})}return M}()})},k=function(I,L){var w=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,D=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,B,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},g=function(I,L){var w=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&A?"bad":"good",children:w&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},i=function(I,L){var w=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,D=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},c=function(I,L){var w=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,D=I.statusbrute,M=I.statusburn,R=I.statustoxin,O=I.statusoxy,F=I.statustemp,_=I.statusnutrition,U=I.statusfingerprints,z=I.statusdna,$=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!$&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),$.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:g,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,L){var w=I.configuration_data,A=I.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},d=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.malfunctioning,D=x.locked,M=x.open,R=x.selected_module,O=x.complexity,F=x.complexity_max,_=x.wearer_name,U=x.wearer_job,z=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function $(){return A("activate")}return $}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function $(){return A("lock")}return $}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[O," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},C=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.control,D=x.helmet,M=x.chestplate,R=x.gauntlets,O=x.boots,F=x.core,_=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:O||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},h=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.modules,D=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.complexity_max,P=x.modules,D=(0,a.useLocalState)(L,"module_configuration",null),M=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(O){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:O.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===O.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:O.configuration_data,module_ref:O.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[O.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:O.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[O.cooldown>0&&O.cooldown/10||"0","/",O.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:O.ref})}return F}(),icon:"bullseye",selected:O.module_active,tooltip:d(O.module_type),tooltipPosition:"left",disabled:!O.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(O.ref)}return F}(),icon:"cog",selected:M===O.ref,tooltip:"Configure",tooltipPosition:"left",disabled:O.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:O.ref})}return F}(),icon:"thumbtack",selected:O.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!O.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:O.description})]})})},O.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function y(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return y}(),V=r.MODsuit=function(){function y(I,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return y}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),S=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),B=r.MagnetController=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.autolink,s=l.code,d=l.frequency,v=l.linkedMagnets,C=l.magnetConfiguration,h=l.path,p=l.pathPosition,N=l.probing,V=l.powerState,y=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(d/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:y.value,minValue:y.min,maxValue:y.max,onChange:function(){function I(L,w){return m("set_speed",{speed:w})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(S.entries()).map(function(I){var L=I[0],w=I[1],A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,b.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:h.map(function(I,L){var w=S.get(I)||{icon:"question"},A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),v.map(function(I,L){var w=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function P(D,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function P(D,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.recharge_port,m=c&&c.mech,l=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return g("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),S=r.MechaControlConsole=function(){function B(k,g){var i=(0,t.useBackend)(g),c=i.act,m=i.data,l=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function d(){return c("send_message",{mt:s.uid})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function d(){return c("get_log",{mt:s.uid})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function d(){return c("shock",{mt:s.uid})}return d}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return B}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),S=n(321),B=n(5485),k=n(22091),g={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:g[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.loginState,M=P.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,d):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,N):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return w}(),u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.records,R=(0,t.useLocalState)(x,"searchText",""),O=R[0],F=R[1],_=(0,t.useLocalState)(x,"sortId","name"),U=_[0],z=_[1],$=(0,t.useLocalState)(x,"sortOrder",!0),G=$[0],X=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(se,ie){return F(ie)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,y,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,y,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,y,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,y,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,y,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(O,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,se){var ie=G?1:-1;return J[U].localeCompare(se[U])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[J.p_stat],onClick:function(){function se(){return P("view_record",{view_record:J.ref})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return P("del_all_med_records")}return D}()})})]})})},d=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical,R=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function O(){return P("print_record")}return O}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function O(){return P("new_med_record")}return O}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function O(){return P("del_med_record")}return O}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,h)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function O(){return c(x,M)}return O}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},C=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},O)})})})})},h=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return P("del_comment",{del_comment:O+1})}return F}()})]},O)})})})},p=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.virus,R=(0,t.useLocalState)(x,"searchText",""),O=R[0],F=R[1],_=(0,t.useLocalState)(x,"sortId2","name"),U=_[0],z=_[1],$=(0,t.useLocalState)(x,"sortOrder2",!0),G=$[0],X=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(se,ie){return F(ie)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(O,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,se){var ie=G?1:-1;return J[U].localeCompare(se[U])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function se(){return P("vir",{vir:J.D})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:g[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},y=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),R=M[0],O=M[1],F=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function U(){P===F?O(!R):(D(F),O(!0))}return U}(),children:[_,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),R=M[0],O=M[1],F=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function U(){P===F?O(!R):(D(F),O(!0))}return U}(),children:[_,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.screen,R=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function O(){P("screen",{screen:2})}return O}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function O(){P("screen",{screen:5})}return O}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function O(){P("screen",{screen:6})}return O}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function O(){return P("screen",{screen:7})}return O}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=g.product,s=g.productImage,d=g.productCategory,v=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:d})}return C}()})})]})},b=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),u=l[0],s=m.products,d=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:d[C.path],productCategory:v[u]},C.name)})})},S=r.MerchVendor=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function d(){return m("change")}return d}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),B=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),u=l[0],s=l[1],d=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items","gridLayout"];function S(l,u){if(l==null)return{};var s={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(u.includes(d))continue;s[d]=l[d]}return s}var B={Alphabetical:function(){function l(u,s){return u-s}return l}(),Availability:function(){function l(u,s){return-(u.affordable-s.affordable)}return l}(),Price:function(){function l(u,s){return u.price-s.price}return l}()},k=r.MiningVendor=function(){function l(u,s){var d=(0,t.useLocalState)(s,"gridLayout",!1),v=d[0],C=d[1];return(0,e.createComponentVNode)(2,f.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c,{gridLayout:v,setGridLayout:C}),(0,e.createComponentVNode)(2,i,{gridLayout:v})]})})})}return l}(),g=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.has_id,p=C.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:h,children:h?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.has_id,p=C.id,N=C.items,V=u.gridLayout,y=(0,t.useLocalState)(s,"search",""),I=y[0],L=y[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"descending",!1),P=E[0],D=E[1],M=(0,a.createSearch)(I,function(F){return F[0]}),R=!1,O=Object.entries(N).map(function(F,_){var U=Object.entries(F[1]).filter(M).map(function(z){return z[1].affordable=h&&p.points>=z[1].price,z[1]}).sort(B[A]);if(U.length!==0)return P&&(U=U.reverse()),R=!0,(0,e.createComponentVNode)(2,m,{title:F[0],items:U,gridLayout:V},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?O:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var d=u.gridLayout,v=u.setGridLayout,C=(0,t.useLocalState)(s,"search",""),h=C[0],p=C[1],N=(0,t.useLocalState)(s,"sort",""),V=N[0],y=N[1],I=(0,t.useLocalState)(s,"descending",!1),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function A(x,E){return p(E)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:d?"list":"table-cells-large",height:1.75,tooltip:d?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function A(){return v(!d)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(B),width:"100%",onSelected:function(){function A(x){return y(x)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function A(){return w(!L)}return A}()})})]})})},m=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=u.title,p=u.items,N=u.gridLayout,V=S(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:h},V,{children:p.map(function(y){return N?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:y.icon,dmIconState:y.icon_state,disabled:!C.has_id||C.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ae>=10?"9+":ae})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:O===1,onClick:function(){function le(){return x("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:O===2&&F[U-1]===le,onClick:function(){function Z(){return x("channel",{uid:le.uid})}return Z}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,S.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:me?"minus-square":"minus-square-o",title:"Censor Mode: "+(me?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return q(!me)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,S.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,S.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function le(){return x("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function le(){return x("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,B.TemporaryNotice),re]})]})})]})}return I}(),s=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=L.icon,P=E===void 0?"":E,D=L.iconSpin,M=L.selected,R=M===void 0?!1:M,O=L.security,F=O===void 0?!1:O,_=L.onClick,U=L.title,z=L.children,$=i(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:_},$,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),z]})))},d=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.screen,D=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,O=E.channels,F=E.stories,_=E.wanted,U=(0,t.useLocalState)(w,"fullStories",[]),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"censorMode",!1),X=G[0],J=G[1],se=P===2&&M>-1?O[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,C,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:se?se.icon:"newspaper",mr:"0.5rem"}),se?se.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,me){return(0,e.createComponentVNode)(2,C,{story:ie},me)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!se&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!se.admin&&!D,selected:se.censored,icon:se.censored?"comment-slash":"comment",content:se.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return x("censor_channel",{uid:se.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,S.modalOpen)(w,"manage_channel",{uid:se.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:se.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:se.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:se.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:se.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ie,me){return ie+me.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.jobs,D=E.wanted,M=Object.entries(P).reduce(function(R,O){var F=O[0],_=O[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,C,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},l[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(O){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!O.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",O.title]},O.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.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."})]})]})},C=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=L.story,D=L.wanted,M=D===void 0?!1:D,R=E.is_admin,O=(0,t.useLocalState)(w,"fullStories",[]),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"censorMode",!1),z=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,h,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,X){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},X)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(F,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},h=function(L,w){var A=L.name,x=i(L,g),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return D(A)}return M}()},x)))},p=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,S.modalClose)(w);return}var D=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,O=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||R||"Unknown"),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ie=se[0],me=se[1],q=(0,t.useLocalState)(w,"isPublic",D?!!(P!=null&&P.public):!1),re=q[0],ae=q[1],le=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),Z=le[0],ne=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function te(fe,pe){return _(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function te(fe,pe){return $(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function te(fe,pe){return J(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,pe){return me(pe)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"toggle-on":"toggle-off",content:re?"Yes":"No",onClick:function(){function te(){return ae(!re)}return te}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Z,icon:Z?"lock":"lock-open",content:Z?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return ne(!Z)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,S.modalAnswer)(w,L.id,"",{author:F,name:z.substr(0,49),description:X.substr(0,128),icon:ie,public:re?1:0,admin_locked:Z?1:0})}return te}()})]})},V=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.channels,M=E.channel_idx,R=M===void 0?-1:M,O=!!L.args.is_admin,F=L.args.scanned_user,_=D.slice().sort(function(te,fe){if(R<0)return 0;var pe=D[R-1];if(pe.uid===te.uid)return-1;if(pe.uid===fe.uid)return 1}).filter(function(te){return O||!te.frozen&&(te.author===F||!!te.public)}),U=(0,t.useLocalState)(w,"author",F||"Unknown"),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"title",""),ie=se[0],me=se[1],q=(0,t.useLocalState)(w,"body",""),re=q[0],ae=q[1],le=(0,t.useLocalState)(w,"adminLocked",!1),Z=le[0],ne=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!O,width:"100%",value:z,onInput:function(){function te(fe,pe){return $(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:_.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return J(fe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function te(fe,pe){return me(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:re,onInput:function(){function te(fe,pe){return ae(pe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return x(P?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,h,{name:"inserted_photo_"+P.uid+".png",float:"right"}),re.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),O&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Z,icon:Z?"lock":"lock-open",content:Z?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return ne(!Z)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||X.trim().length===0||ie.trim().length===0||re.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,S.modalAnswer)(w,"create_story","",{author:z,channel:X,title:ie.substr(0,127),body:re.substr(0,1023),admin_locked:Z?1:0})}return te}()})]})},y=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,O=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||R||"Unknown"),F=O[0],_=O[1],U=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=U[0],$=U[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),X=G[0],J=G[1],se=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=se[0],me=se[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function q(re,ae){return _(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function q(re,ae){return $(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function q(re,ae){return J(ae)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()}),!!P&&(0,e.createComponentVNode)(2,h,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return me(!ie)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){x("clear_wanted_notice"),(0,S.modalClose)(w)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,S.modalAnswer)(w,L.id,"",{author:F,name:z.substr(0,127),description:X.substr(0,511),admin_locked:ie?1:0})}return q}()})]})};(0,S.modalRegisterBodyOverride)("create_channel",N),(0,S.modalRegisterBodyOverride)("manage_channel",N),(0,S.modalRegisterBodyOverride)("create_story",V),(0,S.modalRegisterBodyOverride)("wanted_notice",y)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function S(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return i("interact",{paper:l.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),i("showFull",{paper:l.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:l.name,children:(0,a.decodeHtmlEntities)(l.contents)})},l.ref)})})})})}return S}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return g("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return g("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return g("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return g("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return g("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return g("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return g("deploy")}return c}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),S=n(98595),B=r.NumberInputModal=function(){function g(i,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.init_value,d=u.large_buttons,v=u.message,C=v===void 0?"":v,h=u.timeout,p=u.title,N=(0,f.useLocalState)(c,"input",s),V=N[0],y=N[1],I=function(){function A(x){x!==V&&y(x)}return A}(),L=function(){function A(x){x!==V&&y(x)}return A}(),w=140+Math.max(Math.ceil(C.length/3),C.length>0&&d?5:0);return(0,e.createComponentVNode)(2,S.Window,{title:p,width:270,height:w,children:[h&&(0,e.createComponentVNode)(2,a.Loader,{value:h}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:V}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return g}(),k=function(i,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.min_value,d=u.max_value,v=u.init_value,C=u.round_value,h=i.input,p=i.onClick,N=i.onChange,V=Math.round(h!==s?Math.max(h/2,s):d/2),y=h===s&&s>0||h===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===s,icon:"angle-double-left",onClick:function(){function I(){return p(s)}return I}(),tooltip:h===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:s,maxValue:d,onChange:function(){function I(L,w){return N(w)}return I}(),onEnter:function(){function I(L,w){return l("submit",{entry:w})}return I}(),value:h})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===d,icon:"angle-double-right",onClick:function(){function I(){return p(d)}return I}(),tooltip:h===d?"Max":"Max ("+d+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:y,icon:"divide",onClick:function(){function I(){return p(V)}return I}(),tooltip:y?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:h===v,icon:"redo",onClick:function(){function I(){return p(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],S=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],B={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.OperatingComputer=function(){function l(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.hasOccupant,p=C.choice,N;return p?N=(0,e.createComponentVNode)(2,m):N=h?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return l}(),i=function(u,s){var d=(0,t.useBackend)(s),v=d.data,C=v.occupant,h=C.activeSurgeries;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),S.map(function(p,N){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:p[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[p[1]]/100,ranges:B,children:(0,a.round)(C[p[1]])},N)},N)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:k[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Active surgeries",level:"2",children:C.inSurgery&&h?h.map(function(p,N){return(0,e.createComponentVNode)(2,f.Section,{style:{textTransform:"capitalize"},title:p.name+" ("+p.location+")",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:p.step},N)},N)},N)}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.verbose,p=C.health,N=C.healthAlarm,V=C.oxy,y=C.oxyAlarm,I=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:y,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return v(I?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function S(d,v){var C=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(C)return(C=C.call(d)).next.bind(C);if(Array.isArray(d)||(C=B(d))||v&&d&&typeof d.length=="number"){C&&(d=C);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(d,v){if(d){if(typeof d=="string")return k(d,v);var C={}.toString.call(d).slice(8,-1);return C==="Object"&&d.constructor&&(C=d.constructor.name),C==="Map"||C==="Set"?Array.from(d):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(d,v):void 0}}function k(d,v){(v==null||v>d.length)&&(v=d.length);for(var C=0,h=Array(v);CC},m=function(v,C){var h=v.name,p=C.name;if(!h||!p)return 0;var N=h.match(g),V=p.match(g);if(N&&V&&h.replace(g,"")===p.replace(g,"")){var y=parseInt(N[1],10),I=parseInt(V[1],10);return y-I}return c(h,p)},l=function(v,C){var h=v.searchText,p=v.source,N=v.title,V=v.color,y=v.sorted,I=p.filter(i(h));return y&&I.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+p.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["job_icons16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function y(){return p("orbit",{ref:V.ref})}return y}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function d(v,C){for(var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.alive,y=N.antagonists,I=N.highlights,L=N.response_teams,w=N.tourist,A=N.auto_observe,x=N.dead,E=N.ssd,P=N.ghosts,D=N.misc,M=N.npcs,R=(0,t.useLocalState)(C,"searchText",""),O=R[0],F=R[1],_={},U=S(y),z;!(z=U()).done;){var $=z.value;_[$.antag]===void 0&&(_[$.antag]=[]),_[$.antag].push($)}var G=Object.entries(_);G.sort(function(J,se){return c(J[0],se[0])});var X=function(){function J(se){for(var ie=0,me=[G.map(function(ae){var le=ae[0],Z=ae[1];return Z}),w,I,V,P,E,x,M,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(J){var se=J[0],ie=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:se+" - ("+ie.length+")",level:2,children:ie.filter(i(O)).sort(m).map(function(me){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:me},me.name)})},se)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:L,searchText:O,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Tourists",source:w,searchText:O,color:"violet"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:V,searchText:O,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:P,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"SSD",source:E,searchText:O,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:x,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:O,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:D,searchText:O,sorted:!1})]})})}return d}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function S(d){if(d==null)throw new TypeError("Cannot destructure "+d)}var B=(0,b.createLogger)("OreRedemption"),k=function(v){return v.toLocaleString("en-US")+" pts"},g=r.OreRedemption=function(){function d(v,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return d}(),i=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.id,y=N.points,I=N.disk,L=Object.assign({},(S(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:y>0?"good":"grey",bold:y>0&&"good",children:k(y)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.sheets,y=Object.assign({},(S(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},y,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.alloys,y=Object.assign({},(S(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},y,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(v,C){var h;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(h=v.columns)==null?void 0:h.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(y,I){return p(N.value?"sheet":"alloy",{id:N.id,amount:I})}return V}()})})]})})},s=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(y,I){return p(N.value?"sheet":"alloy",{id:N.id,amount:I})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),S=function(g){var i;try{i=b("./"+g+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",g);throw m}var c=i[g];return c||(0,f.routingError)("missingExport",g)},B=r.PAI=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.app_template,s=l.app_icon,d=l.app_title,v=S(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),d,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),S=function(c){var m;try{m=b("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var l=m[c];return l||(0,f.routingError)("missingExport",c)},B=r.PDA=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=S(d.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:d.icon,mr:1}),d.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,g)})]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.idInserted,v=s.idLink,C=s.stationTime,h=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:d?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:h?["Eject "+h]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},g=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!d.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:d.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.active,l=c.anchored,u=c.broken,s=c.emagged,d=c.fuel_type,v=c.fuel_usage,C=c.fuel_stored,h=c.fuel_cap,p=c.is_ai,N=c.tmp_current,V=c.tmp_max,y=c.tmp_overheat,I=c.output_max,L=c.power_gen,w=c.output_set,A=c.has_fuel,x=C/h,E=N/V,P=w*L,D=Math.round(C/v*2),M=Math.round(D/60),R=D>120?M+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function O(){return i("toggle_power")}return O}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function O(F,_){return i("change_power",{change_power:_})}return O}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[y>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),y>20&&y<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),y>1&&y<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),y===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function O(){return i("eject_fuel")}return O}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return S}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function l(u,s){var d=(0,a.useBackend)(s),v=d.data,C=v.beakerLoaded,h=v.beakerContainsBlood,p=v.beakerContainsVirus,N=v.resistances,V=N===void 0?[]:N,y;return C?h?h&&!p&&(y=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):y=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):y=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[y&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:y})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return l}(),b=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!h,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},S=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.beakerContainsVirus,p=u.strain,N=p.commonName,V=p.description,y=p.diseaseAgent,I=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,A=p.transmissionRoute,x=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!h)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return x&&(N!=null&&N!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:y}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},B=function(u,s){var d,v=(0,a.useBackend)(s),C=v.act,h=v.data,p=!!h.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return C("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(d=u.sectionTitle)!=null?d:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,S,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var d,v=(0,a.useBackend)(s),C=v.act,h=v.data,p=h.selectedStrainIndex,N=h.strains,V=N[p-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(N.length===1){var y;return(0,e.createFragment)([(0,e.createComponentVNode)(2,B,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((y=N[0].symptoms)==null?void 0:y.length)>0&&(0,e.createComponentVNode)(2,i,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,w){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function x(){return C("switch_strain",{strain_index:w+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,B,{strain:V,strainIndex:p}),((d=V.symptoms)==null?void 0:d.length)>0&&(0,e.createComponentVNode)(2,i,{className:"remove-section-bottom-padding",strain:V})]})})})},g=function(u){return u.reduce(function(s,d){return s+d},0)},i=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(d,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(d){return d.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.synthesisCooldown,p=C.beakerContainsVirus,N=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(V,y){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[y%c.length],disabled:!!h,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:y+1})}return I}(),mr:"0.5em"}),V]},y)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(79646),b=n(36352),S=n(98595),B=n(35840),k=n(38307),g=function(u){switch(u){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},i=r.ParticleAccelerator=function(){function l(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,y=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,S.Window,{width:395,height:h?160:A==="north"||A==="south"?540:465,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{dmIcon:"sync",content:"Connect",onClick:function(){function x(){return v("scan")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"good":"bad",children:h?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:!h,onClick:function(){function x(){return v("power")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!h||N===0,onClick:function(){function x(){return v("remove_strength")}return x}(),mr:"4px"}),N,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!h||N===V,onClick:function(){function x(){return v("add_strength")}return x}(),ml:"4px"})]})]})}),h?"":(0,e.createComponentVNode)(2,t.Section,{title:A?"EM Acceleration Chamber Orientation: "+(0,o.capitalize)(A):"Place EM Acceleration Chamber Next To Console",children:A===0?"":A==="north"||A==="south"?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,c)})]})})}return l}(),c=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,y=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(A==="east"?I:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(A==="east"?w:I).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})},m=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.assembled,p=C.power,N=C.strength,V=C.max_strength,y=C.icon,I=C.layout_1,L=C.layout_2,w=C.layout_3,A=C.orientation;return(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(A==="north"?I:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(A==="north"?w:I).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,tooltip:x.status,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:y,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})}},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},S=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,B)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function d(){return m("choose_pda",{selectedPda:s})}return d}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function d(){return m("eject_pda")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function d(){return m("paint_pda")}return d}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.busy,u=m.category,s=m.display_craftable_only,d=m.display_compact,v=m.prev_cat,C=m.next_cat,h=m.subcategory,p=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:d?"check-square-o":"square-o",selected:d,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),h&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})]})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:d.ref})}return v}()}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)}),!l&&s.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)})]})})},S=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:d.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)}),!l&&s.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,S)]})})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},S=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:l.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:l.uid})}return u}()})]})},l.name)})})}},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var S={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}},B=function(i,c){var m=i.tempKey,l=b(i,f),u=S[m];if(!u)return null;var s=(0,a.useBackend)(c),d=s.data,v=s.act,C=d.currentTemp,h=u.label,p=u.icon,N=m===C,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:V},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),h]})))},k=r.PoolController=function(){function g(i,c){for(var m=(0,a.useBackend)(c),l=m.data,u=l.emagged,s=l.currentTemp,d=S[s]||S.normal,v=d.label,C=d.color,h=[],p=0,N=Object.entries(S);p50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(h>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,B.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(h)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var C,h,p=v.status;switch(p){case"AOn":C=!0,h=!0;break;case"AOff":C=!0,h=!1;break;case"On":C=!1,h=!0;break;case"Off":C=!1,h=!1;break}var N=(h?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,B.ColorBox,{color:h?"good":"bad",content:C?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),S=n(5485),B=n(98595),k=r.PrisonerImplantManager=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.loginState,d=u.prisonerInfo,v=u.chemicalInfo,C=u.trackingInfo,h;if(!s.logged_in)return(0,e.createComponentVNode)(2,B.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,B.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.name?"eject":"id-card",selected:d.name,content:d.name?d.name:"-----",tooltip:d.name?"Eject ID":"Insert ID",onClick:function(){function N(){return l("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[d.points!==null?d.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:d.points===null,content:"Reset",onClick:function(){function N(){return l("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[d.goal!==null?d.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:d.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:d.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return V}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:N.name,dmIcon:N.icon,dmIconState:N.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function y(){return g("purchase",{purchase:N.itemID})}return y}(),children:[N.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:N.desc},N.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),S=r.RCD=function(){function l(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),B=function(u,s){var d=(0,a.useBackend)(s),v=d.data,C=v.matter,h=v.max_matter,p=h*.7,N=h*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[N,p],bad:[-1/0,N]},value:C,maxValue:h,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+h+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,g,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,g,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,g,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,g,{mode_type:"Deconstruction"})]})})})},g=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=u.mode_type,p=C.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:h,selected:p===h?1:0,onClick:function(){function N(){return v("mode",{mode:h})}return N}()})})},i=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.door_name,p=C.electrochromic,N=C.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,h,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},c=function(u,s){var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.tab,p=C.locked,N=C.one_access,V=C.selected_accesses,y=C.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:h===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:h===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):h===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:y,selectedList:V,accessMod:function(){function I(L){return v("set",{access:L})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(L){return v("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return v("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var d=(0,a.useBackend)(s),v=d.act,C=d.data,h=C.door_types_ui_list,p=C.door_type,N=u.check_number,V=[],y=0;yf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return N("toggleSilent")}return A}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:y>f?"envelope-open-text":"envelope",onClick:function(){function A(){return N("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return N("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return N("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return N("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return N("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:10})}return A}()})]})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return N("setScreen",{setScreen:8})}return A}()})})]})})},i=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y=V.department,I=[],L;switch(C.purpose){case"ASSISTANCE":I=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":I=V.supply_dept,L="Request supplies from another department";break;case"INFO":I=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.filter(function(w){return w!==y}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return N("writeInput",{write:w,priority:S})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return N("writeInput",{write:w,priority:B})}return A}()})]},w)})})})})},c=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y;switch(C.type){case"SUCCESS":y="Message sent successfully";break;case"FAIL":y="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:y,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function I(){return N("setScreen",{setScreen:0})}return I}()})})},m=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y,I;switch(C.type){case"MESSAGES":y=V.message_log,I="Message Log";break;case"SHIPPING":y=V.shipping_log,I="Shipping label print log";break}return y.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),children:y.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,A){return(0,e.createVNode)(1,"div",null,w,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},l=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y=V.recipient,I=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return N("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return N("department",{department:y})}return A}()})})})],4)},u=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y=V.message,I=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return N("writeAnnouncement")}return L}()})],4),children:y})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(I&&y),onClick:function(){function L(){return N("sendAnnouncement")}return L}()})]})})],4)},s=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y=V.shipDest,I=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:I})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(y&&I),onClick:function(){function w(){return N("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:y===w?"Selected":"Select",selected:y===w,onClick:function(){function A(){return N("shipSelect",{shipSelect:w})}return A}()})},w)})})})})],4)},d=function(C,h){var p=(0,a.useBackend)(h),N=p.act,V=p.data,y=V.secondaryGoalAuth,I=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?y?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(y&&I),onClick:function(){function L(){return N("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.network_name,l=c.has_disk,u=c.disk_name,s=c.linked,d=c.techs,v=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function C(){return i("unlink")}return C}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+v+")",icon:"save",selected:1,onClick:function(){function C(){return i("eject_disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function C(){return i("saveall2disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function C(){return i("saveall2network")}return C}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(d).map(function(C){return!(d[C].network_level>0||d[C].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d[C].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!l||!s,onClick:function(){function h(){return i("savetech2network",{tech:C})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!l||!s,onClick:function(){function h(){return i("savetech2disk",{tech:C})}return h}()})]})]},C)})]})})})]})})}return S}(),b=r.LinkMenu=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return i("linktonetworkcontroller",{target_controller:l.addr})}return u}()})})]},l.addr)})]})})}return S}()},68303:function(T,r,n){"use strict";r.__esModule=!0,r.AnalyzerMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.AnalyzerMenu=function(){function S(B,k){var g=(0,t.useBackend)(k),i=g.data,c=g.act,m=i.tech_levels,l=i.loaded_item,u=i.linked_analyzer,s=i.can_discover;return u?l?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function d(){c("deconstruct")}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function d(){c("eject_item")}return d}()}),!s||(0,e.createComponentVNode)(2,o.Button,{content:"Discover",icon:"atom",onClick:function(){function d(){c("discover")}return d}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,b,{techLevel:d},d.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"NO SCIENTIFIC ANALYZER LINKED TO CONSOLE"})}return S}(),b=function(B,k){var g=B.techLevel,i=g.name,c=g.desc,m=g.level,l=g.object_level,u=g.ui_icon,s=l!=null,d=s&&l>=m?Math.max(l,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",i]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:l}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([d!==m&&"upgraded-level"]),children:d})]})}},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_data;return d?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:d.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},S=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_data;if(!d)return null;var v=d.name,C=d.lathe_types,h=d.materials,p=C.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,N.name,0,{style:{"text-transform":"capitalize"}})," x ",N.amount]},N.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return s("updt_design")}return N}()})})]})},B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,d=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!d,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},c)))},k=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,d=u.disk_type,v=u.to_copy,C=c.title;return(0,e.createComponentVNode)(2,B,{title:C,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(h,p){return h.name.localeCompare(p.name)}).map(function(h){var p=h.name,N=h.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){d===f?s("copy_tech",{id:N}):s("copy_design",{id:N})}return V}()})},N)})})})})},g=r.DataDiskMenu=function(){function i(c,m){var l=(0,a.useBackend)(m),u=l.data,s=u.disk_type,d=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return d?(0,e.createComponentVNode)(2,B,{title:"Design Disk",children:(0,e.createComponentVNode)(2,S)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return d?(0,e.createComponentVNode)(2,B,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return i}()},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.data,i=k.act,c=g.category,m=g.matching_designs,l=g.menu,u=l===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(d){var v=d.id,C=d.name,h=d.can_build,p=d.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:h<1,onClick:function(){function N(){return i(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return i(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return i(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},v)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data,g=B.act,i=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";g(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var l=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function d(){var v=c?"disposeP":"disposeI";g(v,{id:s})}return d}()})},s)})})]})}return f}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.data,c=g.act,m=i.menu,l=i.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function d(){c("setCategory",{category:s})}return d}()})},s)})})]})}return S}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data,g=B.act,i=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,l=c.amount,u=c.name,s=function(){function h(p){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";g(N,{id:m,amount:p})}return h}(),d=Math.floor(l/2e3),v=l<1,C=d===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",d," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function h(){return s(1)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function h(){return s("custom")}return h}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function h(){return s(5)}return h}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function h(){return s(50)}return h}()})],0):null})]},m)})})})}return f}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data,g=k.total_materials,i=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),S=n(42878),B=n(70497),k=["menu"];function g(u,s){if(u==null)return{};var d={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;d[v]=u[v]}return d}var i=t.Tabs.Tab,c=function(s,d){var v=(0,a.useBackend)(d),C=v.act,h=v.data,p=h.menu===o.MENU.LATHE?["nav_protolathe",h.submenu_protolathe]:["nav_imprinter",h.submenu_imprinter],N=p[0],V=p[1],y=s.menu,I=g(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i,Object.assign({selected:V===y,onClick:function(){function L(){return C(N,{menu:y})}return L}()},I)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,S.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,B.LatheChemicalStorage)}},l=r.LatheMenu=function(){function u(s,d){var v=(0,a.useBackend)(d),C=v.data,h=C.menu,p=C.linked_lathe,N=C.linked_imprinter;return h===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):h===o.MENU.IMPRINTER&&!N?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(C.menu===o.MENU.LATHE?C.submenu_protolathe:C.submenu_imprinter)]})}return u}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function g(i,c){return k("search",{to_search:c})}return g}()})})}return f}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return g("linktonetworkcontroller",{target_controller:m.addr})}return l}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function S(B,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return S}(),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.sync,l=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){i("unlink")}return u}()}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"gears",color:"red",content:"[ADMIN] Maximize research levels",onClick:function(){function u(){return i("maxresearch")}return u}()}):null]})})},b=function(B,k){var g=(0,a.useBackend)(k),i=g.data,c=g.act,m=i.linked_analyzer,l=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scientific Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"analyze"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!l,content:l?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),S=n(9681),B=n(81421),k=n(6256),g=n(68303),i=["menu"];function c(p,N){if(p==null)return{};var V={};for(var y in p)if({}.hasOwnProperty.call(p,y)){if(N.includes(y))continue;V[y]=p[y]}return V}var m=o.Tabs.Tab,l=r.MENU={MAIN:0,DISK:2,ANALYZE:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(N){switch(N){case l.MAIN:return(0,e.createComponentVNode)(2,h);case l.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case l.ANALYZE:return(0,e.createComponentVNode)(2,g.AnalyzerMenu);case l.LATHE:case l.IMPRINTER:return(0,e.createComponentVNode)(2,S.LatheMenu);case l.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},d=function(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data,w=L.menu,A=N.menu,x=c(N,i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===A,onClick:function(){function E(){return I("nav",{menu:A})}return E}()},x)))},v=r.RndConsole=function(){function p(N,V){var y=(0,a.useBackend)(V),I=y.act,L=y.data;if(!L.linked)return(0,e.createComponentVNode)(2,B.LinkMenu);var w=L.menu,A=L.linked_analyzer,x=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,d,{icon:"flask",menu:l.MAIN,children:"Research"}),!!A&&(0,e.createComponentVNode)(2,d,{icon:"microscope",menu:l.ANALYZE,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,d,{icon:"print",menu:l.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,d,{icon:"memory",menu:l.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,d,{icon:"floppy-disk",menu:l.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,d,{icon:"cog",menu:l.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,C)]})})})}return p}(),C=function(N,V){var y=(0,a.useBackend)(V),I=y.data,L=I.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},h=function(N,V){var y=(0,a.useBackend)(V),I=y.data,L=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var A=w.id,x=w.name,E=w.desc,P=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},A)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.ion,s=(0,t.useLocalState)(i,"mainTabIndex",0),d=s[0],v=s[1],C=function(){function h(p){switch(p){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,B);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:d===0,onClick:function(){function h(){return v(0)}return h}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:d===1,onClick:function(){function h(){return v(1)}return h}(),children:"Design Management"},"DesignPage")]}),C(d)]})})}return k}(),S=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=(0,t.useLocalState)(i,"filterType","ALL"),s=u[0],d=u[1],v=l.network_password,C=l.network_name,h=l.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var N=s==="ALL"?h:h.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"Unset",selected:C,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"Unset",selected:v,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return d("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return d("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return d("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return d("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return d("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),N.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function y(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return y}()})})]},V.id)})]})]})],4)},B=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.designs,s=(0,t.useLocalState)(i,"searchText",""),d=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function C(h,p){return v(p)}return C}()}),u.filter((0,a.createSearch)(d,function(C){return C.name})).map(function(C){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:C.name,checked:!C.blacklisted,onClick:function(){function h(){return m(C.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:C.uid})}return h}()},C.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.active,s=l.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function d(){return m("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,S)]})})}return k}(),S=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function d(){return m("link",{addr:s.addr})}return d}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,g){var i=k/g;return i<=.2?"good":i<=.5?"average":"bad"},S=r.RobotSelfDiagnosis=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},u)})})})}return B}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.can_hack,l=c.safety,u=c.show_lock_all,s=c.cyborgs,d=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function v(){return i("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return i("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:d,can_hack:m})]})})}return S}(),b=function(B,k){var g=B.cyborgs,i=B.can_hack,c=(0,a.useBackend)(k),m=c.act,l=c.data,u="Detonate";return l.detonate_cooldown>0&&(u+=" ("+l.detonate_cooldown+"s)"),g.length?g.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return m("hackbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function d(){return m("stopbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function d(){return m("killbot",{uid:s.uid})}return d}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.dial,s=l.open,d=l.locked,v=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,B)]})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.dial,s=l.open,d=l.locked,v=function(h,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!d,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+h,iconRight:p,onClick:function(){function N(){return m(p?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},S=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:d+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},B=function(g,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControlSatellitesList=r.SatelliteControlMapView=r.SatelliteControlFooter=r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=(0,a.useLocalState)(i,"tabIndex",l.tabIndex),s=u[0],d=u[1],v=function(){function h(p){d(p),m("set_tab_index",{tab_index:p})}return h}(),C=function(){function h(p){switch(p){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"table",selected:s===0,onClick:function(){function h(){return v(0)}return h}(),children:"Satellites"},"Satellites"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"map-marked-alt",selected:s===1,onClick:function(){function h(){return v(1)}return h}(),children:"Map View"},"MapView")]})}),C(s),(0,e.createComponentVNode)(2,B)]})})})}return k}(),b=r.SatelliteControlSatellitesList=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.satellites;return(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+s.id,children:[s.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:s.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function d(){return m("toggle",{id:s.id})}return d}()})]},s.id)})})})}return k}(),S=r.SatelliteControlMapView=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.satellites,s=l.has_goal,d=l.defended,v=l.collisions,C=l.fake_meteors,h=l.zoom,p=l.offsetX,N=l.offsetY,V=0;return(0,e.createComponentVNode)(2,t.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{zoom:h,offsetX:p,offsetY:N,onZoom:function(){function y(I){return m("set_zoom",{zoom:I})}return y}(),onOffsetChange:function(){function y(I,L){return m("set_offset",{offset_x:L.offsetX,offset_y:L.offsetY})}return y}(),children:[u.map(function(y){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"satellite",tooltip:y.active?"Shield Satellite":"Inactive Shield Satellite",color:y.active?"white":"grey",onClick:function(){function I(){return m("toggle",{id:y.id})}return I}()},V++)}),s&&d.map(function(y){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"circle",tooltip:"Successful Defense",color:"blue"},V++)}),s&&v.map(function(y){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"x",tooltip:"Meteor Hit",color:"red"},V++)}),s&&C.map(function(y){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"meteor",tooltip:"Incoming Meteor",color:"white"},V++)})]})})}return k}(),B=r.SatelliteControlFooter=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.notice,s=l.notice_color,d=l.has_goal,v=l.coverage,C=l.coverage_goal,h=l.testing;return(0,e.createFragment)([d&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v>=C?"good":"average",value:v,maxValue:100,children:[v,"%"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Check coverage",disabled:h,onClick:function(){function p(){return m("begin_test")}return p}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:s,children:u})],0)}return k}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),S=n(92986),B=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,g)})})})})}return c}(),k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=window.event?m.which:m.keyCode;if(d===S.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(d===S.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(d===S.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(d>=S.KEY_0&&d<=S.KEY_9){m.preventDefault(),s("keypad",{digit:d-S.KEY_0});return}if(d>=S.KEY_NUMPAD_0&&d<=S.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:d-S.KEY_NUMPAD_0});return}},g=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=d.locked,C=d.no_passcode,h=d.emagged,p=d.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=C?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function y(I){return k(I,l)}return y}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:h?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(y){return(0,e.createComponentVNode)(2,b.TableRow,{children:y.map(function(I){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},y[0])})})]})},i=function(m,l){var u=(0,t.useBackend)(l),s=u.act,d=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function C(){return s("keypad",{digit:v})}return C}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),S=n(321),B=n(5485),k=n(22091),g={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(p,N){(0,b.modalOpen)(p,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.loginState,w=I.currentPage,A;if(L.logged_in)w===1?A=(0,e.createComponentVNode)(2,l):w===2&&(A=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return h}(),m=function(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.currentPage,w=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return y("page",{page:1})}return A}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},l=function(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.records,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1],E=(0,t.useLocalState)(N,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(N,"sortOrder",!0),R=M[0],O=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,_){var U=R?1:-1;return F[P].localeCompare(_[P])*U}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+g[F.status],onClick:function(){function _(){return y("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(p,N){var V=(0,t.useLocalState)(N,"sortId","name"),y=V[0],I=V[1],L=(0,t.useLocalState)(N,"sortOrder",!0),w=L[0],A=L[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:y!==x&&"transparent",fluid:!0,onClick:function(){function P(){y===x?A(!w):(I(x),A(!0))}return P}(),children:[E,y===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.isPrinting,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return y("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,D){return x(D)}return E}()})})]})},d=function(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.isPrinting,w=I.general,A=I.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return y("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return y("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return y("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return y("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return i(N,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(p,N){var V=(0,t.useBackend)(N),y=V.data,I=y.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return i(N,L)}return A}()})]},w)})})}),!!I.has_photos&&I.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},C=function(p,N){var V=(0,t.useBackend)(N),y=V.act,I=V.data,L=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(N,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return y("comment_delete",{id:A+1})}return x}()})]},A)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function S(u,s){var d=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(d)return(d=d.call(u)).next.bind(d);if(Array.isArray(u)||(d=B(u))||s&&u&&typeof u.length=="number"){d&&(u=d);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(u,s){if(u){if(typeof u=="string")return k(u,s);var d={}.toString.call(u).slice(8,-1);return d==="Object"&&u.constructor&&(d=u.constructor.name),d==="Map"||d==="Set"?Array.from(u):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var d=0,v=Array(s);d=A},C=function(w,A){return w<=A},h=s.split(" "),p=[],N=function(){var w=I.value,A=w.split(":");if(A.length===0)return 0;if(A.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(D){return!1}return P}()};var x,E=d;if(A[1][A[1].length-1]==="-"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function P(D){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,x)});break;case"y":case"yield":p.push(function(P){return E(P.yield,x)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,x)});break;default:return{v:function(){function P(D){return!1}return P}()}}},V,y=S(h),I;!(I=y()).done;)if(V=N(),V!==0&&V)return V.v;return function(L){for(var w=0,A=p;w=1?Number(E):1)}return A}()})]})]})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return g("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return g("request")}return c}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(g,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],l=c[1],u=function(){function s(d){switch(d){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,B);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return m("jump_to",{type:"mobile",id:s.id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function d(){return m("fast_travel",{id:s.id})}return d}()})]})]})},s.name)})})},S=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.templates_tabs,s=l.existing_shuttle,d=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:v})}return C}(),children:v},v)})}),!!s&&d[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:v.shuttle_id})}return C}()})})]})},v.name)})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return m("jump_to",{type:"mobile",id:u.id})}return d}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function d(){return m("preview",{shuttle_id:s.shuttle_id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function d(){return m("load",{shuttle_id:s.shuttle_id})}return d}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},86013:function(T,r,n){"use strict";r.__esModule=!0,r.SingularityMonitor=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(44879),f=n(72253),b=n(36036),S=n(76910),B=n(98595),k=n(36352),g=r.SingularityMonitor=function(){function l(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return l}(),i=function(u){return Math.log2(16+Math.max(0,u))-4},c=function(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data,h=C.singularities,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,B.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Detected Singularities",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"sync",content:"Refresh",onClick:function(){function N(){return v("refresh")}return N}()}),children:(0,e.createComponentVNode)(2,b.Table,{children:p.map(function(N){return(0,e.createComponentVNode)(2,b.Table.Row,{children:[(0,e.createComponentVNode)(2,b.Table.Cell,{children:N.singularity_id+". "+N.area_name}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,color:"label",children:"Stage:"}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N.stage,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(N.stage)})}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,b.Button,{content:"Details",onClick:function(){function V(){return v("view",{view:N.singularity_id})}return V}()})})]},N.singularity_id)})})})})})},m=function(u,s){var d=(0,f.useBackend)(s),v=d.act,C=d.data,h=C.active,p=C.singulo_stage,N=C.singulo_potential_stage,V=C.singulo_energy,y=C.singulo_high,I=C.singulo_low,L=C.generators,w=L===void 0?[]:L;return(0,e.createComponentVNode)(2,B.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(p)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Potential Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:6,ranges:{good:[1,p+.5],average:[p+.5,p+1.5],bad:[p+1.5,p+2]},children:(0,o.toFixed)(N)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:V,minValue:I,maxValue:y,ranges:{good:[.67*y+.33*I,y],average:[.33*y+.67*I,.67*y+.33*I],bad:[I,.33*y+.67*I]},children:(0,o.toFixed)(V)+"MJ"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Field Generators",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return v("back")}return A}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(A){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Remaining Charge",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:A.charge,minValue:0,maxValue:125,ranges:{good:[80,125],average:[30,80],bad:[0,30]},children:(0,o.toFixed)(A.charge)})},A.gen_index)})})})})]})})})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],B={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.Sleeper=function(){function d(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.hasOccupant,y=V?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:y}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return d}(),i=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant,y=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:y?"toggle-on":"toggle-off",selected:y,content:y?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(y?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,C){var h=(0,t.useBackend)(C),p=h.data,N=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(V,y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[V[1]]/100,ranges:B,children:(0,a.round)(N[V[1]],0)},y)},y)})})})},l=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.hasOccupant,y=N.isBeakerLoaded,I=N.beakerMaxSpace,L=N.beakerFreeSpace,w=N.dialysis,A=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!y||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:y?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,C){var h=(0,t.useBackend)(C),p=h.act,N=h.data,V=N.occupant,y=N.chemicals,I=N.maxchem,L=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:y.map(function(w,A){var x="",E;return w.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",I,"u"]}),L.map(function(P,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>I||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:w.id,amount:P})}return M}()},D)})]})})},A)})})},s=function(v,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return g("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.secure,m=i.can_dry,l=i.drying,u=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return g("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,d){return s.display_name.localeCompare(d.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function d(){return g("vend",{index:s.vend,amount:1})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function d(v,C){return g("vend",{index:s.vend,amount:C})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function d(){return g("vend",{index:s.vend,amount:s.quantity})}return d}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,S=r.Smes=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.capacityPercent,u=m.capacity,s=m.charge,d=m.inputAttempt,v=m.inputting,C=m.inputLevel,h=m.inputLevelMax,p=m.inputAvailable,N=m.outputPowernet,V=m.outputAttempt,y=m.outputting,I=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,A=l>=100&&"good"||v&&"average"||"bad",x=y&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"sync-alt":"times",selected:d,onClick:function(){function E(){return c("tryinput")}return E}(),children:d?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/b,fillValue:p/b,minValue:0,maxValue:h/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("input",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===h,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===h,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return c("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?y?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("output",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return B}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=0,m=1,l=2,u=i.generated,s=i.generated_ratio,d=i.tracking_state,v=i.tracking_rate,C=i.connected_panels,h=i.connected_tracker,p=i.cdir,N=i.direction,V=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function y(){return g("refresh")}return y}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),d===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),d===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[d!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function y(I,L){return g("cdir",{cdir:L})}return y}()}),d===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:d===c,onClick:function(){function y(){return g("track",{track:c})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:d===m,onClick:function(){function y(){return g("track",{track:m})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:d===l,disabled:!h,onClick:function(){function y(){return g("track",{track:l})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function y(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return y}(),onDrag:function(){function y(I,L){return g("tdir",{tdir:L})}return y}()}),d===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),d===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return g("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return g("spawn",{ID:m.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function g(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k)]})})})}return g}(),b=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("hemomancer")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.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)]})})},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("umbrae")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.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 will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("gargantua")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return l("dantalion")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.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,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),S=n(36036),B=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(d,v){var C=(0,a.useBackend)(v),h=C.data,p=h.amount,N=h.recipes,V=(0,a.useLocalState)(v,"searchText",""),y=V[0],I=V[1],L=g(N,(0,f.createSearch)(y)),w=(0,a.useLocalState)(v,"",!1),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,S.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,S.Input,{width:12.5,value:y,placeholder:"Find recipe",onInput:function(){function E(P,D){return I(D)}return E}()}),(0,e.createComponentVNode)(2,S.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return x(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,l,{recipes:L}):(0,e.createComponentVNode)(2,S.NoticeBox,{children:"No recipes found!"})})},g=function s(d,v){var C=(0,o.flow)([(0,t.map)(function(h){var p=h[0],N=h[1];return i(N)?v(p)?h:[p,s(N,v)]:v(p)?h:[p,void 0]}),(0,t.filter)(function(h){var p=h[0],N=h[1];return N!==void 0}),(0,t.sortBy)(function(h){var p=h[0],N=h[1];return p}),(0,t.sortBy)(function(h){var p=h[0],N=h[1];return!i(N)}),(0,t.reduce)(function(h,p){var N=p[0],V=p[1];return h[N]=V,h},{})])(Object.entries(d));return Object.keys(C).length?C:void 0},i=function(d){return d.uid===void 0},c=function(d,v){return d.required_amount>v?0:Math.floor(v/d.required_amount)},m=function(d,v){for(var C=(0,a.useBackend)(v),h=C.act,p=d.recipe,N=d.max_possible_multiplier,V=Math.min(N,Math.floor(p.max_result_amount/p.result_amount)),y=[5,10,25],I=[],L=function(){var E=A[w];V>=E&&I.push((0,e.createComponentVNode)(2,S.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return h("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},w=0,A=y;w1?I+"x ":"",M=L>1?"s":"",R=""+D+V,O=L+" sheet"+M,F=c(y,N);return(0,e.createComponentVNode)(2,S.ImageButton,{fluid:!0,base64:P,dmIcon:x,dmIconState:E,imageSize:32,disabled:!F,tooltip:O,buttons:w>1&&F>1&&(0,e.createComponentVNode)(2,m,{recipe:y,max_possible_multiplier:F}),onClick:function(){function _(){return h("make",{recipe_uid:A,multiplier:1})}return _}(),children:R})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function S(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return S}(),b=r.StationAlertConsoleContent=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.data,c=i.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return S}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),S=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(S||{}),B=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data,d=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=v[0],h=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),N=Object.keys(p);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:h,options:N,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(C){var y=p[C],I=[y];if(d){var L,w=d.map(function(A){return A.path});if(w.indexOf(y)!==-1)return;I=(L=I).concat.apply(L,w)}u("setup_future_traits",{station_traits:I})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(d)?d.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:d.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function y(){u("setup_future_traits",{station_traits:(0,a.filterMap)(d,function(I){if(I.path!==V.path)return I.path})})}return y}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(d){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:d.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!d.can_revert,tooltip:!d.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:d.ref})}return v}()})})]})},d.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},g=r.StationTraitsPanel=function(){function i(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",S.ViewStationTraits),u=l[0],s=l[1],d;switch(u){case S.SetupFutureStationTraits:d=(0,e.createComponentVNode)(2,B);break;case S.ViewStationTraits:d=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===S.ViewStationTraits,onClick:function(){function v(){return s(S.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===S.SetupFutureStationTraits,onClick:function(){function v(){return s(S.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),d]})]})})})}return i}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),S=5,B=9,k=function(C){return C===0?5:9},g="64px",i=function(C){return C[0]+"/"+C[1]},c=function(C){var h=C.align,p=C.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:h==="left"?"6px":"48px","text-align":h,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={eyes:{displayName:"eyewear",gridSpot:i([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:i([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:i([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:i([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),d=r.StripMenu=function(){function v(C,h){var p=(0,o.useBackend)(h),N=p.act,V=p.data,y=new Map;if(V.show_mode===0)for(var I=0,L=Object.keys(V.items);I=.01})},(0,a.sortBy)(function(x){return-x.amount})])(C.gases||[]),A=Math.max.apply(Math,[1].concat(w.map(function(x){return x.portion})));return(0,e.createComponentVNode)(2,B.Window,{width:550,height:250,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Gas Coefficient",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:L,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:L.toFixed(2)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(V),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mole Per Tile",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:I,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,o.toFixed)(I)+" mol"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(y),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(y)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function x(){return v("back")}return x}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(x){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,S.getGasLabel)(x.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,S.getGasColor)(x.name),value:x.portion,minValue:0,maxValue:A,children:(0,o.toFixed)(x.amount)+" mol ("+x.portion+"%)"})},x.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return g(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(B){return B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K, ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K, ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K, ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K, ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return S}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.records,l=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,d=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||d,align:"center",onClick:function(){function v(){return i("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function v(){return i("delete_logs")}return v}()})]})]})}),l.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return S}(),b=r.TachyonArrayContent=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.records,l=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return S}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return g("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return g("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(l,u){return g("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return g("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return g("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return g("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function l(){return g("plasma")}return l}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.ion,d=(0,a.useLocalState)(c,"tabIndex",0),v=d[0],C=d[1],h=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return C(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return C(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return C(2)}return p}(),children:"User Filtering"},"FilterPage")]}),h(v)]})})}return g}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.active,d=u.sectors_available,v=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,h=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,V=u.nttc_setting_language,y=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:d})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:y||"Unset",selected:y,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.link_password,d=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return l("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return l("unlink",{addr:v.addr})}return C}()})})]},v.addr)})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function d(){return l("add_filter")}return d}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return l("remove_filter",{user:d})}return v}()})})]},d)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function d(){return c("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function d(){return c("network_id")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})})}return B}(),b=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function d(){return c("toggle_hidden_link")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function d(){return c("unlink")}return d}()})})]})})},S=function(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,l=1,u=2,s=i.calibrated,d=i.calibrating,v=i.powerstation,C=i.regime,h=i.teleporterhub,p=i.target,N=i.locked,V=i.adv_beacon_allowed,y=i.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!h)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[h,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&h&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"Enabled":"Disabled",onClick:function(){function I(){return g("advanced_beacon_locking",{on:y?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:d,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:d,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===l?"good":null,onClick:function(){function I(){return g("setregime",{regime:l})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function I(){return g("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===u?"good":null,disabled:!N,onClick:function(){function I(){return g("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:d&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||d),onClick:function(){function I(){return g("calibrate")}return I}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&h&&C===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return g("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return g("eject")}return I}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.last_msg,m=i.linked_pad,l=i.held_gps,u=i.lastdata,s=i.power_levels,d=i.current_max_power,v=i.current_power,C=i.current_bearing,h=i.current_elevation,p=i.current_sector,N=i.working,V=i.max_z,y=(0,a.useLocalState)(B,"dummyrot",C),I=y[0],L=y[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:C,onDrag:function(){function w(A,x){return L(x)}return w}(),onChange:function(){function w(A,x){return g("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:h,onChange:function(){function w(A,x){return g("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,A){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:v===w,disabled:A>=d-1||N,onClick:function(){function x(){return g("setpwr",{pwr:A+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:N,onChange:function(){function w(A,x){return g("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function w(){return g("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function w(){return g("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function w(){return g("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function w(){return g("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:l===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Eject GPS",onClick:function(){function w(){return g("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Store Coordinates",onClick:function(){function w(){return g("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function g(i,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.target_temperature,d=u.temperature,v=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:v,value:s,format:function(){function h(p){return(0,a.toFixed)(p,2)}return h}(),width:"50px",onDrag:function(){function h(p,N){return l("target_temperature",{target_temperature:N})}return h}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:S(d),bold:d>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(d,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),children:B(d)})})]})})})})}return g}(),S=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},B=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},k=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),S=n(98595),B=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),g=r.TextInputModal=function(){function c(m,l){var u=(0,o.useBackend)(l),s=u.act,d=u.data,v=d.max_length,C=d.message,h=C===void 0?"":C,p=d.multiline,N=d.placeholder,V=d.timeout,y=d.title,I=(0,o.useLocalState)(l,"input",N||""),L=I[0],w=I[1],A=function(){function P(D){if(D!==L){var M=p?B(D):k(D);w(M)}}return P}(),x=p||L.length>=40,E=130+(h.length>40?Math.ceil(h.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,S.Window,{title:y,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function P(D){var M=window.event?D.which:D.keyCode;M===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:h})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onChange:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return c}(),i=function(m,l){var u=(0,o.useBackend)(l),s=u.act,d=u.data,v=d.max_length,C=d.multiline,h=m.input,p=m.onChange,N=C||h.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:C||h.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(y,I){N&&y.shiftKey||(y.preventDefault(),s("submit",{entry:I}))}return V}(),onChange:function(){function V(y,I){return p(I)}return V}(),placeholder:"Type something...",value:h})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function S(B,k){var g=(0,t.useBackend)(k),i=g.act,c=g.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,u){return i("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return S}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.tank_one,m=i.tank_two,l=i.attached_device,u=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return g("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return g("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return g("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return g("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return g("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(g,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,u=l.compressor,s=l.compressor_broken,d=l.turbine,v=l.turbine_broken,C=l.online,h=!!(u&&!s&&d&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!h,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:h?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,S)})})})}return k}(),S=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.compressor,u=m.compressor_broken,s=m.turbine,d=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||u?"bad":"good",children:u?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||d?"bad":"good",children:d?s?"Offline":"Missing":"Online"})]})},B=function(g,i){var c=(0,a.useBackend)(i),m=c.data,l=m.rpm,u=m.temperature,s=m.power,d=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(d)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),S=n(98595),B=n(3939),k=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},g=r.Uplink=function(){function v(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=V.cart,I=(0,f.useLocalState)(h,"tabIndex",0),L=I[0],w=I[1],A=(0,f.useLocalState)(h,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,S.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,B.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",y&&y.length?"("+y.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return v}(),i=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=V.crystals,I=V.cats,L=(0,f.useLocalState)(h,"uplinkItems",I[0].items),w=L[0],A=L[1],x=(0,f.useLocalState)(h,"searchText",""),E=x[0],P=x[1],D=function(U,z){z===void 0&&(z="");var $=(0,o.createSearch)(z,function(G){var X=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)($),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(U)},M=function(U){if(P(U),U==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),U))},R=(0,f.useLocalState)(h,"showDesc",1),O=R[0],F=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+y+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:O,onClick:function(){function _(){return F(!O)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return N("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return N("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,z){M(z)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:I.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function U(){A(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:_,showDecription:O},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},c=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=V.cart,I=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(h,"showDesc",0),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!y}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!y||L>I})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:y?y.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=V.cats,I=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:I.map(function(L){return y[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:L})},w)})})})})},l=function(C,h){var p=C.i,N=C.showDecription,V=N===void 0?1:N,y=C.buttons,I=y===void 0?(0,e.createComponentVNode)(2,u,{i:p}):y;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:I,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=C.i,I=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:y.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return N("add_to_cart",{item:y.obj_path})}return L}(),disabled:y.cost>I}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+y.cost+"TC)"+(y.refundable?" [Refundable]":""),color:y.hijack_only===1&&"red",tooltip:y.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return N("buyItem",{item:y.obj_path})}return L}(),disabled:y.cost>I})],4)},s=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=C.i,I=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+y.cost*y.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return N("remove_from_cart",{item:y.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:y.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:y.obj_path,quantity:--y.amount})}return L}(),disabled:y.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:y.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:y.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,A){return N("set_cart_item_quantity",{item:y.obj_path,quantity:A})}return L}(),disabled:y.limit!==-1&&y.amount>=y.limit&&y.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:y.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return N("set_cart_item_quantity",{item:y.obj_path,quantity:++y.amount})}return L}(),disabled:y.limit!==-1&&y.amount>=y.limit})]})},d=function(C,h){var p=(0,f.useBackend)(h),N=p.act,V=p.data,y=V.exploitable,I=(0,f.useLocalState)(h,"selectedRecord",y[0]),L=I[0],w=I[1],A=(0,f.useLocalState)(h,"searchText",""),x=A[0],E=A[1],P=function(R,O){O===void 0&&(O="");var F=(0,o.createSearch)(O,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),O&&(0,a.filter)(F),(0,a.sortBy)(function(_){return _.name})])(R)},D=P(y,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,O){return E(O)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return w(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=B.product,l=B.productStock,u=B.productIcon,s=B.productIconState,d=c.locked,v=c.bypass_lock,C=c.user,h=c.usermoney,p=c.inserted_cash,N=c.vend_ready,V=c.inserted_item_name,y="ERROR!",I="";d&&v?(y="FREE ("+m.price+")",I="arrow-circle-down"):d?(y=m.price,I="shopping-cart"):(y="FREE",I="arrow-circle-down");var L=!N||l===0||d&&!v&&m.price>h&&m.price>p;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:u,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=m.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:I,content:y,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.user,l=c.usermoney,u=c.inserted_cash,s=c.product_records,d=s===void 0?[]:s,v=c.hidden_records,C=v===void 0?[]:v,h=c.stock,p=c.vend_ready,N=c.inserted_item_name,V=c.panel_open,y=c.speaker,I=c.locked,L=c.bypass_lock,w;return w=[].concat(d),c.extended_inventory&&(w=[].concat(w,C)),w=w.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((!I||L?230:171)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(!I||!!L)&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Configuration",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Rename Vendor",onClick:function(){function A(){return i("rename",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Change Vendor Appearance",onClick:function(){function A(){return i("change_appearance",{})}return A}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!N&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,N,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!V&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"check":"volume-mute",selected:y,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productIcon:A.icon,productIconState:A.icon_state},A.name)})})})})]})})})}return S}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return g("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,d){return g("volume",{channel:m.num,volume:d})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return g("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.remaining,m=i.question,l=i.choices,u=i.user_vote,s=i.counts,d=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(d?" ("+(s[v]||0)+")":""),onClick:function(){function C(){return g("vote",{target:v})}return C}(),selected:v===u})},v)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.wires||[],m=i.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return g("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return g("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return g("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(g,i){var c=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(c)return(c=c.call(g)).next.bind(c);if(Array.isArray(g)||(c=b(g))||i&&g&&typeof g.length=="number"){c&&(g=c);var m=0;return function(){return m>=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(g,i){if(g){if(typeof g=="string")return S(g,i);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?S(g,i):void 0}}function S(g,i){(i==null||i>g.length)&&(i=g.length);for(var c=0,m=Array(i);c0&&!V.includes(O.ref)&&!p.includes(O.ref),checked:p.includes(O.ref),onClick:function(){function F(){return y(O.ref)}return F}()},O.desc)})]})]})})}return g}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(B,k,g,i,c){return Bi?"average":B>c?"bad":"good"},b=r.AtmosScan=function(){function S(B,k){var g=B.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(g).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:f(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return S}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(S){return S+" unit"+(S===1?"":"s")},f=r.BeakerContents=function(){function b(S){var B=S.beakerLoaded,k=S.beakerContents,g=k===void 0?[]:k,i=S.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!B&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||g.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),g.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=g.locked,c=g.noaccess,m=g.maintpanel,l=g.on,u=g.autopatrol,s=g.canhack,d=g.emagged,v=g.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function C(){return k("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return k("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:d?"bad":"good",children:d?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:d?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return k("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return k("disableremote")}return C}()})})]})})],4)}return f}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function g(i,c,m){var l=(0,a.useBackend)(i),u=l.act,s=l.data,d=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(d)})}return g}(),b=r.modalRegisterBodyOverride=function(){function g(i,c){o[i]=c}return g}(),S=r.modalAnswer=function(){function g(i,c,m,l){var u=(0,a.useBackend)(i),s=u.act,d=u.data;if(d.modal){var v=Object.assign(d.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return g}(),B=r.modalClose=function(){function g(i,c){var m=(0,a.useBackend)(i),l=m.act;l("modal_close",{id:c})}return g}(),k=r.ComplexModal=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var u=l.modal,s=u.id,d=u.text,v=u.type,C,h=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return B(c)}return L}()}),p,N,V="auto";if(o[s])p=o[s](l.modal,c);else if(v==="input"){var y=l.modal.value;C=function(){function L(w){return S(c,s,y)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,A){y=A}return L}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return B(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return S(c,s,y)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return S(c,s,w)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(l.modal.value,10),onClick:function(){function A(){return S(c,s,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return S(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return S(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[d&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d}),o[s]&&h,p,N]})}}return g}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,S=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],B=function(m){return S.indexOf(m)!==-1?"green":"orange"},k=function(m){if(S.indexOf(m)!==-1)return!0},g=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:B(l.rank),bold:k(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,d;if(m.data)d=m.data;else{var v=(0,a.useBackend)(l),C=v.data;d=C}var h=d,p=h.manifest,N=p.heads,V=p.sec,y=p.eng,I=p.med,L=p.sci,w=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:g(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:g(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:g(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:g(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:g(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:g(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:g(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:g(x)})]})}return c}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,S){var B=(0,t.useBackend)(S),k=B.act,g=B.data,i=g.large_buttons,c=g.swapped_buttons,m=b.input,l=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function v(){return k("submit",{entry:m})}return v}(),textAlign:"center",tooltip:i&&l,disabled:u,width:!i&&6}),d=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function v(){return k("cancel")}return v}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:d}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=b.siliconUser,c=i===void 0?g.siliconUser:i,m=b.locked,l=m===void 0?g.locked:m,u=b.normallyLocked,s=u===void 0?g.normallyLocked:u,d=b.onLockStatusChange,v=d===void 0?function(){return k("lock")}:d,C=b.accessText,h=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!l)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",h," to ",l?"unlock":"lock"," this interface."]})}return f}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var S=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(S)*100+"%"}}),2)}return f}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=g.loginState;if(g)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return f}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=g.loginState,c=g.isAI,m=g.isRobot,l=g.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var S=b.operating,B=b.name;if(S)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",B," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(S,B){var k=(0,t.useBackend)(B),g=k.act,i=S.data,c=i.code,m=i.frequency,l=i.minFrequency,u=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:u/10,value:m/10,format:function(){function s(d){return(0,a.toFixed)(d,1)}return s}(),width:"80px",onDrag:function(){function s(d,v){return g("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(d,v){return g("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return g("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),S=r.SimpleRecords=function(){function g(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,B,{data:i.data})})}return g}(),B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),d=s[0],v=s[1],C=function(N,V){V===void 0&&(V="");var y=(0,t.createSearch)(V,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),V&&(0,f.filter)(y),(0,f.sortBy)(function(I){return I.Name})])(u)},h=C(u,d);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(N,V){return v(V)}return p}()}),h.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function N(){return l("Records",{target:p.uid})}return N}()})},p)})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=i.data.records,s=u.general,d=u.medical,v=u.security,C;switch(i.recordType){case"MED":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:d?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:d.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:d.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:d.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:d.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:d.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:d.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:d.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,S){var B,k=(0,a.useBackend)(S),g=k.act,i=k.data,c=i.temp;if(c){var m=(B={},B[c.style]=!0,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return g("cleartemp")}return l}()})})]})})))}}return f}()},95213:function(T,r,n){"use strict";r.__esModule=!0,r.goonstation_PTL=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595);/** * @file * @copyright 2020 * @author Sovexe (https://github.com/Sovexe) * @license ISC - */var b=r.goonstation_PTL=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.data,u=l.total_earnings,s=l.total_energy,d=l.name,v=d===void 0?"Power Transmission Laser":d;return(0,e.createComponentVNode)(2,f.Window,{title:"Power Transmission Laser",width:"310",height:"485",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Earned Credits : ",u?(0,o.formatMoney)(u):0]}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Energy Sold : ",s?(0,o.formatSiUnit)(s,0,"J"):"0 J"]})]})})}return g}(),y=function(i,c){var m=(0,a.useBackend)(c),l=m.data,u=l.max_capacity,s=l.held_power,d=l.input_total,v=l.max_grid_load;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reserve energy",children:s?(0,o.formatSiUnit)(s,0,"J"):"0 J"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",mb:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:s/u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Grid Saturation"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:Math.min(d,u-s)/v})]})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.input_total,d=u.accepting_power,v=u.sucking_power,C=u.input_number,h=u.power_format;return(0,e.createComponentVNode)(2,t.Section,{title:"Input Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Circuit",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:d?"green":"red",onClick:function(){function p(){return l("toggle_input")}return p}(),children:d?"Enabled":"Disabled"}),children:(0,e.createComponentVNode)(2,t.Box,{color:v&&"good"||d&&"average"||"bad",children:v&&"Online"||d&&"Idle"||"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s?(0,o.formatPower)(s):"0 W"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5em",children:[(0,e.createComponentVNode)(2,t.NumberInput,{mr:"0.5em",animated:!0,size:1.25,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,value:C,onChange:function(){function p(N,V){return l("set_input",{set_input:V})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{selected:h===1,onClick:function(){function p(){return l("inputW")}return p}(),children:"W"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,3),onClick:function(){function p(){return l("inputKW")}return p}(),children:"KW"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,6),onClick:function(){function p(){return l("inputMW")}return p}(),children:"MW"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,9),onClick:function(){function p(){return l("inputGW")}return p}(),children:"GW"})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.output_total,d=u.firing,v=u.accepting_power,C=u.output_number,h=u.output_multiplier,p=u.target,N=u.held_power;return(0,e.createComponentVNode)(2,t.Section,{title:"Output Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser Circuit",buttons:(0,e.createComponentVNode)(2,t.Stack,{Horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",color:p===""?"green":"red",onClick:function(){function V(){return l("target")}return V}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:d?"green":"red",disabled:!d&&Nu,onClick:function(){function S(){return k("purchaseSoftware",{key:V.key})}return S}()},V.key)}),c.filter(function(V){return!N[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function S(){return k("startSoftware",{software_key:V.key})}return S}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function S(){return k("setToggle",{toggle_key:V.key})}return S}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===d,onClick:function(){function S(){return k("setEmotion",{emotion:V.id})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===C,onClick:function(){function S(){return k("setSpeechStyle",{speech_state:V.name})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function S(){return k("setChassis",{chassis_to_change:V.icon})}return S}()},V.id)})})]})})}return f}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:g.app_data})}return f}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=g.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:g.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:g.app_data})}return f}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.app_data,m=c.minFrequency,l=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:u/10,format:function(){function d(v){return(0,t.toFixed)(v,1)}return d}(),onChange:function(){function d(v,C){return g("freq",{freq:C})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function d(){return g("freq",{freq:"145.9"})}return d}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function d(){return g("toggleBroadcast")}return d}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:g.app_data})}return f}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},2395:function(T,r,n){"use strict";r.__esModule=!0,r.pda_games=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(1331),f=r.pda_games=function(){function b(y,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.games,m=function(){function l(u){switch(u){case"Minesweeper":return(0,e.createComponentVNode)(2,o.IconStack,{children:[(0,e.createComponentVNode)(2,o.Icon,{ml:"0",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,e.createComponentVNode)(2,o.Icon,{ml:"9px",mt:"23px",name:"bomb",size:"3",color:"black"})]});default:return(0,e.createComponentVNode)(2,o.Icon,{ml:"16px",mt:"10px",name:"gamepad",size:"6"})}}return l}();return(0,e.createComponentVNode)(2,t.Box,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"33%",textAlign:"center",translucent:!0,onClick:function(){function u(){return g("play",{id:l.id})}return u}(),children:[m(l.name),(0,e.createComponentVNode)(2,t.Box,{children:l.name})]},l.name)})})}return b}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data,i=g.janitor,c=i.user_loc,m=i.mops,l=i.buckets,u=i.cleanbots,s=i.carts,d=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(y,B){var k=(0,t.useBackend)(B),g=k.act,i=k.data,c=i.owner,m=i.ownjob,l=i.idInserted,u=i.categories,s=i.pai,d=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function v(){return g("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var C=i.apps[v];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:C.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{icon:h.uid in d?h.notify_icon:h.icon,iconSpin:h.uid in d,color:h.uid in d?"red":"transparent",content:h.name,onClick:function(){function p(){return g("StartProgram",{program:h.uid})}return p}()},h.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return g("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return g("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,y){var B=(0,a.useBackend)(y),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return k}(),b=r.ActiveConversation=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=l.convo_name,s=l.convo_job,d=l.messages,v=l.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),h=C[0],p=C[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:h,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!h)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(d).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},S)})});return h&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:h,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!h)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(d).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},S)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),N]})}return k}(),y=r.MessengerList=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=l.convopdas,s=l.pdas,d=l.charges,v=l.silent,C=l.toff,h=l.ringtone_list,p=l.ringtone,N=(0,t.useLocalState)(i,"searchTerm",""),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(h),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!d&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function I(L,w){S(w)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,B,{title:"Current Conversations",data:l,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,B,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:V})]})}return k}(),B=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=g.pdas,s=g.title,d=g.msgAct,v=g.searchTerm,C=l.charges,h=l.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function N(){return m(d,{target:p.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&h.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:N.uid,target:p.uid})}return V}()},N.uid)})})]},p.uid)})})}},90382:function(T,r,n){"use strict";r.__esModule=!0,r.pda_minesweeper=r.MineSweeperLeaderboard=r.MineSweeperGame=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_minesweeper=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=(0,a.useLocalState)(g,"window","Game"),u=l[0],s=l[1],d={Game:"Leaderboard",Leaderboard:"Game"};return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:u==="Game"?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,fontSize:2,lineHeight:1.75,icon:u==="Game"?"book":"gamepad",onClick:function(){function v(){return s(d[u])}return v}(),children:d[u]})})]})}return B}(),f=r.MineSweeperGame=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.matrix,u=m.flags,s=m.bombs,d={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},v=function(){function C(h,p,N){c("Square",{X:h,Y:p,mode:N})}return C}();return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:Object.keys(l).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(l[C]).map(function(h){return(0,e.createComponentVNode)(2,t.Button,{m:.25,height:2,width:2,className:l[C][h].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:l[C][h].open?l[C][h].bomb?"bomb":"":l[C][h].flag?"flag":"",textColor:l[C][h].open?l[C][h].bomb?"black":d[l[C][h].around]:l[C][h].flag?"red":"gray",onClick:function(){function p(N){return v(C,h,"bomb")}return p}(),onContextMenu:function(){function p(N){event.preventDefault(),v(C,h,"flag")}return p}(),children:l[C][h].open&&!l[C][h].bomb&&l[C][h].around?l[C][h].around:" "},h)})},C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,textAlign:"left",pt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bomb",color:"gray"})," : ",s]}),(0,e.createComponentVNode)(2,t.Stack.Divider),(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flag",color:"red"})," : ",u]})]})})]})}return B}(),b=r.MineSweeperLeaderboard=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.leaderboard,u=(0,a.useLocalState)(g,"sortId","time"),s=u[0],d=u[1],v=(0,a.useLocalState)(g,"sortOrder",!1),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Table,{className:"Minesweeper__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,y,{id:"name",children:"Nick"}),(0,e.createComponentVNode)(2,y,{id:"time",children:"Time"})]}),l&&l.sort(function(p,N){var V=C?1:-1;return p[s].localeCompare(N[s])*V}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.time})]},N)})]})}return B}(),y=function(k,g){var i=(0,a.useLocalState)(g,"sortId","time"),c=i[0],m=i[1],l=(0,a.useLocalState)(g,"sortOrder",!1),u=l[0],s=l[1],d=k.id,v=k.children;return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",onClick:function(){function C(){c===d?s(!u):(m(d),s(!0))}return C}(),children:[v,c===d&&(0,e.createComponentVNode)(2,t.Icon,{name:u?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.bots;return l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.botstatus,u=m.active,s=l.mode,d=l.loca,v=l.load,C=l.powr,h=l.dest,p=l.home,N=l.retn,V=l.pick,S;switch(s){case 0:S="Ready";break;case 1:S="Loading/Unloading";break;case 2:case 12:S="Navigating to delivery location";break;case 3:S="Navigating to Home";break;case 4:S="Waiting for clear path";break;case 5:case 6:S="Calculating navigation path";break;case 7:S="Unable to locate destination";break;default:S=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Set)":"None (Set)",onClick:function(){function I(){return i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return i("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return i("set_pickup_type",{autopick:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function I(){return i("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function l(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.logged_in,p=C.owner_name,N=C.money;return h?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,i)}return l}(),b=function(u,s){var d=(0,t.useBackend)(s),v=d.data,C=v.is_premium,h=(0,t.useLocalState)(s,"tabIndex",1),p=h[0],N=h[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return N(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return N(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return N(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!C&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return N(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(u,s){var d=(0,t.useLocalState)(s,"tabIndex",1),v=d[0],C=(0,t.useBackend)(s),h=C.data,p=h.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,g);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},B=function(u,s){var d,v=(0,t.useBackend)(s),C=v.act,h=v.data,p=h.requests,N=h.available_accounts,V=h.money,S=(0,t.useLocalState)(s,"selectedAccount"),I=S[0],L=S[1],w=(0,t.useLocalState)(s,"transferAmount"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],D=E[1],M=[];return N.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(O,F){return D(F)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(d=N.filter(function(R){return R.UID===I})[0])==null?void 0:d.name,onSelected:function(){function R(O){return L(M[O])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(O,F){return x(F)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** + */var b=r.goonstation_PTL=function(){function g(i,c){var m=(0,a.useBackend)(c),l=m.data,u=l.total_earnings,s=l.total_energy,d=l.name,v=d===void 0?"Power Transmission Laser":d;return(0,e.createComponentVNode)(2,f.Window,{title:"Power Transmission Laser",width:"310",height:"485",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Earned Credits : ",u?(0,o.formatMoney)(u):0]}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Energy Sold : ",s?(0,o.formatSiUnit)(s,0,"J"):"0 J"]})]})})}return g}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.data,u=l.max_capacity,s=l.held_power,d=l.input_total,v=l.max_grid_load;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reserve energy",children:s?(0,o.formatSiUnit)(s,0,"J"):"0 J"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",mb:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:s/u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Grid Saturation"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:Math.min(d,u-s)/v})]})},B=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.input_total,d=u.accepting_power,v=u.sucking_power,C=u.input_number,h=u.power_format;return(0,e.createComponentVNode)(2,t.Section,{title:"Input Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Circuit",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:d?"green":"red",onClick:function(){function p(){return l("toggle_input")}return p}(),children:d?"Enabled":"Disabled"}),children:(0,e.createComponentVNode)(2,t.Box,{color:v&&"good"||d&&"average"||"bad",children:v&&"Online"||d&&"Idle"||"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s?(0,o.formatPower)(s):"0 W"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5em",children:[(0,e.createComponentVNode)(2,t.NumberInput,{mr:"0.5em",animated:!0,size:1.25,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,value:C,onChange:function(){function p(N,V){return l("set_input",{set_input:V})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{selected:h===1,onClick:function(){function p(){return l("inputW")}return p}(),children:"W"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,3),onClick:function(){function p(){return l("inputKW")}return p}(),children:"KW"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,6),onClick:function(){function p(){return l("inputMW")}return p}(),children:"MW"}),(0,e.createComponentVNode)(2,t.Button,{selected:h===Math.pow(10,9),onClick:function(){function p(){return l("inputGW")}return p}(),children:"GW"})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.output_total,d=u.firing,v=u.accepting_power,C=u.output_number,h=u.output_multiplier,p=u.target,N=u.held_power;return(0,e.createComponentVNode)(2,t.Section,{title:"Output Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser Circuit",buttons:(0,e.createComponentVNode)(2,t.Stack,{Horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",color:p===""?"green":"red",onClick:function(){function V(){return l("target")}return V}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:d?"green":"red",disabled:!d&&Nu,onClick:function(){function y(){return k("purchaseSoftware",{key:V.key})}return y}()},V.key)}),c.filter(function(V){return!N[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function y(){return k("startSoftware",{software_key:V.key})}return y}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function y(){return k("setToggle",{toggle_key:V.key})}return y}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===d,onClick:function(){function y(){return k("setEmotion",{emotion:V.id})}return y}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===C,onClick:function(){function y(){return k("setSpeechStyle",{speech_state:V.name})}return y}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function y(){return k("setChassis",{chassis_to_change:V.icon})}return y}()},V.id)})})]})})}return f}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:g.app_data})}return f}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=g.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:g.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:g.app_data})}return f}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.app_data,m=c.minFrequency,l=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:u/10,format:function(){function d(v){return(0,t.toFixed)(v,1)}return d}(),onChange:function(){function d(v,C){return g("freq",{freq:C})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function d(){return g("freq",{freq:"145.9"})}return d}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function d(){return g("toggleBroadcast")}return d}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:g.app_data})}return f}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},11275:function(T,r,n){"use strict";r.__esModule=!0,r.pda_cookbook=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),S=r.pda_cookbook=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.categories,u=m.current_category,s=m.recipes,d=m.search_text,v=(0,a.useLocalState)(g,"recipeList",s),C=v[0],h=v[1],p=(0,a.useLocalState)(g,"searchText",d),N=p[0],V=p[1];return(0,e.createComponentVNode)(2,b.Box,{children:[l.sort().map(function(y,I){return(0,e.createComponentVNode)(2,b.Button,{onClick:function(){function L(){return c("set_category",{name:y,search_text:N})}return L}(),children:y},I)}),u&&(0,e.createComponentVNode)(2,b.Section,{title:u,buttons:(0,e.createComponentVNode)(2,b.Input,{width:"200px",placeholder:"Search "+u,onInput:function(){function y(I,L){return V(L)}return y}(),value:N}),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:s.filter((0,t.createSearch)(N,function(y){return y.name+"|"+y.container+"|"+y.instructions.toString()})).sort(function(y,I){return y==null?void 0:y.name.localeCompare(I==null?void 0:I.name)}).map(function(y,I){return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:(0,t.decodeHtmlEntities)(y.name),children:[y.container,":",(0,e.createVNode)(1,"ol",null,y.instructions.map(function(L,w){return(0,e.createVNode)(1,"li",null,L,0,null,I+"-"+w)}),0)]})},I)})})})]})}return B}()},2395:function(T,r,n){"use strict";r.__esModule=!0,r.pda_games=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(1331),f=r.pda_games=function(){function b(S,B){var k=(0,a.useBackend)(B),g=k.act,i=k.data,c=i.games,m=function(){function l(u){switch(u){case"Minesweeper":return(0,e.createComponentVNode)(2,o.IconStack,{children:[(0,e.createComponentVNode)(2,o.Icon,{ml:"0",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,e.createComponentVNode)(2,o.Icon,{ml:"9px",mt:"23px",name:"bomb",size:"3",color:"black"})]});default:return(0,e.createComponentVNode)(2,o.Icon,{ml:"16px",mt:"10px",name:"gamepad",size:"6"})}}return l}();return(0,e.createComponentVNode)(2,t.Box,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"33%",textAlign:"center",translucent:!0,onClick:function(){function u(){return g("play",{id:l.id})}return u}(),children:[m(l.name),(0,e.createComponentVNode)(2,t.Box,{children:l.name})]},l.name)})})}return b}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data,i=g.janitor,c=i.user_loc,m=i.mops,l=i.buckets,u=i.cleanbots,s=i.carts,d=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(S,B){var k=(0,t.useBackend)(B),g=k.act,i=k.data,c=i.owner,m=i.ownjob,l=i.idInserted,u=i.categories,s=i.pai,d=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function v(){return g("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var C=i.apps[v];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:C.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{icon:h.uid in d?h.notify_icon:h.icon,iconSpin:h.uid in d,color:h.uid in d?"red":"transparent",content:h.name,onClick:function(){function p(){return g("StartProgram",{program:h.uid})}return p}()},h.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return g("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return g("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.act,g=B.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,S){var B=(0,a.useBackend)(S),k=B.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,u=l.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:l}):(0,e.createComponentVNode)(2,S,{data:l})}return k}(),b=r.ActiveConversation=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=l.convo_name,s=l.convo_job,d=l.messages,v=l.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),h=C[0],p=C[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:h,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!h)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(d).map(function(V,y){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},y)})});return h&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:h,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!h)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(d).map(function(V,y){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},y)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),N]})}return k}(),S=r.MessengerList=function(){function k(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=l.convopdas,s=l.pdas,d=l.charges,v=l.silent,C=l.toff,h=l.ringtone_list,p=l.ringtone,N=(0,t.useLocalState)(i,"searchTerm",""),V=N[0],y=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(h),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!d&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function I(L,w){y(w)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,B,{title:"Current Conversations",data:l,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,B,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:V})]})}return k}(),B=function(g,i){var c=(0,t.useBackend)(i),m=c.act,l=g.data,u=g.pdas,s=g.title,d=g.msgAct,v=g.searchTerm,C=l.charges,h=l.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function N(){return m(d,{target:p.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&h.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:N.uid,target:p.uid})}return V}()},N.uid)})})]},p.uid)})})}},90382:function(T,r,n){"use strict";r.__esModule=!0,r.pda_minesweeper=r.MineSweeperLeaderboard=r.MineSweeperGame=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_minesweeper=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=(0,a.useLocalState)(g,"window","Game"),u=l[0],s=l[1],d={Game:"Leaderboard",Leaderboard:"Game"};return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:u==="Game"?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,fontSize:2,lineHeight:1.75,icon:u==="Game"?"book":"gamepad",onClick:function(){function v(){return s(d[u])}return v}(),children:d[u]})})]})}return B}(),f=r.MineSweeperGame=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.matrix,u=m.flags,s=m.bombs,d={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},v=function(){function C(h,p,N){c("Square",{X:h,Y:p,mode:N})}return C}();return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:Object.keys(l).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(l[C]).map(function(h){return(0,e.createComponentVNode)(2,t.Button,{m:.25,height:2,width:2,className:l[C][h].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:l[C][h].open?l[C][h].bomb?"bomb":"":l[C][h].flag?"flag":"",textColor:l[C][h].open?l[C][h].bomb?"black":d[l[C][h].around]:l[C][h].flag?"red":"gray",onClick:function(){function p(N){return v(C,h,"bomb")}return p}(),onContextMenu:function(){function p(N){event.preventDefault(),v(C,h,"flag")}return p}(),children:l[C][h].open&&!l[C][h].bomb&&l[C][h].around?l[C][h].around:" "},h)})},C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,textAlign:"left",pt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bomb",color:"gray"})," : ",s]}),(0,e.createComponentVNode)(2,t.Stack.Divider),(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flag",color:"red"})," : ",u]})]})})]})}return B}(),b=r.MineSweeperLeaderboard=function(){function B(k,g){var i=(0,a.useBackend)(g),c=i.act,m=i.data,l=m.leaderboard,u=(0,a.useLocalState)(g,"sortId","time"),s=u[0],d=u[1],v=(0,a.useLocalState)(g,"sortOrder",!1),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Table,{className:"Minesweeper__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Nick"}),(0,e.createComponentVNode)(2,S,{id:"time",children:"Time"})]}),l&&l.sort(function(p,N){var V=C?1:-1;return p[s].localeCompare(N[s])*V}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.time})]},N)})]})}return B}(),S=function(k,g){var i=(0,a.useLocalState)(g,"sortId","time"),c=i[0],m=i[1],l=(0,a.useLocalState)(g,"sortOrder",!1),u=l[0],s=l[1],d=k.id,v=k.children;return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",onClick:function(){function C(){c===d?s(!u):(m(d),s(!0))}return C}(),children:[v,c===d&&(0,e.createComponentVNode)(2,t.Icon,{name:u?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function S(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return S}(),f=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.bots;return l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(B,k){var g=(0,a.useBackend)(k),i=g.act,c=g.data,m=c.mulebot,l=m.botstatus,u=m.active,s=l.mode,d=l.loca,v=l.load,C=l.powr,h=l.dest,p=l.home,N=l.retn,V=l.pick,y;switch(s){case 0:y="Ready";break;case 1:y="Loading/Unloading";break;case 2:case 12:y="Navigating to delivery location";break;case 3:y="Navigating to Home";break;case 4:y="Waiting for clear path";break;case 5:case 6:y="Calculating navigation path";break;case 7:y="Unable to locate destination";break;default:y=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Set)":"None (Set)",onClick:function(){function I(){return i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return i("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return i("set_pickup_type",{autopick:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function I(){return i("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function l(u,s){var d=(0,t.useBackend)(s),v=d.act,C=d.data,h=C.logged_in,p=C.owner_name,N=C.money;return h?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,S)]})],4):(0,e.createComponentVNode)(2,i)}return l}(),b=function(u,s){var d=(0,t.useBackend)(s),v=d.data,C=v.is_premium,h=(0,t.useLocalState)(s,"tabIndex",1),p=h[0],N=h[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return N(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return N(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return N(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!C&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return N(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},S=function(u,s){var d=(0,t.useLocalState)(s,"tabIndex",1),v=d[0],C=(0,t.useBackend)(s),h=C.data,p=h.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,g);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},B=function(u,s){var d,v=(0,t.useBackend)(s),C=v.act,h=v.data,p=h.requests,N=h.available_accounts,V=h.money,y=(0,t.useLocalState)(s,"selectedAccount"),I=y[0],L=y[1],w=(0,t.useLocalState)(s,"transferAmount"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],D=E[1],M=[];return N.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(O,F){return D(F)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(d=N.filter(function(R){return R.UID===I})[0])==null?void 0:d.name,onSelected:function(){function R(O){return L(M[O])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(O,F){return x(F)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var B=r.Layout=function(){function g(i){var c=i.className,m=i.theme,l=m===void 0?"nanotrasen":m,u=i.children,s=y(i,f);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return g}(),k=function(i){var c=i.className,m=i.scrollable,l=i.children,u=y(i,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),l,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function g(i){return(0,o.addScrollableNode)(i)}return g}(),onComponentWillUnmount:function(){function g(i){return(0,o.removeScrollableNode)(i)}return g}()},B.Content=k},96945:function(T,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),y=["theme","children","className"],B=["className","fitted","children"];/** + */function S(g,i){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(i.includes(m))continue;c[m]=g[m]}return c}var B=r.Layout=function(){function g(i){var c=i.className,m=i.theme,l=m===void 0?"nanotrasen":m,u=i.children,s=S(i,f);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return g}(),k=function(i){var c=i.className,m=i.scrollable,l=i.children,u=S(i,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),l,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function g(i){return(0,o.addScrollableNode)(i)}return g}(),onComponentWillUnmount:function(){function g(i){return(0,o.removeScrollableNode)(i)}return g}()},B.Content=k},96945:function(T,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),S=["theme","children","className"],B=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){if(c==null)return{};var l={};for(var u in c)if({}.hasOwnProperty.call(c,u)){if(m.includes(u))continue;l[u]=c[u]}return l}var g=r.Pane=function(){function c(m,l){var u=m.theme,s=m.children,d=m.className,v=k(m,y),C=(0,t.useBackend)(l),h=C.suspended,p=(0,f.useDebug)(l),N=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",d]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!h&&s})})))}return c}(),i=function(m){var l=m.className,u=m.fitted,s=m.children,d=k(m,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},d,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};g.Content=i},34827:function(T,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),y=n(76910),B=n(99851),k=n(77384),g=n(35421),i=n(9394),c=n(17617),m=["className","fitted","children"];function l(V,S){if(V==null)return{};var I={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(S.includes(L))continue;I[L]=V[L]}return I}function u(V,S){V.prototype=Object.create(S.prototype),V.prototype.constructor=V,s(V,S)}function s(V,S){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I},s(V,S)}/** + */function k(c,m){if(c==null)return{};var l={};for(var u in c)if({}.hasOwnProperty.call(c,u)){if(m.includes(u))continue;l[u]=c[u]}return l}var g=r.Pane=function(){function c(m,l){var u=m.theme,s=m.children,d=m.className,v=k(m,S),C=(0,t.useBackend)(l),h=C.suspended,p=(0,f.useDebug)(l),N=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",d]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!h&&s})})))}return c}(),i=function(m){var l=m.className,u=m.fitted,s=m.children,d=k(m,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},d,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};g.Content=i},34827:function(T,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),S=n(76910),B=n(99851),k=n(77384),g=n(35421),i=n(9394),c=n(17617),m=["className","fitted","children"];function l(V,y){if(V==null)return{};var I={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(y.includes(L))continue;I[L]=V[L]}return I}function u(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,s(V,y)}function s(V,y){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I},s(V,y)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var d=(0,i.createLogger)("Window"),v=[400,600],C=r.Window=function(V){function S(){return V.apply(this,arguments)||this}u(S,V);var I=S.prototype;return I.componentDidMount=function(){function L(){var w=(0,f.useBackend)(this.context),A=w.suspended;A||(d.log("mounting"),this.updateGeometry())}return L}(),I.componentDidUpdate=function(){function L(w){var A=this.props.width!==w.width||this.props.height!==w.height;A&&this.updateGeometry()}return L}(),I.updateGeometry=function(){function L(){var w,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:v},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(w=x.window)!=null&&w.key&&(0,g.setWindowKey)(x.window.key),(0,g.recallWindowGeometry)(E)}return L}(),I.render=function(){function L(){var w,A=this.props,x=A.theme,E=A.title,P=A.children,D=(0,f.useBackend)(this.context),M=D.config,R=D.suspended,O=(0,B.useDebug)(this.context),F=O.debugLayout,_=(0,t.useDispatch)(this.context),U=(w=M.window)==null?void 0:w.fancy,z=M.user&&(M.user.observer?M.status2?m-2:0),u=2;u=o){var s=[c].concat(l).map(function(d){return typeof d=="string"?d:d instanceof Error?d.stack||String(d):JSON.stringify(d)}).filter(function(d){return d}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},B=r.createLogger=function(){function g(i){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),u=0;u2?m-2:0),u=2;u=o){var s=[c].concat(l).map(function(d){return typeof d=="string"?d:d instanceof Error?d.stack||String(d):JSON.stringify(d)}).filter(function(d){return d}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},B=r.createLogger=function(){function g(i){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),u=0;u0;){var p=C.shift(),N=p(v);try{h=b(N)}catch(S){if(S.code!=="MODULE_NOT_FOUND")throw S}}if(!h)return y("notFound",v);var V=h[v];return V||y("missingExport",v)}return i}()},72178:function(T,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),y=n(9394);function B(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},k(u,s)}/** + */var b=n(32054),S=function(c,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},B=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},g=r.getRoutedComponent=function(){function i(c){var m=c.getState(),l=(0,a.selectBackend)(m),u=l.suspended,s=l.config;if(u)return B;if(s.refreshing)return k;if(0)var d;for(var v=s==null?void 0:s.interface,C=[function(y){return"./"+y+".tsx"},function(y){return"./"+y+".js"},function(y){return"./"+y+"/index.tsx"},function(y){return"./"+y+"/index.js"}],h;!h&&C.length>0;){var p=C.shift(),N=p(v);try{h=b(N)}catch(y){if(y.code!=="MODULE_NOT_FOUND")throw y}}if(!h)return S("notFound",v);var V=h[v];return V||S("missingExport",v)}return i}()},72178:function(T,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),S=n(9394);function B(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},k(u,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var g=(0,y.createLogger)("store"),i=r.configureStore=function(){function u(s){var d,v;s===void 0&&(s={});var C=s,h=C.sideEffects,p=h===void 0?!0:h,N=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((d=s.middleware)==null?void 0:d.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],S=a.applyMiddleware.apply(void 0,V),I=(0,a.createStore)(N,S);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),c=function(s){return function(d){return function(v){var C=v.type,h=v.payload;return C==="update"||C==="backend/update"?g.debug("action",{type:C}):g.debug("action",v),d(v)}}},m=function(s){return function(d,v){var C,h;v?typeof v=="object"&&!v.stack&&(v.stack=d):(v=new Error(d.split("\n")[0]),v.stack=d),g.log("FatalError:",v);var p=s.getState(),N=p==null||(C=p.backend)==null?void 0:C.config,V=d;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:N==null||(h=N.client)==null?void 0:h.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),V}},l=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}B(s,u);var d=s.prototype;return d.getChildContext=function(){function v(){var C=this.props.store;return{store:C}}return v}(),d.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},51364:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var g=(0,S.createLogger)("store"),i=r.configureStore=function(){function u(s){var d,v;s===void 0&&(s={});var C=s,h=C.sideEffects,p=h===void 0?!0:h,N=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((d=s.middleware)==null?void 0:d.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],y=a.applyMiddleware.apply(void 0,V),I=(0,a.createStore)(N,y);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),c=function(s){return function(d){return function(v){var C=v.type,h=v.payload;return C==="update"||C==="backend/update"?g.debug("action",{type:C}):g.debug("action",v),d(v)}}},m=function(s){return function(d,v){var C,h;v?typeof v=="object"&&!v.stack&&(v.stack=d):(v=new Error(d.split("\n")[0]),v.stack=d),g.log("FatalError:",v);var p=s.getState(),N=p==null||(C=p.backend)==null?void 0:C.config,V=d;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:N==null||(h=N.client)==null?void 0:h.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),V}},l=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}B(s,u);var d=s.prototype;return d.getChildContext=function(){function v(){var C=this.props.store;return{store:C}}return v}(),d.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},51364:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,S){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Button",render:function(){function B(){return(0,e.createComponentVNode)(2,y)}return B}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,g){var i=(0,a.useLocalState)(g,"translucent",!1),c=i[0],m=i[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function l(){return m(!c)}return l}(),content:"Translucent"}),children:b.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:l,children:l},l)})})],4)}},51956:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var o=r.meta={title:"Button",render:function(){function B(){return(0,e.createComponentVNode)(2,S)}return B}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],S=function(k,g){var i=(0,a.useLocalState)(g,"translucent",!1),c=i[0],m=i[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function l(){return m(!c)}return l}(),content:"Translucent"}),children:b.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:l,children:l},l)})})],4)}},51956:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(B,k){var g=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=g[0],c=g[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:i})})],4)}},17466:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var f=r.meta={title:"ByondUi",render:function(){function S(){return(0,e.createComponentVNode)(2,b)}return S}()},b=function(B,k){var g=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=g[0],c=g[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:i})})],4)}},17466:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){var k=(0,a.useLocalState)(B,"fs_grow",1),g=k[0],i=k[1],c=(0,a.useLocalState)(B,"fs_direction","column"),m=c[0],l=c[1],u=(0,a.useLocalState)(B,"fs_fill",!0),s=u[0],d=u[1],v=(0,a.useLocalState)(B,"fs_title",!0),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(+!g)}return p}(),children:"Flex.Item grow={"+g+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function p(){return h(!C)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){var k=(0,a.useLocalState)(B,"fs_grow",1),g=k[0],i=k[1],c=(0,a.useLocalState)(B,"fs_direction","column"),m=c[0],l=c[1],u=(0,a.useLocalState)(B,"fs_fill",!0),s=u[0],d=u[1],v=(0,a.useLocalState)(B,"fs_title",!0),C=v[0],h=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(+!g)}return p}(),children:"Flex.Item grow={"+g+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function p(){return h(!C)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function B(){return(0,e.createComponentVNode)(2,y)}return B}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,g){var i=(0,a.useLocalState)(g,"fluid1",!0),c=i[0],m=i[1],l=(0,a.useLocalState)(g,"fluid2",!1),u=l[0],s=l[1],d=(0,a.useLocalState)(g,"fluid3",!1),v=d[0],C=d[1],h=(0,a.useLocalState)(g,"disabled",!1),p=h[0],N=h[1],V=(0,a.useLocalState)(g,"selected",!1),S=V[0],I=V[1],L=(0,a.useLocalState)(g,"addImage",!1),w=L[0],A=L[1],x=(0,a.useLocalState)(g,"base64",""),E=x[0],P=x[1],D=(0,a.useLocalState)(g,"title","Image Button"),M=D[0],R=D[1],O=(0,a.useLocalState)(g,"content","You can put anything in there"),F=O[0],_=O[1],U=(0,a.useLocalState)(g,"imageSize",64),z=U[0],$=U[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(X,J){return P(J)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(X,J){return R(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function G(X,J){return _(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(X,J){return $(J)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function G(){return N(!p)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:S,onClick:function(){function G(){return I(!S)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:E,imageSize:z,title:M,tooltip:!c&&F,disabled:p,selected:S,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return A(!w)}return G}(),children:"Add Image"}),children:F})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function G(){return s(!u)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:G,imageSize:u?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,onClick:function(){function G(){return C(!v)}return G}(),children:"Fluid"}),children:f.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:v,color:G,imageSize:v?24:48,children:G},G)})})],4)}},21394:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function B(){return(0,e.createComponentVNode)(2,S)}return B}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],S=function(k,g){var i=(0,a.useLocalState)(g,"fluid1",!0),c=i[0],m=i[1],l=(0,a.useLocalState)(g,"fluid2",!1),u=l[0],s=l[1],d=(0,a.useLocalState)(g,"fluid3",!1),v=d[0],C=d[1],h=(0,a.useLocalState)(g,"disabled",!1),p=h[0],N=h[1],V=(0,a.useLocalState)(g,"selected",!1),y=V[0],I=V[1],L=(0,a.useLocalState)(g,"addImage",!1),w=L[0],A=L[1],x=(0,a.useLocalState)(g,"base64",""),E=x[0],P=x[1],D=(0,a.useLocalState)(g,"title","Image Button"),M=D[0],R=D[1],O=(0,a.useLocalState)(g,"content","You can put anything in there"),F=O[0],_=O[1],U=(0,a.useLocalState)(g,"imageSize",64),z=U[0],$=U[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(X,J){return P(J)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(X,J){return R(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function G(X,J){return _(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(X,J){return $(J)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function G(){return N(!p)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:y,onClick:function(){function G(){return I(!y)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:E,imageSize:z,title:M,tooltip:!c&&F,disabled:p,selected:y,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return A(!w)}return G}(),children:"Add Image"}),children:F})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function G(){return s(!u)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:G,imageSize:u?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,onClick:function(){function G(){return C(!v)}return G}(),children:"Fluid"}),children:f.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:v,color:G,imageSize:v?24:48,children:G},G)})})],4)}},21394:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){var k=(0,a.useLocalState)(B,"number",0),g=k[0],i=k[1],c=(0,a.useLocalState)(B,"text","Sample text"),m=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,d){return l(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,d){return l(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onChange:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:g,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,d){return i(d)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){var k=(0,a.useLocalState)(B,"number",0),g=k[0],i=k[1],c=(0,a.useLocalState)(B,"text","Sample text"),m=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,d){return l(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,d){return l(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onChange:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,d){return i(d)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:g,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,d){return i(d)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){var k=(0,a.useLocalState)(B,"progress",.5),g=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:g,children:["Value: ",Number(g).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(g-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(g+.1)}return c}()})]})]})}},77766:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){var k=(0,a.useLocalState)(B,"progress",.5),g=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:g,children:["Value: ",Number(g).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(g-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(g+.1)}return c}()})]})]})}},77766:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(B,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},30187:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** + */var t=r.meta={title:"Stack",render:function(){function S(){return(0,e.createComponentVNode)(2,b)}return S}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(B,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},30187:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(B,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function g(){localStorage.clear(),a.storage.clear()}return g}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var f=r.meta={title:"Storage",render:function(){function S(){return(0,e.createComponentVNode)(2,b)}return S}()},b=function(B,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function g(){localStorage.clear(),a.storage.clear()}return g}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(B,k){var g=(0,a.useLocalState)(k,"tabIndex",0),i=g[0],c=g[1],m=(0,a.useLocalState)(k,"tabProps",{}),l=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function s(){return u(Object.assign({},l,{vertical:!l.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function s(){return u(Object.assign({},l,{leftSlot:!l.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function s(){return u(Object.assign({},l,{rightSlot:!l.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function s(){return u(Object.assign({},l,{icon:!l.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function s(){return u(Object.assign({},l,{fluid:!l.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function s(){return u(Object.assign({},l,{leftAligned:!l.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:f.map(function(s,d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return c(d)}return v}(),children:s},d)})})})],4)}},53276:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function S(){return(0,e.createComponentVNode)(2,b)}return S}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(B,k){var g=(0,a.useLocalState)(k,"tabIndex",0),i=g[0],c=g[1],m=(0,a.useLocalState)(k,"tabProps",{}),l=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function s(){return u(Object.assign({},l,{vertical:!l.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function s(){return u(Object.assign({},l,{leftSlot:!l.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function s(){return u(Object.assign({},l,{rightSlot:!l.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function s(){return u(Object.assign({},l,{icon:!l.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function s(){return u(Object.assign({},l,{fluid:!l.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function s(){return u(Object.assign({},l,{leftAligned:!l.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:f.map(function(s,d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return c(d)}return v}(),children:s},d)})})})],4)}},53276:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,B){var k=(0,a.useLocalState)(B,"kitchenSinkTheme"),g=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:g,onInput:function(){function c(m,l){return i(l)}return c}()})})})})}},28717:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(S,B){var k=(0,a.useLocalState)(B,"kitchenSinkTheme"),g=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:g,onInput:function(){function c(m,l){return i(l)}return c}()})})})})}},28717:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Tooltip",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(y){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:y,content:y},y)})})]})}},37168:function(T,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** + */var t=r.meta={title:"Tooltip",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(S){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},37168:function(T,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(T,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=70752},59395:function(T,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_games.js":2395,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_minesweeper.js":90382,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=59395},32054:function(T,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AdminAntagMenu":23001,"./AdminAntagMenu.js":23001,"./AgentCard":39683,"./AgentCard.tsx":39683,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DecalPainter":76430,"./DecalPainter.js":76430,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/AnalyzerMenu":68303,"./RndConsole/AnalyzerMenu.js":68303,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./SingularityMonitor":86013,"./SingularityMonitor.js":86013,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./goonstation_PTL":95213,"./goonstation_PTL/":95213,"./goonstation_PTL/index":95213,"./goonstation_PTL/index.js":95213,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_games":2395,"./pda/pda_games.js":2395,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_minesweeper":90382,"./pda/pda_minesweeper.js":90382,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=32054},4085:function(T,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=4085},10320:function(T,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(T,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(T,r,n){"use strict";var e=n(45015),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(T,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),T.exports=function(b){f[o][b]=!0}},35483:function(T,r,n){"use strict";var e=n(50233).charAt;T.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(T,r,n){"use strict";var e=n(21287),a=TypeError;T.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(T,r,n){"use strict";var e=n(77568),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(T){"use strict";T.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(T,r,n){"use strict";var e=n(40033);T.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(T,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),y=n(2281),B=n(89393),k=n(37909),g=n(55938),i=n(73936),c=n(21287),m=n(36917),l=n(76649),u=n(24697),s=n(16738),d=n(5419),v=d.enforce,C=d.get,h=t.Int8Array,p=h&&h.prototype,N=t.Uint8ClampedArray,V=N&&N.prototype,S=h&&m(h),I=p&&m(p),L=Object.prototype,w=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!l&&y(t.opera)!=="Opera",D=!1,M,R,O,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},U=function(){function ie(me){if(!f(me))return!1;var q=y(me);return q==="DataView"||b(F,q)||b(_,q)}return ie}(),z=function ie(me){var q=m(me);if(f(q)){var re=C(q);return re&&b(re,E)?re[E]:ie(q)}},$=function(me){if(!f(me))return!1;var q=y(me);return b(F,q)||b(_,q)},G=function(me){if($(me))return me;throw new w("Target is not a typed array")},X=function(me){if(o(me)&&(!l||c(S,me)))return me;throw new w(B(me)+" is not a typed array constructor")},J=function(me,q,re,ae){if(a){if(re)for(var le in F){var Z=t[le];if(Z&&b(Z.prototype,me))try{delete Z.prototype[me]}catch(ne){try{Z.prototype[me]=q}catch(te){}}}(!I[me]||re)&&g(I,me,re?q:P&&p[me]||q,ae)}},se=function(me,q,re){var ae,le;if(a){if(l){if(re){for(ae in F)if(le=t[ae],le&&b(le,me))try{delete le[me]}catch(Z){}}if(!S[me]||re)try{return g(S,me,re?q:P&&S[me]||q)}catch(Z){}else return}for(ae in F)le=t[ae],le&&(!le[me]||re)&&g(le,me,q)}};for(M in F)R=t[M],O=R&&R.prototype,O?v(O)[E]=R:P=!1;for(M in _)R=t[M],O=R&&R.prototype,O&&(v(O)[E]=R);if((!P||!o(S)||S===Function.prototype)&&(S=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),P))for(M in F)t[M]&&l(t[M],S);if((!P||!I||I===L)&&(I=S.prototype,P))for(M in F)t[M]&&l(t[M].prototype,I);if(P&&m(V)!==I&&l(V,I),a&&!b(I,A)){D=!0,i(I,A,{configurable:!0,get:function(){function ie(){return f(this)?this[x]:void 0}return ie}()});for(M in F)t[M]&&k(t[M],x,M)}T.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&x,aTypedArray:G,aTypedArrayConstructor:X,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:se,getTypedArrayConstructor:z,isView:U,isTypedArray:$,TypedArray:S,TypedArrayPrototype:I}},37336:function(T,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),y=n(73936),B=n(30145),k=n(40033),g=n(60077),i=n(61365),c=n(10188),m=n(43806),l=n(95867),u=n(91784),s=n(36917),d=n(76649),v=n(88471),C=n(54602),h=n(5781),p=n(5774),N=n(84925),V=n(5419),S=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",x="Wrong length",E="Wrong index",P=V.getterFor(L),D=V.getterFor(w),M=V.set,R=e[L],O=R,F=O&&O[A],_=e[w],U=_&&_[A],z=Object.prototype,$=e.Array,G=e.RangeError,X=a(v),J=a([].reverse),se=u.pack,ie=u.unpack,me=function(Ne){return[Ne&255]},q=function(Ne){return[Ne&255,Ne>>8&255]},re=function(Ne){return[Ne&255,Ne>>8&255,Ne>>16&255,Ne>>24&255]},ae=function(Ne){return Ne[3]<<24|Ne[2]<<16|Ne[1]<<8|Ne[0]},le=function(Ne){return se(l(Ne),23,4)},Z=function(Ne){return se(Ne,52,8)},ne=function(Ne,Be,be){y(Ne[A],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},te=function(Ne,Be,be,Le){var we=D(Ne),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(E);var He=we.bytes,ye=xe+we.byteOffset,de=C(He,ye,ye+Be);return Re?de:J(de)},fe=function(Ne,Be,be,Le,we,xe){var Re=D(Ne),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(E);for(var he=Re.bytes,ke=He+Re.byteOffset,ve=0;vewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(x);M(this,{type:w,buffer:Ne,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ne,this.byteLength=be,this.byteOffset=xe)}return Ce}(),U=_[A],t&&(ne(O,"byteLength",P),ne(_,"buffer",D),ne(_,"byteLength",D),ne(_,"byteOffset",D)),B(U,{getInt8:function(){function Ce(Ne){return te(this,1,Ne)[0]<<24>>24}return Ce}(),getUint8:function(){function Ce(Ne){return te(this,1,Ne)[0]}return Ce}(),getInt16:function(){function Ce(Ne){var Be=te(this,2,Ne,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return Ce}(),getUint16:function(){function Ce(Ne){var Be=te(this,2,Ne,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return Ce}(),getInt32:function(){function Ce(Ne){return ae(te(this,4,Ne,arguments.length>1?arguments[1]:!1))}return Ce}(),getUint32:function(){function Ce(Ne){return ae(te(this,4,Ne,arguments.length>1?arguments[1]:!1))>>>0}return Ce}(),getFloat32:function(){function Ce(Ne){return ie(te(this,4,Ne,arguments.length>1?arguments[1]:!1),23)}return Ce}(),getFloat64:function(){function Ce(Ne){return ie(te(this,8,Ne,arguments.length>1?arguments[1]:!1),52)}return Ce}(),setInt8:function(){function Ce(Ne,Be){fe(this,1,Ne,me,Be)}return Ce}(),setUint8:function(){function Ce(Ne,Be){fe(this,1,Ne,me,Be)}return Ce}(),setInt16:function(){function Ce(Ne,Be){fe(this,2,Ne,q,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setUint16:function(){function Ce(Ne,Be){fe(this,2,Ne,q,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setInt32:function(){function Ce(Ne,Be){fe(this,4,Ne,re,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setUint32:function(){function Ce(Ne,Be){fe(this,4,Ne,re,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setFloat32:function(){function Ce(Ne,Be){fe(this,4,Ne,le,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setFloat64:function(){function Ce(Ne,Be){fe(this,8,Ne,Z,Be,arguments.length>2?arguments[2]:!1)}return Ce}()});else{var pe=S&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||pe&&!I})?(O=function(){function Ce(Ne){return g(this,F),h(new R(m(Ne)),this,O)}return Ce}(),O[A]=F,F.constructor=O,p(O,R)):pe&&I&&b(R,"name",L),d&&s(U)!==z&&d(U,z);var ce=new _(new O(2)),Ve=a(U.setInt8);ce.setInt8(0,2147483648),ce.setInt8(1,2147483649),(ce.getInt8(0)||!ce.getInt8(1))&&B(U,{setInt8:function(){function Ce(Ne,Be){Ve(this,Ne,Be<<24>>24)}return Ce}(),setUint8:function(){function Ce(Ne,Be){Ve(this,Ne,Be<<24>>24)}return Ce}()},{unsafe:!0})}N(O,L),N(_,w),T.exports={ArrayBuffer:O,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;T.exports=[].copyWithin||function(){function b(y,B){var k=e(this),g=t(k),i=a(y,g),c=a(B,g),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?g:a(m,g))-c,g-i),u=1;for(c0;)c in k?k[i]=k[c]:o(k,i),i+=u,c+=u;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(f){for(var b=e(this),y=t(b),B=arguments.length,k=a(B>1?arguments[1]:void 0,y),g=B>2?arguments[2]:void 0,i=g===void 0?y:a(g,y);i>k;)b[k++]=f;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),y=new a(b);b>f;)y[f]=t[f++];return y}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),y=n(24760),B=n(60102),k=n(77455),g=n(59201),i=Array;T.exports=function(){function c(m){var l=t(m),u=b(this),s=arguments.length,d=s>1?arguments[1]:void 0,v=d!==void 0;v&&(d=e(d,s>2?arguments[2]:void 0));var C=g(l),h=0,p,N,V,S,I,L;if(C&&!(this===i&&f(C)))for(N=u?new this:[],S=k(l,C),I=S.next;!(V=a(I,S)).done;h++)L=v?o(S,d,[V.value,h],!0):V.value,B(N,h,L);else for(p=y(l),N=u?new this(p):i(p);p>h;h++)L=v?d(l[h],h):l[h],B(N,h,L);return N.length=h,N}return c}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,B,k){var g=e(y),i=t(g);if(i===0)return!b&&-1;var c=a(k,i),m;if(b&&B!==B){for(;i>c;)if(m=g[c++],m!==m)return!0}else for(;i>c;c++)if((b||c in g)&&g[c]===B)return b||c||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),y=a([].push),B=function(g){var i=g===1,c=g===2,m=g===3,l=g===4,u=g===6,s=g===7,d=g===5||u;return function(v,C,h,p){for(var N=o(v),V=t(N),S=f(V),I=e(C,h),L=0,w=p||b,A=i?w(v,S):c||s?w(v,0):void 0,x,E;S>L;L++)if((d||L in V)&&(x=V[L],E=I(x,L,N),g))if(i)A[L]=E;else if(E)switch(g){case 3:return!0;case 5:return x;case 6:return L;case 2:y(A,x)}else switch(g){case 4:return!1;case 7:y(A,x)}return u?-1:m||l?l:A}};T.exports={forEach:B(0),map:B(1),filter:B(2),some:B(3),every:B(4),find:B(5),findIndex:B(6),filterReject:B(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,y=[].lastIndexOf,B=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),g=B||!k;T.exports=g?function(){function i(c){if(B)return e(y,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var u=l-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=l+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return i}():y},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(f){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(g,i,c,m){var l=a(g),u=t(l),s=o(l);if(e(i),s===0&&c<2)throw new f(b);var d=k?s-1:0,v=k?-1:1;if(c<2)for(;;){if(d in u){m=u[d],d+=v;break}if(d+=v,k?d<0:s<=d)throw new f(b)}for(;k?d>=0:s>d;d+=v)d in u&&(m=i(m,u[d],d,l));return m}};T.exports={left:y(!1),right:y(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=f?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var y=f.length;if(y<8)for(var B=1,k,g;B0;)f[g]=f[--g];g!==B++&&(f[g]=k)}else for(var i=a(y/2),c=o(e(f,0,i),b),m=o(e(f,i),b),l=c.length,u=m.length,s=0,d=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!I(this,w)}return L}()}),t(N,C?{get:function(){function L(w){var A=I(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return S(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return S(this,w=w===0?0:w,w)}return L}()}),i&&a(N,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(d,v,C){var h=v+" Iterator",p=u(v),N=u(h);B(d,v,function(V,S){l(this,{type:h,target:V,state:p(V),kind:S,last:void 0})},function(){for(var V=N(this),S=V.kind,I=V.last;I&&I.removed;)I=I.previous;return!V.target||!(V.last=I=I?I.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(S==="keys"?I.key:S==="values"?I.value:[I.key,I.value],!1)},C?"entries":"values",!C,!0),g(v)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),y=n(77568),B=n(49450),k=n(22603),g=n(45299),i=n(5419),c=i.set,m=i.getterFor,l=k.find,u=k.findIndex,s=e([].splice),d=0,v=function(N){return N.frozen||(N.frozen=new C)},C=function(){this.entries=[]},h=function(N,V){return l(N.entries,function(S){return S[0]===V})};C.prototype={get:function(){function p(N){var V=h(this,N);if(V)return V[1]}return p}(),has:function(){function p(N){return!!h(this,N)}return p}(),set:function(){function p(N,V){var S=h(this,N);S?S[1]=V:this.entries.push([N,V])}return p}(),delete:function(){function p(N){var V=u(this.entries,function(S){return S[0]===N});return~V&&s(this.entries,V,1),!!~V}return p}()},T.exports={getConstructor:function(){function p(N,V,S,I){var L=N(function(E,P){o(E,w),c(E,{type:V,id:d++,frozen:void 0}),b(P)||B(P,E[I],{that:E,AS_ENTRIES:S})}),w=L.prototype,A=m(V),x=function(){function E(P,D,M){var R=A(P),O=t(f(D),!0);return O===!0?v(R).set(D,M):O[R.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?v(D).delete(P):M&&g(M,D.id)&&delete M[D.id]}return E}(),has:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?v(D).has(P):M&&g(M,D.id)}return E}()}),a(w,S?{get:function(){function E(P){var D=A(this);if(y(P)){var M=t(P);return M===!0?v(D).get(P):M?M[D.id]:void 0}}return E}(),set:function(){function E(P,D){return x(this,P,D)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),L}return p}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),y=n(49450),B=n(60077),k=n(55747),g=n(42871),i=n(77568),c=n(40033),m=n(92490),l=n(84925),u=n(5781);T.exports=function(s,d,v){var C=s.indexOf("Map")!==-1,h=s.indexOf("Weak")!==-1,p=C?"set":"add",N=a[s],V=N&&N.prototype,S=N,I={},L=function(R){var O=t(V[R]);f(V,R,R==="add"?function(){function F(_){return O(this,_===0?0:_),this}return F}():R==="delete"?function(F){return h&&!i(F)?!1:O(this,F===0?0:F)}:R==="get"?function(){function F(_){return h&&!i(_)?void 0:O(this,_===0?0:_)}return F}():R==="has"?function(){function F(_){return h&&!i(_)?!1:O(this,_===0?0:_)}return F}():function(){function F(_,U){return O(this,_===0?0:_,U),this}return F}())},w=o(s,!k(N)||!(h||V.forEach&&!c(function(){new N().entries().next()})));if(w)S=v.getConstructor(d,s,C,p),b.enable();else if(o(s,!0)){var A=new S,x=A[p](h?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new N(M)}),D=!h&&c(function(){for(var M=new N,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(S=d(function(M,R){B(M,V);var O=u(new N,M,S);return g(R)||y(R,O[p],{that:O,AS_ENTRIES:C}),O}),S.prototype=V,V.constructor=S),(E||D)&&(L("delete"),L("has"),C&&L("get")),(D||x)&&L(p),h&&V.clear&&delete V.clear}return I[s]=S,e({global:!0,constructor:!0,forced:S!==N},I),l(S,s),h||v.setStrong(S,s,C),S}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(f,b,y){for(var B=a(b),k=o.f,g=t.f,i=0;i"+g+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,y=Date.prototype,B=y.toISOString,k=e(y.getTime),g=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),m=e(y.getUTCMilliseconds),l=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);T.exports=a(function(){return B.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){B.call(new Date(NaN))})?function(){function d(){if(!f(k(this)))throw new o("Invalid time value");var v=this,C=i(v),h=m(v),p=C<0?"-":C>9999?"+":"";return p+t(b(C),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(g(v),2,0)+"T"+t(c(v),2,0)+":"+t(l(v),2,0)+":"+t(s(v),2,0)+"."+t(h,3,0)+"Z"}return d}():B},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(f,b,y,B){B||(B={});var k=B.enumerable,g=B.name!==void 0?B.name:b;if(e(y)&&t(y,g,B),B.global)k?f[b]=y:o(b,y);else{try{B.unsafe?f[b]&&(k=!0):delete f[b]}catch(i){}k?f[b]=y:a.f(f,b,{value:y,enumerable:!1,configurable:!B.nonConfigurable,writable:!B.nonWritable})}return f}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(f){return o?t.createElement(f):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,y,B;b&&(y=b.split("."),B=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!B&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(B=+y[1]))),T.exports=B},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),y=n(41314);T.exports=function(B,k){var g=B.target,i=B.global,c=B.stat,m,l,u,s,d,v;if(i?l=e:c?l=e[g]||f(g,{}):l=e[g]&&e[g].prototype,l)for(u in k){if(d=k[u],B.dontCallGetSet?(v=a(l,u),s=v&&v.value):s=l[u],m=y(i?u:g+(c?".":"#")+u,B.forced),!m&&s!==void 0){if(typeof d==typeof s)continue;b(d,s)}(B.sham||s&&s.sham)&&t(d,"sham",!0),o(l,u,d,B)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),y=f("species"),B=RegExp.prototype;T.exports=function(k,g,i,c){var m=f(k),l=!o(function(){var v={};return v[m]=function(){return 7},""[k](v)!==7}),u=l&&!o(function(){var v=!1,C=/a/;return k==="split"&&(C={},C.constructor={},C.constructor[y]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return v=!0,null},C[m](""),!v});if(!l||!u||i){var s=/./[m],d=g(m,""[k],function(v,C,h,p,N){var V=C.exec;return V===t||V===B.exec?l&&!N?{done:!0,value:e(s,C,h,p)}:{done:!0,value:e(v,h,C,p)}:{done:!1}});a(String.prototype,k,d[0]),a(B,m,d[1])}c&&b(B[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(y,B,k,g,i,c,m,l){for(var u=i,s=0,d=m?o(m,l):!1,v,C;s0&&e(v)?(C=a(v),u=b(y,B,v,C,u,c-1)-1):(t(u+1),y[u]=v),u++),s++;return u};T.exports=f},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),y=Function,B=e([].concat),k=e([].join),g={},i=function(m,l,u){if(!o(g,l)){for(var s=[],d=0;d]*>)/g,B=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,g,i,c,m,l){var u=i+k.length,s=c.length,d=B;return m!==void 0&&(m=a(m),d=y),f(l,d,function(v,C){var h;switch(o(C,0)){case"$":return"$";case"&":return k;case"`":return b(g,0,i);case"'":return b(g,u);case"<":h=m[b(C,1,-1)];break;default:var p=+C;if(p===0)return v;if(p>s){var N=t(p/10);return N===0?v:N<=s?c[N-1]===void 0?o(C,1):c[N-1]+o(C,1):v}h=c[p-1]}return h===void 0?"":h})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(B,k,g){var i=r(g),c=g*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=B<0||B===0&&1/B<0?1:0,d=0,v,C,h;for(B=n(B),B!==B||B===1/0?(C=B!==B?1:0,v=m):(v=a(t(B)/o),h=e(2,-v),B*h<1&&(v--,h*=2),v+l>=1?B+=u/h:B+=u*e(2,1-l),B*h>=2&&(v++,h/=2),v+l>=m?(C=0,v=m):v+l>=1?(C=(B*h-1)*e(2,k),v+=l):(C=B*e(2,l-1)*e(2,k),v=0));k>=8;)i[d++]=C&255,C/=256,k-=8;for(v=v<0;)i[d++]=v&255,v/=256,c-=8;return i[--d]|=s*128,i},b=function(B,k){var g=B.length,i=g*8-k-1,c=(1<>1,l=i-7,u=g-1,s=B[u--],d=s&127,v;for(s>>=7;l>0;)d=d*256+B[u--],l-=8;for(v=d&(1<<-l)-1,d>>=-l,l+=k;l>0;)v=v*256+B[u--],l-=8;if(d===0)d=1-m;else{if(d===c)return v?NaN:s?-1/0:1/0;v+=e(2,k),d-=m}return(s?-1:1)*v*e(2,d-k)};T.exports={pack:f,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,f,b){var y,B;return t&&e(y=f.constructor)&&y!==b&&a(B=y.prototype)&&B!==b.prototype&&t(o,B),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,y=n(37310),B=n(81644),k=n(81834),g=n(16738),i=n(50730),c=!1,m=g("meta"),l=0,u=function(N){b(N,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(N,V){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!k(N))return"F";if(!V)return"E";u(N)}return N[m].objectID},d=function(N,V){if(!f(N,m)){if(!k(N))return!0;if(!V)return!1;u(N)}return N[m].weakData},v=function(N){return i&&c&&k(N)&&!f(N,m)&&u(N),N},C=function(){h.enable=function(){},c=!0;var N=y.f,V=a([].splice),S={};S[m]=1,N(S).length&&(y.f=function(I){for(var L=N(I),w=0,A=L.length;wI;I++)if(w=P(l[I]),w&&y(m,w))return w;return new c(!1)}V=B(l,S)}for(A=C?l.next:V.next;!(x=a(A,V)).done;){try{w=P(x.value)}catch(D){g(V,"throw",D)}if(typeof w=="object"&&w&&y(m,w))return w}return new c(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,f,b){var y,B;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw b;return b}y=e(y,o)}catch(k){B=!0,y=k}if(f==="throw")throw b;if(B)throw y;return a(y),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};T.exports=function(y,B,k,g){var i=B+" Iterator";return y.prototype=a(e,{next:t(+!g,k)}),o(y,i,!1,!0),f[i]=b,y}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),y=n(36917),B=n(76649),k=n(84925),g=n(37909),i=n(55938),c=n(24697),m=n(83967),l=n(67635),u=o.PROPER,s=o.CONFIGURABLE,d=l.IteratorPrototype,v=l.BUGGY_SAFARI_ITERATORS,C=c("iterator"),h="keys",p="values",N="entries",V=function(){return this};T.exports=function(S,I,L,w,A,x,E){b(L,I,w);var P=function(X){if(X===A&&F)return F;if(!v&&X&&X in R)return R[X];switch(X){case h:return function(){function J(){return new L(this,X)}return J}();case p:return function(){function J(){return new L(this,X)}return J}();case N:return function(){function J(){return new L(this,X)}return J}()}return function(){return new L(this)}},D=I+" Iterator",M=!1,R=S.prototype,O=R[C]||R["@@iterator"]||A&&R[A],F=!v&&O||P(A),_=I==="Array"&&R.entries||O,U,z,$;if(_&&(U=y(_.call(new S)),U!==Object.prototype&&U.next&&(!t&&y(U)!==d&&(B?B(U,d):f(U[C])||i(U,C,V)),k(U,D,!0,!0),t&&(m[D]=V))),u&&A===p&&O&&O.name!==p&&(!t&&s?g(R,"name",p):(M=!0,F=function(){function G(){return a(O,this)}return G}())),A)if(z={values:P(p),keys:x?F:P(h),entries:P(N)},E)for($ in z)(v||M||!($ in R))&&i(R,$,z[$]);else e({target:I,proto:!0,forced:v||M},z);return(!t||E)&&R[C]!==F&&i(R,C,F,{name:A}),m[I]=F,z}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),y=n(24697),B=n(4493),k=y("iterator"),g=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(i=c)):g=!0);var l=!t(i)||e(function(){var u={};return i[k].call(u)!==u});l?i={}:B&&(i=o(i)),a(i[k])||b(i,k,function(){return this}),T.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),B=n(5419),k=B.enforce,g=B.get,i=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),d=String(String).split("String"),v=T.exports=function(C,h,p){m(i(h),0,7)==="Symbol("&&(h="["+l(i(h),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(h="get "+h),p&&p.setter&&(h="set "+h),(!o(C,"name")||b&&C.name!==h)&&(f?c(C,"name",{value:h,configurable:!0}):C.name=h),s&&p&&o(p,"arity")&&C.length!==p.arity&&c(C,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(V){}var N=k(C);return o(N,"source")||(N.source=u(d,typeof h=="string"?h:"")),C};Function.prototype.toString=v(function(){function C(){return t(this)&&g(this).source||y(this)}return C}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};T.exports=function(b,y,B,k){var g=+b,i=a(g),c=e(g);if(iB||l!==l?c*(1/0):c*l}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),y=n(51802),B=n(63383),k=n(81702),g=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),u,s,d,v,C;if(!l){var h=new f,p=function(){var V,S;for(k&&(V=c.domain)&&V.exit();S=h.get();)try{S()}catch(I){throw h.head&&u(),I}V&&V.enter()};!b&&!k&&!B&&g&&i?(s=!0,d=i.createTextNode(""),new g(p).observe(d,{characterData:!0}),u=function(){d.data=s=!s}):!y&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,C=t(v.then,v),u=function(){C(p)}):k?u=function(){c.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),l=function(V){h.head||u(),h.add(V)}}T.exports=l},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,y;this.promise=new f(function(B,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=B,y=k}),this.resolve=e(b),this.reject=e(y)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=t("".charAt),B=e.parseFloat,k=e.Symbol,g=k&&k.iterator,i=1/B(b+"-0")!==-1/0||g&&!a(function(){B(Object(g))});T.exports=i?function(){function c(m){var l=f(o(m)),u=B(l);return u===0&&y(l,0)==="-"?-0:u}return c}():B},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=e.parseInt,B=e.Symbol,k=B&&B.iterator,g=/^[+-]?0x/i,i=t(g.exec),c=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});T.exports=c?function(){function m(l,u){var s=f(o(l));return y(s,u>>>0||(i(g,s)?16:10))}return m}():y},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),y=n(12867),B=n(46771),k=n(37457),g=Object.assign,i=Object.defineProperty,c=a([].concat);T.exports=!g||o(function(){if(e&&g({b:1},g(i({},"a",{enumerable:!0,get:function(){function d(){i(this,"b",{value:3,enumerable:!1})}return d}()}),{b:2})).b!==1)return!0;var m={},l={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(d){l[d]=d}),g({},m)[u]!==7||f(g({},l)).join("")!==s})?function(){function m(l,u){for(var s=B(l),d=arguments.length,v=1,C=b.f,h=y.f;d>v;)for(var p=k(arguments[v++]),N=C?c(f(p),C(p)):f(p),V=N.length,S=0,I;V>S;)I=N[S++],(!e||t(h,p,I))&&(s[I]=p[I]);return s}return m}():g},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),y=n(19417),B=">",k="<",g="prototype",i="script",c=y("IE_PROTO"),m=function(){},l=function(h){return k+i+B+h+k+"/"+i+B},u=function(h){h.write(l("")),h.close();var p=h.parentWindow.Object;return h=null,p},s=function(){var h=b("iframe"),p="java"+i+":",N;return h.style.display="none",f.appendChild(h),h.src=String(p),N=h.contentWindow.document,N.open(),N.write(l("document.F=Object")),N.close(),N.F},d,v=function(){try{d=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&d?u(d):s():u(d);for(var h=t.length;h--;)delete v[g][t[h]];return v()};o[c]=!0,T.exports=Object.create||function(){function C(h,p){var N;return h!==null?(m[g]=e(h),N=new m,m[g]=null,N[c]=h):N=v(),p===void 0?N:a.f(N,p)}return C}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(B,k){o(B);for(var g=f(k),i=b(k),c=i.length,m=0,l;c>m;)t.f(B,l=i[m++],g[l]);return B}return y}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,y=Object.defineProperty,B=Object.getOwnPropertyDescriptor,k="enumerable",g="configurable",i="writable";r.f=e?t?function(){function c(m,l,u){if(o(m),l=f(l),o(u),typeof m=="function"&&l==="prototype"&&"value"in u&&i in u&&!u[i]){var s=B(m,l);s&&s[i]&&(m[l]=u.value,u={configurable:g in u?u[g]:s[g],enumerable:k in u?u[k]:s[k],writable:!1})}return y(m,l,u)}return c}():y:function(){function c(m,l,u){if(o(m),l=f(l),o(u),a)try{return y(m,l,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[l]=u.value),m}return c}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),y=n(45299),B=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function g(i,c){if(i=f(i),c=b(c),B)try{return k(i,c)}catch(m){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return g}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(B){try{return t(B)}catch(k){return o(f)}};T.exports.f=function(){function y(B){return f&&e(B)==="Window"?b(B):t(a(B))}return y}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),y=Object,B=y.prototype;T.exports=f?y.getPrototypeOf:function(k){var g=t(k);if(e(g,b))return g[b];var i=g.constructor;return a(i)&&g instanceof i?i.prototype:g instanceof y?B:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});T.exports=b||o?function(){function y(B){return!a(B)||o&&t(B)==="ArrayBuffer"?!1:f?f(B):!0}return y}():f},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);T.exports=function(y,B){var k=t(y),g=0,i=[],c;for(c in k)!a(f,c)&&a(k,c)&&b(i,c);for(;B.length>g;)a(k,c=B[g++])&&(~o(i,c)||b(i,c));return i}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),f=b instanceof Array}catch(B){}return function(){function B(k,g){return t(k),o(g),a(k)&&(f?y(k,g):k.__proto__=g),k}return B}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),y=n(12867).f,B=t(y),k=t([].push),g=e&&a(function(){var c=Object.create(null);return c[2]=2,!B(c,2)}),i=function(m){return function(l){for(var u=b(l),s=f(u),d=g&&o(u)===null,v=s.length,C=0,h=[],p;v>C;)p=s[C++],(!e||(d?p in u:B(u,p)))&&k(h,m?[p,u[p]]:u[p]);return h}};T.exports={entries:i(!0),values:i(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(f,b){var y,B;if(b==="string"&&a(y=f.toString)&&!t(B=e(y,f))||a(y=f.valueOf)&&!t(B=e(y,f))||b!=="string"&&a(y=f.toString)&&!t(B=e(y,f)))return B;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function y(B){var k=t.f(f(B)),g=o.f;return g?b(k,g(B)):k}return y}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),y=n(8180),B=n(73730),k=n(4493),g=n(5026),i=a&&a.prototype,c=b("species"),m=!1,l=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),d=s!==String(a);if(!d&&g===66||k&&!(i.catch&&i.finally))return!0;if(!g||g<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),C=function(N){N(function(){},function(){})},h=v.constructor={};if(h[c]=C,m=v.then(function(){})instanceof C,!m)return!0}return!d&&(y||B)&&!l});T.exports={CONSTRUCTOR:u,REJECTION_EVENT:l,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),y=b.resolve;return y(f),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;T.exports=function(y,B){var k=y.exec;if(t(k)){var g=e(k,y,B);return g!==null&&a(g),g}if(o(y)==="RegExp")return e(f,y,B);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),y=n(80674),B=n(5419).get,k=n(39173),g=n(35688),i=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),u=a("".indexOf),s=a("".replace),d=a("".slice),v=function(){var N=/a/,V=/b*/g;return e(c,N,"a"),e(c,V,"a"),N.lastIndex!==0||V.lastIndex!==0}(),C=f.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,p=v||h||C||k||g;p&&(m=function(){function N(V){var S=this,I=B(S),L=t(V),w=I.raw,A,x,E,P,D,M,R;if(w)return w.lastIndex=S.lastIndex,A=e(m,w,L),S.lastIndex=w.lastIndex,A;var O=I.groups,F=C&&S.sticky,_=e(o,S),U=S.source,z=0,$=L;if(F&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),$=d(L,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&l(L,S.lastIndex-1)!=="\n")&&(U="(?: "+U+")",$=" "+$,z++),x=new RegExp("^(?:"+U+")",_)),h&&(x=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=S.lastIndex),P=e(c,F?x:S,$),F?P?(P.input=d(P.input,z),P[0]=d(P[0],z),P.index=S.lastIndex,S.lastIndex+=P[0].length):S.lastIndex=0:v&&P&&(S.lastIndex=S.global?P.index+P[0].length:E),h&&P&&P.length>1&&e(i,P[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),y=n(24986),B=e.Function,k=/MSIE .\./.test(f)||o&&function(){var g=e.Bun.version.split(".");return g.length<3||g[0]==="0"&&(g[1]<3||g[1]==="3"&&g[2]==="0")}();T.exports=function(g,i){var c=i?2:1;return k?function(m,l){var u=y(arguments.length,1)>c,s=t(m)?m:B(m),d=u?b(arguments,c):[],v=u?function(){a(s,this,d)}:s;return i?g(v,l):g(v)}:g}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");T.exports=function(b){var y=e(b);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function B(){return this}return B}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(f,b,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=T.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");T.exports=function(b,y){var B=e(b).constructor,k;return B===void 0||t(k=e(B)[f])?y:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),y=e("".slice),B=function(g){return function(i,c){var m=t(o(i)),l=a(c),u=m.length,s,d;return l<0||l>=u?g?"":void 0:(s=b(m,l),s<55296||s>56319||l+1===u||(d=b(m,l+1))<56320||d>57343?g?f(m,l):s:g?y(m,l,l+2):(s-55296<<10)+(d-56320)+65536)}};T.exports={codeAt:B(!1),charAt:B(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),y=e("".slice),B=Math.ceil,k=function(i){return function(c,m,l){var u=t(f(c)),s=a(m),d=u.length,v=l===void 0?" ":t(l),C,h;return s<=d||v===""?u:(C=s-d,h=b(v,B(C/v.length)),h.length>C&&(h=y(h,0,C)),i?u+h:h+u)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function f(b){var y=a(t(this)),B="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(B+=y);return B}return f}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),B=function(g){return function(i){var c=t(a(i));return g&1&&(c=f(c,b,"")),g&2&&(c=f(c,y,"$1")),c}};T.exports={start:B(1),end:B(2),trim:B(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var f=a("Symbol"),b=f&&f.prototype,y=b&&b.valueOf,B=t("toPrimitive");b&&!b[B]&&o(b,B,function(k){return e(y,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),y=n(5315),B=n(54602),k=n(12689),g=n(24986),i=n(83433),c=n(81702),m=e.setImmediate,l=e.clearImmediate,u=e.process,s=e.Dispatch,d=e.Function,v=e.MessageChannel,C=e.String,h=0,p={},N="onreadystatechange",V,S,I,L;b(function(){V=e.location});var w=function(D){if(f(p,D)){var M=p[D];delete p[D],M()}},A=function(D){return function(){w(D)}},x=function(D){w(D.data)},E=function(D){e.postMessage(C(D),V.protocol+"//"+V.host)};(!m||!l)&&(m=function(){function P(D){g(arguments.length,1);var M=o(D)?D:d(D),R=B(arguments,1);return p[++h]=function(){a(M,void 0,R)},S(h),h}return P}(),l=function(){function P(D){delete p[D]}return P}(),c?S=function(D){u.nextTick(A(D))}:s&&s.now?S=function(D){s.now(A(D))}:v&&!i?(I=new v,L=I.port2,I.port1.onmessage=x,S=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(S=E,e.addEventListener("message",x,!1)):N in k("script")?S=function(D){y.appendChild(k("script"))[N]=function(){y.removeChild(this),w(D)}}:S=function(D){setTimeout(A(D),0)}),T.exports={set:m,clear:l}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),y=TypeError,B=b("toPrimitive");T.exports=function(k,g){if(!a(k)||t(k))return k;var i=o(k,B),c;if(i){if(g===void 0&&(g="default"),c=e(i,k,g),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return g===void 0&&(g="number"),f(k,g)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),y=n(37336),B=n(60077),k=n(87458),g=n(37909),i=n(5841),c=n(10188),m=n(43806),l=n(56043),u=n(15409),s=n(767),d=n(45299),v=n(2281),C=n(77568),h=n(71399),p=n(80674),N=n(21287),V=n(76649),S=n(37310).f,I=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),x=n(74595),E=n(27193),P=n(78008),D=n(5419),M=n(5781),R=D.get,O=D.set,F=D.enforce,_=x.f,U=E.f,z=a.RangeError,$=y.ArrayBuffer,G=$.prototype,X=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,se=b.TYPED_ARRAY_TAG,ie=b.TypedArray,me=b.TypedArrayPrototype,q=b.isTypedArray,re="BYTES_PER_ELEMENT",ae="Wrong length",le=function(ce,Ve){A(ce,Ve,{configurable:!0,get:function(){function Ce(){return R(this)[Ve]}return Ce}()})},Z=function(ce){var Ve;return N(G,ce)||(Ve=v(ce))==="ArrayBuffer"||Ve==="SharedArrayBuffer"},ne=function(ce,Ve){return q(ce)&&!h(Ve)&&Ve in ce&&i(+Ve)&&Ve>=0},te=function(){function pe(ce,Ve){return Ve=s(Ve),ne(ce,Ve)?k(2,ce[Ve]):U(ce,Ve)}return pe}(),fe=function(){function pe(ce,Ve,Ce){return Ve=s(Ve),ne(ce,Ve)&&C(Ce)&&d(Ce,"value")&&!d(Ce,"get")&&!d(Ce,"set")&&!Ce.configurable&&(!d(Ce,"writable")||Ce.writable)&&(!d(Ce,"enumerable")||Ce.enumerable)?(ce[Ve]=Ce.value,ce):_(ce,Ve,Ce)}return pe}();o?(J||(E.f=te,x.f=fe,le(me,"buffer"),le(me,"byteOffset"),le(me,"byteLength"),le(me,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:te,defineProperty:fe}),T.exports=function(pe,ce,Ve){var Ce=pe.match(/\d+/)[0]/8,Ne=pe+(Ve?"Clamped":"")+"Array",Be="get"+pe,be="set"+pe,Le=a[Ne],we=Le,xe=we&&we.prototype,Re={},He=function(ve,Se){var Pe=R(ve);return Pe.view[Be](Se*Ce+Pe.byteOffset,!0)},ye=function(ve,Se,Pe){var je=R(ve);je.view[be](Se*Ce+je.byteOffset,Ve?u(Pe):Pe,!0)},de=function(ve,Se){_(ve,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};J?f&&(we=ce(function(ke,ve,Se,Pe){return B(ke,xe),M(function(){return C(ve)?Z(ve)?Pe!==void 0?new Le(ve,l(Se,Ce),Pe):Se!==void 0?new Le(ve,l(Se,Ce)):new Le(ve):q(ve)?P(we,ve):t(I,we,ve):new Le(m(ve))}(),ke,we)}),V&&V(we,ie),L(S(Le),function(ke){ke in we||g(we,ke,Le[ke])}),we.prototype=xe):(we=ce(function(ke,ve,Se,Pe){B(ke,xe);var je=0,Fe=0,ze,We,Ue;if(!C(ve))Ue=m(ve),We=Ue*Ce,ze=new $(We);else if(Z(ve)){ze=ve,Fe=l(Se,Ce);var Xe=ve.byteLength;if(Pe===void 0){if(Xe%Ce)throw new z(ae);if(We=Xe-Fe,We<0)throw new z(ae)}else if(We=c(Pe)*Ce,We+Fe>Xe)throw new z(ae);Ue=We/Ce}else return q(ve)?P(we,ve):t(I,we,ve);for(O(ke,{buffer:ze,byteOffset:Fe,byteLength:We,length:Ue,view:new X(ze)});je1?arguments[1]:void 0,v=d!==void 0,C=y(u),h,p,N,V,S,I,L,w;if(C&&!B(C))for(L=b(u,C),w=L.next,u=[];!(I=a(w,L)).done;)u.push(I.value);for(v&&s>2&&(d=e(d,arguments[2])),p=f(u),N=new(g(l))(p),V=k(N),h=0;p>h;h++)S=v?d(u[h],h):u[h],N[h]=V?i(S):+S;return N}return c}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(f){return t(a(f,o(f)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var d=[];return d[m]=!1,d.concat()[0]!==d}),u=function(v){if(!o(v))return!1;var C=v[m];return C!==void 0?!!C:t(v)},s=!l||!g("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function d(v){var C=f(this),h=k(C,0),p=0,N,V,S,I,L;for(N=-1,S=arguments.length;N1?arguments[1]:void 0)}return f}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(B){var k=o(this),g=f(k),i;return t(B),i=b(k,0),i.length=a(i,k,k,g,0,1,B,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var B=arguments.length?arguments[0]:void 0,k=t(this),g=o(k),i=b(k,0);return i.length=a(i,k,k,g,0,B===void 0?1:f(B)),i}return y}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function B(k){var g=arguments.length>1?arguments[1]:void 0;return b?f(this,k,g)||0:t(this,k,g)}return B}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),y=n(5959),B=n(4493),k=n(58310),g="Array Iterator",i=o.set,c=o.getterFor(g);T.exports=b(Array,"Array",function(l,u){i(this,{type:g,target:e(l),index:0,kind:u})},function(){var l=c(this),u=l.target,s=l.index++;if(!u||s>=u.length)return l.target=void 0,y(void 0,!0);switch(l.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!B&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),y=t!==Object,B=y||!f("join",",");e({target:"Array",proto:!0,forced:B},{join:function(){function k(g){return b(o(this),g===void 0?",":g)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var B=0,k=arguments.length,g=new(t(this)?this:f)(k);k>B;)o(g,B,arguments[B++]);return g.length=k,g}return y}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function B(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return B}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function B(k){var g=arguments.length;return a(this,k,g,g>1?arguments[1]:void 0)}return B}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),y=n(57591),B=n(60102),k=n(24697),g=n(44091),i=n(54602),c=g("slice"),m=k("species"),l=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(d,v){var C=y(this),h=b(C),p=f(d,h),N=f(v===void 0?h:v,h),V,S,I;if(a(C)&&(V=C.constructor,t(V)&&(V===l||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===l||V===void 0))return i(C,p,N);for(S=new(V===void 0?l:V)(u(N-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),y=n(12605),B=n(40033),k=n(90274),g=n(55528),i=n(652),c=n(19228),m=n(5026),l=n(9342),u=[],s=a(u.sort),d=a(u.push),v=B(function(){u.sort(void 0)}),C=B(function(){u.sort(null)}),h=g("sort"),p=!B(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var S="",I,L,w,A;for(I=65;I<76;I++){switch(L=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)u.push({k:L+A,v:w})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ay(w)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function S(I){I!==void 0&&t(I);var L=o(this);if(p)return I===void 0?s(L):s(L,I);var w=[],A=f(L),x,E;for(E=0;EC-V+N;I--)g(v,I-1)}else if(N>V)for(I=C-V;I>h;I--)L=I+V-1,w=I+N-1,L in v?v[w]=v[L]:g(v,w);for(I=0;I9490626562425156e-8?o(g)+b:a(g-1+f(g-1)*f(g+1))}return B}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var B=+y;return!isFinite(B)||B===0?B:B<0?-f(-B):t(B+o(B*B+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return f}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return f}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(B){var k=a(o(B)-1)+1;return(k+1/(k*f*f))*(f/2)}return y}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(y,B){for(var k=0,g=0,i=arguments.length,c=0,m,l;g0?(l=m/c,k+=l*l):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,y){var B=65535,k=+b,g=+y,i=B&k,c=B&g;return 0|i*c+((B&k>>>16)*c+i*(B&g>>>16)<<16>>>0)}return f}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function B(k){var g=+k;return o(g)<1?(t(g)-t(-g))/2:(f(g-1)-f(-g-1))*(b/2)}return B}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,y=a(b),B=a(-b);return y===1/0?1:B===1/0?-1:(y-B)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),y=n(41314),B=n(45299),k=n(5781),g=n(21287),i=n(71399),c=n(24843),m=n(40033),l=n(37310).f,u=n(27193).f,s=n(74595).f,d=n(46438),v=n(92648).trim,C="Number",h=o[C],p=f[C],N=h.prototype,V=o.TypeError,S=b("".slice),I=b("".charCodeAt),L=function(M){var R=c(M,"number");return typeof R=="bigint"?R:w(R)},w=function(M){var R=c(M,"number"),O,F,_,U,z,$,G,X;if(i(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),O=I(R,0),O===43||O===45){if(F=I(R,2),F===88||F===120)return NaN}else if(O===48){switch(I(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(z=S(R,2),$=z.length,G=0;G<$;G++)if(X=I(z,G),X<48||X>U)return NaN;return parseInt(z,_)}}return+R},A=y(C,!h(" 0o1")||!h("0b1")||h("+0x1")),x=function(M){return g(N,M)&&m(function(){d(M)})},E=function(){function D(M){var R=arguments.length<1?0:h(L(M));return x(this)?k(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,R){for(var O=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,_;O.length>F;F++)B(R,_=O[F])&&!B(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[C],p),(A||a)&&P(f[C],h)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),y=RangeError,B=String,k=Math.floor,g=a(f),i=a("".slice),c=a(1 .toFixed),m=function C(h,p,N){return p===0?N:p%2===1?C(h,p-1,N*h):C(h*h,p/2,N)},l=function(h){for(var p=0,N=h;N>=4096;)p+=12,N/=4096;for(;N>=2;)p+=1,N/=2;return p},u=function(h,p,N){for(var V=-1,S=N;++V<6;)S+=p*h[V],h[V]=S%1e7,S=k(S/1e7)},s=function(h,p){for(var N=6,V=0;--N>=0;)V+=h[N],h[N]=k(V/p),V=V%p*1e7},d=function(h){for(var p=6,N="";--p>=0;)if(N!==""||p===0||h[p]!==0){var V=B(h[p]);N=N===""?V:N+g("0",7-V.length)+V}return N},v=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function C(h){var p=o(this),N=t(h),V=[0,0,0,0,0,0],S="",I="0",L,w,A,x;if(N<0||N>20)throw new y("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return B(p);if(p<0&&(S="-",p=-p),p>1e-21)if(L=l(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),A=N;A>=7;)u(V,1e7,0),A-=7;for(u(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(x=I.length,I=S+(x<=N?"0."+g("0",N-x)+I:i(I,0,x-N)+"."+i(I,x-N))):I=S+I,I}return C}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(B){return B===void 0?f(o(this)):f(o(this),B)}return y}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(B,k){b.f(f(this),B,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(B,k){b.f(f(this),B,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function B(k){return b&&o(k)?b(f(k)):k}return B}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(y,B){t(b,y,B)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function y(B,k){return o(t(B),k)}return y}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(B){for(var k=o(B),g=f.f,i=t(k),c={},m=0,l,u;i.length>m;)u=g(k,l=i[m++]),u!==void 0&&b(c,l,u);return c}return y}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(B){var k=o.f;return k?k(f(B)):[]}return y}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function y(B){return o(t(B))}return y}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function B(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return B}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function B(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return B}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function B(k){var g=o(this),i=f(k),c;do if(c=y(g,i))return c.get;while(g=b(g))}return B}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function B(k){var g=o(this),i=f(k),c;do if(c=y(g,i))return c.set;while(g=b(g))}return B}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function B(k){return b&&a(k)?b(t(k)):k}return B}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function B(k){return b&&a(k)?b(t(k)):k}return B}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function B(k){var g=this,i=o.f(g),c=i.resolve,m=i.reject,l=f(function(){var u=t(g.resolve),s=[],d=0,v=1;b(k,function(C){var h=d++,p=!1;v++,a(u,g,C).then(function(N){p||(p=!0,s[h]=N,--v||c(s))},m)}),--v||c(s)});return l.error&&m(l.value),i.promise}return B}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),y=n(55938),B=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function g(i){return this.then(void 0,i)}return g}()}),!a&&b(o)){var k=f("Promise").prototype.catch;B.catch!==k&&y(B,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),y=n(76649),B=n(84925),k=n(58491),g=n(10320),i=n(55747),c=n(77568),m=n(60077),l=n(28987),u=n(60375).set,s=n(37713),d=n(72259),v=n(10729),C=n(9547),h=n(5419),p=n(67512),N=n(74854),V=n(81837),S="Promise",I=N.CONSTRUCTOR,L=N.REJECTION_EVENT,w=N.SUBCLASSING,A=h.getterFor(S),x=h.set,E=p&&p.prototype,P=p,D=E,M=o.TypeError,R=o.document,O=o.process,F=V.f,_=F,U=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",$="rejectionhandled",G=0,X=1,J=2,se=1,ie=2,me,q,re,ae,le=function(be){var Le;return c(be)&&i(Le=be.then)?Le:!1},Z=function(be,Le){var we=Le.value,xe=Le.state===X,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,he,ke,ve;try{Re?(xe||(Le.rejection===ie&&ce(Le),Le.rejection=se),Re===!0?he=we:(de&&de.enter(),he=Re(we),de&&(de.exit(),ve=!0)),he===be.promise?ye(new M("Promise-chain cycle")):(ke=le(he))?f(ke,he,He,ye):He(he)):ye(we)}catch(Se){de&&!ve&&de.exit(),ye(Se)}},ne=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)Z(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},te=function(be,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&d("Unhandled promise rejection",we)},fe=function(be){f(u,o,function(){var Le=be.facade,we=be.value,xe=pe(be),Re;if(xe&&(Re=v(function(){t?O.emit("unhandledRejection",we,Le):te(z,Le,we)}),be.rejection=t||pe(be)?ie:se,Re.error))throw Re.value})},pe=function(be){return be.rejection!==se&&!be.parent},ce=function(be){f(u,o,function(){var Le=be.facade;t?O.emit("rejectionHandled",Le):te($,Le,be.value)})},Ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},Ce=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=J,ne(be,!0))},Ne=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new M("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,Ve(Be,Re,be),Ve(Ce,Re,be))}catch(He){Ce(Re,He,be)}}):(be.value=Le,be.state=X,ne(be,!1))}catch(Re){Ce({done:!1},Re,be)}}};if(I&&(P=function(){function Be(be){m(this,D),g(be),f(me,this);var Le=A(this);try{be(Ve(Ne,Le),Ve(Ce,Le))}catch(we){Ce(Le,we)}}return Be}(),D=P.prototype,me=function(){function Be(be){x(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:G,value:void 0})}return Be}(),me.prototype=b(D,"then",function(){function Be(be,Le){var we=A(this),xe=F(l(this,P));return we.parent=!0,xe.ok=i(be)?be:!0,xe.fail=i(Le)&&Le,xe.domain=t?O.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){Z(xe,we)}),xe.promise}return Be}()),q=function(){var be=new me,Le=A(be);this.promise=be,this.resolve=Ve(Ne,Le),this.reject=Ve(Ce,Le)},V.f=F=function(be){return be===P||be===re?new q(be):_(be)},!a&&i(p)&&E!==Object.prototype)){ae=E.then,w||b(E,"then",function(){function Be(be,Le){var we=this;return new P(function(xe,Re){f(ae,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),B(P,S,!1,!0),k(S)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),y=n(28987),B=n(66628),k=n(55938),g=t&&t.prototype,i=!!t&&o(function(){g.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(l){var u=y(this,f("Promise")),s=b(l);return this.then(s?function(d){return B(u,l()).then(function(){return d})}:l,s?function(d){return B(u,l()).then(function(){throw d})}:l)}return m}()}),!a&&b(t)){var c=f("Promise").prototype.finally;g.finally!==c&&k(g,"finally",c,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function B(k){var g=this,i=o.f(g),c=i.reject,m=f(function(){var l=t(g.resolve);b(k,function(u){a(l,g,u).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return B}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),y=b.reject;return y(f),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),B=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(g){return b(B&&this===y?o:this,g)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(B,k,g){return a(t(B),k,o(g))}return y}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),y=n(77568),B=n(80674),k=n(40033),g=a("Reflect","construct"),i=Object.prototype,c=[].push,m=k(function(){function s(){}return!(g(function(){},[],s)instanceof s)}),l=!k(function(){g(function(){})}),u=m||l;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(d,v){f(d),b(v);var C=arguments.length<3?d:f(arguments[2]);if(l&&!m)return g(d,v,C);if(d===C){switch(v.length){case 0:return new d;case 1:return new d(v[0]);case 2:return new d(v[0],v[1]);case 3:return new d(v[0],v[1],v[2]);case 4:return new d(v[0],v[1],v[2],v[3])}var h=[null];return t(c,h,v),new(t(o,d,h))}var p=C.prototype,N=B(y(p)?p:i),V=t(d,N,v);return y(V)?V:N}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function B(k,g,i){t(k);var c=o(g);t(i);try{return f.f(k,c,i),!0}catch(m){return!1}}return B}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var y=t(a(f),b);return y&&!y.configurable?!1:delete f[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,y){return o.f(t(b),y)}return f}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),y=n(36917);function B(k,g){var i=arguments.length<3?k:arguments[2],c,m;if(o(k)===i)return k[g];if(c=b.f(k,g),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=y(k)))return B(m,g,i)}e({target:"Reflect",stat:!0},{get:B})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(B){return!1}}return f}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,y){a(b),t(y);try{return o(b,y),!0}catch(B){return!1}}return f}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),y=n(74595),B=n(27193),k=n(36917),g=n(87458);function i(m,l,u){var s=arguments.length<4?m:arguments[3],d=B.f(t(m),l),v,C,h;if(!d){if(o(C=k(m)))return i(C,l,u,s);d=g(0)}if(f(d)){if(d.writable===!1||!o(s))return!1;if(v=B.f(s,l)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,y.f(s,l,v)}else y.f(s,l,g(0,u))}else{if(h=d.set,h===void 0)return!1;a(h,s,u)}return!0}var c=b(function(){var m=function(){},l=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),y=n(80674),B=n(37310).f,k=n(21287),g=n(72586),i=n(12605),c=n(73392),m=n(62115),l=n(34550),u=n(55938),s=n(40033),d=n(45299),v=n(5419).enforce,C=n(58491),h=n(24697),p=n(39173),N=n(35688),V=h("match"),S=a.RegExp,I=S.prototype,L=a.SyntaxError,w=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,O=new S(M)!==M,F=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!O||F||p||N||s(function(){return R[V]=!1,S(M)!==M||S(R)===R||String(S(M,"i"))!=="/a/i"})),z=function(ie){for(var me=ie.length,q=0,re="",ae=!1,le;q<=me;q++){if(le=A(ie,q),le==="\\"){re+=le+A(ie,++q);continue}!ae&&le==="."?re+="[\\s\\S]":(le==="["?ae=!0:le==="]"&&(ae=!1),re+=le)}return re},$=function(ie){for(var me=ie.length,q=0,re="",ae=[],le=y(null),Z=!1,ne=!1,te=0,fe="",pe;q<=me;q++){if(pe=A(ie,q),pe==="\\")pe+=A(ie,++q);else if(pe==="]")Z=!1;else if(!Z)switch(!0){case pe==="[":Z=!0;break;case pe==="(":w(D,P(ie,q+1))&&(q+=2,ne=!0),re+=pe,te++;continue;case(pe===">"&&ne):if(fe===""||d(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ae[ae.length]=[fe,te],ne=!1,fe="";continue}ne?fe+=pe:re+=pe}return[re,ae]};if(o("RegExp",U)){for(var G=function(){function se(ie,me){var q=k(I,this),re=g(ie),ae=me===void 0,le=[],Z=ie,ne,te,fe,pe,ce,Ve;if(!q&&re&&ae&&ie.constructor===G)return ie;if((re||k(I,ie))&&(ie=ie.source,ae&&(me=c(Z))),ie=ie===void 0?"":i(ie),me=me===void 0?"":i(me),Z=ie,p&&"dotAll"in M&&(te=!!me&&E(me,"s")>-1,te&&(me=x(me,/s/g,""))),ne=me,F&&"sticky"in M&&(fe=!!me&&E(me,"y")>-1,fe&&_&&(me=x(me,/y/g,""))),N&&(pe=$(ie),ie=pe[0],le=pe[1]),ce=f(S(ie,me),q?this:I,G),(te||fe||le.length)&&(Ve=v(ce),te&&(Ve.dotAll=!0,Ve.raw=G(z(ie),ne)),fe&&(Ve.sticky=!0),le.length&&(Ve.groups=le)),ie!==Z)try{b(ce,"source",Z===""?"(?:)":Z)}catch(Ce){}return ce}return se}(),X=B(S),J=0;X.length>J;)l(G,S,X[J++]);I.constructor=G,G.prototype=I,u(a,"RegExp",G,{constructor:!0})}C("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,y=b.prototype,B=a&&f(function(){var k=!0;try{b(".","d")}catch(d){k=!1}var g={},i="",c=k?"dgimsy":"gimsy",m=function(v,C){Object.defineProperty(g,v,{get:function(){function h(){return i+=C,!0}return h}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(l.hasIndices="d");for(var u in l)m(u,l[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(g);return s!==c||i!==c});B&&t(y,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),y="toString",B=RegExp.prototype,k=B[y],g=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&k.name!==y;(g||i)&&a(B,y,function(){function c(){var m=t(this),l=o(m.source),u=o(b(m));return"/"+l+"/"+u}return c}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),y=n(16952),B=n(45490),k=n(4493),g=a("".slice),i=Math.min,c=B("endsWith"),m=!k&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(u){var s=f(y(this));b(u);var d=arguments.length>1?arguments[1]:void 0,v=s.length,C=d===void 0?v:i(o(d),v),h=f(u);return g(s,C-h.length,C)===h}return l}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,y=a([].join),B=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:B},{fromCodePoint:function(){function k(g){for(var i=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return y(i,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function B(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return B}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",y=t.set,B=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var g=B(this),i=g.string,c=g.index,m;return c>=i.length?f(void 0,!0):(m=e(i,c),g.index+=m.length,f(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),y=n(16952),B=n(78060),k=n(35483),g=n(28340);a("match",function(i,c,m){return[function(){function l(u){var s=y(this),d=o(u)?void 0:B(u,i);return d?e(d,u,s):new RegExp(u)[i](b(s))}return l}(),function(l){var u=t(this),s=b(l),d=m(c,u,s);if(d.done)return d.value;if(!u.global)return g(u,s);var v=u.unicode;u.lastIndex=0;for(var C=[],h=0,p;(p=g(u,s))!==null;){var N=b(p[0]);C[h]=N,N===""&&(u.lastIndex=k(s,f(u.lastIndex),v)),h++}return h===0?null:C}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),y=a([].push),B=a([].join);e({target:"String",stat:!0},{raw:function(){function k(g){var i=t(o(g).raw),c=b(i);if(!c)return"";for(var m=arguments.length,l=[],u=0;;){if(y(l,f(i[u++])),u===c)return B(l,"");u")!=="7"});o("replace",function(x,E,P){var D=w?"$":"$0";return[function(){function M(R,O){var F=c(this),_=B(R)?void 0:l(R,v);return _?a(_,R,F,O):a(E,i(F),R,O)}return M}(),function(M,R){var O=b(this),F=i(M);if(typeof R=="string"&&V(R,D)===-1&&V(R,"$<")===-1){var _=P(E,O,F,R);if(_.done)return _.value}var U=y(R);U||(R=i(R));var z=O.global,$;z&&($=O.unicode,O.lastIndex=0);for(var G=[],X;X=s(O,F),!(X===null||(N(G,X),!z));){var J=i(X[0]);J===""&&(O.lastIndex=m(F,g(O.lastIndex),$))}for(var se="",ie=0,me=0;me=ie&&(se+=S(F,ie,re)+le,ie=re+q.length)}return se+S(F,ie)}]},!A||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),y=n(12605),B=n(78060),k=n(28340);a("search",function(g,i,c){return[function(){function m(l){var u=f(this),s=o(l)?void 0:B(l,g);return s?e(s,l,u):new RegExp(l)[g](y(u))}return m}(),function(m){var l=t(this),u=y(m),s=c(i,l,u);if(s.done)return s.value;var d=l.lastIndex;b(d,0)||(l.lastIndex=0);var v=k(l,u);return b(l.lastIndex,d)||(l.lastIndex=d),v===null?-1:v.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),y=n(28987),B=n(35483),k=n(10188),g=n(12605),i=n(78060),c=n(28340),m=n(62115),l=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,d=Math.min,v=a([].push),C=a("".slice),h=!l(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var S="ab".split(N);return S.length!==2||S[0]!=="a"||S[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,V,S){var I="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,A){var x=b(this),E=f(w)?void 0:i(w,N);return E?e(E,w,x,A):e(I,g(x),w,A)}return L}(),function(L,w){var A=o(this),x=g(L);if(!p){var E=S(I,A,x,w,I!==V);if(E.done)return E.value}var P=y(A,RegExp),D=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+A.source+")":A,M),O=w===void 0?s:w>>>0;if(O===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return g(s,d,d+v.length)===v}return l}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),y=n(52357),B=n(40033),k=n(45299),g=n(21287),i=n(30365),c=n(57591),m=n(767),l=n(12605),u=n(87458),s=n(80674),d=n(18450),v=n(37310),C=n(81644),h=n(89235),p=n(27193),N=n(74595),V=n(24239),S=n(12867),I=n(55938),L=n(73936),w=n(16639),A=n(19417),x=n(79195),E=n(16738),P=n(24697),D=n(55557),M=n(85889),R=n(52360),O=n(84925),F=n(5419),_=n(22603).forEach,U=A("hidden"),z="Symbol",$="prototype",G=F.set,X=F.getterFor(z),J=Object[$],se=a.Symbol,ie=se&&se[$],me=a.RangeError,q=a.TypeError,re=a.QObject,ae=p.f,le=N.f,Z=C.f,ne=S.f,te=o([].push),fe=w("symbols"),pe=w("op-symbols"),ce=w("wks"),Ve=!re||!re[$]||!re[$].findChild,Ce=function(he,ke,ve){var Se=ae(J,ke);Se&&delete J[ke],le(he,ke,ve),Se&&he!==J&&le(J,ke,Se)},Ne=b&&B(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?Ce:le,Be=function(he,ke){var ve=fe[he]=s(ie);return G(ve,{type:z,tag:he,description:ke}),b||(ve.description=ke),ve},be=function(){function de(he,ke,ve){he===J&&be(pe,ke,ve),i(he);var Se=m(ke);return i(ve),k(fe,Se)?(ve.enumerable?(k(he,U)&&he[U][Se]&&(he[U][Se]=!1),ve=s(ve,{enumerable:u(0,!1)})):(k(he,U)||le(he,U,u(1,s(null))),he[U][Se]=!0),Ne(he,Se,ve)):le(he,Se,ve)}return de}(),Le=function(){function de(he,ke){i(he);var ve=c(ke),Se=d(ve).concat(ye(ve));return _(Se,function(Pe){(!b||t(xe,ve,Pe))&&be(he,Pe,ve[Pe])}),he}return de}(),we=function(){function de(he,ke){return ke===void 0?s(he):Le(s(he),ke)}return de}(),xe=function(){function de(he){var ke=m(he),ve=t(ne,this,ke);return this===J&&k(fe,ke)&&!k(pe,ke)?!1:ve||!k(this,ke)||!k(fe,ke)||k(this,U)&&this[U][ke]?ve:!0}return de}(),Re=function(){function de(he,ke){var ve=c(he),Se=m(ke);if(!(ve===J&&k(fe,Se)&&!k(pe,Se))){var Pe=ae(ve,Se);return Pe&&k(fe,Se)&&!(k(ve,U)&&ve[U][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(he){var ke=Z(c(he)),ve=[];return _(ke,function(Se){!k(fe,Se)&&!k(x,Se)&&te(ve,Se)}),ve}return de}(),ye=function(he){var ke=he===J,ve=Z(ke?pe:c(he)),Se=[];return _(ve,function(Pe){k(fe,Pe)&&(!ke||k(J,Pe))&&te(Se,fe[Pe])}),Se};y||(se=function(){function de(){if(g(ie,this))throw new q("Symbol is not a constructor");var he=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ke=E(he),ve=function(){function Se(Pe){var je=this===void 0?a:this;je===J&&t(Se,pe,Pe),k(je,U)&&k(je[U],ke)&&(je[U][ke]=!1);var Fe=u(1,Pe);try{Ne(je,ke,Fe)}catch(ze){if(!(ze instanceof me))throw ze;Ce(je,ke,Fe)}}return Se}();return b&&Ve&&Ne(J,ke,{configurable:!0,set:ve}),Be(ke,he)}return de}(),ie=se[$],I(ie,"toString",function(){function de(){return X(this).tag}return de}()),I(se,"withoutSetter",function(de){return Be(E(de),de)}),S.f=xe,N.f=be,V.f=Le,p.f=Re,v.f=C.f=He,h.f=ye,D.f=function(de){return Be(P(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return X(this).description}return de}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:se}),_(d(ce),function(de){M(de)}),e({target:z,stat:!0,forced:!y},{useSetter:function(){function de(){Ve=!0}return de}(),useSimple:function(){function de(){Ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:He}),R(),O(se,z),x[U]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),y=n(21287),B=n(12605),k=n(73936),g=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&b(i)&&(!("description"in c)||i().description!==void 0)){var m={},l=function(){function p(){var N=arguments.length<1||arguments[0]===void 0?void 0:B(arguments[0]),V=y(c,this)?new i(N):N===void 0?i():i(N);return N===""&&(m[V]=!0),V}return p}();g(l,i),l.prototype=c,c.constructor=l;var u=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),d=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),h=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var N=s(this);if(f(m,N))return"";var V=d(N),S=u?h(V,7,-1):C(V,v,"$1");return S===""?void 0:S}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),y=f("string-to-symbol-registry"),B=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(g){var i=o(g);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,B[c]=i,c}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),y=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function B(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return B}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(B,k){return o(f(this),B,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),y=n(40033),B=e.aTypedArray,k=e.exportTypedArrayMethod,g=b("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var l=arguments.length;B(this);var u=g(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(y){var B=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,B)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),y=b("iterator"),B=e.Uint8Array,k=t(f.values),g=t(f.keys),i=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=B&&B.prototype,u=!a(function(){l[y].call([1])}),s=!!l&&l.values&&l[y]===l.values&&l.values.name==="values",d=function(){function v(){return k(c(this))}return v}();m("entries",function(){function v(){return i(c(this))}return v}(),u),m("keys",function(){function v(){return g(c(this))}return v}(),u),m("values",d,u||!s,{name:"values"}),m(y,d,u||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(y){return f(t(this),y)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(y){var B=arguments.length;return a(t,o(this),B>1?[y,arguments[1]]:[y])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(B,k){return new(t(B))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,y=arguments.length,B=new(t(this))(y);y>b;)B[b]=arguments[b++];return B}return f}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,y=a(b).length,B=o(y/2),k=0,g;k1?arguments[1]:void 0,1),C=b(d);if(l)return a(i,this,C,v);var h=this.length,p=o(C),N=0;if(p+v>h)throw new B("Wrong length");for(;Nm;)u[m]=i[m++];return u}return B}(),y)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),y=n(652),B=n(19228),k=n(5026),g=n(9342),i=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),u=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(k)return k<74;if(y)return y<67;if(B)return!0;if(g)return g<602;var v=new m(516),C=Array(516),h,p;for(h=0;h<516;h++)p=h%4,v[h]=515-h,C[h]=h-2*p+3;for(l(v,function(N,V){return(N/4|0)-(V/4|0)}),h=0;h<516;h++)if(v[h]!==C[h])return!0}),d=function(C){return function(h,p){return C!==void 0?+C(h,p)||0:p!==p?-1:h!==h?1:h===0&&p===0?1/h>0&&1/p<0?1:-1:h>p}};c("sort",function(){function v(C){return C!==void 0&&o(C),s?l(this,C):f(i(this),d(C))}return v}(),!s||u)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(B,k){var g=f(this),i=g.length,c=t(B,i),m=o(g);return new m(g.buffer,g.byteOffset+c*g.BYTES_PER_ELEMENT,a((k===void 0?i:t(k,i))-c))}return y}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,y=t.aTypedArray,B=t.exportTypedArrayMethod,k=[].toLocaleString,g=!!b&&o(function(){k.call(new b(1))}),i=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});B("toLocaleString",function(){function c(){return a(k,g?f(y(this)):y(this),f(arguments))}return c}(),i)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},y=[].toString,B=o([].join);a(function(){y.call({})})&&(y=function(){function g(){return B(this)}return g}());var k=b.toString!==y;e("toString",y,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),y=n(39895),B=n(77568),k=n(5419).enforce,g=n(40033),i=n(21820),c=Object,m=Array.isArray,l=c.isExtensible,u=c.isFrozen,s=c.isSealed,d=c.freeze,v=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,h,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},N=b("WeakMap",p,y),V=N.prototype,S=t(V.set),I=function(){return e&&g(function(){var E=d([]);return S(new N,E,1),!u(E)})};if(i)if(C){h=y.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),A=t(V.get);o(V,{delete:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),L(this,E)||P.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),w(this,E)||P.frozen.has(E)}return w(this,E)}return x}(),get:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),w(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(B(E)&&!l(E)){var D=k(this);D.frozen||(D.frozen=new h),w(this,E)?S(this,E,P):D.frozen.set(E,P)}else S(this,E,P);return this}return x}()})}else I()&&o(V,{set:function(){function x(E,P){var D;return m(E)&&(u(E)?D=d:s(E)&&(D=v)),S(this,E,P),D&&D(E),this}return x}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),y=n(58310),B=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:B},{queueMicrotask:function(){function k(g){f(arguments.length,1),t(o(g))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(T,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=70752},59395:function(T,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_cookbook.js":11275,"./pda_games.js":2395,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_minesweeper.js":90382,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=59395},32054:function(T,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AdminAntagMenu":23001,"./AdminAntagMenu.js":23001,"./AgentCard":39683,"./AgentCard.tsx":39683,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DecalPainter":76430,"./DecalPainter.js":76430,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/AnalyzerMenu":68303,"./RndConsole/AnalyzerMenu.js":68303,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./SingularityMonitor":86013,"./SingularityMonitor.js":86013,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./goonstation_PTL":95213,"./goonstation_PTL/":95213,"./goonstation_PTL/index":95213,"./goonstation_PTL/index.js":95213,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_cookbook":11275,"./pda/pda_cookbook.js":11275,"./pda/pda_games":2395,"./pda/pda_games.js":2395,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_minesweeper":90382,"./pda/pda_minesweeper.js":90382,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=32054},4085:function(T,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=4085},10320:function(T,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(T,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(T,r,n){"use strict";var e=n(45015),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(T,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),T.exports=function(b){f[o][b]=!0}},35483:function(T,r,n){"use strict";var e=n(50233).charAt;T.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(T,r,n){"use strict";var e=n(21287),a=TypeError;T.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(T,r,n){"use strict";var e=n(77568),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(T){"use strict";T.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(T,r,n){"use strict";var e=n(40033);T.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(T,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),S=n(2281),B=n(89393),k=n(37909),g=n(55938),i=n(73936),c=n(21287),m=n(36917),l=n(76649),u=n(24697),s=n(16738),d=n(5419),v=d.enforce,C=d.get,h=t.Int8Array,p=h&&h.prototype,N=t.Uint8ClampedArray,V=N&&N.prototype,y=h&&m(h),I=p&&m(p),L=Object.prototype,w=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!l&&S(t.opera)!=="Opera",D=!1,M,R,O,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},U=function(){function ie(me){if(!f(me))return!1;var q=S(me);return q==="DataView"||b(F,q)||b(_,q)}return ie}(),z=function ie(me){var q=m(me);if(f(q)){var re=C(q);return re&&b(re,E)?re[E]:ie(q)}},$=function(me){if(!f(me))return!1;var q=S(me);return b(F,q)||b(_,q)},G=function(me){if($(me))return me;throw new w("Target is not a typed array")},X=function(me){if(o(me)&&(!l||c(y,me)))return me;throw new w(B(me)+" is not a typed array constructor")},J=function(me,q,re,ae){if(a){if(re)for(var le in F){var Z=t[le];if(Z&&b(Z.prototype,me))try{delete Z.prototype[me]}catch(ne){try{Z.prototype[me]=q}catch(te){}}}(!I[me]||re)&&g(I,me,re?q:P&&p[me]||q,ae)}},se=function(me,q,re){var ae,le;if(a){if(l){if(re){for(ae in F)if(le=t[ae],le&&b(le,me))try{delete le[me]}catch(Z){}}if(!y[me]||re)try{return g(y,me,re?q:P&&y[me]||q)}catch(Z){}else return}for(ae in F)le=t[ae],le&&(!le[me]||re)&&g(le,me,q)}};for(M in F)R=t[M],O=R&&R.prototype,O?v(O)[E]=R:P=!1;for(M in _)R=t[M],O=R&&R.prototype,O&&(v(O)[E]=R);if((!P||!o(y)||y===Function.prototype)&&(y=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),P))for(M in F)t[M]&&l(t[M],y);if((!P||!I||I===L)&&(I=y.prototype,P))for(M in F)t[M]&&l(t[M].prototype,I);if(P&&m(V)!==I&&l(V,I),a&&!b(I,A)){D=!0,i(I,A,{configurable:!0,get:function(){function ie(){return f(this)?this[x]:void 0}return ie}()});for(M in F)t[M]&&k(t[M],x,M)}T.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&x,aTypedArray:G,aTypedArrayConstructor:X,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:se,getTypedArrayConstructor:z,isView:U,isTypedArray:$,TypedArray:y,TypedArrayPrototype:I}},37336:function(T,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),S=n(73936),B=n(30145),k=n(40033),g=n(60077),i=n(61365),c=n(10188),m=n(43806),l=n(95867),u=n(91784),s=n(36917),d=n(76649),v=n(88471),C=n(54602),h=n(5781),p=n(5774),N=n(84925),V=n(5419),y=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",x="Wrong length",E="Wrong index",P=V.getterFor(L),D=V.getterFor(w),M=V.set,R=e[L],O=R,F=O&&O[A],_=e[w],U=_&&_[A],z=Object.prototype,$=e.Array,G=e.RangeError,X=a(v),J=a([].reverse),se=u.pack,ie=u.unpack,me=function(Ne){return[Ne&255]},q=function(Ne){return[Ne&255,Ne>>8&255]},re=function(Ne){return[Ne&255,Ne>>8&255,Ne>>16&255,Ne>>24&255]},ae=function(Ne){return Ne[3]<<24|Ne[2]<<16|Ne[1]<<8|Ne[0]},le=function(Ne){return se(l(Ne),23,4)},Z=function(Ne){return se(Ne,52,8)},ne=function(Ne,Be,be){S(Ne[A],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},te=function(Ne,Be,be,Le){var we=D(Ne),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(E);var He=we.bytes,ye=xe+we.byteOffset,de=C(He,ye,ye+Be);return Re?de:J(de)},fe=function(Ne,Be,be,Le,we,xe){var Re=D(Ne),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(E);for(var he=Re.bytes,ke=He+Re.byteOffset,ve=0;vewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(x);M(this,{type:w,buffer:Ne,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ne,this.byteLength=be,this.byteOffset=xe)}return Ce}(),U=_[A],t&&(ne(O,"byteLength",P),ne(_,"buffer",D),ne(_,"byteLength",D),ne(_,"byteOffset",D)),B(U,{getInt8:function(){function Ce(Ne){return te(this,1,Ne)[0]<<24>>24}return Ce}(),getUint8:function(){function Ce(Ne){return te(this,1,Ne)[0]}return Ce}(),getInt16:function(){function Ce(Ne){var Be=te(this,2,Ne,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return Ce}(),getUint16:function(){function Ce(Ne){var Be=te(this,2,Ne,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return Ce}(),getInt32:function(){function Ce(Ne){return ae(te(this,4,Ne,arguments.length>1?arguments[1]:!1))}return Ce}(),getUint32:function(){function Ce(Ne){return ae(te(this,4,Ne,arguments.length>1?arguments[1]:!1))>>>0}return Ce}(),getFloat32:function(){function Ce(Ne){return ie(te(this,4,Ne,arguments.length>1?arguments[1]:!1),23)}return Ce}(),getFloat64:function(){function Ce(Ne){return ie(te(this,8,Ne,arguments.length>1?arguments[1]:!1),52)}return Ce}(),setInt8:function(){function Ce(Ne,Be){fe(this,1,Ne,me,Be)}return Ce}(),setUint8:function(){function Ce(Ne,Be){fe(this,1,Ne,me,Be)}return Ce}(),setInt16:function(){function Ce(Ne,Be){fe(this,2,Ne,q,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setUint16:function(){function Ce(Ne,Be){fe(this,2,Ne,q,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setInt32:function(){function Ce(Ne,Be){fe(this,4,Ne,re,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setUint32:function(){function Ce(Ne,Be){fe(this,4,Ne,re,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setFloat32:function(){function Ce(Ne,Be){fe(this,4,Ne,le,Be,arguments.length>2?arguments[2]:!1)}return Ce}(),setFloat64:function(){function Ce(Ne,Be){fe(this,8,Ne,Z,Be,arguments.length>2?arguments[2]:!1)}return Ce}()});else{var pe=y&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||pe&&!I})?(O=function(){function Ce(Ne){return g(this,F),h(new R(m(Ne)),this,O)}return Ce}(),O[A]=F,F.constructor=O,p(O,R)):pe&&I&&b(R,"name",L),d&&s(U)!==z&&d(U,z);var ce=new _(new O(2)),Ve=a(U.setInt8);ce.setInt8(0,2147483648),ce.setInt8(1,2147483649),(ce.getInt8(0)||!ce.getInt8(1))&&B(U,{setInt8:function(){function Ce(Ne,Be){Ve(this,Ne,Be<<24>>24)}return Ce}(),setUint8:function(){function Ce(Ne,Be){Ve(this,Ne,Be<<24>>24)}return Ce}()},{unsafe:!0})}N(O,L),N(_,w),T.exports={ArrayBuffer:O,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;T.exports=[].copyWithin||function(){function b(S,B){var k=e(this),g=t(k),i=a(S,g),c=a(B,g),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?g:a(m,g))-c,g-i),u=1;for(c0;)c in k?k[i]=k[c]:o(k,i),i+=u,c+=u;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(f){for(var b=e(this),S=t(b),B=arguments.length,k=a(B>1?arguments[1]:void 0,S),g=B>2?arguments[2]:void 0,i=g===void 0?S:a(g,S);i>k;)b[k++]=f;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),S=new a(b);b>f;)S[f]=t[f++];return S}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),S=n(24760),B=n(60102),k=n(77455),g=n(59201),i=Array;T.exports=function(){function c(m){var l=t(m),u=b(this),s=arguments.length,d=s>1?arguments[1]:void 0,v=d!==void 0;v&&(d=e(d,s>2?arguments[2]:void 0));var C=g(l),h=0,p,N,V,y,I,L;if(C&&!(this===i&&f(C)))for(N=u?new this:[],y=k(l,C),I=y.next;!(V=a(I,y)).done;h++)L=v?o(y,d,[V.value,h],!0):V.value,B(N,h,L);else for(p=S(l),N=u?new this(p):i(p);p>h;h++)L=v?d(l[h],h):l[h],B(N,h,L);return N.length=h,N}return c}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(S,B,k){var g=e(S),i=t(g);if(i===0)return!b&&-1;var c=a(k,i),m;if(b&&B!==B){for(;i>c;)if(m=g[c++],m!==m)return!0}else for(;i>c;c++)if((b||c in g)&&g[c]===B)return b||c||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),S=a([].push),B=function(g){var i=g===1,c=g===2,m=g===3,l=g===4,u=g===6,s=g===7,d=g===5||u;return function(v,C,h,p){for(var N=o(v),V=t(N),y=f(V),I=e(C,h),L=0,w=p||b,A=i?w(v,y):c||s?w(v,0):void 0,x,E;y>L;L++)if((d||L in V)&&(x=V[L],E=I(x,L,N),g))if(i)A[L]=E;else if(E)switch(g){case 3:return!0;case 5:return x;case 6:return L;case 2:S(A,x)}else switch(g){case 4:return!1;case 7:S(A,x)}return u?-1:m||l?l:A}};T.exports={forEach:B(0),map:B(1),filter:B(2),some:B(3),every:B(4),find:B(5),findIndex:B(6),filterReject:B(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,S=[].lastIndexOf,B=!!S&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),g=B||!k;T.exports=g?function(){function i(c){if(B)return e(S,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var u=l-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=l+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return i}():S},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(f){return t>=51||!e(function(){var b=[],S=b.constructor={};return S[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",S=function(k){return function(g,i,c,m){var l=a(g),u=t(l),s=o(l);if(e(i),s===0&&c<2)throw new f(b);var d=k?s-1:0,v=k?-1:1;if(c<2)for(;;){if(d in u){m=u[d],d+=v;break}if(d+=v,k?d<0:s<=d)throw new f(b)}for(;k?d>=0:s>d;d+=v)d in u&&(m=i(m,u[d],d,l));return m}};T.exports={left:S(!1),right:S(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=f?function(b,S){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=S}:function(b,S){return b.length=S}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var S=f.length;if(S<8)for(var B=1,k,g;B0;)f[g]=f[--g];g!==B++&&(f[g]=k)}else for(var i=a(S/2),c=o(e(f,0,i),b),m=o(e(f,i),b),l=c.length,u=m.length,s=0,d=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!I(this,w)}return L}()}),t(N,C?{get:function(){function L(w){var A=I(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return y(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return y(this,w=w===0?0:w,w)}return L}()}),i&&a(N,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(d,v,C){var h=v+" Iterator",p=u(v),N=u(h);B(d,v,function(V,y){l(this,{type:h,target:V,state:p(V),kind:y,last:void 0})},function(){for(var V=N(this),y=V.kind,I=V.last;I&&I.removed;)I=I.previous;return!V.target||!(V.last=I=I?I.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(y==="keys"?I.key:y==="values"?I.value:[I.key,I.value],!1)},C?"entries":"values",!C,!0),g(v)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),S=n(77568),B=n(49450),k=n(22603),g=n(45299),i=n(5419),c=i.set,m=i.getterFor,l=k.find,u=k.findIndex,s=e([].splice),d=0,v=function(N){return N.frozen||(N.frozen=new C)},C=function(){this.entries=[]},h=function(N,V){return l(N.entries,function(y){return y[0]===V})};C.prototype={get:function(){function p(N){var V=h(this,N);if(V)return V[1]}return p}(),has:function(){function p(N){return!!h(this,N)}return p}(),set:function(){function p(N,V){var y=h(this,N);y?y[1]=V:this.entries.push([N,V])}return p}(),delete:function(){function p(N){var V=u(this.entries,function(y){return y[0]===N});return~V&&s(this.entries,V,1),!!~V}return p}()},T.exports={getConstructor:function(){function p(N,V,y,I){var L=N(function(E,P){o(E,w),c(E,{type:V,id:d++,frozen:void 0}),b(P)||B(P,E[I],{that:E,AS_ENTRIES:y})}),w=L.prototype,A=m(V),x=function(){function E(P,D,M){var R=A(P),O=t(f(D),!0);return O===!0?v(R).set(D,M):O[R.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var D=A(this);if(!S(P))return!1;var M=t(P);return M===!0?v(D).delete(P):M&&g(M,D.id)&&delete M[D.id]}return E}(),has:function(){function E(P){var D=A(this);if(!S(P))return!1;var M=t(P);return M===!0?v(D).has(P):M&&g(M,D.id)}return E}()}),a(w,y?{get:function(){function E(P){var D=A(this);if(S(P)){var M=t(P);return M===!0?v(D).get(P):M?M[D.id]:void 0}}return E}(),set:function(){function E(P,D){return x(this,P,D)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),L}return p}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),S=n(49450),B=n(60077),k=n(55747),g=n(42871),i=n(77568),c=n(40033),m=n(92490),l=n(84925),u=n(5781);T.exports=function(s,d,v){var C=s.indexOf("Map")!==-1,h=s.indexOf("Weak")!==-1,p=C?"set":"add",N=a[s],V=N&&N.prototype,y=N,I={},L=function(R){var O=t(V[R]);f(V,R,R==="add"?function(){function F(_){return O(this,_===0?0:_),this}return F}():R==="delete"?function(F){return h&&!i(F)?!1:O(this,F===0?0:F)}:R==="get"?function(){function F(_){return h&&!i(_)?void 0:O(this,_===0?0:_)}return F}():R==="has"?function(){function F(_){return h&&!i(_)?!1:O(this,_===0?0:_)}return F}():function(){function F(_,U){return O(this,_===0?0:_,U),this}return F}())},w=o(s,!k(N)||!(h||V.forEach&&!c(function(){new N().entries().next()})));if(w)y=v.getConstructor(d,s,C,p),b.enable();else if(o(s,!0)){var A=new y,x=A[p](h?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new N(M)}),D=!h&&c(function(){for(var M=new N,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(y=d(function(M,R){B(M,V);var O=u(new N,M,y);return g(R)||S(R,O[p],{that:O,AS_ENTRIES:C}),O}),y.prototype=V,V.constructor=y),(E||D)&&(L("delete"),L("has"),C&&L("get")),(D||x)&&L(p),h&&V.clear&&delete V.clear}return I[s]=y,e({global:!0,constructor:!0,forced:y!==N},I),l(y,s),h||v.setStrong(y,s,C),y}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(f,b,S){for(var B=a(b),k=o.f,g=t.f,i=0;i"+g+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,S=Date.prototype,B=S.toISOString,k=e(S.getTime),g=e(S.getUTCDate),i=e(S.getUTCFullYear),c=e(S.getUTCHours),m=e(S.getUTCMilliseconds),l=e(S.getUTCMinutes),u=e(S.getUTCMonth),s=e(S.getUTCSeconds);T.exports=a(function(){return B.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){B.call(new Date(NaN))})?function(){function d(){if(!f(k(this)))throw new o("Invalid time value");var v=this,C=i(v),h=m(v),p=C<0?"-":C>9999?"+":"";return p+t(b(C),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(g(v),2,0)+"T"+t(c(v),2,0)+":"+t(l(v),2,0)+":"+t(s(v),2,0)+"."+t(h,3,0)+"Z"}return d}():B},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(f,b,S,B){B||(B={});var k=B.enumerable,g=B.name!==void 0?B.name:b;if(e(S)&&t(S,g,B),B.global)k?f[b]=S:o(b,S);else{try{B.unsafe?f[b]&&(k=!0):delete f[b]}catch(i){}k?f[b]=S:a.f(f,b,{value:S,enumerable:!1,configurable:!B.nonConfigurable,writable:!B.nonWritable})}return f}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(f){return o?t.createElement(f):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,S,B;b&&(S=b.split("."),B=S[0]>0&&S[0]<4?1:+(S[0]+S[1])),!B&&a&&(S=a.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=a.match(/Chrome\/(\d+)/),S&&(B=+S[1]))),T.exports=B},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),S=n(41314);T.exports=function(B,k){var g=B.target,i=B.global,c=B.stat,m,l,u,s,d,v;if(i?l=e:c?l=e[g]||f(g,{}):l=e[g]&&e[g].prototype,l)for(u in k){if(d=k[u],B.dontCallGetSet?(v=a(l,u),s=v&&v.value):s=l[u],m=S(i?u:g+(c?".":"#")+u,B.forced),!m&&s!==void 0){if(typeof d==typeof s)continue;b(d,s)}(B.sham||s&&s.sham)&&t(d,"sham",!0),o(l,u,d,B)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),S=f("species"),B=RegExp.prototype;T.exports=function(k,g,i,c){var m=f(k),l=!o(function(){var v={};return v[m]=function(){return 7},""[k](v)!==7}),u=l&&!o(function(){var v=!1,C=/a/;return k==="split"&&(C={},C.constructor={},C.constructor[S]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return v=!0,null},C[m](""),!v});if(!l||!u||i){var s=/./[m],d=g(m,""[k],function(v,C,h,p,N){var V=C.exec;return V===t||V===B.exec?l&&!N?{done:!0,value:e(s,C,h,p)}:{done:!0,value:e(v,h,C,p)}:{done:!1}});a(String.prototype,k,d[0]),a(B,m,d[1])}c&&b(B[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(S,B,k,g,i,c,m,l){for(var u=i,s=0,d=m?o(m,l):!1,v,C;s0&&e(v)?(C=a(v),u=b(S,B,v,C,u,c-1)-1):(t(u+1),S[u]=v),u++),s++;return u};T.exports=f},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),S=Function,B=e([].concat),k=e([].join),g={},i=function(m,l,u){if(!o(g,l)){for(var s=[],d=0;d]*>)/g,B=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,g,i,c,m,l){var u=i+k.length,s=c.length,d=B;return m!==void 0&&(m=a(m),d=S),f(l,d,function(v,C){var h;switch(o(C,0)){case"$":return"$";case"&":return k;case"`":return b(g,0,i);case"'":return b(g,u);case"<":h=m[b(C,1,-1)];break;default:var p=+C;if(p===0)return v;if(p>s){var N=t(p/10);return N===0?v:N<=s?c[N-1]===void 0?o(C,1):c[N-1]+o(C,1):v}h=c[p-1]}return h===void 0?"":h})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(B,k,g){var i=r(g),c=g*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=B<0||B===0&&1/B<0?1:0,d=0,v,C,h;for(B=n(B),B!==B||B===1/0?(C=B!==B?1:0,v=m):(v=a(t(B)/o),h=e(2,-v),B*h<1&&(v--,h*=2),v+l>=1?B+=u/h:B+=u*e(2,1-l),B*h>=2&&(v++,h/=2),v+l>=m?(C=0,v=m):v+l>=1?(C=(B*h-1)*e(2,k),v+=l):(C=B*e(2,l-1)*e(2,k),v=0));k>=8;)i[d++]=C&255,C/=256,k-=8;for(v=v<0;)i[d++]=v&255,v/=256,c-=8;return i[--d]|=s*128,i},b=function(B,k){var g=B.length,i=g*8-k-1,c=(1<>1,l=i-7,u=g-1,s=B[u--],d=s&127,v;for(s>>=7;l>0;)d=d*256+B[u--],l-=8;for(v=d&(1<<-l)-1,d>>=-l,l+=k;l>0;)v=v*256+B[u--],l-=8;if(d===0)d=1-m;else{if(d===c)return v?NaN:s?-1/0:1/0;v+=e(2,k),d-=m}return(s?-1:1)*v*e(2,d-k)};T.exports={pack:f,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,f,b){var S,B;return t&&e(S=f.constructor)&&S!==b&&a(B=S.prototype)&&B!==b.prototype&&t(o,B),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,S=n(37310),B=n(81644),k=n(81834),g=n(16738),i=n(50730),c=!1,m=g("meta"),l=0,u=function(N){b(N,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(N,V){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!k(N))return"F";if(!V)return"E";u(N)}return N[m].objectID},d=function(N,V){if(!f(N,m)){if(!k(N))return!0;if(!V)return!1;u(N)}return N[m].weakData},v=function(N){return i&&c&&k(N)&&!f(N,m)&&u(N),N},C=function(){h.enable=function(){},c=!0;var N=S.f,V=a([].splice),y={};y[m]=1,N(y).length&&(S.f=function(I){for(var L=N(I),w=0,A=L.length;wI;I++)if(w=P(l[I]),w&&S(m,w))return w;return new c(!1)}V=B(l,y)}for(A=C?l.next:V.next;!(x=a(A,V)).done;){try{w=P(x.value)}catch(D){g(V,"throw",D)}if(typeof w=="object"&&w&&S(m,w))return w}return new c(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,f,b){var S,B;a(o);try{if(S=t(o,"return"),!S){if(f==="throw")throw b;return b}S=e(S,o)}catch(k){B=!0,S=k}if(f==="throw")throw b;if(B)throw S;return a(S),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};T.exports=function(S,B,k,g){var i=B+" Iterator";return S.prototype=a(e,{next:t(+!g,k)}),o(S,i,!1,!0),f[i]=b,S}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),S=n(36917),B=n(76649),k=n(84925),g=n(37909),i=n(55938),c=n(24697),m=n(83967),l=n(67635),u=o.PROPER,s=o.CONFIGURABLE,d=l.IteratorPrototype,v=l.BUGGY_SAFARI_ITERATORS,C=c("iterator"),h="keys",p="values",N="entries",V=function(){return this};T.exports=function(y,I,L,w,A,x,E){b(L,I,w);var P=function(X){if(X===A&&F)return F;if(!v&&X&&X in R)return R[X];switch(X){case h:return function(){function J(){return new L(this,X)}return J}();case p:return function(){function J(){return new L(this,X)}return J}();case N:return function(){function J(){return new L(this,X)}return J}()}return function(){return new L(this)}},D=I+" Iterator",M=!1,R=y.prototype,O=R[C]||R["@@iterator"]||A&&R[A],F=!v&&O||P(A),_=I==="Array"&&R.entries||O,U,z,$;if(_&&(U=S(_.call(new y)),U!==Object.prototype&&U.next&&(!t&&S(U)!==d&&(B?B(U,d):f(U[C])||i(U,C,V)),k(U,D,!0,!0),t&&(m[D]=V))),u&&A===p&&O&&O.name!==p&&(!t&&s?g(R,"name",p):(M=!0,F=function(){function G(){return a(O,this)}return G}())),A)if(z={values:P(p),keys:x?F:P(h),entries:P(N)},E)for($ in z)(v||M||!($ in R))&&i(R,$,z[$]);else e({target:I,proto:!0,forced:v||M},z);return(!t||E)&&R[C]!==F&&i(R,C,F,{name:A}),m[I]=F,z}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),S=n(24697),B=n(4493),k=S("iterator"),g=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(i=c)):g=!0);var l=!t(i)||e(function(){var u={};return i[k].call(u)!==u});l?i={}:B&&(i=o(i)),a(i[k])||b(i,k,function(){return this}),T.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,S=n(40492),B=n(5419),k=B.enforce,g=B.get,i=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),d=String(String).split("String"),v=T.exports=function(C,h,p){m(i(h),0,7)==="Symbol("&&(h="["+l(i(h),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(h="get "+h),p&&p.setter&&(h="set "+h),(!o(C,"name")||b&&C.name!==h)&&(f?c(C,"name",{value:h,configurable:!0}):C.name=h),s&&p&&o(p,"arity")&&C.length!==p.arity&&c(C,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(V){}var N=k(C);return o(N,"source")||(N.source=u(d,typeof h=="string"?h:"")),C};Function.prototype.toString=v(function(){function C(){return t(this)&&g(this).source||S(this)}return C}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(S){return S+o-o};T.exports=function(b,S,B,k){var g=+b,i=a(g),c=e(g);if(iB||l!==l?c*(1/0):c*l}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),S=n(51802),B=n(63383),k=n(81702),g=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),u,s,d,v,C;if(!l){var h=new f,p=function(){var V,y;for(k&&(V=c.domain)&&V.exit();y=h.get();)try{y()}catch(I){throw h.head&&u(),I}V&&V.enter()};!b&&!k&&!B&&g&&i?(s=!0,d=i.createTextNode(""),new g(p).observe(d,{characterData:!0}),u=function(){d.data=s=!s}):!S&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,C=t(v.then,v),u=function(){C(p)}):k?u=function(){c.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),l=function(V){h.head||u(),h.add(V)}}T.exports=l},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,S;this.promise=new f(function(B,k){if(b!==void 0||S!==void 0)throw new a("Bad Promise constructor");b=B,S=k}),this.resolve=e(b),this.reject=e(S)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),S=t("".charAt),B=e.parseFloat,k=e.Symbol,g=k&&k.iterator,i=1/B(b+"-0")!==-1/0||g&&!a(function(){B(Object(g))});T.exports=i?function(){function c(m){var l=f(o(m)),u=B(l);return u===0&&S(l,0)==="-"?-0:u}return c}():B},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),S=e.parseInt,B=e.Symbol,k=B&&B.iterator,g=/^[+-]?0x/i,i=t(g.exec),c=S(b+"08")!==8||S(b+"0x16")!==22||k&&!a(function(){S(Object(k))});T.exports=c?function(){function m(l,u){var s=f(o(l));return S(s,u>>>0||(i(g,s)?16:10))}return m}():S},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),S=n(12867),B=n(46771),k=n(37457),g=Object.assign,i=Object.defineProperty,c=a([].concat);T.exports=!g||o(function(){if(e&&g({b:1},g(i({},"a",{enumerable:!0,get:function(){function d(){i(this,"b",{value:3,enumerable:!1})}return d}()}),{b:2})).b!==1)return!0;var m={},l={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(d){l[d]=d}),g({},m)[u]!==7||f(g({},l)).join("")!==s})?function(){function m(l,u){for(var s=B(l),d=arguments.length,v=1,C=b.f,h=S.f;d>v;)for(var p=k(arguments[v++]),N=C?c(f(p),C(p)):f(p),V=N.length,y=0,I;V>y;)I=N[y++],(!e||t(h,p,I))&&(s[I]=p[I]);return s}return m}():g},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),S=n(19417),B=">",k="<",g="prototype",i="script",c=S("IE_PROTO"),m=function(){},l=function(h){return k+i+B+h+k+"/"+i+B},u=function(h){h.write(l("")),h.close();var p=h.parentWindow.Object;return h=null,p},s=function(){var h=b("iframe"),p="java"+i+":",N;return h.style.display="none",f.appendChild(h),h.src=String(p),N=h.contentWindow.document,N.open(),N.write(l("document.F=Object")),N.close(),N.F},d,v=function(){try{d=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&d?u(d):s():u(d);for(var h=t.length;h--;)delete v[g][t[h]];return v()};o[c]=!0,T.exports=Object.create||function(){function C(h,p){var N;return h!==null?(m[g]=e(h),N=new m,m[g]=null,N[c]=h):N=v(),p===void 0?N:a.f(N,p)}return C}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function S(B,k){o(B);for(var g=f(k),i=b(k),c=i.length,m=0,l;c>m;)t.f(B,l=i[m++],g[l]);return B}return S}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,S=Object.defineProperty,B=Object.getOwnPropertyDescriptor,k="enumerable",g="configurable",i="writable";r.f=e?t?function(){function c(m,l,u){if(o(m),l=f(l),o(u),typeof m=="function"&&l==="prototype"&&"value"in u&&i in u&&!u[i]){var s=B(m,l);s&&s[i]&&(m[l]=u.value,u={configurable:g in u?u[g]:s[g],enumerable:k in u?u[k]:s[k],writable:!1})}return S(m,l,u)}return c}():S:function(){function c(m,l,u){if(o(m),l=f(l),o(u),a)try{return S(m,l,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[l]=u.value),m}return c}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),S=n(45299),B=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function g(i,c){if(i=f(i),c=b(c),B)try{return k(i,c)}catch(m){}if(S(i,c))return o(!a(t.f,i,c),i[c])}return g}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(B){try{return t(B)}catch(k){return o(f)}};T.exports.f=function(){function S(B){return f&&e(B)==="Window"?b(B):t(a(B))}return S}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),S=Object,B=S.prototype;T.exports=f?S.getPrototypeOf:function(k){var g=t(k);if(e(g,b))return g[b];var i=g.constructor;return a(i)&&g instanceof i?i.prototype:g instanceof S?B:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});T.exports=b||o?function(){function S(B){return!a(B)||o&&t(B)==="ArrayBuffer"?!1:f?f(B):!0}return S}():f},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);T.exports=function(S,B){var k=t(S),g=0,i=[],c;for(c in k)!a(f,c)&&a(k,c)&&b(i,c);for(;B.length>g;)a(k,c=B[g++])&&(~o(i,c)||b(i,c));return i}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},S;try{S=e(Object.prototype,"__proto__","set"),S(b,[]),f=b instanceof Array}catch(B){}return function(){function B(k,g){return t(k),o(g),a(k)&&(f?S(k,g):k.__proto__=g),k}return B}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),S=n(12867).f,B=t(S),k=t([].push),g=e&&a(function(){var c=Object.create(null);return c[2]=2,!B(c,2)}),i=function(m){return function(l){for(var u=b(l),s=f(u),d=g&&o(u)===null,v=s.length,C=0,h=[],p;v>C;)p=s[C++],(!e||(d?p in u:B(u,p)))&&k(h,m?[p,u[p]]:u[p]);return h}};T.exports={entries:i(!0),values:i(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(f,b){var S,B;if(b==="string"&&a(S=f.toString)&&!t(B=e(S,f))||a(S=f.valueOf)&&!t(B=e(S,f))||b!=="string"&&a(S=f.toString)&&!t(B=e(S,f)))return B;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function S(B){var k=t.f(f(B)),g=o.f;return g?b(k,g(B)):k}return S}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),S=n(8180),B=n(73730),k=n(4493),g=n(5026),i=a&&a.prototype,c=b("species"),m=!1,l=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),d=s!==String(a);if(!d&&g===66||k&&!(i.catch&&i.finally))return!0;if(!g||g<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),C=function(N){N(function(){},function(){})},h=v.constructor={};if(h[c]=C,m=v.then(function(){})instanceof C,!m)return!0}return!d&&(S||B)&&!l});T.exports={CONSTRUCTOR:u,REJECTION_EVENT:l,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),S=b.resolve;return S(f),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;T.exports=function(S,B){var k=S.exec;if(t(k)){var g=e(k,S,B);return g!==null&&a(g),g}if(o(S)==="RegExp")return e(f,S,B);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),S=n(80674),B=n(5419).get,k=n(39173),g=n(35688),i=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),u=a("".indexOf),s=a("".replace),d=a("".slice),v=function(){var N=/a/,V=/b*/g;return e(c,N,"a"),e(c,V,"a"),N.lastIndex!==0||V.lastIndex!==0}(),C=f.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,p=v||h||C||k||g;p&&(m=function(){function N(V){var y=this,I=B(y),L=t(V),w=I.raw,A,x,E,P,D,M,R;if(w)return w.lastIndex=y.lastIndex,A=e(m,w,L),y.lastIndex=w.lastIndex,A;var O=I.groups,F=C&&y.sticky,_=e(o,y),U=y.source,z=0,$=L;if(F&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),$=d(L,y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&l(L,y.lastIndex-1)!=="\n")&&(U="(?: "+U+")",$=" "+$,z++),x=new RegExp("^(?:"+U+")",_)),h&&(x=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=y.lastIndex),P=e(c,F?x:y,$),F?P?(P.input=d(P.input,z),P[0]=d(P[0],z),P.index=y.lastIndex,y.lastIndex+=P[0].length):y.lastIndex=0:v&&P&&(y.lastIndex=y.global?P.index+P[0].length:E),h&&P&&P.length>1&&e(i,P[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),S=n(24986),B=e.Function,k=/MSIE .\./.test(f)||o&&function(){var g=e.Bun.version.split(".");return g.length<3||g[0]==="0"&&(g[1]<3||g[1]==="3"&&g[2]==="0")}();T.exports=function(g,i){var c=i?2:1;return k?function(m,l){var u=S(arguments.length,1)>c,s=t(m)?m:B(m),d=u?b(arguments,c):[],v=u?function(){a(s,this,d)}:s;return i?g(v,l):g(v)}:g}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");T.exports=function(b){var S=e(b);o&&S&&!S[f]&&a(S,f,{configurable:!0,get:function(){function B(){return this}return B}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(f,b,S){f&&!S&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=T.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");T.exports=function(b,S){var B=e(b).constructor,k;return B===void 0||t(k=e(B)[f])?S:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),S=e("".slice),B=function(g){return function(i,c){var m=t(o(i)),l=a(c),u=m.length,s,d;return l<0||l>=u?g?"":void 0:(s=b(m,l),s<55296||s>56319||l+1===u||(d=b(m,l+1))<56320||d>57343?g?f(m,l):s:g?S(m,l,l+2):(s-55296<<10)+(d-56320)+65536)}};T.exports={codeAt:B(!1),charAt:B(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),S=e("".slice),B=Math.ceil,k=function(i){return function(c,m,l){var u=t(f(c)),s=a(m),d=u.length,v=l===void 0?" ":t(l),C,h;return s<=d||v===""?u:(C=s-d,h=b(v,B(C/v.length)),h.length>C&&(h=S(h,0,C)),i?u+h:h+u)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function f(b){var S=a(t(this)),B="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(S+=S))k&1&&(B+=S);return B}return f}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),S=RegExp("(^|[^"+o+"])["+o+"]+$"),B=function(g){return function(i){var c=t(a(i));return g&1&&(c=f(c,b,"")),g&2&&(c=f(c,S,"$1")),c}};T.exports={start:B(1),end:B(2),trim:B(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var f=a("Symbol"),b=f&&f.prototype,S=b&&b.valueOf,B=t("toPrimitive");b&&!b[B]&&o(b,B,function(k){return e(S,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),S=n(5315),B=n(54602),k=n(12689),g=n(24986),i=n(83433),c=n(81702),m=e.setImmediate,l=e.clearImmediate,u=e.process,s=e.Dispatch,d=e.Function,v=e.MessageChannel,C=e.String,h=0,p={},N="onreadystatechange",V,y,I,L;b(function(){V=e.location});var w=function(D){if(f(p,D)){var M=p[D];delete p[D],M()}},A=function(D){return function(){w(D)}},x=function(D){w(D.data)},E=function(D){e.postMessage(C(D),V.protocol+"//"+V.host)};(!m||!l)&&(m=function(){function P(D){g(arguments.length,1);var M=o(D)?D:d(D),R=B(arguments,1);return p[++h]=function(){a(M,void 0,R)},y(h),h}return P}(),l=function(){function P(D){delete p[D]}return P}(),c?y=function(D){u.nextTick(A(D))}:s&&s.now?y=function(D){s.now(A(D))}:v&&!i?(I=new v,L=I.port2,I.port1.onmessage=x,y=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(y=E,e.addEventListener("message",x,!1)):N in k("script")?y=function(D){S.appendChild(k("script"))[N]=function(){S.removeChild(this),w(D)}}:y=function(D){setTimeout(A(D),0)}),T.exports={set:m,clear:l}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),S=TypeError,B=b("toPrimitive");T.exports=function(k,g){if(!a(k)||t(k))return k;var i=o(k,B),c;if(i){if(g===void 0&&(g="default"),c=e(i,k,g),!a(c)||t(c))return c;throw new S("Can't convert object to primitive value")}return g===void 0&&(g="number"),f(k,g)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),S=n(37336),B=n(60077),k=n(87458),g=n(37909),i=n(5841),c=n(10188),m=n(43806),l=n(56043),u=n(15409),s=n(767),d=n(45299),v=n(2281),C=n(77568),h=n(71399),p=n(80674),N=n(21287),V=n(76649),y=n(37310).f,I=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),x=n(74595),E=n(27193),P=n(78008),D=n(5419),M=n(5781),R=D.get,O=D.set,F=D.enforce,_=x.f,U=E.f,z=a.RangeError,$=S.ArrayBuffer,G=$.prototype,X=S.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,se=b.TYPED_ARRAY_TAG,ie=b.TypedArray,me=b.TypedArrayPrototype,q=b.isTypedArray,re="BYTES_PER_ELEMENT",ae="Wrong length",le=function(ce,Ve){A(ce,Ve,{configurable:!0,get:function(){function Ce(){return R(this)[Ve]}return Ce}()})},Z=function(ce){var Ve;return N(G,ce)||(Ve=v(ce))==="ArrayBuffer"||Ve==="SharedArrayBuffer"},ne=function(ce,Ve){return q(ce)&&!h(Ve)&&Ve in ce&&i(+Ve)&&Ve>=0},te=function(){function pe(ce,Ve){return Ve=s(Ve),ne(ce,Ve)?k(2,ce[Ve]):U(ce,Ve)}return pe}(),fe=function(){function pe(ce,Ve,Ce){return Ve=s(Ve),ne(ce,Ve)&&C(Ce)&&d(Ce,"value")&&!d(Ce,"get")&&!d(Ce,"set")&&!Ce.configurable&&(!d(Ce,"writable")||Ce.writable)&&(!d(Ce,"enumerable")||Ce.enumerable)?(ce[Ve]=Ce.value,ce):_(ce,Ve,Ce)}return pe}();o?(J||(E.f=te,x.f=fe,le(me,"buffer"),le(me,"byteOffset"),le(me,"byteLength"),le(me,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:te,defineProperty:fe}),T.exports=function(pe,ce,Ve){var Ce=pe.match(/\d+/)[0]/8,Ne=pe+(Ve?"Clamped":"")+"Array",Be="get"+pe,be="set"+pe,Le=a[Ne],we=Le,xe=we&&we.prototype,Re={},He=function(ve,Se){var Pe=R(ve);return Pe.view[Be](Se*Ce+Pe.byteOffset,!0)},ye=function(ve,Se,Pe){var je=R(ve);je.view[be](Se*Ce+je.byteOffset,Ve?u(Pe):Pe,!0)},de=function(ve,Se){_(ve,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};J?f&&(we=ce(function(ke,ve,Se,Pe){return B(ke,xe),M(function(){return C(ve)?Z(ve)?Pe!==void 0?new Le(ve,l(Se,Ce),Pe):Se!==void 0?new Le(ve,l(Se,Ce)):new Le(ve):q(ve)?P(we,ve):t(I,we,ve):new Le(m(ve))}(),ke,we)}),V&&V(we,ie),L(y(Le),function(ke){ke in we||g(we,ke,Le[ke])}),we.prototype=xe):(we=ce(function(ke,ve,Se,Pe){B(ke,xe);var je=0,Fe=0,ze,We,Ue;if(!C(ve))Ue=m(ve),We=Ue*Ce,ze=new $(We);else if(Z(ve)){ze=ve,Fe=l(Se,Ce);var Xe=ve.byteLength;if(Pe===void 0){if(Xe%Ce)throw new z(ae);if(We=Xe-Fe,We<0)throw new z(ae)}else if(We=c(Pe)*Ce,We+Fe>Xe)throw new z(ae);Ue=We/Ce}else return q(ve)?P(we,ve):t(I,we,ve);for(O(ke,{buffer:ze,byteOffset:Fe,byteLength:We,length:Ue,view:new X(ze)});je1?arguments[1]:void 0,v=d!==void 0,C=S(u),h,p,N,V,y,I,L,w;if(C&&!B(C))for(L=b(u,C),w=L.next,u=[];!(I=a(w,L)).done;)u.push(I.value);for(v&&s>2&&(d=e(d,arguments[2])),p=f(u),N=new(g(l))(p),V=k(N),h=0;p>h;h++)y=v?d(u[h],h):u[h],N[h]=V?i(y):+y;return N}return c}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(f){return t(a(f,o(f)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var d=[];return d[m]=!1,d.concat()[0]!==d}),u=function(v){if(!o(v))return!1;var C=v[m];return C!==void 0?!!C:t(v)},s=!l||!g("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function d(v){var C=f(this),h=k(C,0),p=0,N,V,y,I,L;for(N=-1,y=arguments.length;N1?arguments[1]:void 0)}return f}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function S(B){var k=o(this),g=f(k),i;return t(B),i=b(k,0),i.length=a(i,k,k,g,0,1,B,arguments.length>1?arguments[1]:void 0),i}return S}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function S(){var B=arguments.length?arguments[0]:void 0,k=t(this),g=o(k),i=b(k,0);return i.length=a(i,k,k,g,0,B===void 0?1:f(B)),i}return S}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,S=b||!o("indexOf");e({target:"Array",proto:!0,forced:S},{indexOf:function(){function B(k){var g=arguments.length>1?arguments[1]:void 0;return b?f(this,k,g)||0:t(this,k,g)}return B}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),S=n(5959),B=n(4493),k=n(58310),g="Array Iterator",i=o.set,c=o.getterFor(g);T.exports=b(Array,"Array",function(l,u){i(this,{type:g,target:e(l),index:0,kind:u})},function(){var l=c(this),u=l.target,s=l.index++;if(!u||s>=u.length)return l.target=void 0,S(void 0,!0);switch(l.kind){case"keys":return S(s,!1);case"values":return S(u[s],!1)}return S([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!B&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),S=t!==Object,B=S||!f("join",",");e({target:"Array",proto:!0,forced:B},{join:function(){function k(g){return b(o(this),g===void 0?",":g)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function S(){}return!(f.of.call(S)instanceof S)});e({target:"Array",stat:!0,forced:b},{of:function(){function S(){for(var B=0,k=arguments.length,g=new(t(this)?this:f)(k);k>B;)o(g,B,arguments[B++]);return g.length=k,g}return S}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,S=b||!t("reduceRight");e({target:"Array",proto:!0,forced:S},{reduceRight:function(){function B(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return B}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,S=b||!t("reduce");e({target:"Array",proto:!0,forced:S},{reduce:function(){function B(k){var g=arguments.length;return a(this,k,g,g>1?arguments[1]:void 0)}return B}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),S=n(57591),B=n(60102),k=n(24697),g=n(44091),i=n(54602),c=g("slice"),m=k("species"),l=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(d,v){var C=S(this),h=b(C),p=f(d,h),N=f(v===void 0?h:v,h),V,y,I;if(a(C)&&(V=C.constructor,t(V)&&(V===l||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===l||V===void 0))return i(C,p,N);for(y=new(V===void 0?l:V)(u(N-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),S=n(12605),B=n(40033),k=n(90274),g=n(55528),i=n(652),c=n(19228),m=n(5026),l=n(9342),u=[],s=a(u.sort),d=a(u.push),v=B(function(){u.sort(void 0)}),C=B(function(){u.sort(null)}),h=g("sort"),p=!B(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var y="",I,L,w,A;for(I=65;I<76;I++){switch(L=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)u.push({k:L+A,v:w})}for(u.sort(function(x,E){return E.v-x.v}),A=0;AS(w)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function y(I){I!==void 0&&t(I);var L=o(this);if(p)return I===void 0?s(L):s(L,I);var w=[],A=f(L),x,E;for(E=0;EC-V+N;I--)g(v,I-1)}else if(N>V)for(I=C-V;I>h;I--)L=I+V-1,w=I+N-1,L in v?v[w]=v[L]:g(v,w);for(I=0;I9490626562425156e-8?o(g)+b:a(g-1+f(g-1)*f(g+1))}return B}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(S){var B=+S;return!isFinite(B)||B===0?B:B<0?-f(-B):t(B+o(B*B+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var S=+b;return S===0?S:t((1+S)/(1-S))/2}return f}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var S=+b;return a(S)*o(t(S),.3333333333333333)}return f}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var S=b>>>0;return S?31-a(t(S+.5)*o):32}return f}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function S(B){var k=a(o(B)-1)+1;return(k+1/(k*f*f))*(f/2)}return S}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(S,B){for(var k=0,g=0,i=arguments.length,c=0,m,l;g0?(l=m/c,k+=l*l):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,S){var B=65535,k=+b,g=+S,i=B&k,c=B&g;return 0|i*c+((B&k>>>16)*c+i*(B&g>>>16)<<16>>>0)}return f}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,S=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:S},{sinh:function(){function B(k){var g=+k;return o(g)<1?(t(g)-t(-g))/2:(f(g-1)-f(-g-1))*(b/2)}return B}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,S=a(b),B=a(-b);return S===1/0?1:B===1/0?-1:(S-B)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),S=n(41314),B=n(45299),k=n(5781),g=n(21287),i=n(71399),c=n(24843),m=n(40033),l=n(37310).f,u=n(27193).f,s=n(74595).f,d=n(46438),v=n(92648).trim,C="Number",h=o[C],p=f[C],N=h.prototype,V=o.TypeError,y=b("".slice),I=b("".charCodeAt),L=function(M){var R=c(M,"number");return typeof R=="bigint"?R:w(R)},w=function(M){var R=c(M,"number"),O,F,_,U,z,$,G,X;if(i(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),O=I(R,0),O===43||O===45){if(F=I(R,2),F===88||F===120)return NaN}else if(O===48){switch(I(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(z=y(R,2),$=z.length,G=0;G<$;G++)if(X=I(z,G),X<48||X>U)return NaN;return parseInt(z,_)}}return+R},A=S(C,!h(" 0o1")||!h("0b1")||h("+0x1")),x=function(M){return g(N,M)&&m(function(){d(M)})},E=function(){function D(M){var R=arguments.length<1?0:h(L(M));return x(this)?k(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,R){for(var O=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,_;O.length>F;F++)B(R,_=O[F])&&!B(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[C],p),(A||a)&&P(f[C],h)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),S=RangeError,B=String,k=Math.floor,g=a(f),i=a("".slice),c=a(1 .toFixed),m=function C(h,p,N){return p===0?N:p%2===1?C(h,p-1,N*h):C(h*h,p/2,N)},l=function(h){for(var p=0,N=h;N>=4096;)p+=12,N/=4096;for(;N>=2;)p+=1,N/=2;return p},u=function(h,p,N){for(var V=-1,y=N;++V<6;)y+=p*h[V],h[V]=y%1e7,y=k(y/1e7)},s=function(h,p){for(var N=6,V=0;--N>=0;)V+=h[N],h[N]=k(V/p),V=V%p*1e7},d=function(h){for(var p=6,N="";--p>=0;)if(N!==""||p===0||h[p]!==0){var V=B(h[p]);N=N===""?V:N+g("0",7-V.length)+V}return N},v=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function C(h){var p=o(this),N=t(h),V=[0,0,0,0,0,0],y="",I="0",L,w,A,x;if(N<0||N>20)throw new S("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return B(p);if(p<0&&(y="-",p=-p),p>1e-21)if(L=l(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),A=N;A>=7;)u(V,1e7,0),A-=7;for(u(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(x=I.length,I=y+(x<=N?"0."+g("0",N-x)+I:i(I,0,x-N)+"."+i(I,x-N))):I=y+I,I}return C}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function S(B){return B===void 0?f(o(this)):f(o(this),B)}return S}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function S(B,k){b.f(f(this),B,{get:o(k),enumerable:!0,configurable:!0})}return S}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function S(B,k){b.f(f(this),B,{set:o(k),enumerable:!0,configurable:!0})}return S}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,S=t(function(){b(1)});e({target:"Object",stat:!0,forced:S,sham:!a},{freeze:function(){function B(k){return b&&o(k)?b(f(k)):k}return B}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(S,B){t(b,S,B)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function S(B,k){return o(t(B),k)}return S}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function S(B){for(var k=o(B),g=f.f,i=t(k),c={},m=0,l,u;i.length>m;)u=g(k,l=i[m++]),u!==void 0&&b(c,l,u);return c}return S}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function S(B){var k=o.f;return k?k(f(B)):[]}return S}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function S(B){return o(t(B))}return S}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,S=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:S},{isFrozen:function(){function B(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return B}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,S=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:S},{isSealed:function(){function B(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return B}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(S){return t(a(S))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),S=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function B(k){var g=o(this),i=f(k),c;do if(c=S(g,i))return c.get;while(g=b(g))}return B}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),S=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function B(k){var g=o(this),i=f(k),c;do if(c=S(g,i))return c.set;while(g=b(g))}return B}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,S=f(function(){b(1)});e({target:"Object",stat:!0,forced:S,sham:!o},{preventExtensions:function(){function B(k){return b&&a(k)?b(t(k)):k}return B}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,S=f(function(){b(1)});e({target:"Object",stat:!0,forced:S,sham:!o},{seal:function(){function B(k){return b&&a(k)?b(t(k)):k}return B}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),S=n(48199);e({target:"Promise",stat:!0,forced:S},{all:function(){function B(k){var g=this,i=o.f(g),c=i.resolve,m=i.reject,l=f(function(){var u=t(g.resolve),s=[],d=0,v=1;b(k,function(C){var h=d++,p=!1;v++,a(u,g,C).then(function(N){p||(p=!0,s[h]=N,--v||c(s))},m)}),--v||c(s)});return l.error&&m(l.value),i.promise}return B}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),S=n(55938),B=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function g(i){return this.then(void 0,i)}return g}()}),!a&&b(o)){var k=f("Promise").prototype.catch;B.catch!==k&&S(B,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),S=n(76649),B=n(84925),k=n(58491),g=n(10320),i=n(55747),c=n(77568),m=n(60077),l=n(28987),u=n(60375).set,s=n(37713),d=n(72259),v=n(10729),C=n(9547),h=n(5419),p=n(67512),N=n(74854),V=n(81837),y="Promise",I=N.CONSTRUCTOR,L=N.REJECTION_EVENT,w=N.SUBCLASSING,A=h.getterFor(y),x=h.set,E=p&&p.prototype,P=p,D=E,M=o.TypeError,R=o.document,O=o.process,F=V.f,_=F,U=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",$="rejectionhandled",G=0,X=1,J=2,se=1,ie=2,me,q,re,ae,le=function(be){var Le;return c(be)&&i(Le=be.then)?Le:!1},Z=function(be,Le){var we=Le.value,xe=Le.state===X,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,he,ke,ve;try{Re?(xe||(Le.rejection===ie&&ce(Le),Le.rejection=se),Re===!0?he=we:(de&&de.enter(),he=Re(we),de&&(de.exit(),ve=!0)),he===be.promise?ye(new M("Promise-chain cycle")):(ke=le(he))?f(ke,he,He,ye):He(he)):ye(we)}catch(Se){de&&!ve&&de.exit(),ye(Se)}},ne=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)Z(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},te=function(be,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&d("Unhandled promise rejection",we)},fe=function(be){f(u,o,function(){var Le=be.facade,we=be.value,xe=pe(be),Re;if(xe&&(Re=v(function(){t?O.emit("unhandledRejection",we,Le):te(z,Le,we)}),be.rejection=t||pe(be)?ie:se,Re.error))throw Re.value})},pe=function(be){return be.rejection!==se&&!be.parent},ce=function(be){f(u,o,function(){var Le=be.facade;t?O.emit("rejectionHandled",Le):te($,Le,be.value)})},Ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},Ce=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=J,ne(be,!0))},Ne=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new M("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,Ve(Be,Re,be),Ve(Ce,Re,be))}catch(He){Ce(Re,He,be)}}):(be.value=Le,be.state=X,ne(be,!1))}catch(Re){Ce({done:!1},Re,be)}}};if(I&&(P=function(){function Be(be){m(this,D),g(be),f(me,this);var Le=A(this);try{be(Ve(Ne,Le),Ve(Ce,Le))}catch(we){Ce(Le,we)}}return Be}(),D=P.prototype,me=function(){function Be(be){x(this,{type:y,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:G,value:void 0})}return Be}(),me.prototype=b(D,"then",function(){function Be(be,Le){var we=A(this),xe=F(l(this,P));return we.parent=!0,xe.ok=i(be)?be:!0,xe.fail=i(Le)&&Le,xe.domain=t?O.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){Z(xe,we)}),xe.promise}return Be}()),q=function(){var be=new me,Le=A(be);this.promise=be,this.resolve=Ve(Ne,Le),this.reject=Ve(Ce,Le)},V.f=F=function(be){return be===P||be===re?new q(be):_(be)},!a&&i(p)&&E!==Object.prototype)){ae=E.then,w||b(E,"then",function(){function Be(be,Le){var we=this;return new P(function(xe,Re){f(ae,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}S&&S(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),B(P,y,!1,!0),k(y)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),S=n(28987),B=n(66628),k=n(55938),g=t&&t.prototype,i=!!t&&o(function(){g.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(l){var u=S(this,f("Promise")),s=b(l);return this.then(s?function(d){return B(u,l()).then(function(){return d})}:l,s?function(d){return B(u,l()).then(function(){throw d})}:l)}return m}()}),!a&&b(t)){var c=f("Promise").prototype.finally;g.finally!==c&&k(g,"finally",c,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),S=n(48199);e({target:"Promise",stat:!0,forced:S},{race:function(){function B(k){var g=this,i=o.f(g),c=i.reject,m=f(function(){var l=t(g.resolve);b(k,function(u){a(l,g,u).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return B}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),S=b.reject;return S(f),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),S=a("Promise"),B=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(g){return b(B&&this===S?o:this,g)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function S(B,k,g){return a(t(B),k,o(g))}return S}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),S=n(77568),B=n(80674),k=n(40033),g=a("Reflect","construct"),i=Object.prototype,c=[].push,m=k(function(){function s(){}return!(g(function(){},[],s)instanceof s)}),l=!k(function(){g(function(){})}),u=m||l;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(d,v){f(d),b(v);var C=arguments.length<3?d:f(arguments[2]);if(l&&!m)return g(d,v,C);if(d===C){switch(v.length){case 0:return new d;case 1:return new d(v[0]);case 2:return new d(v[0],v[1]);case 3:return new d(v[0],v[1],v[2]);case 4:return new d(v[0],v[1],v[2],v[3])}var h=[null];return t(c,h,v),new(t(o,d,h))}var p=C.prototype,N=B(S(p)?p:i),V=t(d,N,v);return S(V)?V:N}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),S=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:S,sham:!a},{defineProperty:function(){function B(k,g,i){t(k);var c=o(g);t(i);try{return f.f(k,c,i),!0}catch(m){return!1}}return B}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var S=t(a(f),b);return S&&!S.configurable?!1:delete f[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,S){return o.f(t(b),S)}return f}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),S=n(36917);function B(k,g){var i=arguments.length<3?k:arguments[2],c,m;if(o(k)===i)return k[g];if(c=b.f(k,g),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=S(k)))return B(m,g,i)}e({target:"Reflect",stat:!0},{get:B})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var S=a("Object","preventExtensions");return S&&S(b),!0}catch(B){return!1}}return f}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,S){a(b),t(S);try{return o(b,S),!0}catch(B){return!1}}return f}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),S=n(74595),B=n(27193),k=n(36917),g=n(87458);function i(m,l,u){var s=arguments.length<4?m:arguments[3],d=B.f(t(m),l),v,C,h;if(!d){if(o(C=k(m)))return i(C,l,u,s);d=g(0)}if(f(d)){if(d.writable===!1||!o(s))return!1;if(v=B.f(s,l)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,S.f(s,l,v)}else S.f(s,l,g(0,u))}else{if(h=d.set,h===void 0)return!1;a(h,s,u)}return!0}var c=b(function(){var m=function(){},l=S.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),S=n(80674),B=n(37310).f,k=n(21287),g=n(72586),i=n(12605),c=n(73392),m=n(62115),l=n(34550),u=n(55938),s=n(40033),d=n(45299),v=n(5419).enforce,C=n(58491),h=n(24697),p=n(39173),N=n(35688),V=h("match"),y=a.RegExp,I=y.prototype,L=a.SyntaxError,w=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,O=new y(M)!==M,F=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!O||F||p||N||s(function(){return R[V]=!1,y(M)!==M||y(R)===R||String(y(M,"i"))!=="/a/i"})),z=function(ie){for(var me=ie.length,q=0,re="",ae=!1,le;q<=me;q++){if(le=A(ie,q),le==="\\"){re+=le+A(ie,++q);continue}!ae&&le==="."?re+="[\\s\\S]":(le==="["?ae=!0:le==="]"&&(ae=!1),re+=le)}return re},$=function(ie){for(var me=ie.length,q=0,re="",ae=[],le=S(null),Z=!1,ne=!1,te=0,fe="",pe;q<=me;q++){if(pe=A(ie,q),pe==="\\")pe+=A(ie,++q);else if(pe==="]")Z=!1;else if(!Z)switch(!0){case pe==="[":Z=!0;break;case pe==="(":w(D,P(ie,q+1))&&(q+=2,ne=!0),re+=pe,te++;continue;case(pe===">"&&ne):if(fe===""||d(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ae[ae.length]=[fe,te],ne=!1,fe="";continue}ne?fe+=pe:re+=pe}return[re,ae]};if(o("RegExp",U)){for(var G=function(){function se(ie,me){var q=k(I,this),re=g(ie),ae=me===void 0,le=[],Z=ie,ne,te,fe,pe,ce,Ve;if(!q&&re&&ae&&ie.constructor===G)return ie;if((re||k(I,ie))&&(ie=ie.source,ae&&(me=c(Z))),ie=ie===void 0?"":i(ie),me=me===void 0?"":i(me),Z=ie,p&&"dotAll"in M&&(te=!!me&&E(me,"s")>-1,te&&(me=x(me,/s/g,""))),ne=me,F&&"sticky"in M&&(fe=!!me&&E(me,"y")>-1,fe&&_&&(me=x(me,/y/g,""))),N&&(pe=$(ie),ie=pe[0],le=pe[1]),ce=f(y(ie,me),q?this:I,G),(te||fe||le.length)&&(Ve=v(ce),te&&(Ve.dotAll=!0,Ve.raw=G(z(ie),ne)),fe&&(Ve.sticky=!0),le.length&&(Ve.groups=le)),ie!==Z)try{b(ce,"source",Z===""?"(?:)":Z)}catch(Ce){}return ce}return se}(),X=B(y),J=0;X.length>J;)l(G,y,X[J++]);I.constructor=G,G.prototype=I,u(a,"RegExp",G,{constructor:!0})}C("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,S=b.prototype,B=a&&f(function(){var k=!0;try{b(".","d")}catch(d){k=!1}var g={},i="",c=k?"dgimsy":"gimsy",m=function(v,C){Object.defineProperty(g,v,{get:function(){function h(){return i+=C,!0}return h}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(l.hasIndices="d");for(var u in l)m(u,l[u]);var s=Object.getOwnPropertyDescriptor(S,"flags").get.call(g);return s!==c||i!==c});B&&t(S,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),S="toString",B=RegExp.prototype,k=B[S],g=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&k.name!==S;(g||i)&&a(B,S,function(){function c(){var m=t(this),l=o(m.source),u=o(b(m));return"/"+l+"/"+u}return c}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),S=n(16952),B=n(45490),k=n(4493),g=a("".slice),i=Math.min,c=B("endsWith"),m=!k&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(u){var s=f(S(this));b(u);var d=arguments.length>1?arguments[1]:void 0,v=s.length,C=d===void 0?v:i(o(d),v),h=f(u);return g(s,C-h.length,C)===h}return l}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,S=a([].join),B=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:B},{fromCodePoint:function(){function k(g){for(var i=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return S(i,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),S=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function B(k){return!!~S(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return B}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",S=t.set,B=t.getterFor(b);o(String,"String",function(k){S(this,{type:b,string:a(k),index:0})},function(){function k(){var g=B(this),i=g.string,c=g.index,m;return c>=i.length?f(void 0,!0):(m=e(i,c),g.index+=m.length,f(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),S=n(16952),B=n(78060),k=n(35483),g=n(28340);a("match",function(i,c,m){return[function(){function l(u){var s=S(this),d=o(u)?void 0:B(u,i);return d?e(d,u,s):new RegExp(u)[i](b(s))}return l}(),function(l){var u=t(this),s=b(l),d=m(c,u,s);if(d.done)return d.value;if(!u.global)return g(u,s);var v=u.unicode;u.lastIndex=0;for(var C=[],h=0,p;(p=g(u,s))!==null;){var N=b(p[0]);C[h]=N,N===""&&(u.lastIndex=k(s,f(u.lastIndex),v)),h++}return h===0?null:C}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),S=a([].push),B=a([].join);e({target:"String",stat:!0},{raw:function(){function k(g){var i=t(o(g).raw),c=b(i);if(!c)return"";for(var m=arguments.length,l=[],u=0;;){if(S(l,f(i[u++])),u===c)return B(l,"");u")!=="7"});o("replace",function(x,E,P){var D=w?"$":"$0";return[function(){function M(R,O){var F=c(this),_=B(R)?void 0:l(R,v);return _?a(_,R,F,O):a(E,i(F),R,O)}return M}(),function(M,R){var O=b(this),F=i(M);if(typeof R=="string"&&V(R,D)===-1&&V(R,"$<")===-1){var _=P(E,O,F,R);if(_.done)return _.value}var U=S(R);U||(R=i(R));var z=O.global,$;z&&($=O.unicode,O.lastIndex=0);for(var G=[],X;X=s(O,F),!(X===null||(N(G,X),!z));){var J=i(X[0]);J===""&&(O.lastIndex=m(F,g(O.lastIndex),$))}for(var se="",ie=0,me=0;me=ie&&(se+=y(F,ie,re)+le,ie=re+q.length)}return se+y(F,ie)}]},!A||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),S=n(12605),B=n(78060),k=n(28340);a("search",function(g,i,c){return[function(){function m(l){var u=f(this),s=o(l)?void 0:B(l,g);return s?e(s,l,u):new RegExp(l)[g](S(u))}return m}(),function(m){var l=t(this),u=S(m),s=c(i,l,u);if(s.done)return s.value;var d=l.lastIndex;b(d,0)||(l.lastIndex=0);var v=k(l,u);return b(l.lastIndex,d)||(l.lastIndex=d),v===null?-1:v.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),S=n(28987),B=n(35483),k=n(10188),g=n(12605),i=n(78060),c=n(28340),m=n(62115),l=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,d=Math.min,v=a([].push),C=a("".slice),h=!l(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var y="ab".split(N);return y.length!==2||y[0]!=="a"||y[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,V,y){var I="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,A){var x=b(this),E=f(w)?void 0:i(w,N);return E?e(E,w,x,A):e(I,g(x),w,A)}return L}(),function(L,w){var A=o(this),x=g(L);if(!p){var E=y(I,A,x,w,I!==V);if(E.done)return E.value}var P=S(A,RegExp),D=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+A.source+")":A,M),O=w===void 0?s:w>>>0;if(O===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return g(s,d,d+v.length)===v}return l}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),S=n(52357),B=n(40033),k=n(45299),g=n(21287),i=n(30365),c=n(57591),m=n(767),l=n(12605),u=n(87458),s=n(80674),d=n(18450),v=n(37310),C=n(81644),h=n(89235),p=n(27193),N=n(74595),V=n(24239),y=n(12867),I=n(55938),L=n(73936),w=n(16639),A=n(19417),x=n(79195),E=n(16738),P=n(24697),D=n(55557),M=n(85889),R=n(52360),O=n(84925),F=n(5419),_=n(22603).forEach,U=A("hidden"),z="Symbol",$="prototype",G=F.set,X=F.getterFor(z),J=Object[$],se=a.Symbol,ie=se&&se[$],me=a.RangeError,q=a.TypeError,re=a.QObject,ae=p.f,le=N.f,Z=C.f,ne=y.f,te=o([].push),fe=w("symbols"),pe=w("op-symbols"),ce=w("wks"),Ve=!re||!re[$]||!re[$].findChild,Ce=function(he,ke,ve){var Se=ae(J,ke);Se&&delete J[ke],le(he,ke,ve),Se&&he!==J&&le(J,ke,Se)},Ne=b&&B(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?Ce:le,Be=function(he,ke){var ve=fe[he]=s(ie);return G(ve,{type:z,tag:he,description:ke}),b||(ve.description=ke),ve},be=function(){function de(he,ke,ve){he===J&&be(pe,ke,ve),i(he);var Se=m(ke);return i(ve),k(fe,Se)?(ve.enumerable?(k(he,U)&&he[U][Se]&&(he[U][Se]=!1),ve=s(ve,{enumerable:u(0,!1)})):(k(he,U)||le(he,U,u(1,s(null))),he[U][Se]=!0),Ne(he,Se,ve)):le(he,Se,ve)}return de}(),Le=function(){function de(he,ke){i(he);var ve=c(ke),Se=d(ve).concat(ye(ve));return _(Se,function(Pe){(!b||t(xe,ve,Pe))&&be(he,Pe,ve[Pe])}),he}return de}(),we=function(){function de(he,ke){return ke===void 0?s(he):Le(s(he),ke)}return de}(),xe=function(){function de(he){var ke=m(he),ve=t(ne,this,ke);return this===J&&k(fe,ke)&&!k(pe,ke)?!1:ve||!k(this,ke)||!k(fe,ke)||k(this,U)&&this[U][ke]?ve:!0}return de}(),Re=function(){function de(he,ke){var ve=c(he),Se=m(ke);if(!(ve===J&&k(fe,Se)&&!k(pe,Se))){var Pe=ae(ve,Se);return Pe&&k(fe,Se)&&!(k(ve,U)&&ve[U][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(he){var ke=Z(c(he)),ve=[];return _(ke,function(Se){!k(fe,Se)&&!k(x,Se)&&te(ve,Se)}),ve}return de}(),ye=function(he){var ke=he===J,ve=Z(ke?pe:c(he)),Se=[];return _(ve,function(Pe){k(fe,Pe)&&(!ke||k(J,Pe))&&te(Se,fe[Pe])}),Se};S||(se=function(){function de(){if(g(ie,this))throw new q("Symbol is not a constructor");var he=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ke=E(he),ve=function(){function Se(Pe){var je=this===void 0?a:this;je===J&&t(Se,pe,Pe),k(je,U)&&k(je[U],ke)&&(je[U][ke]=!1);var Fe=u(1,Pe);try{Ne(je,ke,Fe)}catch(ze){if(!(ze instanceof me))throw ze;Ce(je,ke,Fe)}}return Se}();return b&&Ve&&Ne(J,ke,{configurable:!0,set:ve}),Be(ke,he)}return de}(),ie=se[$],I(ie,"toString",function(){function de(){return X(this).tag}return de}()),I(se,"withoutSetter",function(de){return Be(E(de),de)}),y.f=xe,N.f=be,V.f=Le,p.f=Re,v.f=C.f=He,h.f=ye,D.f=function(de){return Be(P(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return X(this).description}return de}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!S,sham:!S},{Symbol:se}),_(d(ce),function(de){M(de)}),e({target:z,stat:!0,forced:!S},{useSetter:function(){function de(){Ve=!0}return de}(),useSimple:function(){function de(){Ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!S,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:He}),R(),O(se,z),x[U]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),S=n(21287),B=n(12605),k=n(73936),g=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&b(i)&&(!("description"in c)||i().description!==void 0)){var m={},l=function(){function p(){var N=arguments.length<1||arguments[0]===void 0?void 0:B(arguments[0]),V=S(c,this)?new i(N):N===void 0?i():i(N);return N===""&&(m[V]=!0),V}return p}();g(l,i),l.prototype=c,c.constructor=l;var u=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),d=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),h=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var N=s(this);if(f(m,N))return"";var V=d(N),y=u?h(V,7,-1):C(V,v,"$1");return y===""?void 0:y}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),S=f("string-to-symbol-registry"),B=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(g){var i=o(g);if(t(S,i))return S[i];var c=a("Symbol")(i);return S[i]=c,B[c]=i,c}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function B(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(S,k))return S[k]}return B}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function S(B,k){return o(f(this),B,k,arguments.length>2?arguments[2]:void 0)}return S}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),S=n(40033),B=e.aTypedArray,k=e.exportTypedArrayMethod,g=b("".slice),i=S(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var l=arguments.length;B(this);var u=g(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(S){var B=a(o(this),S,arguments.length>1?arguments[1]:void 0);return t(this,B)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),S=b("iterator"),B=e.Uint8Array,k=t(f.values),g=t(f.keys),i=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=B&&B.prototype,u=!a(function(){l[S].call([1])}),s=!!l&&l.values&&l[S]===l.values&&l.values.name==="values",d=function(){function v(){return k(c(this))}return v}();m("entries",function(){function v(){return i(c(this))}return v}(),u),m("keys",function(){function v(){return g(c(this))}return v}(),u),m("values",d,u||!s,{name:"values"}),m(S,d,u||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(S){return f(t(this),S)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(S){var B=arguments.length;return a(t,o(this),B>1?[S,arguments[1]]:[S])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(S){return a(o(this),S,arguments.length>1?arguments[1]:void 0,function(B,k){return new(t(B))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,S=arguments.length,B=new(t(this))(S);S>b;)B[b]=arguments[b++];return B}return f}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var S=arguments.length;return a(t(this),b,S,S>1?arguments[1]:void 0)}return f}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var S=arguments.length;return a(t(this),b,S,S>1?arguments[1]:void 0)}return f}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,S=a(b).length,B=o(S/2),k=0,g;k1?arguments[1]:void 0,1),C=b(d);if(l)return a(i,this,C,v);var h=this.length,p=o(C),N=0;if(p+v>h)throw new B("Wrong length");for(;Nm;)u[m]=i[m++];return u}return B}(),S)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),S=n(652),B=n(19228),k=n(5026),g=n(9342),i=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),u=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(k)return k<74;if(S)return S<67;if(B)return!0;if(g)return g<602;var v=new m(516),C=Array(516),h,p;for(h=0;h<516;h++)p=h%4,v[h]=515-h,C[h]=h-2*p+3;for(l(v,function(N,V){return(N/4|0)-(V/4|0)}),h=0;h<516;h++)if(v[h]!==C[h])return!0}),d=function(C){return function(h,p){return C!==void 0?+C(h,p)||0:p!==p?-1:h!==h?1:h===0&&p===0?1/h>0&&1/p<0?1:-1:h>p}};c("sort",function(){function v(C){return C!==void 0&&o(C),s?l(this,C):f(i(this),d(C))}return v}(),!s||u)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function S(B,k){var g=f(this),i=g.length,c=t(B,i),m=o(g);return new m(g.buffer,g.byteOffset+c*g.BYTES_PER_ELEMENT,a((k===void 0?i:t(k,i))-c))}return S}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,S=t.aTypedArray,B=t.exportTypedArrayMethod,k=[].toLocaleString,g=!!b&&o(function(){k.call(new b(1))}),i=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});B("toLocaleString",function(){function c(){return a(k,g?f(S(this)):S(this),f(arguments))}return c}(),i)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},S=[].toString,B=o([].join);a(function(){S.call({})})&&(S=function(){function g(){return B(this)}return g}());var k=b.toString!==S;e("toString",S,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),S=n(39895),B=n(77568),k=n(5419).enforce,g=n(40033),i=n(21820),c=Object,m=Array.isArray,l=c.isExtensible,u=c.isFrozen,s=c.isSealed,d=c.freeze,v=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,h,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},N=b("WeakMap",p,S),V=N.prototype,y=t(V.set),I=function(){return e&&g(function(){var E=d([]);return y(new N,E,1),!u(E)})};if(i)if(C){h=S.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),A=t(V.get);o(V,{delete:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),L(this,E)||P.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),w(this,E)||P.frozen.has(E)}return w(this,E)}return x}(),get:function(){function x(E){if(B(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new h),w(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(B(E)&&!l(E)){var D=k(this);D.frozen||(D.frozen=new h),w(this,E)?y(this,E,P):D.frozen.set(E,P)}else y(this,E,P);return this}return x}()})}else I()&&o(V,{set:function(){function x(E,P){var D;return m(E)&&(u(E)?D=d:s(E)&&(D=v)),y(this,E,P),D&&D(E),this}return x}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),S=n(58310),B=b(function(){return S&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:B},{queueMicrotask:function(){function k(g){f(arguments.length,1),t(o(g))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var g=[],i=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(g.includes(s))return"[circular ref]";g.push(s);var d=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return d?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(i):s}return i(s)},m=JSON.stringify(k,c);return g=null,m},f=function(k){if(0)var g,i,c},b=function(k,g){if(0)var i,c,m},y=function(){};T.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:y}}},kt={};function Y(T){var r=kt[T];if(r!==void 0)return r.exports;var n=kt[T]={exports:{}};return Jt[T](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(T){if(typeof window=="object")return window}}()})(),function(){Y.o=function(T,r){return Object.prototype.hasOwnProperty.call(T,r)}}();var Rn={};(function(){"use strict";Y(33313),Y(10933),Y(79250),Y(53795),Y(87806),Y(64677),Y(48058),Y(51583),Y(82403),Y(34265),Y(3295),Y(1078),Y(63207),Y(80520),Y(39600),Y(93237),Y(32057),Y(68933),Y(47830),Y(13455),Y(64094),Y(61915),Y(32384),Y(25579),Y(63532),Y(33425),Y(43894),Y(99636),Y(34570),Y(94432),Y(24683),Y(69984),Y(32089),Y(60206),Y(29645),Y(4788),Y(58672),Y(19356),Y(48968),Y(49852),Y(2712),Y(864),Y(54243),Y(75621),Y(26267),Y(50095),Y(33451),Y(74587),Y(25082),Y(47421),Y(32122),Y(6306),Y(90216),Y(84663),Y(92332),Y(98329),Y(9631),Y(47091),Y(59660),Y(15383),Y(92866),Y(86107),Y(29248),Y(52540),Y(79007),Y(77199),Y(6522),Y(95542),Y(2966),Y(20997),Y(57400),Y(45571),Y(54800),Y(15709),Y(76059),Y(96614),Y(324),Y(90426),Y(95443),Y(87968),Y(55007),Y(55323),Y(13521),Y(5006),Y(99009),Y(85770),Y(23532),Y(87119),Y(78618),Y(27129),Y(31943),Y(3579),Y(97397),Y(85028),Y(8225),Y(43331),Y(62289),Y(56196),Y(2950),Y(44205),Y(76882),Y(83186),Y(76065),Y(13411),Y(26634),Y(53118),Y(42514),Y(84353),Y(62987),Y(48993),Y(52917),Y(4972),Y(28913),Y(36382),Y(53092),Y(69861),Y(29674),Y(81543),Y(9373),Y(45093),Y(63074),Y(5815),Y(88527),Y(66390),Y(7784),Y(50551),Y(76483),Y(92046),Y(63915),Y(51454),Y(79669),Y(23057),Y(57983),Y(17953),Y(30442),Y(6403),Y(9867),Y(43673),Y(12354),Y(22515),Y(5143),Y(93514),Y(5416),Y(11619),Y(44590),Y(63272),Y(39930),Y(4038),Y(8448),Y(70604),Y(34965),Y(95309),Y(82256),Y(49484),Y(38931),Y(39308),Y(91550),Y(75008),Y(56027),Y(50340),Y(34325),Y(74498),Y(15812),Y(57726),Y(80756),Y(70567),Y(66756),Y(60037),Y(44195),Y(24575),Y(71968),Y(78824),Y(72846),Y(99872),Y(73364),Y(58166),Y(23793),Y(43820),Y(13917),Y(19852),Y(40379),Y(92770),Y(81069),Y(63689),Y(5659),Y(25014),Y(32189),Y(23030),Y(24309),Y(49110),Y(56445),Y(30939),Y(48321),Y(88739),Y(60415),Y(72532),Y(62207),Y(906),Y(90846),Y(40348),Y(83006),Y(25764),Y(69401),Y(95012),Y(30236)})(),function(){"use strict";var T=Y(89005);Y(67160),Y(23542),Y(30386),Y(98996),Y(50578),Y(4444),Y(77870),Y(39108),Y(11714),Y(73492),Y(49641),Y(17570),Y(61858),Y(32882),Y(23632),Y(56492);var r=Y(85822),n=Y(7435),e=Y(56518),a=Y(26427),t=Y(18498),o=Y(49060),f=Y(72178),b=Y(24826),y;/** + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var g=[],i=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(g.includes(s))return"[circular ref]";g.push(s);var d=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return d?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(i):s}return i(s)},m=JSON.stringify(k,c);return g=null,m},f=function(k){if(0)var g,i,c},b=function(k,g){if(0)var i,c,m},S=function(){};T.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:S}}},kt={};function Y(T){var r=kt[T];if(r!==void 0)return r.exports;var n=kt[T]={exports:{}};return Jt[T](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(T){if(typeof window=="object")return window}}()})(),function(){Y.o=function(T,r){return Object.prototype.hasOwnProperty.call(T,r)}}();var Rn={};(function(){"use strict";Y(33313),Y(10933),Y(79250),Y(53795),Y(87806),Y(64677),Y(48058),Y(51583),Y(82403),Y(34265),Y(3295),Y(1078),Y(63207),Y(80520),Y(39600),Y(93237),Y(32057),Y(68933),Y(47830),Y(13455),Y(64094),Y(61915),Y(32384),Y(25579),Y(63532),Y(33425),Y(43894),Y(99636),Y(34570),Y(94432),Y(24683),Y(69984),Y(32089),Y(60206),Y(29645),Y(4788),Y(58672),Y(19356),Y(48968),Y(49852),Y(2712),Y(864),Y(54243),Y(75621),Y(26267),Y(50095),Y(33451),Y(74587),Y(25082),Y(47421),Y(32122),Y(6306),Y(90216),Y(84663),Y(92332),Y(98329),Y(9631),Y(47091),Y(59660),Y(15383),Y(92866),Y(86107),Y(29248),Y(52540),Y(79007),Y(77199),Y(6522),Y(95542),Y(2966),Y(20997),Y(57400),Y(45571),Y(54800),Y(15709),Y(76059),Y(96614),Y(324),Y(90426),Y(95443),Y(87968),Y(55007),Y(55323),Y(13521),Y(5006),Y(99009),Y(85770),Y(23532),Y(87119),Y(78618),Y(27129),Y(31943),Y(3579),Y(97397),Y(85028),Y(8225),Y(43331),Y(62289),Y(56196),Y(2950),Y(44205),Y(76882),Y(83186),Y(76065),Y(13411),Y(26634),Y(53118),Y(42514),Y(84353),Y(62987),Y(48993),Y(52917),Y(4972),Y(28913),Y(36382),Y(53092),Y(69861),Y(29674),Y(81543),Y(9373),Y(45093),Y(63074),Y(5815),Y(88527),Y(66390),Y(7784),Y(50551),Y(76483),Y(92046),Y(63915),Y(51454),Y(79669),Y(23057),Y(57983),Y(17953),Y(30442),Y(6403),Y(9867),Y(43673),Y(12354),Y(22515),Y(5143),Y(93514),Y(5416),Y(11619),Y(44590),Y(63272),Y(39930),Y(4038),Y(8448),Y(70604),Y(34965),Y(95309),Y(82256),Y(49484),Y(38931),Y(39308),Y(91550),Y(75008),Y(56027),Y(50340),Y(34325),Y(74498),Y(15812),Y(57726),Y(80756),Y(70567),Y(66756),Y(60037),Y(44195),Y(24575),Y(71968),Y(78824),Y(72846),Y(99872),Y(73364),Y(58166),Y(23793),Y(43820),Y(13917),Y(19852),Y(40379),Y(92770),Y(81069),Y(63689),Y(5659),Y(25014),Y(32189),Y(23030),Y(24309),Y(49110),Y(56445),Y(30939),Y(48321),Y(88739),Y(60415),Y(72532),Y(62207),Y(906),Y(90846),Y(40348),Y(83006),Y(25764),Y(69401),Y(95012),Y(30236)})(),function(){"use strict";var T=Y(89005);Y(67160),Y(23542),Y(30386),Y(98996),Y(50578),Y(4444),Y(77870),Y(39108),Y(11714),Y(73492),Y(49641),Y(17570),Y(61858),Y(32882),Y(23632),Y(56492);var r=Y(85822),n=Y(7435),e=Y(56518),a=Y(26427),t=Y(18498),o=Y(49060),f=Y(72178),b=Y(24826),S;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var B=(0,f.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=Y(71253),c=i.getRoutedComponent,m=c(B);return(0,T.createComponentVNode)(2,f.StoreProvider,{store:B,children:(0,T.createComponentVNode)(2,m)})}),g=function i(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",i);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),B.subscribe(k),Byond.subscribe(function(c,m){return B.dispatch({type:c,payload:m})})};g()}()})();})(); + */r.perf.mark("inception",(S=window.performance)==null||(S=S.timing)==null?void 0:S.navigationStart),r.perf.mark("init");var B=(0,f.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=Y(71253),c=i.getRoutedComponent,m=c(B);return(0,T.createComponentVNode)(2,f.StoreProvider,{store:B,children:(0,T.createComponentVNode)(2,m)})}),g=function i(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",i);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),B.subscribe(k),Byond.subscribe(function(c,m){return B.dispatch({type:c,payload:m})})};g()}()})();})(); diff --git a/tools/UpdatePaths/Scripts/28277_kitchen_rework_part1.txt b/tools/UpdatePaths/Scripts/28277_kitchen_rework_part1.txt new file mode 100644 index 00000000000..aa1cad6bb44 --- /dev/null +++ b/tools/UpdatePaths/Scripts/28277_kitchen_rework_part1.txt @@ -0,0 +1,8 @@ +/obj/item/kitchen/sushimat : /obj/item/reagent_containers/cooking/sushimat{@OLD} +/obj/item/mixing_bowl : /obj/item/reagent_containers/cooking/bowl{@OLD} +/obj/machinery/cooker/deepfryer/@SUBTYPES : /obj/machinery/cooking/deepfryer/@SUBTYPES +/obj/machinery/kitchen_machine/candy_maker/@SUBTYPES : /obj/machinery/cooking/ice_cream_mixer/@SUBTYPES +/obj/machinery/kitchen_machine/grill/@SUBTYPES : /obj/structure/table, /obj/machinery/cooking/grill/@SUBTYPES +/obj/machinery/kitchen_machine/oven/@SUBTYPES : /obj/machinery/cooking/oven/@SUBTYPES +/obj/item/book/manual/wiki/chef_recipes : @DELETE +/obj/item/circuitboard/oven : /obj/item/circuitboard/cooking/oven